1 2008-10-02 Jonathan Pobst <monkey@jpobst.com>
3 * ToolStripItem.cs: Check to make sure the owner is actually
4 changing in InternalOwner before doing any work. Fixes some
7 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
9 * DataGridViewColumnHeaderCell.cs: Correctly calculate style.
10 * DataGridView.cs: Use a column header's inherited style instead
11 of just using the default.
13 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
15 * SplitContainer.cs: Raise SplitterMoved when the splitter is
18 2008-10-01 Mario Carrion <mcarrion@novell.com>
20 * ScrollBar.cs: Internal property added: UIAThumbPosition.
22 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
24 * ToolStripOverflowButton.cs: Use InternalOwner instead of Owner.
26 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
28 * ToolStripItem.cs: When the user sets Owner, we need to remove
29 it from its previous owner and then add it to the new owner's
30 item collection. Also, create InternalOwner, so we can set the owner
31 that doesn't do this new stuff.
32 * ToolStripItemCollection.cs: Use InternalOwner instead of Owner.
34 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
36 * ToolStripItem.cs: When our parent changes, recalculate our text
37 size, since we may be getting our Font from our parent. When our
38 owner's Font changes, recalculate ourselves as we may be using
41 2008-10-01 Everaldo Canuto <ecanuto@novell.com>
43 * MenuAPI.cs: Select the first option of a popup when opening the popup via
44 return key. [Fixes bug #413792].
46 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
48 * ToolStripItem.cs: Make Font, BackColor, and ForeColor be
49 ambient properties. (Get their value from their parents if
50 values haven't been set.)
52 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
54 * ToolStripSystemRenderer.cs: Call overridden methods' bases
55 after our logic, so users can do painting by handling the events.
56 Currently, we draw over any user painting.
58 2008-10-01 Jonathan Pobst <monkey@jpobst.com>
60 * ToolStripProfessionalRenderer.cs: Call overridden methods' bases
61 after our logic, so users can do painting by handling the events.
62 Currently, we draw over any user painting.
64 2008-09-30 Everaldo Canuto <ecanuto@novell.com>
66 * MenuAPI.cs: Prevent NRE when deactivate menu. Fixes #413636.
68 2008-09-30 Jonathan Pobst <monkey@jpobst.com>
70 * TreeNode.cs, TreeView.cs: Move logic that determines the node
71 image to draw to TreeNode. Give Index/Keys put on the node
72 precedence over the global one for the TreeView.
74 2008-09-30 Jonathan Pobst <monkey@jpobst.com>
76 * TreeNode.cs: Setting ImageIndex or ImageKey should reset the other.
78 2008-09-29 Mario Carrion <mcarrion@novell.com>
80 * ListBox.cs: Index fixed.
82 2008-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
84 * TabControl.cs: When expanding the tab -because it's selected now-,
85 using Right alignment, instead of adding some selected delta value to
86 the X origin, substract it, so it gets a location adjacent to the panel,
87 instead of be more separated.
90 2008-09-29 Jonathan Pobst <monkey@jpobst.com>
92 * MessageBox.cs: Use SystemIcons for graphics instead of keeping our
95 2008-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
97 * X11Dnd.cs: source and related fields should be set to IntPtr.Zero,
98 as well as the other static fields, to avoid using their previous
99 values my mistake when handling the dnd events. This should avoid
100 handling any status event after the drop has been finalized/cancelled.
102 2008-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
104 * X11Dnd.cs: We have to send a dnd enter event as soon as we start the
105 operation, instead of waiting until we get any movement - this will
106 help us to have the data available in case no movement was detected
107 and _still_ we have to fire DragEnter and DragLeave/DragDrop events.
108 Finally add a windows.forms-only fallback to fire the mentioned events
109 if no movement at all was detected, just like .net does.
112 2008-09-27 Jonathan Pobst <monkey@jpobst.com>
114 * ThemeWin32Classic.cs: When drawing a status bar panel, don't
115 return early if the text is empty because the icon doesn't get
116 drawn then. [Fixes bug #428113]
118 2008-09-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
120 * FileDialog.cs: Implement basic support for sorting by columns in
121 Details view. Patch by Eric Petit.
124 2008-09-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
126 * ThemeWin32Classis.cs: When drawing gridlines take into account the
127 case where ListView.ItemSize hasn't been computed, and provide a
128 fallback as well. This prevents a division by 0.
130 2008-09-24 Jonathan Pobst <monkey@jpobst.com>
132 * ThemeVisualStyles.cs: Use ClientRectangle instead of Bounds to
133 correctly draw tooltip backgrounds.
135 2008-09-24 Jonathan Pobst <monkey@jpobst.com>
137 * ImageList.cs: Change CopyTo implementation to ensure clones are
138 created of our images.
141 2008-09-24 Jonathan Pobst <monkey@jpobst.com>
143 * Control.cs: When setting fonts, we need to ensure we change our
144 reference to the new font object, even if it represents the same
145 font as before. If we don't, the original font can get disposed
146 and we will still try to use it.
149 2008-09-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
151 * FileDialog.cs: Take into account Tile view when selecting the view
154 2008-09-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
156 * ThemeWin32Classic.cs: When drawing gridlines for ListView don't use
157 the item bounds, since we can't iterate over them in virtual mode.
158 Also fix wrong calculation of the gridlines when using scrolling.
161 2008-09-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
163 * XplatUIX11.cs: When handling EnterNotify events, take into account
164 both the public and implicit controls when trying to detect the
165 grab/ungrab process. This should fix ListView selection in Details
168 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
170 * TreeView.cs: Redraw the whole node area when the selected node changes.
171 Things like state images were not getting redrawn because the invalid
172 rectangle was too small.
175 2008-09-23 Mario Carrion <mcarrion@novell.com>
177 * ListBox.cs: UIA Selection Pattern fully supported in ListBox control.
180 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
182 * Form.cs: Do not set the Form's icon in the backend if showicon = false.
185 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
187 * ThemeWin32Classic.cs: Allow tooltips to be multiline.
190 2008-09-23 Jonathan Pobst <monkey@jpobst.com>
192 * StatusBar.cs: Add tooltip support.
195 2008-09-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
197 * ThemeWin32Classic.cs: Use StringAlignment.Center for the vertical
198 alignments of sub items in Details view. Patch by John Mortlock (johnm at
202 2008-09-23 Neville Gao <nevillegao@gmail.com>
204 * StatusBar.cs: Add UIA event in AddInternal () to support accessibility.
207 2008-09-22 Jonathan Pobst <monkey@jpobst.com>
209 * TextBoxBase.cs: Set Text to "" instead of null in Clear().
212 2008-09-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
214 * ListView.cs: Don't do anything when EnsureVisible is called inside a
215 BeginUpdate/EndUpdate block.
218 2008-09-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
220 * ListViewItem.cs: The semantics for the public .ctor of
221 ListViewSubItemCollection need us to already have a Text value for the
222 item, which in our implementation have as available *after* adding the
223 first sub item. So create an internal .ctor that satisfies our needs
224 and let the public .ctor have the same semantics as .net.
227 2008-09-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
229 * ListControl.cs: Changes in Formatting related values should call
230 RefreshItems, as .net does.
232 * ListBox.cs: In the respective overrides of RefreshItems calculate
233 layout as well as refreshing - again, this is what .net does.
236 2008-09-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
238 * ListBox.cs: In UpdateTopItem, don' call to XplatUI.ScrollWindow,
239 since we are already doing that when we change the value of the
240 scrollbar or force the call to ScrollWindow in the same method. This
241 way we don't cause a Invalidate call for all the listbox bounds for
242 methods calling UpdateTopItem with an already updated top item. This
243 was happening specially calling EnsureVisible with already visible
246 2008-09-18 Mike Gorse <mgorse@novell.com>
248 * Application.cs, IKeyFilter.cs, X11Keyboard.cs, XplatUI.cs,
249 XplatUIStructs.cs: Added KeyFilter
252 2008-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
254 * RelatedPropertyManager.cs: The properties returned by
255 GetItemProperties should be that ones of the *actual* object returned
256 by the property, not the property type - this is very special when the
257 property exposes a type, but the returned object actually is a child
258 class and implements more functionality and properties.
260 2008-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
262 * Binding.cs: Don't look for the property in the data source if the
263 passed string is empty.
265 2008-09-18 Ivan N. Zlatev <contact@i-nz.net>
267 * XplatUIX11.cs: Comment out _NET_WM_WINDOW_TYPE_DIALOG in order to
268 fix unused variable warnings.
270 2008-09-18 Ivan N. Zlatev <contact@i-nz.net>
272 * XplatUIX11.cs: Send WM_HELP when F1 is pressed.
275 2008-09-18 Ivan N. Zlatev <contact@i-nz.net>
278 - Do not set _NET_WM_WINDOW_TYPE_DIALOG for modal forms, because this
279 leads to the window manager overriding our border style and zorder.
280 - Allow the activation of non-modal forms, which are children of a
284 2008-09-17 Ivan N. Zlatev <contact@i-nz.net>
286 * XplatUIX11.cs, X11Structs.cs: For mapped windows SetTopMost should
287 ask the window manager to do the work instead of changing the property
291 2008-09-17 Everaldo Canuto <ecanuto@novell.com>
293 * CurrencyManager.cs: Check for positon before call ChangeRecordState in
294 AddNew to fix some navigation for empty datasets. [Fixes #323053]
296 2008-09-17 Everaldo Canuto <ecanuto@novell.com>
298 * FileDialog.cs: Remove OnPaint method on PopupButtonPanel and set
299 InternalBorderStyle to BorderStyle.Fixed3D. It is the best way to get 3d
300 border and fixes some drawing issues when resize form.
302 2008-09-17 Everaldo Canuto <ecanuto@novell.com>
304 * FileDialog.cs: Lots of layout fixes to mimic Win32. [Fixes #408752]
306 * ThemeWin32Classic.cs: We don't need to reduce button size when it is
309 2008-09-17 Ivan N. Zlatev <contact@i-nz.net>
311 * TextBoxBase.cs: For standard textbox the scrollbars are always
312 visible if Multiline is true.
315 2008-05-12 Everaldo Canuto <ecanuto@novell.com>
317 * DataGridTextBoxColumn.cs: Uncomment code accidentally commited in last
320 2008-05-12 Everaldo Canuto <ecanuto@novell.com>
322 [Fixes most od DBNull and HeadersVisible problems]
325 - ShowingColumnHeaders removed because we dont need it, ColumnHeadersVisible
326 returns the value that we need.
327 - Fixed FromPixelToColumn method that return zero for first column and for
328 row header cell, now it returns -1 for row header cell.
329 - Fixed HitTest to check row header cell in column header area, it now
330 returns HitTestType.None. [Fixes #322864]
331 - Fixed the calculation of visible columns in UpdateVisibleColumn, now it
332 checks for RowHeadersVisible and other things.
333 - If an exception occurs when setting CurrentCell and user type 'yes' in
334 message dialog, invalidade current and new cell and set setting_current_cell
335 to false to prevent future errors. [Partially fixes #323050]
337 * DataGridColumnStyle.cs: Don't call EndEdit after set property_descriptor
338 value (SetColumnValueAtRow), it must be done by grid to properly show
339 messages. [Fixes #323050]
341 * ThemeWin32Classic.cs: Lots of fixes in DataGridPaintColumnHeaders to
342 better draw column and row header. Also dont draw anything when column
343 headers is not visible.
345 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
347 * ThemeWin32Classic.cs: Hook ListViewItems into the ShowFocusCues
350 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
352 * TreeView.cs: Don't start editing a node on right click, only
355 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
357 * NativeWindow.cs: Reenable the ThreadExceptionDialog I accidentally
358 disabled over a year ago.
359 * Form.cs: Wrap calling Load in a try/catch because it can happen
360 before the catch-all one in NativeWindow.
363 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
365 * ToolStripDropDownMenu.cs: Calculate the connected area better
366 to take into account when the drop down is not directly under the
368 * ToolStripProfessionalRenderer.cs: Draw the whole unconnected area.
370 2008-09-16 Mario Carrion <mcarrion@novell.com>
372 * ScrollBar.cs: New event added: UIAValueChanged, generated when
373 LargeChange, SmallChange, Maximum or Minimum values are changed.
376 2008-09-16 Mario Carrion <mcarrion@novell.com>
378 * ErrorProvider.cs: Component enabled to support accessibility.
379 * Application.cs: Updated to Initialize UIA in ErrorProvider.
382 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
384 * TextBoxBase.cs: Flag has_been_focused when SelectionStart is set
385 so we don't highlight on first focus.
388 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
390 * TextControl.cs: Correctly calculate the height of the area we
391 need to invalidate when we have started scrolling and viewport_y
392 is used. [Fixes bug #387608]
394 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
396 * TextControl.cs: When getting the SelectedText, don't add in
397 NewLine characters, as they are already contained in the lines.
400 2008-09-16 Jonathan Pobst <monkey@jpobst.com>
402 * TextBoxBase.cs: Replace the buggy Lines setter with one that
403 simply concats the lines and send it to the Text setter.
404 [Fixes issue #2 and #3 of 388115]
406 2008-09-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
408 * Binding.cs: The default value of DataSourceNullValue should be
409 Convert.DBNull actually. Also, the NullValue should only be used *if*
410 itself is not null, and use the null/Convert.DBNull value instead.
412 2008-09-15 Jonathan Pobst <monkey@jpobst.com>
414 * TextControl.cs: Add a method to convert a string newline to the
416 * TextBoxBase.cs: When the user hits enter, insert a native newline.
417 [Fixes part 1 of bug #388115]
419 2008-09-15 Mario Carrion <mcarrion@novell.com>
421 * ToolTip.cs: UnPopup event set to internal to match public API.
423 2008-09-15 Jonathan Pobst <monkey@jpobst.com>
425 * TextBoxBase.cs: If the user is using Ctrl-Tab to move focus, we
426 have to remove the Ctrl in order for the focus moving code to kick in.
429 2008-09-15 Jonathan Pobst <monkey@jpobst.com>
431 * CheckedListBox.cs: Return the real item index from Add. It may not be
432 the last item if the list is sorted. The user can change the NewValue in
433 the ItemCheck event, we need to use that value if so.
434 * ListBox.cs: Return the real item index from a sorted Add.
437 2008-09-15 Ivan N. Zlatev <contact@i-nz.net>
439 * MimeIcon.cs: Add null checks in the GnomeHandler, because it might
440 happen that the icons from the theme is missing or the particular size
444 2008-09-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
446 * Binding.cs: When assigning null or DBNull depending on value/ref type,
447 use IsValueType instead to get the precise desired value.
450 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
452 * TreeNodeCollection.cs: When adding a new node to an opened node,
453 we have to invalidate everything below the parent node because
454 every node scoots down and we have to repaint them.
457 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
459 * ThemeWin32Classic.cs: Take CheckBox and RadioButton's CheckAlign
460 property into account when drawing.
463 2008-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
465 * ListBox.cs: When calling Items.Clear(), call
466 SelectedIndexCollection.ClearCore instead of normal Clear method, to
467 not fire any Selected*Changed event - this is done to match .net and
468 don't have invalid values when changing the DataSourceProperty.
471 2008-09-12 Mario Carrion <mcarrion@novell.com>
473 * HelpProvider.cs: Control enabled to support accessibility.
474 * Application.cs: Updated to Initialize UIA in HelpProvider.
477 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
479 * Form.cs: When we are showing a dialog box, if its owner is TopMost,
480 make the dialog TopMost as well.
483 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
485 * Win32DnD.cs, XplatUIWin32.cs: Applied patch from Andy Hume that handles
486 clipboard data better.
489 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
491 * TextBoxBase.cs: Applied patch from John Mortlock that ensures
492 TextChanged and SelectionChanged events fire in the same order as .Net.
495 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
497 * DataGridView.cs: When sorting a column, if it only contains numbers,
498 do a numeric sort instead of a string sort.
501 2008-09-12 Jonathan Pobst <monkey@jpobst.com>
503 * TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Guard
504 against NRE's when the settings have a null panel.
505 * TableLayoutPanel.cs: When setting the TableLayoutSettings, ensure
509 2008-09-11 Mario Carrion <mcarrion@novell.com>
511 * ToolTip.cs: Control enabled to support accessibility.
512 * Application.cs: Updated to Initialize UIA in ToolTip.
515 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
517 * Control.cs: Make the custom Enumerator internal to fix build.
519 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
521 * DataGridViewCheckBoxCell.cs: If our content is clicked and we aren't
522 already in edit mode, begin edit mode. Generally edit mode isn't
523 started until the second click, but CheckBoxes are special.
525 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
527 * ErrorProvider.cs: Never try to add our icons to ContainerControl,
528 since that can be set to anything. Always add them to the Control's
529 parent. [Fixes bug #416058]
531 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
533 * ListView.cs: Use a custom enumerator for ListViewItemCollection
534 so items can be deleted in a foreach.
537 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
539 * DataGridViewRow.cs: Better implementation of GetPreferredHeight.
540 Store the user set explicit height so that the row can be AutoSized
541 and then when AutoSize is turned off, it can get its original size back.
542 * DataGridView.cs: Use the Row's GetPreferredHeight instead of
543 duplicating the logic. When setting AutoSizeRowsMode to None, reset
544 rows' heights back to their explicit values.
547 2008-09-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
549 * DateTimePicker.cs: When getting focus, select the checkbox if we are
550 already showing it. Also, don't change its value when pressing space
551 if the checkbox is not visible (ShowCheckBox as false). Finally, the
552 checkbox should remain selected as long as Checked is false, and the
553 other parts are disabled.
556 2008-09-11 Jonathan Pobst <monkey@jpobst.com>
558 * MessageBox.cs: Handle shortcut keys to dialog buttons.
561 2008-09-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
563 * Binding.cs: When the value retrieved from the control property is
564 null, don't return Convert.DBNull for Nullable instances, since they
565 can *actually* get a null value.
568 2008-09-10 Jonathan Pobst <monkey@jpobst.com>
570 * Control.cs: Add an internal field to force doublebuffering regardless
571 of what the public mechanisms are set to. This is because MS's native
572 controls are doublebuffered even though their .Net bits are set to false.
573 * ProgressBar.cs: Set force_double_buffer to true.
576 2008-09-10 Jonathan Pobst <monkey@jpobst.com>
578 * DataGridViewCheckBoxColumn.cs: Use the threestate constructor for
580 * DataGridViewCheckBoxCell.cs: Add proper support for threestate.
581 * DataGridViewCell.cs: Implement GetEditedFormattedValue for types
582 without EditingControls, paint background selection for types without
583 EditingControls, reset the EditingCellValueChanged flag when the
584 cell's value is committed.
585 * DataGridView.cs: Make BeginEdit and EndEdit work with cells that don't
586 have EditingControls, remove a double call to a cell's OnContentClickInternal,
587 don't do cell changing logic in OnMouseDown if the cell didn't change.
590 2008-09-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
592 * DateTimePicker.cs: Fix the edition of am/pm specifier.
594 2008-09-09 Jonathan Pobst <monkey@jpobst.com>
596 * TextControl.cs: Add "&" to the list of valid characters in a URL.
598 2008-09-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
600 * DateTimePicker.cs: Before incrementing or decrementing any part in
601 the textbox, end any current edit. Also when ending the current edit
602 use the editing_part_index field instead of the current selected
603 value, since they can be out of synch, and we really need to work on
604 the *real* current edit part. Finally when PartData.Selected changes,
605 always try to end any ongoing edit.
606 This should fix some small errors handling mouse navigation and
607 increase/decrease operations.
609 2008-09-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
611 * DateTimePicker.cs: 'hh' and 'HH' formats (12 and 24 hour formats
612 respectively) should handled different, since the 12 hours format
613 needs the value typed by the user to be adjusted depending on the
614 a.m/p.m value, so it is preserved, and only changed when the value
615 reaches the 12 value (when it changes from a.m to p.m).
616 Fixes part of #416555.
618 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
620 * ToolStrip.cs: Ensure MouseDown gets called for MenuStrip items.
621 * ToolStripDropDownItem.cs: Don't fire events and such again if
622 ShowDropDown is called on an already dropped down item.
623 * ToolStripMenuItem.cs: Call ShowDropDown even if there aren't any
624 subitems, the user may add some in the DropDownOpening event.
627 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
629 * ComboBox.cs: Fix IOORE when setting SelectedItem to null.
632 2008-09-08 Jonathan Pobst <monkey@jpobst.com>
634 * MdiClient.cs: When looking for menustrips on a child form to merge,
635 look inside ToolStripContainers.
638 2008-09-08 Ivan N. Zlatev <contact@i-nz.net>
640 * ErrorProvider.cs: Unbreak my previous commit.
642 2008-09-08 Ivan N. Zlatev <contact@i-nz.net>
644 * ErrorProvider.cs: Icon should always be 16x16.
647 2008-09-07 Ivan N. Zlatev <contact@i-nz.net>
649 * GridEntry.cs: Invalidate the child items cache when the property
652 2008-09-07 Ivan N. Zlatev <contact@i-nz.net>
654 * GridEntry.cs, PropertyGridView.cs:
655 - Update the ReadOnly detection and rendering to finally hopefully
656 match the one of MSFT.
657 - Niceify and move the debug CWLS.
660 2008-09-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
662 * ListView.cs: Don't call Invalidate at all from SetItemLocation,
663 since we are already calling Invalidate for the entire control when
664 needed - and call Redraw() when size changes, since we need to paint
665 there by ourselved and not anymore from the mentioned method.
666 This should improve the layout process. Also clean some not needed calls
669 2008-09-05 Jonathan Pobst <monkey@jpobst.com>
671 * MenuAPI.cs: Add a null check to the Alt-F4 code.
674 2008-09-05 Jonathan Pobst <monkey@jpobst.com>
676 * ThreadExceptionDialog.cs: Disable AutoScaling for this dialog.
679 2008-09-04 Ivan N. Zlatev <contact@i-nz.net>
681 * GridEntry.cs, CategoryGridEntry.cs, RootGridEntry.cs, PropertyGrid.cs,
682 PropertyGridView.sc: Implement lazy/delayed propertygrid population
683 on item expansion. Improves performance and fixes bug #417955.
686 2008-09-05 Stephane Delcroix <sdelcroix@novell.com>
688 * Control.cs: only check for OptimizedDoubleBuffer in NET_2_0.
691 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
693 * TextControl.cs: Add "_" to the list of valid characters in a URL.
696 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
698 * Control.cs: If using OptimizedDoubleBuffer, ensure the clip
702 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
704 * FontDialog.cs: When storing our font size from the starting font,
705 use SizeInPoints instead of Size in case Size is a different unit
709 2008-09-04 Jonathan Pobst <monkey@jpobst.com>
711 * FileDialog.cs: When enter is pressed on a SaveFileDialog and we
712 don't use it for anything else, check if a directory is highlighted.
713 If it is, navigate into it.
716 2008-09-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
718 * Binding.cs: When acquiring a BindingManagerBase for the first time,
719 check that the specified property actually exists in the data source,
720 and throw an ArgumentException if that's not the case - this is only
721 done for this scenario, since for later cases (such Position changes)
722 we throw different exceptions (match .Net).
724 2008-09-03 Ivan N. Zlatev <contact@i-nz.net>
726 * ButtonBase.cs CheckBox.cs, Control.cs, FlowLayoutPanel.cs,
727 FlowLayoutSettings.cs, GroupBox.cs, Label.cs, ListBox.cs,
728 PropertyGrid.cs, RadioButton.cs, TableLayoutPanel.cs,
729 TableLayoutSettings.cs, ToolStrip.cs, ToolStripDropDownButton.cs,
730 ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripSplitButton.cs,
731 ToolStripStatusLabel.cs: Add missing PerformLayout calls to various
735 2008-09-03 Neville Gao <nevillegao@gmail.com>
737 * StatusBar.cs: Control enabled to support accessibility.
740 2008-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
742 * Binding.cs: When connecting the event handler for the "Changed"
743 event for the property, only do it for PropertyManager, and not for
744 CurrencyManager - this is exactly what does .Net, totally ignoring any
745 change in the property of the elements of a list.
748 2008-09-02 Jonathan Pobst <monkey@jpobst.com>
750 * XplatUIWin32.cs: Ensure we never send the WS_EX_MDICHILD flag
751 to Windows when creating a window, as we fake MDI stuffs.
754 2008-09-01 Ivan N. Zlatev <contact@i-nz.net>
756 * TextBox.cs: Invalidate after UseSystemPasswordChar, so that the
759 2008-08-24 Ivan N. Zlatev <contact@i-nz.net>
761 * XplatUIX11.cs: Provide MouseButtons/State information to the XPlatUI.
764 2008-08-27 Jonathan Pobst <monkey@jpobst.com>
766 * DataGridView.cs: Raise CellContentClick event.
767 [Fixes part of bug #420351]
769 2008-08-27 Mario Carrion <mcarrion@novell.com>
771 * ScrollBar.cs: Control enabled to support accessibility.
774 2008-08-27 Mario Carrion <mcarrion@novell.com>
776 * ComboBox.cs: Control enabled to support accessibility.
779 2008-08-27 Mario Carrion <mcarrion@novell.com>
781 * ListBox.cs: Control enabled to support accessibility.
784 2008-08-27 Jonathan Pobst <monkey@jpobst.com>
786 * ComboBox.cs: Don't suppress the TextChanged event when changing
788 * ToolStripComboBox.cs: Listen to the ComboBox's TextChanged event
792 2008-08-26 Jonathan Pobst <monkey@jpobst.com>
794 * ErrorProvider.cs: Fix a regression NRE when setting properties
795 for a control before it has a parent.
798 2008-08-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
800 * Binding.cs: Use the BindingManagerBase.Current value to obtain
801 connect the property "Changed" event, instead of using the data
802 sources - this is useful when the property specifies actually a
803 multiple objects path.
804 Fixes part of #417973.
806 2008-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
808 * RelatedPropertyManager.cs: PropertyManager instances associated to a
809 nested properties should return not the properties of the data source
810 itself, but the properties of the type of a specific property in the
811 data source - match .net.
813 2008-08-24 Gert Driesen <drieseng@users.sourceforge.net>
815 * ListBox.cs (IntegerCollection): To avoid duplication, moved code for
816 AddRange overloads into AddItems method, and added missing NULL check.
817 Added extra argument check to RemoveAt for compatibility with MS.
818 Modified IList implementation of Add, Contains, IndexOf and Remove to
819 throw an ArgumentException if item is not an int. Modified IList.Insert
820 to throw a NotSupportException instead of an Exception. Implemented
822 (ObjectCollection): To avoid duplication, use AddItems method from
823 AddRange overloads. On 1.0 profile, first perform NULL check on items
826 2008-08-23 Gert Driesen <drieseng@users.sourceforge.net>
828 * Control.cs: Do not modify bounds directly in .ctor's. Fixes bug
831 2008-08-22 Atsushi Enomoto <atsushi@ximian.com>
833 * X11Keyboard.cs : comment out some Console.WriteLine().
835 2008-08-22 Atsushi Enomoto <atsushi@ximian.com>
837 * X11Keyboard.cs : fixed wrong call to XOpenIM() which happened
838 even if premises are not filled. Also XLookupString() was not
839 receiving correct input, which blocked precise input handling
842 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
844 * ListView.cs: When calling OnCacheVirtualItems, cast to the right
845 type of delegate, instead of EventHandler - this was causing a type
846 cast exception in all apps handling this event.
849 2008-08-20 Jonathan Pobst <monkey@jpobst.com>
851 * ToolStripDropDownItem.cs: Always raise DropDownOpening in
852 ShowDropDown to give the user a chance to dynamically add
853 drop down items. [Step 1 of fixing bug #417877]
855 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
857 * X11Dnd.cs: Don't fire pseudo motion DragOver events if we haven't
858 had any mouse motion since the call to StartDrag, to match the dnd
860 Fixes part of #381876.
862 2008-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
864 * XplatUIX11.cs: Only do the children control bounds check for EnterNotify
865 if mode is NotifyUngrab, and let it flow if mode is NotifyNormal.
866 Also, if we are actually moving into a different window after
867 grabbing, generate a LeaveNotify event for the previous window, since
868 we need to fire the leave events until the grab ends, not when
869 actually moving outside of the control.
871 2008-08-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
873 * XplatUIX11.cs: The check inside EnterNotify case to fire MouseEnter
874 events only for client windows was wrong - we need to compare the
875 client window against the window receiving the EnterNotify event, not
876 against zero (since client window is never Zero, btw).
877 This prevents having unnecessary handling of EnterNotify events for
878 non-client windows when a gran begins.
880 2008-08-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
882 * XplatUIX11.cs: Handling X ButtonPress events, we must *not* generate
883 MouseMove/MotionNotify events at all (which should only happen after
884 MouseUp/ButtonRelease, as .Net does).
885 This avoids firing an extra and unnecessary MouseMove event just after
886 every MouseDown event.
888 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
890 * LinkLabel.cs: Always clear any previous links when LinkArea
891 is set. [Fixes bug #410709]
893 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
895 * ToolStripProfessionalRenderer.cs: Revert last change.
896 * ProfessionalColorTable.cs: For Classic, use SystemColors.Window
897 for ToolStripDropDownBackground.
899 2008-08-19 Jonathan Pobst <monkey@jpobst.com>
901 * ToolStripProfessionalRenderer.cs: Use Window color for the
902 background of dropdowns to match .Net when the user is not
903 using the default white. [Fixes bug #418108]
905 2008-08-19 Atsushi Enomoto <atsushi@ximian.com>
907 * XplatUIWin32.cs : SetTimer() used to set wrong window handle and
908 it caused timer registration twice. Fixed bug #418107.
910 2008-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
912 [Correction: This is the actual change to X11Dnd issue, not the
913 previous one, which was actually a different issue.]
915 * X11Dnd.cs: Increase the interval for the Timer, to not fire our
916 pseudo motion HandleMouseOver method so aggresive. Also, don't call it
917 when the pointer is actually in motion, but only when the pointer
918 seems to stop (as .net does).
919 Fixes part of #381876.
922 2008-08-18 Jonathan Pobst <monkey@jpobst.com>
924 * ListBox.cs: Fix CopyTo implementation.
927 2008-08-18 Jonathan Pobst <monkey@jpobst.com>
929 * ThemeWin32Classic.cs: Use ClientRectangle instead of Bounds when
930 drawing a ComboBox's background. Fixes bad disabled rendering when
931 the control is not at 0,0.
934 2008-08-16 Ivan N. Zlatev <contact@i-nz.net>
936 * GridEntry.cs: Leave the ICustomTypeDescriptor handling up to the
937 ComponentModel layer, which will properly prioritize the attributes.
938 Avoids wrong prioritization of duplicate attributes when retrieving
939 the converter and editor.
942 2008-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
944 * XplatUIX11.cs: Increase the interval for the Timer, to not fire our
945 pseudo motion HandleMouseOver method so aggresive. Also, don't call it
946 when the pointer is actually in motion, but only when the pointer
947 seems to stop (as .net does).
948 Fixes part of #381876.
950 2008-08-15 Ivan N. Zlatev <contact@i-nz.net>
952 * GridEntry.cs: Perform stricter check for the ParentEntry's
953 PropertyDescriptor/PropertyOwner for the ICustomTypeDescriptor
957 2008-08-14 Geoff Norton <gnorton@novell.com>
959 * XplatUICarbon.cs: Properly implement PeekMessage and DoEvents.
960 Fixes #396983. Properly fix ActiveWindow trackin and do not
961 prematurely show POPUP windows.
963 2008-08-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
965 * XplatUIX11.cs: Handle the obscured regions while scrolling using
966 GraphicsExpose event, processing it just after we copy the scrolled
967 area. This ensures that the next calls to ScrollWindow will copy
968 regions already updated, and the scrolling will be smooth. Also remove
969 the code that was trying to detect the obscured regions, since we are
970 not using it anymore (too slow).
972 2008-08-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
974 * ListBox.cs: Fix the -temporary- broken selection in ListBox for
975 MultiExtended mode, by separating some logic between the ctrl/shift
976 handling. Also ignore any MouseMove events generated together with
977 MouseDown events - we are only interested in the real motion event.
978 Fixes part of #414963.
980 2008-08-08 Jonathan Pobst <monkey@jpobst.com>
982 * DataGridViewCell.cs: Guard against an AOORE when checking if a cell
983 is selected. [Fixes bug #414143]
985 2008-08-07 Ivan N. Zlatev <contact@i-nz.net>
987 * GridEntry.cs: Check if current property is a ICustomTypeDescriptor
988 and not the parent one (the propertyowner). Fixes the behavior of
989 GetConverter/GetEditor.
992 2008-08-07 Ivan N. Zlatev <contact@i-nz.net>
994 * PropertyGrid.cs: Refresh should also repopulate the PropertyGrid.
995 [Fixes part of bug #415452]
997 2008-08-05 Ivan N. Zlatev <contact@i-nz.net>
999 * GridEntry.cs: ITypeDescriptorContext should be relative to the parent
1000 GridEntry, not the current.
1003 2008-08-04 Ivan N. Zlatev <contact@i-nz.net>
1005 * TextBoxBase.cs: De-internalize max_length field.
1006 * RichTextBox.cs: Use base.MaxLength - both TextBoxBase and RichTextBox
1007 share the same logic.
1010 2008-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1012 * ListBox.cs: Selection changes made in the MouseDown handler should
1013 use the *Core versions of selection in SelectedIndices collection,
1014 since the SelectedIndexChanged/SelectedValueChanged events are fired
1015 until we get a MouseUp event, and thus we need to separate the logic
1016 from the events, as done in the keyboard navigation. Also, fire those
1017 selection events from keyboard navigation in SelectionMode.None, even
1018 if we don't have a selection, as .Net does.
1020 2008-08-01 Jonathan Pobst <monkey@jpobst.com>
1022 * ToolStripButton.cs, ToolStripMenuItem.cs: Guard against a NRE my
1023 last change introduced when an item is clicked but isn't on a toolstrip.
1025 2008-07-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1027 * ListBindingHelper.cs: When looking for an object's properties, check
1028 if it implements ICustomTypeDescriptor, in which case we should
1029 resolve the propertu based on its GetProperties method, not in its
1030 actual properties. This is what .Net seems to do.
1031 Fixes a UsingWebBrowser problem during initialization.
1033 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
1035 * ToolStrip.cs: Fix an NRE caused by clicking on a ToolStripButton
1036 sitting on a MenuStrip.
1038 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
1040 * ToolStripButton.cs: If we "click" a top button on a menustrip that has
1041 no children with the keyboard, we need to release the keyboard capture.
1044 2008-07-31 Jonathan Pobst <monkey@jpobst.com>
1046 * ToolStripMenuItem.cs: If we "click" a top level menu item that has
1047 no children with the keyboard, we need to release the keyboard capture.
1050 2008-07-31 George Giolfan <georgegiolfan@yahoo.com>
1052 * ThemeVisualStyles.cs: Made ScrollBar rendering less strict so it supports
1053 the GTK+-based implementation of VisualStyles.
1054 * ThemeWin32Classic.cs: Exposed various layout values for use in the
1055 GTK+-based implementation of VisualStyles: ListViewGetHeaderHeight(Font),
1056 ListViewGetHeaderHeight(), ProgressBarChunkSpacing, ProgressBarGetChunkSize(),
1057 ProgressBarGetChunkSize(int), ProgressBarDefaultHeight,
1058 TrackBarGetThumbSize(), TrackBarVerticalTrackWidth,
1059 TrackBarHorizontalTrackHeight.
1061 2008-07-31 George Giolfan <georgegiolfan@yahoo.com>
1063 * TabControl.cs: Added hot style handling for the scroll buttons.
1064 right_slider_state, left_slider_state are now of type PushButtonState to
1065 allow for a hot state. Added tracking of the mouse button being held down
1066 on a tab page. Extracted HasHotElementStyles, RightScrollButtonArea,
1067 LeftScrollButtonArea.
1068 * Theme.cs, ThemeWin32Classic.cs: Removed TabControlGetLeftScrollRect,
1069 TabControlGetRightScrollRect.
1071 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
1073 * MenuAPI.cs: Check for null GrabControl on ProcessMnemonic to prevent
1076 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
1078 * Form.cs: Ensure that we reset the shown_raised flag after
1079 the form is closed, so that we raise the show events the next
1080 time the form is shown.
1083 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
1085 * Form.cs: Ensure closing events are raised only once.
1088 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
1090 * X11Keyboard.cs: Refactor SendKeyboardInput to accept the keycode,
1091 so that we can successfully generate the LParam in-place instead of
1092 in KeyEvent, which isn't called for e.g. MainMenu. Fixes keyboard
1093 navigation for menus.
1095 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
1097 * MenuAPI.cs: When montion don't set the keyboard navigation state to
1098 'navigating'. Fixes bug #411356.
1100 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
1102 [Fixed remaining issues of #406773 (#1)]
1103 * MenuItem.cs: UpdateMenuItem added to track the shotcut changes.
1105 * MenuAPI.cs: Don't create tracker on TrackPopupMenu, it will be created in
1106 MainMenu (already done) and ContextMenu creation.
1108 * ContextMenu.cs: Create tracker on construction.
1110 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
1112 * MenuAPI.cs: For ContextMenu set GrabControl on TrackPopupMenu, it make
1113 possible to instantiate MenuTracker without GrabControl.
1115 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
1117 * MenuAPI.cs: On constructor dont set the GrabControl for non ContextMenu.
1119 * MainMenu.cs: Set GrabControl on SetForm using current form.
1121 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
1123 * MenuAPI.cs: Chage grab_control to GrabControl and make it public.
1125 2008-07-30 Everaldo Canuto <ecanuto@novell.com>
1127 * MenuAPI.cs: Check if menu is activated before deactivate it in
1130 2008-07-30 Ivan N. Zlatev <contact@i-nz.net>
1132 * TableLayoutStyleCollection, TableLayoutStyle.cs, RowStyle.cs,
1134 Make the TableLayoutStyle owned by the the TableLayoutPanel, so that:
1135 - One style instance can only participate in a single style collection.
1136 - Styles can request their owner to layout whenever their properties
1138 [Fixes bugs #412583 and #412582]
1140 2008-07-29 Ivan N. Zlatev <contact@i-nz.net>
1142 * X11Keyboard.cs: Implement the generation of the LParam for
1143 all keyboard messages.
1146 2008-07-29 Jonathan Pobst <monkey@jpobst.com>
1148 * ListBox.cs: Don't let the user set TopIndex so high that it
1149 scrolls up far enough to show empty items.
1152 2008-07-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1154 * ThemeWin32Classic.cs: Actually commit the changes to fix #410880
1155 (I'm an idiot and forgot to commit the actual changes, as well as
1156 specify the right file, which is this one, not ListView.cs).
1158 2008-07-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1160 * ListView.cs: Don't draw ListViewSubItem instances from
1161 DrawListViewItem - we need to reuse the main item's drawing for the
1162 first sub item in case owner draw is true, but wants the system to
1163 do the default draw for the first sub item, without incurring in a
1167 2008-07-28 Jonathan Pobst <monkey@jpobst.com>
1169 * ToolStripButton.cs: Update Checked for CheckOnClick before
1170 raising the Click event. [Fixes bug #412505]
1172 2008-07-28 Ivan N. Zlatev <contact@i-nz.net>
1174 * Form.cs: Remove some seems leftover code for non-TopLevel's
1175 CreateParams, which is breaking ClientSize sizing, because it
1176 removes the border window styles.
1178 2008-07-27 Ivan N. Zlatev <contact@i-nz.net>
1180 * PropertyGrid.cs: Invalidate the View when the PropertyTab
1183 2008-07-25 Gert Driesen <drieseng@users.sourceforge.net>
1185 * WebBrowser.cs: Removed debug output.
1187 2008-07-25 Jonathan Pobst <monkey@jpobst.com>
1189 * FileDialog.cs: Apply patch from Ernesto to clean up some
1192 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
1194 * TableLayoutPanel.cs: Perform layout on GrowStyle change, so
1195 that the change has an immediate effect.
1197 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
1199 * ScrollableControl.cs: Update PerformLayout calls to include
1200 provide the name of the property that changed.
1202 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
1204 * TableLayoutPanel.cs: Draw relative to the DisplayRectangle
1205 location. Fixes drawing of border and cell borders if scrollable.
1207 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
1209 * ScrollableControl.cs: Perform layouting after the AutoScroll
1210 properties have changed, so that the changes have immediate
1214 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
1216 * XplatUIX11.cs: Non Client area is actually Client such in the
1217 case of NotifyIcon, so double check WholeWindow == ClientWindow
1218 when adding an expose.
1219 [Fixes bugs #324237 and #357022]
1221 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
1223 * TableLayoutPanel.cs: Invalidate after layouting, so that we
1224 repaint the cell borders.
1226 2008-07-25 Ivan N. Zlatev <contact@i-nz.net>
1228 * PropertyGridTextBox.cs: Stop filtering messages prior to our
1229 disposal to avoid unexpected ObjectDisposedExceptions.
1231 2008-07-24 Ivan N. Zlatev <contact@i-nz.net>
1233 * TableLayoutPanel.cs: Layout on Row/Column count change.
1235 2008-07-22 Gert Driesen <drieseng@users.sourceforge.net>
1237 * ListViewItem.cs: Changed binary serialization to match MS. Fixes
1239 * PictureBox.cs: When ImageLocation is set to null or an empty string,
1240 only set image to null if it was previously initialized from an url
1241 (or using ImageLocation). In ImageLocation, load specified image
1242 asynchronously if WaitOnLoad is false. Added support for local file
1243 paths to LoadAsync, and added missing argument check.
1245 2008-07-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1247 * DateTimePicker.cs:
1248 * ThemeWin32Classic.cs: Add a editing capability to DateTimePicker, in
1249 order to set the value as required (which means: when selection
1250 changes for a part being edited, and not before that if not needed).
1251 Also use an enum to describe which part are we using, and use the
1252 selection as a property in PartData, in order to notify the
1253 DateTimePicker owner that we need to end the current edit.
1256 2008-07-17 Ivan N. Zlatev <contact@i-nz.net>
1258 * PropertyGridTextBox.cs: Validation should be performed only if we
1259 are focused. We can lose focus for example if the Return key is used
1260 to set the entry and there is an error. When the message box is
1261 displayed we would have validate on click in the message box.
1263 2008-07-16 Ivan N. Zlatev <contact@i-nz.net>
1265 * GridEntry.cs: Checking for DesignerSerializaitonVisibility.Content
1266 in order to determine that we are expandable is wrong. There was a bug,
1267 now fixed, in TypeDescriptor that was causing the wrong converter to be
1268 returned which caused GetPropertiesSupported == false in most cases.
1271 2008-07-15 Jonathan Pobst <monkey@jpobst.com>
1273 * ImageList.cs: Fix ICollection.CopyTo implementation for
1274 ImageListCollection. [Fixes bug #409169]
1276 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
1278 * MenuAPI.cs, ToolStripDropDown.cs: Use VirtualScreen instead of
1279 WorkingArea so that menus can appear on the second monitor
1280 when one has dual monitors.
1282 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1284 * TextBox.cs: Auto complete stuff in WndProc should be 2.0 only.
1287 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1289 * TextBox.cs: Implement navigation support for auto complete in
1290 TextBox, as well as refactor the code to show the auto complete window
1291 when receiving a WM_CHAR message, instead of TextChanged, since
1292 autocomplete itself should be able to set the Text a lot of times and
1293 finally only typing should show it, not changes from code.
1295 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1297 * TabControl.cs: When expanding the selected tab, don't adjust the
1298 width if alignment is Right, since it has a different offset than 0,
1299 as opposed to the other alignments.
1300 Fixes the selected tab not being painted at all with alignment = Right
1301 and using FillToRight size mode.
1303 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
1305 * TreeView.cs: Fix ToString to match MS. [Fixes bug #409029]
1307 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
1309 * NumericUpDown.cs: Apply patch from Andy Hume to clamp out of range
1310 values from the textbox to the boundary values. [Fixes bug #409026]
1312 2008-07-14 Jonathan Pobst <monkey@jpobst.com>
1314 * TreeNodeCollection.cs: We were copying one too many elements when
1315 doing our array copy. Fixes a crash when RemoveAt is called.
1318 2008-07-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1320 * TabControl.cs: When doing the layout and need to call FillRow -using
1321 FillToRight size mode-, use the overload receiving a bool param
1322 indicating whether we need to do a vertical or horizontal calculation.
1323 Fixes part of #399583.
1325 2008-07-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1327 * TextBox.cs: When painting, use the value returned by
1328 GetLastVisibleItem instead of using the cached last_item field, since
1329 there could be a desynchronization between the layout and the
1330 painting. Fixes a AOOR exception in auto complete mode.
1332 2008-07-12 George Giolfan <georgegiolfan@yahoo.com>
1334 * ThemeVisualStyles.cs: Disabled when Application.VisualStyleState is
1335 NonClientAreaEnabled until our VisualStyles is modified to allow it.
1337 2008-07-12 Gert Driesen <drieseng@users.sourceforge.net>
1339 * TextBox.cs: Fixed NRE in LostFocus. Avoid unnecessary initialization.
1341 2008-07-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1343 * TextBox.cs: When focus is lost, if the auto complete listbox is
1346 2008-07-11 George Giolfan <georgegiolfan@yahoo.com>
1348 * InternalWindowManager.cs: HandleSizing: Implemented a better minimum
1349 tracking size for tool windows.
1350 * Theme.cs, ThemeWin32Classic.cs : Extracted
1351 ManagedWindowSpacingAfterLastTitleButton.
1353 2008-07-11 Jonathan Pobst <monkey@jpobst.com>
1355 * ThemeEngine.cs: Remove the clearlooks, nice, and old gtk themes.
1356 They are bit-rotted and have always been listed as "unsupported".
1358 2008-07-11 Jonathan Pobst <monkey@jpobst.com>
1360 * PictureBox.cs: Don't crash if ImageLocation is set to "" or null.
1362 2008-07-11 George Giolfan <georgegiolfan@yahoo.com>
1364 * ThemeVisualStyles.cs: Fixed minimized window height adjustment.
1366 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
1368 * ListBox.cs: Make sure last_item_visible gets reset before we try
1369 to do a layout due to scrollbars appearing or disappearing.
1372 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
1374 * XPlatUIWin32.cs: Change GetMenuOrigin to calculate borders better
1375 for different window themes. [Fixes bug #339140]
1377 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
1379 * ThemeWin32Classic.cs: Implemented minimized window border width properly,
1380 in ManagedWindowBorderWidth.
1382 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
1384 * InternalWindowManager.cs: Change MouseMove to take a point, so
1385 we can use the same point later on.
1386 * MdiWindowManager.cs: Store point sent to MouseMove so we can
1387 later reset to it. On Windows, the Cursor.Position had already
1388 changed by the time we were resetting to it.
1391 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
1393 * InternalWindowManager.cs: Ignore mouse actions on TitleButtons that
1395 * ThemeWin32Classic.cs: Disable or hide MinimizeBox/MaximizeBox if
1399 2008-07-10 Jonathan Pobst <monkey@jpobst.com>
1401 * MdiWindowManager.cs: Double-clicking on the title bar should not
1402 maximize a MDI form if MaximizeBox = false.
1404 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
1406 * ThemeVisualStyles.cs: Fixed a warning.
1408 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
1410 * ThemeVisualStyles.cs: Fixed warnings and formatted.
1412 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
1414 * ThemeVisualStyles.cs: Removed ManagedWindowGetMenuButtonSize. The base
1415 implementation produces a better result.
1417 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
1419 * ThemeVisualStyles.cs: Adjusted height and border rendering for minimized
1422 2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
1424 * Application.cs: Added VisualStylesEnabled because XplatUI.ThemesEnabled
1425 cannot be used from the ThemeEngine constructor.
1426 * ThemeEngine.cs: Changed the XplatUI.ThemesEnabled check to
1427 Application.VisualStylesEnabled because it does not work on X11.
1429 2008-07-09 Jonathan Pobst <monkey@jpobst.com>
1431 * StatusBar.cs: Apply patch from Andy Hume to remove lazy instantiation
1432 that we did not always check for, as well as fixes to the IList
1433 implementations. [Fixes bug #402703]
1435 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
1437 * IDeviceContext.cs: Added Dispose.
1439 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
1441 * Control.cs: Added OnSizeInitializedOrChanged.
1442 * Form.cs: OnLoadInternal: Added a call to
1443 Control.OnSizeInitializedOrChanged.
1444 * InternalWindowManager.cs:
1445 * HandleTitleBarMouseMove: No longer invalidates the parent window.
1446 * DrawTitleButton: Extracted Theme.ManagedWindowDrawMenuButton.
1447 * TitleButton: Added Entered.
1448 * TitleButtons.MouseMove: Added handling of TitleButton.Entered.
1449 * MdiWindowManager.cs:
1450 * HandleTitleBarMouseMove: Now invalidates the parent window when a mouse
1451 move over the maximized title buttons causes a change.
1452 * IsActive: Can now be called before the window is added to a MDI parent.
1453 * Theme.cs: Added ManagedWindowTitleButtonHasHotElementStyle,
1454 ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
1455 * ThemeVisualStyles.cs: Implemented proper managed window rendering.
1456 * ThemeWin32Classic.cs:
1457 * Extracted ManagedWindowDrawTitleBarAndBorders, ManagedWindowDrawTitleButton.
1458 * DrawTitleButton takes a new form parameter.
1459 * Added ManagedWindowTitleButtonHasHotElementStyle,
1460 ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
1462 2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
1464 * ThemeEngine.cs: ThemeVisualStyles is now selected if
1465 Application.EnableVisualStyles has been called, even if the current system
1466 configuration does not support rendering with Visual Styles.
1467 * ThemeVisualStyles.cs: Now falls back to ThemeWin32Classic when Visual
1468 Styles should not be used.
1470 2008-07-08 Jonathan Pobst <monkey@jpobst.com>
1472 * ComboBox.cs: PreferredHeight is not tied to ItemHeight. Fixes 3rd
1473 ComboBox in FormsTest.
1475 2008-07-08 Ivan N. Zlatev <contact@i-nz.net>
1477 * ThemeWin32Classic.cs: (ManagedWindowBorderWidth): width 3 is only
1478 for fixed toolwindows.
1480 2008-07-08 George Giolfan <georgegiolfan@yahoo.com>
1482 * Form.cs: SetBoundsCore: Added minimum size for minimized windows.
1484 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
1486 * Control.cs: CreateControl just returns if the Control is diposed
1487 and doesn't throw ObjectDisposedException.
1490 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
1492 * Control.cs: Do not create the control if the parent isn't created
1493 yet, e.g in the case of a parented form on which .Show is called.
1494 It will be created when the parent is made visible/created.
1497 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
1499 * Form.cs: Avoid recursively calling OnSizeChanged due to recursive
1500 WM_WINDOWPOSCHANGED caused by the layouting code on win32.
1503 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
1505 * Form.cs: When disposed set owner to null. Improves #402446.
1507 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
1509 * Form.cs, FlowLayoutPanel.cs: When calculating the PreferredSize
1510 use children's PreferredSize if in AutoSize mode and ExplicitBounds
1512 * Form.cs: Take the Padding into account for the PreferredSize.
1515 2008-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1517 * TabControl.cs: Since we don't support more than one direction in
1518 TabControl rows alignment (this is, the row becomes the
1519 bottom row when selected), make Direction return always 1. This way
1520 the layout doesn't get confused about a bad calculation.
1523 2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
1525 * XplatUIX11.cs: Implement NC hit-testing for mouse down/up messages,
1526 so that the wparam is properly set.
1527 Fixes form moving in the test case in bug 402446.
1529 2008-07-07 Jonathan Pobst <monkey@jpobst.com>
1531 * FolderBrowserDialog.cs: If we can't find the SelectedPath, display
1532 the full tree instead of nothing. [Improves bug #406584]
1534 2008-07-07 George Giolfan <georgegiolfan@yahoo.com>
1536 * ThemeWin32Classic.cs: Adjusted minimized window painting.
1538 2008-07-07 George Giolfan <georgegiolfan@yahoo.com>
1540 * InternalWindowManager.cs: No longer draws decorations for maximized MDI
1543 2008-07-04 Jonathan Pobst <monkey@jpobst.com>
1545 * TreeView.cs: Add a null check when using CollapseAll on an
1546 empty tree. [Fixes bug #406449]
1548 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
1550 * Form.cs: Make OnMenuComplete internal so we can call it.
1551 * MenuAPI.cs: Raise Form.MenuComplete when a menu item is clicked.
1554 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
1556 * TabControl.cs: Handle Up and Down keys when TabControl is in
1560 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
1562 * TabControl.cs: Invalidate when we remove a tab. Guard against
1563 an AOORE when trying to remove a tabpage that is not owned by the
1567 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
1569 * ScrollBar.cs: Change the LargeChange calculation to be correct.
1570 Ensure we are using LargeChange instead of large_change so we our
1571 calculations are correct.
1574 2008-07-03 Jonathan Pobst <monkey@jpobst.com>
1576 * TableLayoutPanel.cs: When we change to a serialized TableLayoutSettings,
1577 we need to ensure the ColumnCount/RowCount gets set.
1580 2008-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1582 * ListBox.cs: When handling item navigation, if selection mode is
1583 None, call EnsureVisible, since scrolling is normally handled by
1584 selection, that we are not calling in this case.
1587 2008-07-02 Jonathan Pobst <monkey@jpobst.com>
1589 * ContainerControl.cs: Apply a patch from Ernesto Carrea that adds
1590 a null check to our focus walking code. [Fixes bug #394332]
1592 2008-07-02 Andy Hume <andyhume32 at yahoo dot co dot uk>
1594 * ComboBox.cs: Case missed in bug 379596 "Support item
1595 navigation by entering text": On _close_ drop-down select
1596 the first item matching the text in the textbox. [Fixes bug #397265]
1598 2008-07-02 Jonathan Pobst <monkey@jpobst.com>
1600 * DataGridView.cs: Fix a crash when sorting by column headers,
1601 mentioned in bug #404841. Remove some dead switch cases.
1603 2008-07-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1606 * TextBox.cs: Implement AutoComplete support for ComboBox, which just
1607 uses the AutoComplete support in the internal TextBox. Also TextBox
1608 can store a reference to ComboBox, in case AutoCompleteSource is set
1609 to ListItems (this is, ComboBox's items, and we don't want to pass an
1610 additional collection).
1612 2008-07-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1614 * ListViewItem.cs: Restore the initial value of bounds rect to
1615 Rectangle.Empty, and is this value for Layout detection in virtual
1616 mode. Fixes the tests.
1618 2008-06-30 Jonathan Pobst <monkey@jpobst.com>
1620 * XPlatUI.cs: Remove references to "new" X11 backend.
1622 2008-06-28 Ivan N. Zlatev <contact@i-nz.net>
1624 * Control.cs: Add an internal virtual OnDragDropEnd method
1625 to allow controls such as ListBox, which depend on a sequence
1626 of MouseDown+Move+End events, to handle the lack of a MouseUp
1627 when a DnD operation is started in MouseDown.
1628 * ListBox.cs: If a DnD operation is started in MouseDown we won't
1629 get a MouseUp, so reset our state whenever a DnD operation ends.
1631 2008-06-28 Ivan N. Zlatev <contact@i-nz.net>
1633 * PropertyGrid.cs: Clear the root griditem first thing when
1634 new object/s is/are selected. Fixes some rare cases where
1635 the View will get a paint request and won't know that the
1636 grid is in the process of repopulating.
1638 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
1640 * XplatUIX11.cs, InternalWindowManager.cs:
1641 If WS_EX_TOOLWINDOW is set in the CreateParams for a form MS
1642 doesn't automagically update the FormBorderStyle, so we must
1643 double check the CreateParams explicitly to determine if the
1644 window is a toolwindow.
1645 * ThemeWin32Classic.cs: Use InternalWindowManager.IsToolWindow
1646 instead of doing custom checks.
1648 Fixes toolwindows for the test case in bug #402446
1650 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
1652 * Control.cs: Visibility of the control should be false
1653 when the handle is destroyed in WmDestroy and not immediately
1654 in Dispose(). This is effectively where the disposing process
1655 ends even though the control is marked as Disposed immediately
1656 after calling Dispose().
1659 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
1661 * PropertyGridTextBox.cs: Start monitoring the mouse clicks
1662 when the textbox gets focus.
1665 2008-06-27 Ivan N. Zlatev <contact@i-nz.net>
1667 * PropertyGridTextBox.cs, PropertyGridView.cs:
1668 - Alt + Down should show the drop down editor.
1669 - Focus the editor when showing it
1672 2008-06-25 Jonathan Pobst <monkey@jpobst.com>
1674 * ThemeWin32Classic.cs: Fix from Andy for panel text for panels
1675 that are not the first panel.
1676 * StatusBar.cs: Ensure that the X coordinate of panels is always
1677 stored. Fix IList implementation of StatusBarPanelCollection to
1678 call the regular methods.
1679 [Fixes bug #403599, #402165]
1681 2008-06-23 Jonathan Pobst <monkey@jpobst.com>
1683 * ThemeWin32Classic.cs: Fix position calculation for centered
1684 text on status bar panels. [Fixes bug #402165]
1686 2008-06-22 Ivan N. Zlatev <contact@i-nz.net>
1688 * Splitter.cs: Fix Splitter to:
1689 - Work for arbitrary splitter size
1690 - Handle MinSize and MinExtra properly
1691 - Get rid of absolute positioning during drag and use relative
1692 - Multiple other fixes
1695 2008-06-22 Ivan N. Zlatev <contact@i-nz.net>
1697 * Cursor.cs: Show shouldn't hide the cursor.
1699 2008-06-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1701 * ListViewItem.cs: When invalidating, add some extra space to bounds,
1702 since focus rectangle and selection can add some space and need to
1703 take into account those small offsets - specially in Details view.
1704 * ListView.cs: Instead of invalidate using item Bounds directly, call
1705 item.Invalidate, to have the code centralized.
1706 Fixes focused/selection garbage when selecting and deselecting items
1709 2008-06-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1711 * ListViewItem.cs: Set bounds initially to -1 values - thus in virtual
1712 mode we can check whether we have to force a Layout or not, and can
1713 cache based on this, instead of avoiding caching all the the time. Do
1714 this check in GetBounds and TextBounds.
1715 Fixes selection in Details view.
1717 2008-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1719 * ListView.cs: Make HeaderControl internal, thus the theme engine can
1720 get its *real* height instead of trying to infere it.
1721 * ThemeWin32Classic.cs: When drawing gridlines, don't iterate over the items to
1722 get the position of them, since it's in general a bad idea in general,
1723 and because we can't do that in virtual mode. Instead get the first
1724 visible item as well as item height, and draw them.
1727 2008-06-20 Jonathan Pobst <monkey@jpobst.com>
1729 * ToolStripSplitButton.cs: We can't add in extra width if
1730 the button is not AutoSize. [Fixes bug #401279]
1732 2008-06-20 Ivan N. Zlatev <contact@i-nz.net>
1734 * PaddingConverter.cs:
1735 - Implement conversion to InstanceDescriptor
1736 - Handle "All" in CreateInstance by using the supplied
1737 ITypeDescriptorContext.
1738 [Fixes bugs #396076 and #396078]
1740 Patch by Andy Hume <andyhume32@yahoo.co.uk>
1741 Code contributed under MIT/X11 license.
1743 2008-06-19 Andy Hume <andyhume32 at yahoo dot co dot uk>
1745 * ComboBox.cs, ListControl.cs, Control.cs, Button.cs,
1747 Add Category attributes.
1748 Code is contributed under the MIT/X11 license.
1750 2008-06-18 Ivan N. Zlatev <contact@i-nz.net>
1753 - Fix a NRE when unparenting a form.
1754 - Do not recreate or destroy a parented form when
1757 2008-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1759 * TextBox.cs: Implement basic support for AutComplete with custom
1762 2008-06-18 Jonathan Pobst <monkey@jpobst.com>
1764 * ToolStripSplitButton.cs: Left and Top of ButtonBounds, SplitterBounds,
1765 DropDownButtonBounds should be from the origin of the button, not the
1766 ToolStrip. [Fixes bug #401279]
1768 2008-06-16 Sandy Armstrong <sanfordarmstrong@gmail.com>
1770 * X11DesktopColors.cs: Clear GTK_MODULES environment variable before
1771 running gtk_init_check. This prevents GAIL from loading
1772 unnecessarily, which was breaking UIA support. Initial fix for bug
1774 * Application.cs: Add UIA support to Winforms. New static constructor
1775 uses reflection to initialize UIAutomationWinforms assembly. Added
1776 PreRun event so UIA can initialize before the mainloop starts, and
1777 FormAdded event so UIA can provide a11y support for new Forms in an
1780 2008-06-16 Jonathan Pobst <monkey@jpobst.com>
1782 * DataGridView.cs: When binding to a dataset, subscribe to table
1783 and column change events. Unsubscribe to these when we clear bindings.
1786 2008-06-14 Everaldo Canuto <ecanuto@novell.com>
1788 [DataGrid drawing refactory]
1790 * DataGrid.cs: Fix the caption size, we need one pixel more for divider.
1792 * DataGridColumnStyle.cs: Removing PaintHeader code, the draw operations
1793 must be handle by Theme, now it call DataGridPaintColumnHeader.
1795 * DataGridTextBoxColumn.cs: Fix the textbox size. It must be one pixel less,
1796 test cases must be also fixed because it checks for wrong size.
1798 * ThemeWin32Classic.cs:
1799 - Draw the bottom line of grid caption.
1800 - Prevent to draw caption text when it is empty.
1801 - Use CPDrawBorder3D for 3D efects to simplify code.
1802 - Uses 3D (when not flat) to paint corner shared between row and column
1804 - Fix header drawing issues on win32, now borders are drawing.
1805 - Fix column header paint issues to mimic win32.
1806 - Adjust header drawing for last column, like first one it must be draw
1808 - Added DataGridPaintRowHeaderStar to draw star like .net does, it is
1810 - DataGridPaintColumnHeader created to draw column headers, it also
1811 paint stuff right on Win32.
1812 - Use DataGridPaintColumnHeader method instead of DataGridColumnStyle
1816 - DataGridPaintRowHeaderStar method added.
1817 - DataGridPaintColumnHeader method added.
1819 2008-06-13 Jonathan Pobst <monkey@jpobst.com>
1821 * Control.cs: Don't reset to Dock style layout if DockStyle is
1822 set to none. [Fixes bug #399316]
1824 2008-06-12 Everaldo Canuto <ecanuto@novell.com>
1826 * Win32DnD.cs: Fix the check for control not equal null.
1827 Fixes bug #341420 and #381886.
1829 2008-06-12 Jonathan Pobst <monkey@jpobst.com>
1831 * DataGridViewRowCollection.cs: Update the indexes of rows after
1832 one has been removed.
1833 * DataGridViewSelectedRowCollection.cs: Add internal clear method.
1834 * DataGridViewSelectedColumnCollection.cs: Add internal clear method.
1835 * DataGridView.cs: Add support for deleting rows via Delete key, deleting
1836 rows for the Rows collection, or deleting rows from the bound DataSet.
1838 2008-06-12 Jonathan Pobst <monkey@jpobst.com>
1840 * DataGridView.cs: Listen to a DataSet's changed event even
1841 when autogeneratecolumns is false. Refactor the changed event's
1842 add row code to use the same as the existing add row code.
1845 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
1847 * TextBoxBase.cs: We need to call RaiseSelectionChanged pretty
1848 much any time the caret moves and there is text, not just when
1849 the selection changes as one would think.
1850 * RichTextBox.cs: Override RaiseSelectionChanged and fire
1854 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
1856 * FontDialog.cs: Forward ListBox keyboard events to the ListBox
1857 instead of trying to duplicate the code.
1858 * ListBox.cs: Make method internal so we can send keyboard events.
1861 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
1863 * TextBoxBase.cs: When pasting and checking the max length,
1864 subtract the selected text length (the text we will be replacing) from
1865 the document length.
1866 * TextControl.cs: Ensure every character insertion is reflected in
1867 charcount, so max length will work properly.
1870 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
1872 * ListBox.cs: Ensure scrollbars are updated when a single
1873 column listbox with an already set top-index is created.
1876 2008-06-11 Jonathan Pobst <monkey@jpobst.com>
1878 * FontDialog.cs: Typing in the font/style textboxes should search
1879 the list boxes case-insensitively. [Fixes bug #398343]
1881 2008-06-11 George Giolfan <georgegiolfan@yahoo.com>
1883 * ThemeWin32Classic.cs: Managed window title bar layout now uses actual
1884 widths of icon and buttons instead of hard coded values.
1886 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1888 * ListBox.cs: When SelectionMode is None, clicking an item should move focus
1889 as well as generating a SelectedIndexChanged event, just like .Net does
1893 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1895 * ListBox.cs: When navigating items visually, use FocusedItem as the
1896 reference point instead of SelectedIndex, since even in
1897 SelectionMode.None we need to support navigation, and in that case we
1898 just can't use SelectedIndex.
1899 Fixes part of #398345.
1901 2008-06-10 Jonathan Pobst <monkey@jpobst.com>
1903 * Control.cs: Make a SetBoundsInternal that avoids the new
1905 * ComboBox.cs, Form.cs, ListBox.cs, ScrollableControl.cs: Use
1906 SetBoundsInternal instead of SetBoundsCoreInternal.
1908 2008-06-10 Ivan N. Zlatev <contact@i-nz.net>
1910 * ScrollableControl.cs: Use SetBoundsCoreInternal instead of
1911 SetBounds for the scrollbars.
1913 2008-06-10 Andreia Gaita <avidigal@novell.com>
1915 * HtmlDocument.cs: Implement RightToLeft, ContextMenuShowing,
1916 FocusingEvent, LosingFocusEvent, OnMouseDown, OnMouseLeave,
1917 OnMouseMove, OnMouseOver, OnMouseUp
1918 * HtmlElement.cs: Optimize InsertBefore. Implement RemoveFocus,
1919 ScrollIntoView, Focusing, GotFocus, LosingFocus, LostFocus.
1920 * HtmlElementCollection.cs, HtmlWindowCollection.cs: Keep a reference
1921 to the WebControl object to pass to new collection objects
1922 * HtmlHistory.cs: Implement support for individual window histories.
1923 * HtmlWindow.cs: Implement History, Position, Size, WindowFrameElement,
1924 AttachEventHandler, DetachEventHandler, RemoveFocus, Error,
1925 GotFocus, LostFocus, OnLoad, OnUnload
1926 * WebBrowser.cs: Implement EncryptionLevel, ScrollBarsEnabled,
1928 * WebBrowserBase.cs: Implement Cursor, Enabled, UseWaitCursor, Add
1929 security level changes and context menu event support.
1931 2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1933 * ComboBox.cs: Pressing Enter should close the dropdown listbox, just
1934 as happens with Esc, patch my Andy Hume.
1937 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
1939 * MdiWindowManager.cs: DrawMaximizedButtons now uses
1940 ManagedWindowGetMenuButtonSize instead of ManagedWindowButtonSize.
1941 * Theme.cs: Made MenuButtonSize platform dependent. Added
1942 ManagedWindowButtonSize.
1943 * ThemeWin32Classic.cs: Added ManagedWindowGetMenuButtonSize.
1944 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added MenuButtonSize.
1946 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
1948 * DateTimePicker.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs:
1949 Added support for rendering with VisualStyles.
1951 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
1953 * ComboBox.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
1954 support for rendering the border with VisualStyles.
1956 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
1958 * InternalWindowManager.cs: Added ShowIcon. Fixed IconRectangleContains when
1959 the icon is not shown.
1960 * ThemeWin32Classic.cs: Now uses InternalWindowManager.ShowIcon instead of
1963 2008-06-10 George Giolfan <georgegiolfan@yahoo.com>
1965 * InternalWindowManager.cs: Draw minimized windows even if they don't have
1968 2008-06-09 Jonathan Pobst <monkey@jpobst.com>
1970 * ComboBox.cs, ListBox.cs: Use SetBoundsInternalCore instead of SetBounds.
1972 2008-06-09 Jonathan Pobst <monkey@jpobst.com>
1974 * Control.cs: Fill in the defaults for unspecified bounds in SetBounds.
1977 2008-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1979 * ComboBox.cs: When snaping height -because of IntegralHeight set to
1980 true- with ComboBoxStyle.Simple, set the height to PreferredHeight
1981 if the requested height leaves the listbox area with *less* than the
1982 required are to see one item. We were setting it to PreferredHeight
1983 even for values matching the height for a single item.
1986 2008-06-06 Jonathan Pobst <monkey@jpobst.com>
1988 * DataGridViewCell.cs: Simplify GetInheritedStyle by using ApplyStyle.
1990 2008-06-06 Jonathan Pobst <monkey@jpobst.com>
1992 * DataGridViewCell.cs: Use property instead of field.
1994 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
1996 * InternalWindowManager.cs, ThemeWin32Classic.cs: Removed useless Form.Icon
1999 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
2001 * Theme.cs: Added #region around the managed window code. Made the managed
2002 window methods abstract.
2003 * ThemeWin32Classic.cs: Added #region around the managed window code.
2005 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
2007 * InternalWindowManager.cs: Now only calls Theme.DrawManagedWindowDecorations
2009 * ThemeWin32Classic.cs: Removed HasBorders checks in
2010 DrawManagedWindowDecorations.
2012 2008-06-06 George Giolfan <georgegiolfan@yahoo.com>
2014 * InternalWindowManager.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
2015 Extracted ManagedWindowGetTitleBarIconArea.
2017 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
2019 * DataGridViewCellStyle.cs: Don't clone the font.
2021 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
2023 * DataGridViewCell.cs: Ensure we don't pass null to GetConverter.
2025 2008-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2027 * XplatUIX1..cs: Use IntPtr size instead of int, as wee need to work
2028 also on 64 bit machinges. Fixes the BadWindow errors while scrolling
2031 2008-06-05 Jonathan Pobst <monkey@jpobst.com>
2033 * DataGridViewCell.cs: Correctly get converters for FormattedValue.
2034 Use Format/FormatProvider before trying converters.
2035 * DataGridViewCellStyle.cs: ApplyStyle should only apply things that
2036 are 'set'. Change constructor to not use ApplyStyle since it wants
2037 everything applied. Clone the Font.
2038 * DataGridViewRowHeaderCell.cs: Start with DefaultCellStyle and
2039 ApplyStyle the rest.
2041 2008-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2043 * ListView.cs: We need to calculate the scrollbars even if the handle
2044 hasn't been created - this is needed when methods using scrollbars
2045 info, such EnsureVisible, are called before control has been created.
2048 2008-06-05 George Giolfan <georgegiolfan@yahoo.com>
2050 * ThemeVisualStyles.cs: ScrollBar is now rendered with the VisualStyles API
2051 only if the elements are defined.
2053 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2055 * ComboBox.cs: I'm an idiiot - forgot to commit the last ComboBox
2056 section. Also, when setting bounds, snap height as well as save the
2057 requested height if Dock has any value affecting the height: Left,
2058 Right and Bottom - important if using IntegralHeight as true.
2060 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2062 * ComboBox.cs: When calling UpdateComboBoxBounds, adjust the height
2063 passed to SetBounds to reflect the new adjusted height (Integral-wise),
2064 instead of doing that only in our SetBoundsCore override, since the
2065 bounds cached can be the same as saved one and we could not get the
2069 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
2071 * Theme.cs: Made ToolWindowCaptionButtonSize platform dependent.
2072 * XplatUI.cs: Added ToolWindowCaptionButtonSize.
2073 * XplatUIDriver.cs: Changed SmallCaptionButtonSize to 15,15. Added
2074 ToolWindowCaptionButtonSize.
2075 * XplatUIWin32.cs: Added ToolWindowCaptionButtonSize.
2077 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
2079 * MdiWindowManager.cs: Now uses SystemInformation.DoubleClickTime instead of
2081 * Theme.cs: Made DoubleClickTime plaform dependent.
2083 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
2085 * Theme.cs: Made ToolWindowCaptionHeight platform dependent.
2086 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
2087 ToolWindowCaptionHeight.
2089 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
2091 * InternalWindowManager.cs: The adjustment to ensure positive client area
2092 sizes is now platform dependent (disabled on Windows).
2093 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
2094 RequiresPositiveClientAreaSize.
2096 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
2098 * Form.cs: Fixed null handling in Icon (see SettingIconToNull in the tests).
2100 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
2102 * InternalWindowManager.cs: Changed IconicSize to use
2103 SystemInformation.MinimizedWindowSize.
2104 * XplatUICarbon.cs, XplatUIX11.cs: Removed MinimizedWindowSize.
2105 * XplatUIDriver.cs: Changed MinimizedWindowSize to provide a default value.
2107 2008-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2109 * ComboBox.cs: If the combobox is anchored both on top and bottom,
2110 adjust height if IntegralHeight is true when calling SetBoundsCore (as
2111 likely the height was modified even if Height wasn't specified in
2112 BoundsSpecified parameter).
2113 Fixes part of #396297.
2115 2008-06-04 George Giolfan <georgegiolfan@yahoo.com>
2117 * InternalWindowsManager.cs: Changed minimum window size while resizing to
2118 SystemInformation.MinWindowTrackSize.
2119 * XplatUICarbon.cs, XplatUIX11.cs: Removed MinWindowTrackSize.
2120 * XplatUIDriver.cs: Changed MinWindowTrackSize to provide a default value.
2122 2008-06-03 George Giolfan <georgegiolfan@yahoo.com>
2124 * MenuItem.cs: Fixed Dispose.
2126 2008-06-03 George Giolfan <georgegiolfan@yahoo.com>
2128 * ColumnHeader.cs: CalcColumnHeader now uses the theme to get the height.
2129 * DataGridView.cs: * EnableHeadersVisualStyles: Fixed default value.
2130 EnteredHeaderCell, PressedHeaderCell: Added.
2131 * DataGridViewCell.cs: Refactored: Extracted GetBorderPen.
2132 * DataGridViewColumnHeaderCell.cs, DataGridViewRowHeaderCell.cs: Gave the
2133 theme a chance to override default painting.
2134 * ListView.cs: Added EnteredColumnHeader. Refactored: Extracted
2135 GetColumnHeaderInvalidateArea, Invalidate(ColumnHeader).
2136 * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added members for
2137 ListView and DataGridView header rendering.
2139 2008-06-03 Ivan N. Zlatev <contact@i-nz.net>
2141 * RichTextBox.cs: GetPositionFromCharIndex should return the
2142 visual position of the character relative to the viewport.
2143 [Fixes part of bug #396664]
2145 2008-06-03 Ivan N. Zlatev <contact@i-nz.net>
2147 * GridEntry.cs: Make HasCustomEditor check for EditStyle != None
2148 and not just for the existance of an UITypeEditor. In some cases
2149 there is an editor associated just to do PaintValue, but which
2150 doesn't actually support editing.
2153 2008-05-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2155 * ComboBox.cs: page_size as well as vscrollbar.LargeChange should be 1
2156 if needed, instead of 0 - this should help us in the corner case where
2157 we have more than one item but we are only partially showing 1 item.
2158 Fixes part of #374713.
2160 2008-05-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2162 * XplatUiX11.cs: When scrolling and detecting the obscured areas in a
2163 control, return immediately if the any parent control's handle hasn't
2164 been created or isn't visible, as well as avoiding creating the parent
2165 Form if the handle hasn't been previously created.
2168 2008-06-02 Jonathan Pobst <monkey@jpobst.com>
2170 * TableLayoutPanel.cs: Use border sizes when calculating the
2171 panel's preferred size. [Fixes part of bug #396433]
2173 2008-06-02 Ivan N. Zlatev <contact@i-nz.net>
2175 * SplitContainer.cs:
2176 - Fix SplitterDistance to update only if needed.
2177 - Make it force min and max validation.
2178 - Handle properly mouse moves outside the resizeable area.
2181 2008-06-02 Andreia Gaita <avidigal@novell.com>
2183 * WebBrowserBase.cs: Implement support for ScriptErrorsSuppressed
2184 (which also suppresses all popup dialogs). Throw NotSupported
2185 exceptions for activex getters/setters.
2186 * WebBrowser.cs: Implement DocumentStream, DocumentType, IsBusy,
2187 IsOffline, ReadyState, ScriptErrorsSuppressed, ScrollbarsEnabled,
2188 StatusText, Version, GoSearch
2189 * HtmlDocument.cs: Add DocType support
2191 2008-06-02 Andy Hume <andyhume32@yahoo.co.uk>
2193 * TextBox.cs: Implement TextBoxAutoCompleteSourceConverter.
2196 2008-06-02 Ivan N. Zlatev <contact@i-nz.net>
2198 * GridEntry.cs: Pass the ITypeDescriptorContext everywhere.
2200 2008-06-02 Jonathan Pobst <monkey@jpobst.com>
2202 * TableLayoutPanel.cs: When calculating preferred size, use the
2203 actual number of columns and rows, not what the user set them to.
2206 2008-06-02 George Giolfan <georgegiolfan@yahoo.com>
2208 * Form.cs: Enabled managed handling of tool window MDI children. Fixes bug
2211 2008-06-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2213 * XplatUIX11.cs: When detecting areas obscured in a control by other
2214 toplevel windows while scrolling, return if the control hasn't a
2218 2008-05-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2220 * XplatUIX11.cs: Properly detect the visible area of a control being
2221 scrolled (obscured by other winforms controls and any X toplevel
2222 windows), to mark as invalid the requested area to be scrolled that
2223 isn't visible and thus can't be copied.
2226 2008-05-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2228 * ListBox.cs: Compute the precise amount to vertically scroll when
2229 using DrawMode.OwnerDrawVariable.
2230 Patch by jkeymer (j.keymer@gmx.net).
2232 2008-05-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2234 * ComboBox.cs: Use ListBox-like scrollbar values In ComboListBox
2235 to avoid setting an invalid value for the verticall scrollbar
2236 when navigating items. And, duh, also remove my silly debug messages
2237 from previous commits.
2240 2008-05-30 Ivan N. Zlatev <contact@i-nz.net>
2242 * FlatButtonAppearance.cs: Make FlatButtonAppearanceConverter exandable and
2243 make it MS compatible.
2245 2008-05-30 Ivan N. Zlatev <contact@i-nz.net>
2247 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs:
2248 - Allow the editing of entries even if their parent is read-only.
2249 - Do not render expandable properties read-only.
2250 - Refactor expansion checks form PropertyGrid into PropertyGrid.
2252 2008-05-30 George Giolfan <georgegiolfan@yahoo.com>
2254 * ScrollBar.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
2255 support for the hover style.
2257 2008-05-29 Andreia Gaita <avidigal@novell.com>
2259 * ContainerControl.cs: Check for null dead-end when traversing the tree
2262 [Fixes #394332, patch by Ernesto Carrea]
2264 2008-05-29 Geoff Norton <gnorton@novell.com>
2266 * XplatUICarbon.cs: Fix a culture-dependent conversion to be the
2267 constant that it is. Fixes #393981
2269 2008-05-29 Jonathan Pobst <monkey@jpobst.com>
2271 * Form.cs: Add a MonoTODO to the AutoScaleBaseSize setter explaining
2272 that the user probably doesn't want to set this.
2274 2008-05-29 Jonathan Pobst <monkey@jpobst.com>
2276 * ThemeWin32Classic.cs: Don't let the text size be bigger than
2277 the control size for CheckBox/RadioBox.
2278 [Fixes part of bug #394645]
2280 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
2282 * PropertyGrid.cs: Update the state of the sorting buttons in
2283 the toolbar if PropertySort is set programatically.
2285 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
2287 * GridItemCollection.cs: Add multiple items with conflicting names
2288 support and also preserve name ordering.
2291 2008-05-29 Ivan N. Zlatev <contact@i-nz.net>
2293 * GridItemCollection.cs: Revert my multiple items with same
2296 2008-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2298 * ScrollBar.cs: Scrollbars should only react to left-clicks, not right
2300 Fixes part of #393908.
2302 2008-05-28 Jonathan Pobst <monkey@jpobst.com>
2304 * ToolStripDrowDown.cs: When using the Show () methods that have a
2305 Control parameter, set the menu owner to that Control.
2308 2008-05-28 Ivan N. Zlatev <contact@i-nz.net>
2310 * PropertyGridTextBox.cs, PropertyGridView.cs: Implement validation.
2313 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
2315 * GridItemCollection.cs: Refactor to support multiple items with the
2319 2008-05-27 Jonathan Pobst <monkey@jpobst.com>
2321 * Control.cs: The 2.0 check for illegal cross thread calls in
2322 Control.Handle were throwing an exception when we were getting
2323 the Handle in order to invoke correctly. Created a private
2324 version that does not contain this check.
2327 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
2329 * PropertyGrid.cs: Respect DefaultTabType.
2331 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
2333 * ListView.cs: SPACE selects an item.
2336 2008-05-27 Ivan N. Zlatev <contact@i-nz.net>
2338 * ListView.cs: Reset the search string whenever the items are
2342 2008-05-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2344 * ListControl.cs: For the first added item PositionChanged is fired
2345 _before_ ItemChanged, which leave us in a temporary invalid state - so
2346 we need to set the selected index from ItemChanged handler *if* we
2347 know that the first item has just been added *and* the items have been
2348 actually added to the ListControl.
2351 2008-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2353 * TabControl.cs: Only clicks with the left button should be
2357 2008-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2361 * TextBox.cs: Expose an internal method in TextBox to restore the
2362 original context menu, and call it from ComboBox to re-use it in the
2363 combobox containing the file name in FileDialog.cs.
2364 Fixes part of #393775.
2366 2008-05-24 George Giolfan <georgegiolfan@yahoo.com>
2368 * ThemeVisualStyles.cs: Added support for the hot ComboBox drop down button
2371 2008-05-24 George Giolfan <georgegiolfan@yahoo.com>
2373 * ComboBox.cs, Theme.cs, ThemeWin32Classic.cs: Added support for the hot drop
2376 2008-05-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2378 * ComboBox.cs: Minor correction to previous patch: PageDown should
2379 also *try* to move by one item if the computed offset is negative,
2380 just like the PageUp case.
2382 2008-05-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2384 * ComboBox.cs: When navigating using PageDown/PageUp the navigation
2385 should be done for at least 1 item, and not stay at the same item.
2386 Fixes part of #374713.
2388 2008-05-23 Jonathan Pobst <monkey@jpobst.com>
2390 * FileDialog.cs: Add a FSEntryComparer, and use it to sort the
2391 directories. [Fixes bug #393931]
2393 2008-05-22 Andreia Gaita <avidigal@novell.com>
2395 * WebBrowser.cs: Implement DocumentText. Implement AllowNavigation.
2396 Don't fire events until the initial about:blank page has finished
2397 loading. Clean up events.
2399 2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
2401 * XplatUIX11.cs : when we call WM_SETFOCUS, call X11Keyboard
2402 FocusIn() too. This should fix the issue on switching
2405 2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
2407 * X11Keyboard.cs : set XIM font size to somewhat reasonable
2408 number (ideally the input textbox size, but that could be
2411 2008-05-22 Jonathan Pobst <monkey@jpobst.com>
2413 * ToolStripTextBox.cs: List for the TextBox's TextChanged and fire
2414 the ToolStripItem's TextChanged. [Fixes bug #393597]
2416 2008-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2418 * TabControl.cs: When invalidating in SelectedIndex and we need to
2419 inflate to take into account the border of the tabs, make sure that
2420 the invalidated rect doesn't overflow the control bounds, since that
2421 would avoid updating at all.
2423 2008-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2425 * TabControl.cs: Don't substract scroller width from the row width,
2426 since we need to take into account the total width of the control when
2427 calculating the position of the tabs. This avoids showing scroller
2428 when it is actually not needed.
2429 Fixes part of #322325.
2431 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
2433 * ThemeVisualStyles.cs: Added support for TextBoxBase.
2435 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
2437 * RichTextBox.cs, TextBoxBase.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
2438 Extracted TextBoxBase.Draw and Theme.TextBoxBase*.
2440 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
2442 * DataGridView.cs: Only paint the top left header cell if there
2445 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
2447 * DataGridView.cs: When binding to a BindingSource, get the underlying
2448 list to bind to. [Fixes bug #345483]
2450 2008-05-21 Jonathan Pobst <monkey@jpobst.com>
2452 * DataGridView.cs: Do not bind to collection properties.
2455 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
2457 * ThemeVisualStyles.cs: Added support for the hot TrackBar thumb style.
2459 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
2461 * Theme.cs, ThemeWin32Classic.cs, TrackBar.cs: Added support for the hot
2464 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
2466 * ThemeVisualStyles.cs: Added support for ToolTip transparent background.
2468 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
2470 * Theme.cs, ThemeWin32Classic.cs, ToolTip.cs: Added support for transparent
2473 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
2475 * ThemeVisualStyles.cs: Added support for ToolBar hot and hot checked styles.
2477 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
2479 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs: Added support for hot and hot
2482 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
2484 * TabControl.cs: Extended to handle the hot style.
2486 2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
2488 * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs, UpDownBase.cs:
2489 Extended UpDownBase code to handle hot and disabled styles.
2491 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
2493 * DataGridView.cs: Handle databinding to generic list type things.
2496 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
2498 * DataGridViewCellCollection.cs: Add a method to find the cell
2499 with the given DataPropertyName.
2500 * DataGridViewColumn.cs: Track if the column was autogenerated or not.
2501 * DataGridViewColumnCollection.cs: Add a method to clear all
2502 autogenerated columns.
2503 * DataGridView.cs: If AutoGenerateColumns is false, don't autogenerate
2507 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
2509 * DataGridView.cs: Don't try to update the RowTemplate with
2510 a null CellTemplate.
2512 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
2514 * DataGridViewColumn.cs: Allow IsDataBound to be set internally.
2515 * DataGridViewColumnCollection.cs: Ensure OnColumnAdded is called.
2516 * DataGridView.cs: Lots of fixes/enhancements to databinding to
2519 2008-05-20 Jonathan Pobst <monkey@jpobst.com>
2521 * Control.cs: Remove invalidating implicit child controls when
2522 control is invalidated. It was causing too many redraws on
2523 controls with implicit scrollbars.
2524 * ListView.cs: Listen to the Invalidated event and invalidate
2527 2008-05-20 Andreia Gaita <avidigal@novell.com>
2529 * WebBrowserBase.cs, WebBrowser.cs: Hook up page loading events
2530 * HtmlDocument.cs: Check for nulls
2532 2008-05-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2534 * Control.cs: In ControlCollection.RemoveInternal, remove the
2535 internal control before calling PerformLayout and OnControlRemoved,
2536 which was leaving us in an invalid state and causing a X error (bad
2537 match). Observe that Remove () call has the same order.
2538 Fixes an X error changing ComboBoxStyle.DropDownStyle.
2540 2008-05-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2542 * TabControl.cs: Don't paint by ourselved and instead let OnPaint
2543 being fired if ControlStyles.UserPaint style is activated.
2546 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
2548 * GridEntry.cs: Don't be so strict when setting the value -
2549 do not check if what we set is what we get.
2552 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
2554 * XplatUIX11.cs: If there are no timers timeout should be 0
2557 2008-05-19 Jonathan Pobst <monkey@jpobst.com>
2559 * Control.cs: As a followup to invalidating implicit children when
2560 a control is invalidated, only invalidate them if they are in the
2563 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
2565 * ThemeVisualStyles.cs: Implemented partial support for ToolTip.
2567 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
2569 * ThemeWin32Classic.cs: Refactored: Extracted ToolTipDrawBackground.
2571 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
2573 * GroupBoxRenderer.cs: Fixed text area clipping in the Visual Styles case.
2574 * XplatUIWin32.cs: Made Win32DeleteObject public.
2576 2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
2578 * GridEntry.cs: Determine HasDefaultValue more strictly by using
2579 PropertyDescriptor.ShouldSerializeValue.
2582 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
2584 * ThemeVisualStyles.cs: Enabled support for ScrollBar element styles not present
2585 in the classic theme.
2587 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
2589 * ScrollBar.cs: Added FirstButtonEntered, SecondButtonEntered, ThumbEntered,
2591 * Theme.cs, ThemeWin32Classic.cs: Added ScrollBarHasHotElementStyles,
2592 ScrollBarHasPressedThumbStyle.
2594 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
2596 * TextRenderer.cs: Included some methods in the 1.1 profile.
2598 2008-05-19 Jonathan Pobst <monkey@jpobst.com>
2600 * Control.cs: When we make a control visible, it may have been
2601 previously visible and while it wasn't visible, the z-order of
2602 things may have been shuffled, so the control needs to have its
2603 z-order updated just in case. [Fixes bug #391518]
2605 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
2607 * ThemeVisualStyles.cs: Added support for GroupBox.
2609 2008-05-19 George Giolfan <georgegiolfan@yahoo.com>
2611 * GroupBoxRenderer.cs: Included in the 1.1 profile.
2613 2008-05-16 Atsushi Enomoto <atsushi@ximian.com>
2615 * XplatUIX11.cs, X11Keyboard.cs : redoing r103060 with fix for
2616 bug #389996; XSelectInput() behaved as mouse handler robber,
2617 so remove extra call to it.
2619 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
2621 * Control.cs: Simplify ControlCollection.Contains method.
2623 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
2625 * DataGridViewRow.cs: Implement GetPreferredSize.
2627 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
2629 * DataGridViewComboBoxCell.cs: Don't declare text twice. Fixes build.
2631 2008-05-15 Jonathan Pobst <monkey@jpobst.com>
2633 * DataGridViewComboBoxCell.cs: Implement some NIEX stuffs, better
2634 painting and edit control fixes.
2636 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
2638 * DataGridView.cs, DataGridViewCell.cs: Work around some external
2639 checks to make sure we are in an actual row/col for top left header cell.
2640 * DataGridViewTopLeftHeaderCell.cs: Implement some NIEX's.
2642 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
2644 * Control.cs: Use long instead of int when handling WParam from
2645 mousewheel scrolling. Int was overflowing on Win64.
2647 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
2649 * FlowLayoutPanel.cs, ScrollableControl.cs: We need to layout the
2650 flow panel without scrolling first, and then calculate the
2651 scrolling based on the new layout. [Fixes bug #390149]
2653 2008-05-14 Jonathan Pobst <monkey@jpobst.com>
2655 * ListBox.cs: Invalidate after scrolling up when selected index
2656 changes. [Fixes bug #390151]
2658 2008-05-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2660 * ComboBox.cs: When setting mode to Simple *and* height hasn't been
2661 set, default height to 150. I tried first with DefaultSize, but this
2662 is not generating a SetBoundsCore call before handle creation time, so
2663 we can take it into account. This is just what .net does.
2665 2008-05-13 Jonathan Pobst <monkey@jpobst.com>
2667 * XplatUIX11.cs, X11Keyboard.cs: Had to revert eno's r103060,
2668 as it broke some stuff. Calberto is filing a bug for eno to
2671 2008-05-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2673 * ComboBox.cs: When handling PageDown pressed event, set SelectedIndex
2674 to 0 is the current value is -1, and if style is not Simple, just
2675 return, like .net does.
2676 Fixes part of #374713.
2678 2008-05-13 Jonathan Pobst <monkey@jpobst.com>
2680 * ThemeWin32Classic.cs, ThemeVisualStyles.cs: When calculating
2681 progress bar stuffs, use doubles instead of ints to prevent
2682 overflow. [Fixes bug #389798]
2684 2008-05-13 Atsushi Enomoto <atsushi@ximian.com>
2686 * XplatUIX11.cs, X11Keyboard.cs :
2687 Significant refactoring on XIM support. Now IM engine UI
2688 should show up, at mostly-correct preedit position.
2689 - Eliminated use of FocusWindow, as it is never mapped
2690 and hence blocks correct preedit position. XIC is now
2691 created per window, and it must be destroyed too when
2692 the window is destroyed.
2693 - WM_QUIT messages should not be filtered even when hwnd
2694 is zombie. Filtering it could cause endless loop.
2695 - Preedit position must move only when the window is alive.
2696 - Make it IDisposable and make sure to release XIM/XICs.
2698 2008-05-13 Atsushi Enomoto <atsushi@ximian.com>
2700 * Timer.cs, Control.cs, Form.cs, ApplicationContext.cs,
2701 XplatUIX11.cs, XplatUIWin32.cs :
2702 fix for bug #325033 and #387693;
2703 - WM_QUIT should not be sent when no running application
2705 - SetTimer/KillTimer (especially on win32) should be
2706 invoked for the window that the timer is/will_be attached.
2707 - There could be unattached timers to a window when it's
2708 started. For those timers, hold pending timers and when
2709 a window is mapped, attach them to it.
2710 - WaitForHwndMessage() could run into loop when
2711 WM_SHOWWINDOW is handled before this method is called.
2712 So, strictly check wm_showwindow state.
2713 - Tick handler should not be invoked while one Tick handler
2714 call is still running (introduced Busy state).
2716 2008-05-13 Andreia Gaita <avidigal@novell.com>
2718 * WebBrowserBase.cs: Override Internal alternative methods for
2719 SetBoundsCore and OnResize instead of the protected ones.
2720 * Control.cs: Move SetBoundsCore and OnResize implementations to
2721 SetBoundsCoreInternal and OnResizeInternal, so they can be
2722 overriden internally (WebBrowserBase needs to catch them but can't
2723 override the protected methods without api compat problems)
2725 2008-05-13 Andreia Gaita <avidigal@novell.com>
2727 * WebBrowserBase.cs: Hiding away non-public overrides for api compat
2729 2009-05-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2732 * ListView.cs: Remove debug messages.
2734 2008-05-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2736 * ComboBox.cs: Don't do any calculation for simple mode if the listbox
2737 area is empty. Also calculate scrollbars in Simple mode based in area
2738 height and total number of items, not in MaxDropDownItems.
2739 Fixes part of #371991.
2741 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
2743 * PictureBox.cs: Always invalidate on resize. Fixes an app for jhill.
2745 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
2747 * BindingSource.cs: GetListSortDescription is not public.
2749 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
2751 * WebBrowser.cs, WebBrowserBase.cs, WebBrowserSiteBase.cs: corcompare.
2753 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
2755 * HtmlElement.cs: Fix parameter names to match MS.
2756 * HtmlWindowCollection.cs: Should not be sealed.
2758 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
2760 * ThemeWin32Classic.cs: Always draw the scrollbar area under the thumb
2761 button, because the thumb button will not get drawn if the scrollbar
2762 is disabled. [Fixes bug #389262]
2764 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
2766 * ListBox.cs: Handle End key for multi-column listboxen.
2769 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
2771 * ListBox.cs: Fix algorithm to determine which column our item is in.
2774 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
2776 * ListBox.cs: Invalidate when the listbox is resized.
2779 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
2781 * ListBox.cs: There is always at least one row in the ListBox (if
2782 we are doing these calculations.) [Fixes bug #389253]
2784 2008-05-12 Jonathan Pobst <monkey@jpobst.com>
2786 * ListBox.cs: There is always at least one column in the ListBox.
2789 2008-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2791 * ComboBox.cs: When handle is created call UpdateComboBoxBounds to
2792 ensure in Simple mode that the height is exactly the requested one.
2793 Also add the ComboBoxListControl to the controls collection in Simple
2794 mode even if handle hasn't been created.
2795 Fixes part of #371991.
2797 2008-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2799 * ComboBox.cs: For ComboListBox control -specially in Simple mode-, give focus to
2800 our ComboBox owner instead of giving it back to the previous control (
2801 as done in other controls). Also remove the empty override of Select
2802 method, since we want to be selected *and* give focus to our owner.
2803 This should let the user do keys-navigation in Simple mode.
2805 2008-05-10 Geoff Norton <gnorton@novell.com>
2807 * XplatUICarbon.cs: Dont use HIViewScrollRect as it's causing painting
2808 problems with rapid scrolling of treeviews. Fixes #381084
2810 2008-05-10 Geoff Norton <gnorton@novell.com>
2812 * XplatUICarbon.cs: Deactivate the active window before
2813 activating the desired window. Completes fixing #386504
2815 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2817 * ListView.cs: When calculating scrollbars, set horizontal scroll bar
2818 SmallChange to the item size width plus the padding, to match .net.
2820 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2822 * FileDialog.cs: Apply the custom filter typed by the user in the file
2823 name combobox as much as possible while navigating in the file dialog.
2826 2008-05-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2828 * Binding.cs: Actually use NullValue if the retrieved value of
2829 data source is null or DBNull. Makes a test pass.
2831 2008-05-09 Jonathan Pobst <monkey@jpobst.com>
2833 * ErrorProvider.cs, Form.cs: Get icons from ResourceImageLoader.
2834 * MimeIcon.cs: Provide a way to get icons from resources.
2836 2008-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2838 * Binding.cs: When the value retrieved from the control to be assigned
2839 to the data source is null, actually use the 2.0 DataSourceNullValue
2840 value. Make pass a data binding test.
2842 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
2844 * Control.cs: We need to invalidate implicit children even when
2845 invalidate is called with invalidatechildren = false. (Implicit
2846 children are really part of the parent.)
2847 * ListView.cs: Double-buffer internal child controls for less
2849 * ThemeWin32Classic.cs: Remove an extra nested loop in drawing
2850 owner ListView subitems for greatly increased performance.
2853 2008-05-08 Carlos Alberto Cortez <calebrto.cortez@gmail.com>
2855 * FileDialog.cs: When the user types a wildcard character in the
2856 filename combobox, update the contents of the folder using the text as
2858 Fixes part of #385261.
2860 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
2862 * ListBox.cs: Various fixes for MultiColumn listboxen.
2865 2008-05-08 Andreia Gaita <avidigal@novell.com>
2867 * HtmlElement.cs: Implement Style property
2869 2008-05-08 Jonathan Pobst <monkey@jpobst.com>
2871 * ListBox.cs: Respect checkboxes when measuring item size.
2872 * ThemeWin32Classis.cs: When drawing list items, don't draw
2873 text outside of the item's bounds to prevent overlapping.
2874 (.Net actually overlaps, but that's just silly.)
2877 2008-05-08 Everaldo Canuto <ecanuto@novell.com>
2879 * NotifyIcon.cs: Call SetForegroundWindow before show context menu. Thanks
2880 Gert Driesen. Fixes bug #324830.
2882 2008-05-07 Everaldo Canuto <ecanuto@novell.com>
2884 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: SetForegroundWindow
2887 2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2889 * BindingSource.cs: When calling IsSynchronized, return the value of
2890 the related IList list.
2892 2008-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2894 * ListBindingHelper.cs: Fix some bits in GetListItemProperties, to
2897 2008-05-07 Jonathan Pobst <monkey@jpobst.com>
2899 * DataGridView.cs: Implement PageUp/PageDown keys. Extend keyboard
2900 navigation to scroll the grid if the current cell is not visible.
2902 2008-05-07 Andreia Gaita <avidigal@novell.com>
2904 * HtmlElement.cs: Implement TabIndex
2906 2008-05-07 Jonathan Pobst <monkey@jpobst.com>
2908 * ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
2909 properties, even when there are no items.
2912 2008-05-07 Ivan N. Zlatev <contact@i-nz.net>
2914 * NativeWindow.cs: Add support for multiple handles per window.
2915 * NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs,
2916 XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection
2917 directly - use FromHandle instead.
2920 2008-05-07 Andreia Gaita <avidigal@novell.com>
2922 * HtmlElement.cs: Implement InnerHTML setter
2924 2008-05-07 Andreia Gaita <avidigal@novell.com>
2926 * HtmlDocument.cs: Implement Focused
2928 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2930 * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
2931 methods, as well as add messages to the exceptions.
2933 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2935 * BindingSource.cs: Setting DataSource should only reset DataMember if
2936 the previous value was null (make pass a not working test).
2938 2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2940 * BindingSource.cs: When EndInit call is postponed and is called until
2941 DataSource.EndInit is called, remove the handler for data source.
2943 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
2945 * ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.
2947 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
2949 * ToolStripManager.cs: Store references to toolstrips as
2950 weak references so they do not prevent forms from getting collected.
2953 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
2955 * TrackBar.cs: We can't set ResizeRedraw because it isn't set
2956 on .Net. So do the same thing in WndProc.
2958 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
2960 * TrackBar.cs: Commit patch from Andy Hume that corrects
2961 the clickable areas to better match .Net.
2964 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
2966 * TrackBar.cs: Commit patch from Andy Hume that adds the
2967 ResizeRedraw control flag so the track bar repaints itself
2968 when it is resized. [Fixes bug #387072]
2970 2008-05-06 Jonathan Pobst <monkey@jpobst.com>
2972 * TrackBar.cs: Commit patch from Andy Hume that adds better
2973 support for keyboard navigation when the TrackBar is vertical.
2976 2008-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2978 * BindingSource.cs: Implement ISupportInitializeNotification support.
2980 2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
2982 * ThemeVisualStyles.cs: Added support for ToolBar.
2984 2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
2986 * ToolBar.cs: Made the Vertical property internal.
2988 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
2990 * ThemeVisualStyles.cs: Added support for TrackBar.
2992 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
2994 * ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
2995 TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
2996 TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
2997 TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
2998 TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
2999 TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.
3001 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
3003 * ThemeVisualStyles.cs: Added support for UpDownBase.
3005 2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
3007 * Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
3008 Extracted Theme.UpDownBaseDrawButton.
3010 2008-05-05 Jonathan Pobst <monkey@jpobst.com>
3012 * ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
3013 removed from the static toolstrips collection in ToolStripManager
3014 when they are disposed. Provides a workaround for bug #386483.
3016 2008-05-05 Ivan N. Zlatev <contact@i-nz.net>
3018 * GridEntry.cs: Read-only properties with Editor with
3019 UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
3022 2008-05-05 Jonathan Pobst <monkey@jpobst.com>
3024 * MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
3025 the menu key and there are no items on the menu.
3028 2008-05-05 Sebastien Pouliot <sebastien@ximian.com>
3030 * Control.cs: Avoid calling ToString on a string.
3031 * Form.cs: Avoid calling ToString on a string. Found using Gendarme.
3032 * GroupBox.cs: In FlatStyle property throw, not just create, the
3033 exception. Avoid calling ToString on a string.
3034 * ProgressBar.cs: Avoid calling ToString on a string.
3035 * ScrollBar.cs: Avoid calling ToString on a string.
3036 [All issues were found using Gendarme]
3038 2008-05-05 Everaldo Canuto <ecanuto@novell.com>
3040 * NotifyIcon.cs: Prevent click events to be trigger after double click
3041 events. Fixes remaining issues of bug #324832.
3043 2008-05-05 Everaldo Canuto <ecanuto@novell.com>
3045 * NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
3046 to mimic win32 behavior. Partially fixes bug #324832.
3048 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3050 * BindingSource.cs: Implement Find methods.
3052 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3054 * BindingSource.cs: Implement Sort, ApplySort overloads, and
3057 2008-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3059 * ListBindingHelper.cs: When calling GetListItemProperties and the
3060 passed object is ITypedList, return the result of
3061 ITypedList.GetItemProperties instead.
3063 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
3065 * LinkLabel.cs: Set default value of name on constructor of Link class
3066 only for 2.0 profile.
3068 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
3070 * LinkLabel.cs: Fix implementation of LinkCollection.LinksAdded property.
3071 Fixes remaining issues of bug #346154.
3073 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
3075 * LinkLabel.cs: Set a default value for name on internal contructor of
3076 Link class. It fixes assert B5 of LinkCollectionTest.Constructor1.
3078 2008-05-04 Everaldo Canuto <ecanuto@novell.com>
3080 * LinkLabel.cs: Move links collection from LinkCollection to LinkLabel
3081 and refer all instances to owner.links. Partially fixes #346154.
3083 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
3085 * LinkLabel.cs: Fix linkarea values for empty text, must have start and
3086 length equal zero. Also called CreateLinkPieces in constructor. It fixes
3087 the LinkLabel test 'TestLinkArea'.
3089 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
3091 * Form.cs: Remove menu before close form to prevent form to be not gaced.
3094 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
3096 * MenuAPI.cs: Dispose popup window after hide. Thanks to Jesse Jones.
3099 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
3101 * MenuAPI.cs: Implemented keyboard navigation for ContextMenu.
3104 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
3106 * MenuAPI.cs: Remove unused ProcessCmdKey method.
3108 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
3110 * MenuAPI.cs: Prevent NRE in menu deactivation when shortcut is used.
3113 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
3115 * MenuAPI.cs: Enable implicit mnemonics for menus. Fixes remaining issues
3118 2008-05-03 Everaldo Canuto <ecanuto@novell.com>
3120 * MenuAPI.cs: Check if mouse down comes from menu, we need it because
3121 sometimes we open a conext menu on mouse down of some controls and the mouse
3122 up is dispatched to menu and dont need to. It fix remaining issues of
3123 #363711 and other problems related to menu mouse click events.
3125 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
3127 * MonthCalendar.cs: Implemented "Go to today" context menu, also changed
3128 some var names to better fit changes, now we have month_menu and today_menu
3129 vars. Fixes bug #363711.
3131 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
3133 * MonthCalendar.cs: Handle every right mouse click to open context menu,
3134 right now the default month menu but it will be change to have "Go to today"
3137 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
3139 * FileDialog.cs, MaskedTextBox.cs, OpenFileDialog.cs: corcompare.
3141 2008-05-02 Everaldo Canuto <ecanuto@novell.com>
3143 * ThemeWin32Classic.cs: Fix MonthCalendar arrows drawing.
3145 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
3147 * ThemeVisualStyles.cs: Added support for TreeView.
3149 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
3151 * Theme.cs, ThemeWin32Classic.cs, TreeView.cs: Refactored:
3152 Moved TreeView.DrawNodePlusMinus to Theme.TreeViewDrawNodePlusMinus.
3154 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
3156 * OpenFileDialog.cs: Implement 2.0 SP1 stuffs.
3158 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
3160 * FileDialogCustomPlace.cs, FileDialogCustomPlacesCollection.cs:
3161 Implement 2.0 SP1 stuffs.
3163 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
3165 * FileDialog.cs: Implement 2.0 SP1 stuffs.
3167 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
3169 * Control.cs, ContainerControl.cs, DataGridView.cs, TextBoxBase.cs:
3170 Implement CanEnableIme property. (2.0 SP1)
3172 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
3174 * BindingManagerBase.cs, PropertyManager.cs: Hide GetItemProperties
3177 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
3179 * Control.cs: Provide an internal way for a control to override
3180 the setting of Height.
3181 * DateTimePicker.cs: Remove SetBoundsCore from 2.0 profile,
3182 set height using new method.
3184 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
3186 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawMixedCheckBox.
3188 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
3190 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
3191 ControlPaint.DrawMixedCheckBox now calls Theme.CPDrawMixedCheckBox.
3193 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
3195 * ThemeVisualStyles.cs: Added support for StatusBar.
3197 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
3199 * DataObject.cs: Add the other IDataObject interface.
3201 2008-05-02 George Giolfan <georgegiolfan@yahoo.com>
3203 * ThemeWin32Classic.cs: Refactored: extracted DrawStatusBarBackground,
3204 DrawStatusBarSizingGrip, DrawStatusBarPanelBackground.
3206 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
3208 * DataGridViewCheckBoxCell.cs, DataGridViewImageCell.cs: Fix parameter names.
3209 * ListView.cs: Hide non-public API.
3210 * MaskedTextBox.cs: Remove extra attribute.
3212 2008-05-02 Jonathan Pobst <monkey@jpobst.com>
3214 * DataGridViewImageCell.cs: Use formatted value instead of value
3215 to calculate preferred size.
3217 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
3219 * ListBox.cs: Move some initialization around so that selected_indices
3220 is not accessed before it is created.
3222 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
3224 * InputLanguageCollection.cs: Implement the collection better.
3227 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
3229 * ToolStripDropDownItem.cs: Get the correct event object for
3230 DropDownItemClicked.
3231 * ToolStripMenuItem.cs: Raise DropDownItemClicked on our owner.
3234 2008-05-01 Jonathan Pobst <monkey@jpobst.com>
3236 * DataGridViewRowCollection.cs: We don't currently support shared
3237 rows. Should fix test failures caused by previous commit.
3239 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
3241 * DataGridViewRow.cs: Fixes for cloning the row, ensure header cell's
3242 datagridview gets set. Only paint cells in visible columns.
3243 * DataGridViewCell.cs: Draw border after cell content.
3244 * DataGridView.cs: Invalidate after setting some properties. Only
3245 use visible columns. Fit hit test bug with areas in the col/row header
3246 area but not in a row or col. Implement UpdateCell/Row methods.
3248 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
3250 * DataGridViewElement.cs: Don't throw NIEX.
3251 * DataGridViewColumnHeaderCell.cs: Draw error icons for top left header cells.
3252 * DataGridViewColumnDesignTimeVisibleAttribute.cs: Don't throw NIEX.
3253 * DataGridViewCheckBoxColumn.cs: Implement ToString.
3254 * DataGridViewCheckBoxCell.cs: Allow DBNull as a value.
3255 * DataGridViewCell.cs: Don't raise CellFormatting for RowHeader cells,
3256 if the user filled in the formatting Value, use it.
3258 2008-04-30 Jonathan Pobst <monkey@jpobst.com>
3260 * DataGridViewTextBoxCell.cs: Fix for objects that cannot be cast
3263 2008-04-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3265 * BindingSource.cs: Some corrections to Filter property, as well as
3266 setting it for our list when resetting it.
3268 2008-04-29 Jonathan Pobst <monkey@jpobst.com>
3270 * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
3271 than the maximum. Fixes reopened bug #384182.
3273 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
3275 * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
3276 Fixes remaining issues of #367490.
3278 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
3280 * ToolStripDropDown.cs: Screen.Bound dont return right value then use
3281 SystemInformation.WorkingArea to get max_screen value.
3283 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3285 * BindingSource.cs: Implement Filter and RemoveFilter.
3287 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
3289 * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
3291 2008-04-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3293 * X11Dnd.cs: When trying to convert data and we know we started the
3294 dnd loop, don't try to use the cached data if the loop is not running,
3295 which means that the data has been resetted.
3298 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
3300 * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
3303 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
3305 * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
3306 it to drawn off screen edge. Fixes bug #367490.
3308 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
3310 * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
3311 menu position to have only one assignment of Location var.
3313 2008-04-28 Everaldo Canuto <ecanuto@novell.com>
3315 * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
3316 for this patch. Fixes bug #384115.
3318 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
3320 * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
3321 the same. If LargeChange is zero, set a minimum size for the scroll
3322 thumb grip. [Fixes bug #384182]
3324 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
3326 * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
3329 2008-04-28 Jonathan Pobst <monkey@jpobst.com>
3331 * ListBox.cs: Math.Min should be Math.Max. [Fixes bug #384183]
3333 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
3335 * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
3336 patch from Ernesto).
3338 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
3340 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
3342 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
3344 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
3346 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
3348 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
3350 2008-04-28 George Giolfan <georgegiolfan@yahoo.com>
3352 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
3354 2008-04-27 George Giolfan <georgegiolfan@yahoo.com>
3356 * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
3358 2008-04-27 Andreia Gaita <avidigal@novell.com>
3360 * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
3361 supposed to return a reference to an mshtml interface, which we
3363 * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
3364 reference to an mshtml interface, which we don't support). Code
3366 * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
3367 DomDocument getter (it's supposed to return a reference to an
3368 mshtml interface, which we don't support). Code formatting cleanup.
3370 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3372 * ListView.cs: Ouch, forgot to commit.
3374 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3377 * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
3379 2008-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3381 * ListView.cs: When calculating box selection for virtual mode, don't
3382 look for intersection with item's text, but item bounds, since that
3383 would mean read ListViewItem's text for _every_ item, and that's
3384 something we just can't do in virtual mode (items are only requested
3387 2008-04-26 George Giolfan <georgegiolfan@yahoo.com>
3389 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
3390 partial support for managed windows (based on the patch from Ernesto).
3392 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3394 * ListView.cs: When doing a key search use FindItemWithText method
3395 instead of doing the search by ourselves, this way we avoid
3396 duplicating the code and also we handle the special case for virtual
3397 mode. To achieve that make our private overload of FindItemWithText
3398 internal and also have a 'roundtrip' parameter.
3400 2008-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3402 * ListView.cs: When doing the layout don't request the
3403 ListViewItem instance if we are in virtual mode (since we can't request it
3404 until the item is actully drawn).
3406 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
3408 * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch
3411 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
3413 * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on
3414 the patch from Ernesto).
3416 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
3418 * ThemeEngine.cs: Added code to select ThemeVisualStyles.
3419 * ThemeVisualStyles.cs: Added.
3421 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
3423 * IDeviceContext.cs: Added a missing using.
3425 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
3427 * ButtonBase.cs: Made IsDefault protected internal.
3428 * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
3430 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
3432 * Application.cs: Included VisualStyles-related members in the 1.1 profile.
3433 * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
3434 RadioButtonRenderer.cs: Included in the 1.1 profile.
3435 * IDeviceContext.cs: Added.
3436 * TextRenderer.cs: Included a member in the 1.1 profile.
3438 2008-04-25 George Giolfan <georgegiolfan@yahoo.com>
3440 * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
3442 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
3444 * ErrorProvider.cs: Make the error icons come after the control
3445 they refer to. It isn't the way the MS does it, but its better
3446 than what we were doing. See bug #368587.
3448 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
3450 * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
3451 from Eric Albright that lazy loads the input language as ensures
3452 everything gets properly initialized. Fixes bug #373871.
3454 2008-04-24 Jonathan Pobst <monkey@jpobst.com>
3456 * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
3457 implicit mnemonics. [Fixes bug #383000]
3459 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3461 * X11Dnd.cs: When canceling the operation, automatically restore the
3462 default cursor - normally the default cursor is restored when the
3463 mouse buttons are released, but we should be able to restore it even
3464 if the buttons are still pressed (for example, when pressing ESC to
3468 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3470 * X11Dnd.cs: When starting a new drad and drop operation, set control
3471 field to null, just as the other fields, to avoid calling any
3472 operation on a previous control. Also, when calling DndLeave on a
3473 control, set it to null, thus we don't fire that event multiple times
3477 2008-04-23 Geoff Norton <gnorton@novell.com>
3479 * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
3480 the whole_window object. Fixes #377084.
3482 2008-04-23 Andreia Gaita <avidigal@novell.com>
3484 * HtmlElement.cs: Implement RaiseEvent (event injection into the
3487 2008-04-23 Jonathan Pobst <monkey@jpobst.com>
3489 * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
3491 2008-04-23 Andreia Gaita <avidigal@novell.com>
3493 * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
3496 2008-04-23 Andreia Gaita <avidigal@novell.com>
3498 * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
3501 2008-04-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3503 * X11Dnd.cs: When the drop was cancelled, or could just not be
3504 performed, return DragDropEffect.None always (match .net).
3506 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
3508 * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
3510 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
3512 * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
3514 2008-04-22 Jonathan Pobst <monkey@jpobst.com>
3516 * DataGridView.cs: Add support for error icon tool tips.
3517 * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
3518 * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
3520 2008-04-22 Ivan N. Zlatev <contact@i-nz.net>
3522 * X11Structs.cs: Add mouse button masks enum.
3523 * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and
3524 WM_EXITSIZEMOVE only once at the beginning and at the end of the
3525 form resize/move operation instead of for each step of it.
3526 [Fixes bug #346529 for the x11 backend]
3528 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
3530 * DataGridView*: Implement support for drawing error icons.
3532 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
3534 * TreeView.cs: Make vbar and hbar internal.
3535 * TreeNode.cs: If collapsing the node removes one of the TreeView's
3536 scrollbars, invalidate the whole thing.
3539 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
3541 * TreeView.cs: Calling Sort() sets Sorted = true.
3542 * TreeNodeCollection.cs: Try to find the owner TreeView to determine
3543 if the nodes need to be sorted.
3546 2008-04-21 Ivan N. Zlatev <contact@i-nz.net>
3548 * Form.cs: Fire SizeChanged for both when the form is minimized and
3550 * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it
3551 on PropertyNotify of _NET_WM_STATE. Much much cleaner.
3553 2008-04-21 Jonathan Pobst <monkey@jpobst.com>
3555 * ComboBox.cs: If the combobox is disabled, draw a disabled
3556 background before painting anything else.
3559 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3561 * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
3562 forget to send a Leave event to the target window - just as .net does
3563 when cancelling dnd operations.
3565 2008-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3567 * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
3568 soon as possible - this happens when we send the drop message to the
3569 target window. This way we avoid firing any DragOver _after_ drop finished.
3572 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
3574 * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
3575 * Form.cs: Handle form minimization as a special state, where size doesn't
3576 change, but we have to fire SizeChanged.
3577 [Fixes bug #325122 for the win32 and x11 backends]
3579 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
3581 * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS
3582 if the handle is disabled.
3585 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
3587 * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations)
3588 for forms with FormBorderStyle.None.
3591 2008-04-20 Ivan N. Zlatev <contact@i-nz.net>
3593 * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and
3595 [Fixes bug #346529 for the X11 backend]
3597 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
3600 - Send a mouse Enter message after say dragging the mouse with a
3601 button down and then release it in another client.
3602 - Reset the cursor to prevent X11 from remembering it and setting it
3603 before the control gets WM_SETCURSOR.
3604 - Qeueue a mouse move after a mouse enter like win32.
3607 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
3609 * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND.
3610 It's sent when the form gets moved, resized, closed.
3611 * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
3612 [Fixes bug #359193 for X11]
3614 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
3616 * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes
3619 2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
3621 * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0
3622 group. Fixes the 1.1 build.
3624 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3626 * ListView.cs: Use display indexes for selection in Details view, as
3627 well as do the proper layout based on display indexes for that view
3630 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3632 * ListView.cs: Focused item information is now stored as a display
3633 index, and display indexes are used all over the place for selection,
3634 instead of ListViewItem.Index values, which doesn't give us enough
3635 information to modify the selection in groups mode, and was broken.
3637 2008-04-18 Ivan N. Zlatev <contact@i-nz.net>
3639 * Control.cs: Do not fire MouseDown if validation of the control has
3641 * Form.cs: Validate the form before closing.
3642 [Fixes bugs #330501 and #353310]
3644 2008-04-18 Andreia Gaita <avidigal@novell.com>
3646 * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
3647 CreateWebBrowserSiteBase implementations
3648 * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
3649 Style and TabIndex setters
3651 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3653 * ListViewGroup.cs: When returning the actual item count, return the
3654 proper count for default group.
3657 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3660 * ListViewGroup.cs: When calculating groups layout, get the actual
3661 number of items per group, since groups added to the group BUT not
3662 added to the ListView are just ignored, and can cause some nasty
3663 exceptions because of the lack of synchronization. Also for
3664 ListViewGroup don't use lazy initialization for items, since we
3665 the common scenario is to use it always - and it helps us to refactor
3666 and clean the .ctor overloads.
3668 2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3670 * ListView.cs: When adding an item to a ListViewItemCollection
3671 belonging to a group (ListViewGroup.Items), don't generate a redraw if
3672 the added item hasn't beeen previously added to the ListView instance
3673 refered by the group, since it will be ignored. This should avoid some
3674 really nasty flickering.
3676 2008-04-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3678 * ListView.cs: When accessing an item in a specific display
3679 position, use the helper method GetItemAtDisplayIndex, instead of
3680 direct access to the reordered_items_indices array. When doing layout
3681 for groups set the correct Items index for the display position (since
3682 in groups mode items don't have the same position as in Items
3684 * ListViewGroup.cs: Add a field to store the starting item number,
3685 which is later used when calculating the layout.
3689 2008-04-17 Gert Driesen <drieseng@users.sourceforge.net>
3691 * Application.cs: Fixed ProductVersion to fallback to the assembly
3692 version. Fixes regression for bug #325413.
3694 2008-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3696 * ListView.cs: New helper method to retrieve an item in a _specific
3697 display_ position (the items can be displayed in a different order
3698 than one of Items collection).
3699 * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
3700 collection, use ListView.GetItemAtDisplayIndex, to get an item in a
3701 specific display position (again remember that items can be sorted
3702 different than Items).
3704 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
3706 * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
3707 list and update it when the collection changes. We were recreating
3708 this several times per row paint and for every pixel the mouse moved
3710 * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
3713 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
3715 * DataGridViewColumnCollection.cs: Convert our internal sorted columns
3716 list to use generics.
3717 * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
3718 and remove unneccessay casts.
3720 2008-04-16 Jonathan Pobst <monkey@jpobst.com>
3722 * DataGridViewBand.cs: Add internal way to set displayed variable.
3723 * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
3724 * DataGridView.cs: Make sure we always keep track of Displayed
3725 rows and columns, and only draw things that are displayed.
3727 2008-04-16 Atsushi Enomoto <atsushi@ximian.com>
3729 * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
3730 whether the key events are filtered or not. Introduced
3731 PreFilter() process for this purpose. This fixes atokx3/iiimx
3734 2008-04-16 Andreia Gaita <avidigal@novell.com>
3736 * HtmlHistory.cs: Implement Length property
3738 2008-04-15 Jonathan Pobst <monkey@jpobst.com>
3740 * DataGridView.cs: Call EndEdit when a sort is performed so we take
3741 away the edit textbox. Refactor to reuse column sort code.
3743 2008-04-12 Everaldo Canuto <ecanuto@novell.com>
3745 * MenuAPI.cs: Remove the code that save and restore capture status of
3746 grab_control, this fixes some Menu and Context menu bugs but maybe it can
3747 cause some others, I cant figure the possible problems of this patch but
3748 right now remove the code looks to be better than keep it. This patch fixes
3749 bugs #357638, #378721 and #379570.
3751 2008-04-12 Andreia Gaita <avidigal@novell.com>
3753 * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
3754 Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
3755 add missing properties and event handlers.
3757 2008-04-14 Jonathan Pobst <monkey@jpobst.com>
3759 * ListBox.cs: Make sure the LargeChange we are setting is at least
3760 zero, to prevent an IOORE. [Fixes bug #379531]
3762 2008-04-13 Andy Hume <andyhume32@yahoo.co.uk>
3764 * ComboBox.cs: Support item navigation by entering text. Firstly,
3765 in DropDownList mode, for each key-press select the next item
3766 starting with that letter.
3767 For other modes, when no item selected, on arrow-up/-down and open
3768 drop-down select the first item matching the text in the textbox.
3770 2008-04-14 Atsushi Enomoto <atsushi@ximian.com>
3772 * X11Keyboard.cs : Control.FromHandle() could return null
3773 in MoveCurrentCaretPos().
3775 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3777 * ListView.cs: When changing the size in VirtualMode, also Reset the
3779 * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
3780 changing selection info for VirtualMode.
3783 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3785 * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
3786 view, don't use LineLimit for the first item - use NoWrap *always*
3787 instead, since ListView.LabelWrap is not used for this view.
3790 2008-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3792 * Binding.cs: Call UpdateIsBinding when setting control - probably
3793 Binding is already usable and we don't need to wait to check the
3794 IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
3795 Created, just like 2.0 does.
3796 * CurrencyManager.cs: I'm so lame - the previous check was wrong.
3798 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3800 * Binding.cs: Just realized we don't need to have a handler for
3801 BindingContextChanged, since this info should be now consumed directly
3802 in the BindingManagerBase. And also, the manager.IsBindingSuspended
3803 state info is checked directly, instead of caching it.
3805 * CurrencyManager.cs: IsSuspended should return always false if Count
3808 2008-04-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3810 * Binding.cs: When calling PushData, return if manager.Count == 0,
3811 since we just don't have data to be read. Also, when setting the
3812 Control for binding, hook up some events to refresh the IsBinding
3813 state when BindingContext change or control gets created; use
3814 Control.IsHandleCreated instead of Control.Created check to set
3815 IsBinding state - we *actually* need to modify IsBinding when control
3816 is created, but we don't have any Created event, only HandleCreated.
3817 Fixes part of #349364.
3819 2008-04-11 Geoff Norton <gnorton@novell.com>
3821 * XplatUICarbon.cs: Expose Caret to the Carbon layer. Guard against
3822 warping a null Caret.
3824 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
3826 * DataGridView.cs: Implement row/column autosizing methods. Implement
3828 * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
3829 * DataGridViewRowCollection.cs: Add an internal sorting method.
3831 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
3833 * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
3834 value in ListView drawing code.
3836 2008-04-11 Jonathan Pobst <monkey@jpobst.com>
3838 * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
3839 is clicked. Respect the user setting Cancel in FileOk.
3841 2008-04-11 Geoff Norton <gnorton@novell.com>
3843 * ListView.cs: Avoid setting and resetting control Width/Heights and
3844 calculate the final value and set it once. Prevents a feedback loop
3847 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
3849 * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
3852 2008-04-10 Atsushi Enomoto <atsushi@ximian.com>
3854 * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
3855 Add some on-the-spot code, but it seems we don't need it.
3857 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
3859 * Form.cs: Add method for DataGridView to trigger focus cues
3860 even when it handles the tab keypress.
3862 2008-04-10 Jonathan Pobst <monkey@jpobst.com>
3864 * DataGridView.cs: More keyboard handling, tab, esc.
3865 * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
3866 when at the beginning or end of the text in the text box.
3868 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
3870 * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
3872 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
3874 * DataGridView.cs: Some fixups for showing and adding the edit control.
3875 * DataGridViewButtonColumn.cs: Implement ToString.
3876 * DataGridViewCell.cs: Size and position the control simultaneously.
3877 * DataGridViewTextBoxCell.cs: Use base to position control.
3879 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
3881 * DataGridViewCell.cs: Fix up some formatting and painting code.
3882 * DataGridViewImageCell.cs: Implement some NIEX methods.
3884 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
3886 * ToolStripItemCollection.cs: What moving an item from one owner
3887 to another, remove from source owner before adding to destination.
3890 2008-04-09 Jonathan Pobst <monkey@jpobst.com>
3892 * PictureBox.cs: Call Load when ImageLocation is set.
3895 2008-04-09 Atsushi Enomoto <atsushi@ximian.com>
3897 * X11Keyboard.cs, XplatUIX11.cs :
3898 Implement over-the-spot mode (with some odd offsets).
3899 - set preedit position when caret is set.
3900 - Wrap XMoveResizeWindow() to move preedit position.
3902 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
3904 * X11keyboard.cs: Fix last patch, maxval must be less not greater than
3907 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
3909 * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
3910 and ScanTableIndex public, it fix compilations errors when compiling
3911 WinForms to generate keyboard layout resources.
3913 2008-04-08 Everaldo Canuto <ecanuto@novell.com>
3915 * X11keyboard.cs: Prevent keyboard errors when vitual table theres
3916 different element count than scan table. It prevents some errors in non
3919 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
3921 * DataGridViewHeaderCell.cs: Implement some NIEX methods.
3923 2008-04-08 Jonathan Pobst <monkey@jpobst.com>
3925 * DataGridView.cs: Call OnContentClick.
3926 * DataGridViewCell.cs: Do a null check on ValueType instead
3928 * DataGridViewCheckBoxCell.cs: Implement.
3930 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
3932 * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
3934 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
3936 * X11Keyboard.cs : Check XGetIMValues() return value in
3937 case it does not return input styles in some environment.
3939 2008-04-08 Atsushi Enomoto <atsushi@ximian.com>
3941 * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
3943 2008-04-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3945 * BindingContext.cs: Stub UpdateBinding method.
3947 2008-04-07 Atsushi Enomoto <atsushi@ximian.com>
3949 * X11Structs.cs : added couple of structs for XIM support.
3951 Release XIM in case it failed to create XIC.
3952 Use consts for XNblah string.
3953 Add support for IM style customization and XIC creation
3954 for preedit-position and preedit-callback.
3955 Right now use MONO_WINFORMS_XIM_STYLE environment variable
3956 (list of: over-the-spot | on-the-spot | root). Only root
3959 (redoing r99172 with fix.)
3961 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
3963 * TreeView.cs: Center the checkbox a little better.
3965 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
3967 * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
3968 Apply very nice patch from Ernesto Carrea that simplifies our
3969 scrollbar drawing. [From bug #376146]
3971 2008-04-07 Jonathan Pobst <monkey@jpobst.com>
3973 * TreeView.cs: Correct the location of the root node checkbox when
3974 ShowRootLines = false. Don't draw the root lines for the root node
3975 when ShowRootLines = false. [Fixes bug #377535]
3977 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
3979 * WebBrowserBase.cs: Added missing attributes and fixed attributes.
3981 * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
3983 * MaskedTextBox.cs: Added missing attribute. Code formatting.
3984 * PageSetupDialog.cs: Added missing attribute. Code formatting.
3985 * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
3986 * ImeMode.cs: Added missing field.
3987 * HtmlWindow.cs: Code formatting. Fixed line endings.
3988 * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
3990 * HtmlHistory.cs: Code formatting. Fixed line endings.
3991 * HtmlDocument.cs: Code formatting. Fixed line endings.
3992 * ToolStripPanel.cs: Added missing IList implementation.
3993 * HtmlElementCollection.cs: Code formatting. Fixed line endings.
3995 2008-04-06 Gert Driesen <drieseng@users.sourceforge.net>
3997 * BindingContext.cs: Changed argument names to fix corcompare errors.
3998 * DataGridView.cs: Removed extra explicit interface implementation
3999 of IDropTarget. Code formatting.
4000 * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
4001 * ComboBox.cs: Changed argument names to fix corcompare errors.
4002 * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
4004 * GridColumnStylesCollection.cs: Changed argument names to fix
4005 corcompare errors. Removed extra tabs.
4006 * GridTableStylesCollection.cs: Changed argument names to fix corcompare
4008 * Control.cs: Changed argument names to fix corcompare errors. Code
4009 formatting. Removed extra explicit IList implementation.
4010 * TextBox.cs: Changed argument names to fix corcompare errors. Code
4011 formatting. Use string.Empty instead of "".
4012 * GridItemCollection.cs: Changed argument names to fix corcompare
4013 errors. Code formatting.
4014 * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
4015 corcompare errors. Code formatting.
4016 * ImageList.cs: Changed argument names to fix corcompare errors.
4017 * ToolStripItem.cs: Changed argument names to fix corcompare errors.
4018 * DataGridViewRowCollection.cs: Changed argument names to fix
4019 corcompare errors. Code formatting.
4020 * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
4021 * DataGridViewSelectedCellCollection.cs: Changed argument names to
4022 fix corcompare errors. Code formatting.
4023 * DataGridViewComboBoxCell.cs: Changed argument names to fix
4024 corcompare errors. Code formatting.
4025 * LinkLabel.cs: Changed argument names to fix corcompare errors.
4026 * TreeNode.cs: Changed argument names to fix corcompare errors. Code
4028 * PropertyGrid.cs: Changed argument names to fix corcompare errors.
4030 * BindingSource.cs: Changed argument names to fix corcompare errors.
4031 Removed extra explicit interface implementations.
4032 * DataGridViewSelectedRowCollection.cs: Changed argument names to
4033 fix corcompare errors. Code formatting.
4034 * ToolStripItemCollection.cs: Removed extra explicit interface
4035 implementation of IList.ReadOnly.
4036 * DataGridViewColumnCollection.cs: Changed argument names to fix
4037 corcompare errors. Code formatting.
4038 * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
4039 * ListView.cs: Changed argument names to fix corcompare errors.
4040 * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
4042 * DataGridBoolColumn.cs: Changed argument names to fix corcompare
4044 * ListBindingHelper.cs: Changed argument names to fix corcompare
4046 * DataGridViewSelectedColumnCollection.cs: Changed argument names to
4047 fix corcompare errors. Code formatting.
4048 * ToolStripPanel.cs: Removed extra explicit implementation of
4049 IDropTarget interface.
4050 * ListBox.cs: Changed argument names to fix corcompare errors. Code
4051 formatting. Removed extra tabs and spaces.
4052 * DataGridViewCellCollection.cs: Changed argument names to fix
4054 * Help.cs: Changed argument names to fix corcompare errors. Code
4056 * TabControl.cs: Changed argument names to fix corcompare errors.
4057 * DataGridColumnStyle.cs: Changed argument names to fix corcompare
4059 * TableLayoutSettings.cs: Changed argument names to fix corcompare
4062 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4064 * ListBindingHelper.cs: When returning properties, only return those
4065 that are browsable. Also, don't do a linear search of the properties,
4066 but use the indexer of the PropertyDescriptorCollection class.
4068 2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4070 * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
4071 Dictionary containing the related (child) currency managers. Also,
4072 when setting DataSource, add datasource to our List if it is not a list.
4074 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
4076 * PropertyGridTextBox.cs: Fix background color of the buttons.
4077 * PropertyGridView.cs: Make the entry less jumpy.
4079 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
4081 * PropertyGrid.cs: Fix unused variable warnings.
4083 2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
4085 * PropertyGridView.cs: Fix expansion via [+] misbehavior on
4086 double-click. It expanded it once in the mouse down and then
4087 again in the double-click handler.
4089 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
4091 * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner,
4092 TypeConverter and UITypeEditors.
4094 2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
4096 * Control.cs: Visibility should be set synchronously,
4097 so we must also redraw once it is and not rely on layouting or
4098 other code to repaint.
4101 2008-04-04 Jonathan Pobst <monkey@jpobst.com>
4103 * DataGridViewCell.cs: Respect DataGridView.GridColor.
4105 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
4107 * Control.cs: Invalidate when the alpha channel is less than 255,
4108 not only when control is transparent.
4110 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
4112 * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
4113 Implement some painting convenience methods that threw NIEX.
4115 2008-04-03 Jonathan Pobst <monkey@jpobst.com>
4117 * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
4118 * DataGridViewLinkCell.cs: Implement.
4120 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
4122 * GridEntry.cs: Report the conversion exception error description.
4125 2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
4127 * PropertyGridView.cs: Do not scroll to item on resize.
4130 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4132 * BindingContext.cs: When retrieving a BindingManagerBase, if the
4133 dataSource parameter is ICurrencyManagerProvider, then return
4134 ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
4135 instead of creating a new one.
4137 2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4139 * BindingSource.cs: Implement support for Type instances as
4142 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
4144 * DataGridView.cs: Minor cleanups and call CellMouseUp.
4145 * DataGridViewCell.cs: Make some painting routines internally virtual.
4146 * DataGridViewButtonCell.cs: Implement.
4148 2008-04-02 Jonathan Pobst <monkey@jpobst.com>
4150 * Control.cs: We always need to invalidate our children with
4151 transparent backgrounds when we are invalidated.
4154 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4156 * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
4157 and CancelCurrentEdit on CurrencyManager respectively. Implement
4158 support for ICancelAddNew too.
4160 2008-04-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4162 * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
4163 call EndNew/CancelNew if list is ICancelAddNew.
4165 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
4167 * DataGridView.cs: Guard against an exception while painting
4168 if there are no rows.
4170 2008-04-01 Jonathan Pobst <monkey@jpobst.com>
4172 * DataGridView.cs: Implement a bunch of keyboard commands.
4174 2008-03-31 Jonathan Pobst <monkey@jpobst.com>
4176 * ToolBar.cs: Don't do our painting if UserPaint is set. If UserPaint
4177 isn't set, don't call OnPaint. [Fixes bug #375300]
4179 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4181 * BindingSource.cs: IsBindingSuspended, ResumeBinding and
4182 SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
4183 hookup the remaining events related to CurrencyManager, and fire
4184 OnListChanged also for the Clear () method.
4186 2008-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4188 * BindingSource.cs: Use Current and Position implementations in
4189 CurrencyManager instead of using our own routines, since we need
4190 to be in synch with it. Count should NEVER return a -1 value, and
4191 also report ListChanged events for both simple IList data
4192 sources (manually) as well for IBindingList ones (by hooking up an
4193 event handler for it).
4195 2008-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4197 * BindingSource.cs: Make one .ctor call the another, to avoid
4198 duplicate code. Add the CurrencyManager property, and also for AddNew
4199 throw the proper exceptions and show better error messages.
4201 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
4203 * ComboBox.cs: Only adjust selectedindex if Handle has been
4204 created. Fixes failing test.
4206 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
4208 * ComboBox.cs: Adjust selectedindex if we insert a new item
4209 above the current selectedindex in a sorted ComboBox.
4212 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
4214 * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
4217 2008-03-28 Jonathan Pobst <monkey@jpobst.com>
4219 * DataGridViewTextBoxCell.cs: Implement stuffs.
4221 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
4223 * TreeView.cs: Create the scrollbars even earlier to be
4224 double dog certain they are created before they are accessed.
4226 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
4228 * XplatUIX11.cs: Remove a no-op line that csc was choking on.
4230 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
4232 * ScrollBar.cs: Create an internal safe Value setter so we
4233 won't crash if we try to set a value outside the min and max.
4234 * TextBoxBase.cs: Use safe value setter to guard against a
4235 potential NRE that is being reported by Reflector.
4237 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
4239 * TreeView.cs: Create the scrollbars earlier in the constructor
4240 to attempt to guard against an NRE in SetTop in Reflector.
4242 2008-03-27 Jonathan Pobst <monkey@jpobst.com>
4244 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
4245 DataGridViewRowCollection.cs: Do not scroll column and row headers,
4246 show messagebox on data format error, use column display index
4247 correctly, make sure HitTest supports new layout stuff,
4248 make sure scrollbars support new layout stuff.
4250 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
4252 * XplatUIX11.cs : Patch by Doug Rintoul.
4253 For some IM engines, keypress events need to delay call
4254 to XPending() and XNextEvent() in the loop so that it
4255 does not mess the orders in XIM commit callback.
4256 Some KeyRelease events such as shift keys need to be
4257 processed both in the IM engine and winforms driver
4258 itself since winforms holds its own state check.
4260 For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
4262 2008-03-27 Atsushi Enomoto <atsushi@ximian.com>
4264 * X11Keyboard.cs, XplatUIX11.cs :
4265 add primitive support for XIM input support (preedit-
4266 nothing and status-nothing). It requires precise event
4267 capturing (XSelectInput/"filterEvents") and different
4268 call to XFilterEvent against root window.
4269 Get composed string and send dummy WM_IME_COMPOSITION.
4270 Free XIM and XIC instances in finalizer.
4272 (This first patch does not include suggested changes
4273 by Doug Rintoul. It will follow.)
4275 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
4277 * DataGridView.cs: When binding to a property, if the property
4278 doesn't have a setter, set the column to readonly.
4281 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
4283 * ComboBox.cs: Guard against NRE if an arrow key is hit while
4284 we aren't dropped down. Support Home/End in DropDownList mode.
4287 2008-03-26 Jonathan Pobst <monkey@jpobst.com>
4289 * TreeNodeCollection.cs: Don't increment count until we've
4290 saved our index to return.
4293 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
4295 * Label.cs: Add padding to the label's AutoSize calculation.
4298 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4300 * ListBindingHelper.cs: Actually implement GetListName method.
4302 2008-03-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4304 * BindingSource.cs: Throw the propert expceptions for some methods, as
4305 well as detect the list item type for Add method if DataSource is null.
4307 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
4309 * DataGridViewCell.cs: I don't know why I commented this out,
4310 putting it back for now.
4312 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
4314 * DataGridViewCell.cs: Remove storage for owning column, just
4316 * DataGridViewColumn.cs: Make getter for HeaderTextSet.
4317 * DataGridViewColumnHeaderCell.cs: If the header text has been
4318 explicitly set, return it.
4321 2008-03-25 Jonathan Pobst <monkey@jpobst.com>
4323 * DataGridViewRowCollection.cs: Disable row sharing when
4324 using data binding. Its a great feature, but lets work on
4325 getting DGV usable first before we worry about optimizations.
4327 2008-03-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4329 * BindingSource.cs: When resetting our internal list, compute list
4330 item type information to be used for indirect list access. Also
4331 implement/tune some properties and methods related to the list access
4333 * ListBindingHelper.cs: Add a stub for GetListName method, used from
4336 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
4338 * DataGridView.cs: If RowCount is increased while ColumnCount
4339 is zero, add a column. [Fixes bug #331649]
4341 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
4343 * DataGridViewRowCollection.cs: When adding new rows for
4344 databinding, make sure they are place before the add row.
4347 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
4349 * DataGridViewRow.cs: Draw cells in column DisplayIndex order
4350 instead of Index order.
4352 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
4354 * DataGridView.cs: If columns are added by increasing ColumnCount,
4355 they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
4358 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
4360 * DataGridView.cs: Turn off and on the "new row" when
4361 AllowUserToAddRows is toggled. When the handle is created,
4362 set current cell and selected cell/row/col.
4364 2008-03-24 Jonathan Pobst <monkey@jpobst.com>
4366 * ComboBox.cs: When navigating the drop down by keyboard, we
4367 need to scroll the list box if our selection moves out of the
4368 currently shown items. [Fixes bug #371990]
4370 2008-03-24 Luke Page <luke.a.page@gmail.com>
4372 * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
4373 on the control. Also now handles unicode compatibility characters and
4374 stores the unicode compatibility length on the stack. Fixes Bugs
4375 #355198 and #366436.
4377 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4379 * BindingSource..cs: Take into account DataMember when re-creating the
4380 List property, and also create a specific kind of list as needed.
4382 2008-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4384 * ListBindingHelper.cs: Add a new case for GetList () method - when we
4385 get an empty IEnumerable, try to detect whether the datamember is
4386 valid or not for that type, if true, return null, and throw exception
4389 2008-03-22 Jonathan Pobst <monkey@jpobst.com>
4391 * ComboBox.cs: Alt-Down should drop down the list, Esc should
4392 retract it. [Fixes bug #371989]
4394 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
4396 * PropertyGrid.cs: Initialize the sorting button as pushed.
4398 2008-03-22 Ivan N. Zlatev <contact@i-nz.net>
4401 - Visually select the PropertyTab.
4402 - Filter Properties by Attributes properly.
4404 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
4406 * MenuItem.cs: Remove menu item from parent when disposed.
4409 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
4411 * ToolBar.cs: Don't reset layout_type if Dock = None.
4413 2008-03-21 Andreia Gaita <avidigal@novell.com>
4415 * UserControl.cs: Select the first available control when we get focus.
4418 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
4420 * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
4421 the content if we are in edit mode. [Fixes bug #343964]
4423 2008-03-21 Jonathan Pobst <monkey@jpobst.com>
4425 * DataGridViewCell.cs: Fix border painting for column headers.
4427 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4429 * BindingSource.cs: When setting or resetting data source,
4430 use ListBindingHelper.GetList () method, since it will get the list in
4431 case datasource is IListSource.
4433 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
4435 * DataGridViewCell.cs: Implement lots more stuffs.
4437 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
4439 * PropertyGridView.cs, GridEntry.cs: Implement support for
4440 UITypeEditor.IsDropDownResizable.
4442 2008-03-20 Jonathan Pobst <monkey@jpobst.com>
4444 * DataGridViewCell.cs: Remove unused variables, improve how
4445 several of the property getters work.
4446 * DataGridViewRow.cs: Don't call setSize on a cell, cell should
4447 get its size from the parent row/col.
4449 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
4451 * PropertyGrid.cs: Ensure PropertiesTab is visible even if the
4452 user alters manually the PropertyTabs collection via the
4453 PropertyTabs property.
4455 2008-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4457 * ListBindingHelper.cs: Implement -previously- ignored cases. We have
4458 new tests for them to be sure to be compatible with .net.
4460 2008-03-20 Andreia Gaita <avidigal@novell.com>
4462 * WebBrowserBase.cs: Fix attributes, add events
4463 * WebBrowser.cs: Fix Padding signature
4465 2008-03-20 Ivan N. Zlatev <contact@i-nz.net>
4467 * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
4469 2008-03-19 Jonathan Pobst <monkey@jpobst.com>
4471 * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
4472 DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
4473 DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
4474 passes the new suite of tests for it.
4476 2008-03-18 Andreia Gaita <avidigal@novell.com>
4478 * WebBrowser.cs: Add missing attributes, missing Padding and
4479 DefaultSize properties, remove extraneous getters
4481 2008-03-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4483 * ListBindingHelper.cs: Implement a pair of GetListItemProperties
4486 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
4488 * ComboBox.cs: Move resetting the selected index to keypress
4489 instead of textchanged. Changing the text programmatically
4490 should not trigger resetting the selected index. Fixes test.
4492 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
4494 * ComboBox.cs: When the user types into the textbox, reset
4495 the selected index to -1. [Fixes bug #371672]
4497 2008-03-16 Jonathan Pobst <monkey@jpobst.com>
4499 * FileDialog.cs: Support Control-A for selecting everything
4500 in an OpenFileDialog. [Fixes bug #371564]
4502 2008-03-15 Jonathan Pobst <monkey@jpobst.com>
4504 * DataGridView.cs: When row/column visible/height properties
4505 change, invalidate. Take the NIEX out of InvalidateRow/Column
4506 etc. We don't support them yet, but we can just invalidate
4507 everything until we do support them. (Added MonoTODO). Set
4508 proper control styles.
4509 * DataGridViewRow.cs: Don't call PaintHeader if row headers
4512 2008-03-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4514 * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
4516 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
4518 * DataGridViewRow.cs: Only paint the white background in
4519 cell bounds, the row bounds extends past the cells if the
4520 grid width isn't as wide as the DGV.
4522 2008-03-14 Jonathan Pobst <monkey@jpobst.com>
4524 * DataGridView*: Completely revamp the drawing to match the
4525 public API. Our grids now look better, and call all the
4526 appropriate methods and event to allow users to override
4527 the painting and do their own.
4529 2008-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4531 * ListBindingHelper.cs: Implement 2.0 GetList methods.
4533 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
4535 * DataGridView.cs: Implement BorderStyle.
4537 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
4539 * FileDialog.cs: Apply patch from Andy Hume: Any time we
4540 are comparing attributes, make sure we only look at the
4541 one we are interested. These calls were failing if there
4542 were more than one attribute.
4545 2008-03-13 Jonathan Pobst <monkey@jpobst.com>
4547 * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
4549 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
4551 * PageSetupDialog.cs: Stub EnableMetric.
4552 * PrintControllerWithStatusDialog.cs: Implement IsPreview.
4553 * PrintPreviewDialog.cs: Add ProcessDialogKey,
4556 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
4558 * MonthCalendar.cs: Remove unused variable.
4560 2008-03-12 Jonathan Pobst <monkey@jpobst.com>
4562 * DataGridView*.cs: corcompare stuffs.
4564 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
4566 * MonthCalendar.cs: Remove an incorrect invalidate optimization.
4567 The savings aren't worth the extra code to fix the optimization.
4570 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
4572 * ToolBar.cs: Always call base.Dock in the Dock override so that
4573 Control's layout_type gets reset correctly.
4576 2008-03-11 Ivan N. Zlatev <contact@i-nz.net>
4578 * X11Dnd.cs: End DnD operation also for the middle mouse button.
4580 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
4582 * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
4583 at the same time we do explicit ones, because we have to give all
4584 other controls on the container a chance to handle explicit ones
4585 first. If no one has an explicit mnemonic, then we can let the
4586 MenuStrip have a shot at implicit mnemonics.
4587 * MenuStrip.cs: Create an implicit mnemonic function.
4588 * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
4589 mnemonics for MenuStrips.
4592 2008-03-11 Jonathan Pobst <monkey@jpobst.com>
4594 * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
4595 DataGridColumnStyle.cs: corcompare stuffs.
4597 2008-03-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4599 * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
4600 Details - This is needed after we added the bits to use any available
4601 column also for List and SmallIcon view.
4603 2008-03-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4605 * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
4606 at the proper place, not only when changing SelectedIndex and changing
4607 the selection using keys/mouse, as .net does.
4609 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4611 * ControlBindingsCollection.cs: Implement last 2.0
4612 DefaultDataSourceUpdateMode property. Also fix a wrong instruction
4613 in the new 2.0 Add methods.
4615 2008-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4617 * ListBox.cs: When calling SelectedIndexCollection.Clear,
4618 return if no items are previously selected - this is done to avoid
4619 firing OnSelectedIndexChanged without need to do so. Also,
4620 when creating handle ensure that the focused item is visible (as
4623 2008-03-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4625 * ListBox.cs: Rewrote/refactored most of selection code. We require
4626 the following things in selection: a) keep selection sorted (both
4627 indices and items), b) SelectedIndices automatically detect the
4628 selection mode, c) SelectedIndex should be the first selected item
4629 index, d) Need to Focus/adjust scroll bar when selecting a new item,
4630 not only for SelectedIndex, which is specially important in Multi*
4631 selection modes. To achieve this we are moving the selection core to
4632 SelectedIndexCollection and make depend all selection modifications on
4636 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
4638 * ToolStrip.cs: Enable implicit mnemonics for drop down
4639 menu strips. [Fixes part of bug #367692]
4641 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
4643 corcompare - fix parameter names [stragglers].
4644 Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
4645 HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
4648 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
4650 Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
4651 was a mnemonic pressed as well as Alt. Also, if nothing handles a
4652 mnemonic, let the ToolStripManager have it even if it doesn't
4653 have a matching mnemonic.
4656 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
4658 corcompare - fix warning about implicit implementation
4659 * ToolStrip.cs: Add IToolStripData interface.
4660 * IToolStripData.cs: Add.
4662 2008-03-06 Jonathan Pobst <monkey@jpobst.com>
4664 corcompare - fix warning about implicit implementation
4665 * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
4668 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
4670 corcompare - fix parameter names [N-Z].
4671 LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
4672 Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
4673 PropertyManager.cs, RichTextBox.cs,
4674 ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
4675 StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
4676 StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
4677 TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
4678 TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
4679 ToolStripContentPanel.cs, ToolStripDropDown.cs,
4680 ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
4681 ToolStripPanel.cs, ToolStripSeparator.cs,
4682 TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
4683 UICuesEventHandler.cs, UpDownBase.cs.
4685 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
4687 corcompare - fix parameter names [G-M].
4688 GridColumnStylesCollection.cs, GridItemCollection.cs,
4689 GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
4690 HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
4691 Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
4692 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
4693 ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
4695 2008-03-05 Jonathan Pobst <monkey@jpobst.com>
4697 corcompare - fix parameter names [A-F].
4698 Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
4699 DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
4700 DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
4701 DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
4702 DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
4703 DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
4704 DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
4706 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
4708 * GridEntry.cs: Do not convert not only if the types match,
4709 but also if the property type is assigneable from the value's
4713 2008-03-03 Ivan N. Zlatev <contact@i-nz.net>
4715 * PropertyGridView.cs:
4716 - Subscribe to the listbox only once and not everytime.
4717 - Update the textbox even if SetValue fails.
4718 - Close the listbox before calling TrySetValue just in case.
4721 2008-03-03 Jonathan Pobst <monkey@jpobst.com>
4723 * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
4725 2008-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4727 * ListView.cs: Implement support for custom column width based on
4728 Columns collection (we were previously using this collection only
4732 2008-03-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4734 * ListViewItem.cs: For Tile view, always set bounds for the first
4735 subitem (which is the main one), and also don't let Width be larger
4736 than ListView.TileSize.Width. Improve code readibility also.
4737 * ThemeWin32Classic.cs: When painting the ListViewItem instances
4738 in Tile view, _always_ use the NoWrap flag.
4741 2008-02-29 Ivan N. Zlatev <contact@i-nz.net>
4743 * PropertyGrid.cs: Check for null PropertyDescriptor.Name just
4745 * GridEntry.cs: For MS compitability make all child properties
4746 readonly if the parent is readonly. Ugh.
4747 [Fixes bug #365945 and #365944]
4749 2008-02-29 Andreia Gaita <avidigal@novell.com>
4751 * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
4752 relative to the history
4754 2008-02-29 Andreia Gaita <avidigal@novell.com>
4756 * HtmlElement.cs: More handlers for mouse and key events
4758 2008-02-28 Andreia Gaita <avidigal@novell.com>
4760 * WebBrowserBase.cs: MouseClick sig changed.
4761 * HtmlHistory.cs: Implement history navigation
4762 * HtmlElement.cs: Add event handlers, and connect them.
4764 2008-02-28 Ivan N. Zlatev <contact@i-nz.net>
4767 - Use PropertyDescriptor.DisplayName instead of .Name for Label,
4768 so that DisplayNameAttribute doesn't get ignored.
4769 - Check for ParenthesizeNameAttribute and parenthesize the Label.
4770 - Add support for PasswordPropertyTextAttribute
4771 * PropertyGridView.cs: Check if an entry is a password.
4772 [Fixes bugs #365589, #365586, #365588]
4774 2008-02-28 Andreia Gaita <avidigal@novell.com>
4776 * PropertyGridView.cs: Revert the message filtering change, as we
4777 need it to block after all. Remove block parameter, unnecessary.
4779 2008-02-27 Jonathan Pobst <monkey@jpobst.com>
4781 * UserControl.cs: Better implementation of GetPreferredSize.
4782 First step to fixing bug #361441.
4784 2008-02-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4786 * Binding.cs: Actually implement data binding support for
4787 classes implementing IBindableComponent.
4788 * ControlBindingsCollection.cs: Likewise.
4790 2008-02-26 Andreia Gaita <avidigal@novell.com>
4792 * PropertyGridView.cs: Use a message filter to check when to
4795 2008-02-26 Andreia Gaita <avidigal@novell.com>
4797 * Application.cs: Change the message_filters loop so a filter
4798 can be removed while looping.
4800 2008-02-26 Ivan N. Zlatev <contact@i-nz.net>
4802 * GridEntry.cs: Optimization in ToggleValue so that it caches
4804 * PropertyGridView.cs: An optimization so that the property isn't
4805 re-read twice for each StandardValue added to the drop-down menu.
4806 Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
4810 2008-02-26 Jonathan Pobst <monkey@jpobst.com>
4812 * Application.cs: Apply patch from Justin Cherniak to match
4813 MS better for ProductName, ProductVersion, and CompanyName.
4816 2008-02-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4818 * Binding.cs: Actually implement 2.0 NullValue property. Also
4819 when changing the formatting related properties, only update the state
4820 if formatting_enabled is true (we don't mind otherwise).
4822 2008-02-25 Jonathan Pobst <monkey@jpobst.com>
4824 * ToolStrip.cs: Don't raise ItemClicked for disabled items.
4827 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
4829 * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead
4830 of GetType on the current value as it uses reflection to
4831 determine the type. This fixes the case where the new value is
4834 2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
4836 * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
4839 2008-02-24 Luke Page <luke.a.page@gmail.com>
4841 * Line.cs, TextControl.cs: Implement offset x and y so that a
4842 document doesn't have to begin at (0,0) on the viewpoint.
4843 * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
4844 bars and switches the text alignment (and therefore is now
4845 implemented for textbox). Fixes #321383.
4847 2008-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4849 * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
4850 properties. Also when changing FormattingEnabled update the control
4851 property -as .Net does-.
4853 2008-02-22 Carlos Alberto Cortez <calberto.cortez@Å‹mail.com>
4855 * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
4856 * Binding.cs: Add stubs for the overloads of the Add method in
4859 2008-02-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4861 * Binding.cs: PullData () returns a false value if we got an exception.
4862 Also when validating the control and we get an error, instead of
4863 setting the value of the previous one, cancel the event (tested in 1.1
4866 2008-02-22 Jonathan Pobst <monkey@jpobst.com>
4868 * TreeView.cs: Make selected_node and highlighted_node internal.
4869 * TreeNodeCollection.cs: Reset selected_node and highlighted_node
4870 to null when Nodes.Clear is called.
4873 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
4875 * FontDialog.cs: Ensure that when the Font is set in code,
4876 all the gui pieces are updated accordingly.
4879 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
4881 * TextRenderer.cs: Respect proposed size for MeasureString.
4882 * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
4883 autosize, use a proposed width to force wrapping for long text.
4886 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
4888 * TreeView.cs: Factor in checkboxes = false and state images in
4889 to HitTest. [Fixes bug #363360]
4891 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
4893 * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
4894 when drawing the selected range.
4897 2008-02-21 Jonathan Pobst <monkey@jpobst.com>
4899 * ToolStripContainer.cs: Add SupportsTransparentBackColor and
4900 ResizeRedraw control styles.
4903 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
4905 * TreeView.cs: StateImages are basically custom checkboxes, so
4906 factor their size the same as real checkboxes when determining
4910 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
4912 * MessageBox.cs: Make the message box wider if the form caption
4913 is longer than the text in the form.
4916 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
4918 * PropertyGridView.cs: Fix a NRE when closing the drop down form.
4920 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
4922 * TreeNode.cs: Guard against an NRE when the parent's
4923 StateImageList hasn't been set.
4926 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
4928 * SplitContainer.cs: Add SupportsTransparentBackColor and
4929 OptimizedDoubleBuffering control styles.
4932 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
4934 * Application.cs: For the app data paths and the registry key paths,
4935 ensure they are created before returning them to the user.
4938 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
4940 * Application.cs: Guard against an NRE in CompanyName and
4943 2008-02-20 Jonathan Pobst <monkey@jpobst.com>
4945 * Application.cs: For CompanyName, ProductName, and ProductVersion,
4946 make sure we handle all three cases correctly: attribute is present,
4947 attribute is present but is an empty string, and attribute is not
4950 2008-02-20 Ivan N. Zlatev <contact@i-nz.net>
4952 * PropertyGridView.cs:
4953 - Fix a NRE that caused a test failure
4954 - Another performance improvement - cache the standard values
4957 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
4959 * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
4962 2008-02-19 Ivan N. Zlatev <contact@i-nz.net>
4964 * PropertyGridView.cs: Fix a big performance bug.
4966 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
4968 * SelectionRange.cs: Apply patch from Andy Hume to make
4969 constructor behavior more accurate. [Fixes bug #362117]
4971 2008-02-19 Andreia Gaita <avidigal@novell.com>
4973 * Control.cs: Added a new flag is_disposing to track if the
4974 window is currently in the process of being disposed of.
4975 This is used so that, when firing visibility changes triggered
4976 by unparenting controls during Dispose, the control doesn't
4979 2008-02-19 Jonathan Pobst <monkey@jpobst.com>
4981 * ComboBox.cs: Set height to preferred height when the handle
4982 is created. [Fixes bug #360862]
4984 2008-02-18 Andreia Gaita <avidigal@novell.com>
4986 * XplatUIX11.cs: Create FosterParent with border width at 0.
4987 With the previous value of 4, everytime a control got reparented
4988 from parent = null, it's location would be shifted right and
4989 down by 4, since these coordinates would be offset by the
4990 FosterParent's border width.
4992 2008-02-18 Ivan N. Zlatev <contact@i-nz.net>
4994 * Control.cs: During diposing firstly remove ourselfes from
4995 the parent and *then* destroy our handle, because removing
4996 ourselfes from the parent controls collection causes
4997 VisibilityChange, etc events, which require a handle and end
4998 up recreating the control.
5000 2008-02-17 Ivan N. Zlatev <contact@i-nz.net>
5002 * GridEntry.cs: Set expanded state before notifying that the
5003 expansion has taken place.
5004 * PropertyGridView.cs:
5005 - Set the propertygridtextbox text to the selected
5006 StandardValue before proceeding to setting it.
5007 - Scrolling bugfixes.
5009 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
5012 - Fix ValueText to not return null.
5013 - Fix conversion error reporting to actually happen.
5014 * PropertyGridView.cs: Set entry only if the text has changed.
5017 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
5020 - Fix handling of a null current value.
5021 - Swallow editor exceptions.
5024 2008-02-16 Ivan N. Zlatev <contact@i-nz.net>
5026 * PropertyGrid.cs: Clear current items first thing before
5027 repopulating subitems.
5029 - Handle null StandardValuesCollection.
5030 - Mark as not editable if there is no PropertyDescriptor and
5031 if the Converter cannot convert from string.
5032 [Part of fix for bugs #360666 and #358332]
5034 2008-02-15 Luke Page <luke.a.page@gmail.com>
5035 * MaskedTextBox.cs: Now skips non editable characters after a
5036 character has been entered and we are progressing to the next
5037 position in the MaskedTextBox.
5039 2008-02-15 Luke Page <luke.a.page@gmail.com>
5040 * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
5041 that it changes the selection rather than just repositioning the
5042 cursor. Fixes Bug #360873.
5044 2008-02-15 Luke Page <luke.a.page@gmail.com>
5045 * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
5046 when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
5047 correctly. See #359330
5049 2008-02-15 Andreia Gaita <avidigal@novell.com>
5051 * XplatUIX11.cs: If the handle is null when posting a message, use the
5052 current thread queue to post instead. Fixes #332409
5054 * SendKeys.cs: Slight optimization
5056 2008-02-14 Ivan N. Zlatev <contact@i-nz.net>
5058 * PropertyGrid.cs, PropertyGridView.cs:
5059 Fix multiple scrolling and sizing issues.
5062 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
5064 * PropertyGridView.cs: Ensure that drop down editors are shown
5065 in the WorkingArea of the screen.
5068 2008-02-12 Ivan N. Zlatev <contact@i-nz.net>
5070 * GridEntry.cs: Fail silently when UITypeEditor is missing.
5073 2008-02-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5075 * Binding.cs: Implement 2.0 DataSourceNullValue property.
5077 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
5079 * PropertyGridView.cs:
5080 - Clear the controls in the drop down form after it is hidden.
5081 - Fix Width sizing of the dropdown editors to match MSFT.
5083 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
5085 * PropertyGridView.cs:
5086 - Fix height for drawing the grid entry
5087 text value, so that it clips multiline text properly.
5088 - Fix unfocusing to match MSFT.
5090 2008-02-11 Ivan N. Zlatev <contact@i-nz.net>
5092 * PropertyGrid.cs: Do not populate subgriditems unless expandable.
5093 Fixes a bug where on repopulation after value changed items become
5096 2008-02-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5098 * Binding.cs: For the 2.0 profile, look for a
5099 'PropertyChanged' event in the target control, and add checks for
5100 DataSourceUpdateMode property to change -or not- the data source
5101 from validation/control property change.
5103 2008-02-10 Atsushi Enomoto <atsushi@ximian.com>
5105 * Binding.cs : build fix (operator == is not overriden in 1.x. Do
5106 not compare struct with null in 2.0).
5108 2008-02-10 Luke Page <luke.a.page@gmail.com>
5110 * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
5111 updates the provider and if not using a provider, uses the internal document
5112 class implementation of password char. Also when showing text, uses display string
5113 from the provider, instead of the actual text.
5115 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5117 * Binding.cs: Ooooops, forgot to take into account the data_source
5118 and binding_member_info null case (it was breaking the Binding tests).
5120 2008-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5122 * Binding.cs: Implement support for data source changes exposed by
5123 'PropertyNameChanged' events, and update the control property as
5126 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5128 * Binding.cs: Implement 2.0 WriteValue method.
5130 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
5132 Commit patch from James Purcell for better AutoScale implementation:
5134 * ScaleControl should call GetScaledBounds with the control's total size rather
5135 than client size. GetScaledBounds should handle ignoring the borders in its
5136 calculations. Cleaned up ScaleControl/GetScaledBounds overrides in controls
5137 (for the most part they just call the base code now since that is fixed).
5138 * Added ScaleChildrenInternal to allow controls to disable scaling of children
5139 without having to override ScaleChildren (since none of .NET's controls do).
5140 This is required for most controls in Mono that have scrollbars to prevent the
5141 scrollbars from being moved/resized.
5142 * Nested ContainerControls can have a different scale mode than their parent.
5143 This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
5144 designer produce different results both of which look incorrect).
5145 * Default AutoScaleMode for ContainerControl should be Inherit.
5146 * Simplified workaround for ComboBox scaling issue.
5147 * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's.
5148 1.0 style auto scaling should scale the whole control's size instead of
5149 ignoring the borders (except for Form) and the rounding is done differently to
5150 preserve control alignment.
5151 * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
5153 * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
5154 * CurrentAutoScaleDimensions should round the estimated character width instead
5156 * ListBox's GetScaledBounds should always use the height it was set to instead
5157 of the height that was passed in. This prevents rounding errors from
5158 accumulating quickly with IntegralHeight.
5161 2008-02-08 Andreia Gaita <avidigal@novell.com>
5163 * Form.cs: Add a null check (darn it).
5165 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
5167 * MdiClient.cs: Make sure the requesting form actually owns the
5168 control menu items before removing them. Also, use
5169 Suspend/ResumeLayout when adding or removing items so we only
5173 2008-02-08 Jonathan Pobst <monkey@jpobst.com>
5175 * Control.cs: Guard against an NRE in ShowFocusCues.
5178 2008-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5180 * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
5181 property, as well as stubbing DataSourceUpdateMode.
5183 2008-02-08 Andreia Gaita <avidigal@novell.com>
5185 * Form.cs: When closing forms, get focus back to the active control of the
5186 active form. [Fixes #341314, corner case]
5188 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
5190 * MdiClient.cs: After we move the scrollbars, invalidate the NC
5191 area, so any old scrollbar artifacts are cleaned up.
5194 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
5196 * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
5197 for our menus, display that control box menu instead of the 1.1
5200 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
5202 * MdiControlStrip.cs: Add property to access the mdi form tied to
5204 * MdiClient.cs: Be smarter about removing and adding toolstripitems
5205 to the implicitly merged menu. Every time we clicked the form, items
5206 were getting removed and the re-added, causing the form to jump around
5207 as the menu resized.
5209 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
5211 * MdiClient.cs: Make sure the NormalBounds always gets set. It
5212 was being reset by the implicit menu merge for menustrips.
5215 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
5217 * Form.cs: Don't do the previous change when WindowState = Normal,
5218 or it messes up where the window is placed. Fixes test failure.
5220 2008-02-07 Jonathan Pobst <monkey@jpobst.com>
5222 * Form.cs: When becoming visible, if we are an MDI child, call
5223 SetWindowState with a dummy old_state so that changes will actually
5225 [Fixes the 2nd part of bug #325473]
5227 2008-02-07 Andreia Gaita <avidigal@novell.com>
5229 * Control.cs: Reset properties to their pre parent-change values in case
5230 the new parent == null (in which case we're basically removing the control,
5231 and don't want any events fired due to fake property changes)
5234 2008-02-06 Ivan N. Zlatev <contact@i-nz.net>
5236 * PropertyGridView.cs:
5237 - Refactor SetValue to allow setting the value
5238 when a custom editor is used, but the entry is not editable.
5239 - Remove the custom editor control on CloseDropDown.
5242 2008-02-06 Andreia Gaita <avidigal@novell.com>
5244 * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
5245 reflection only on 1.1, this property is public on system.drawing on 2.0.
5248 2008-02-06 Andreia Gaita <avidigal@novell.com>
5250 * WebBrowser.cs: Do a normal page refresh by default.
5252 2008-02-05 Andreia Gaita <avidigal@novell.com>
5254 * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create
5255 the window so that the check on Control.UpdateZOrderOfChild passes on non-X
5256 platforms. Fixes #359036
5258 Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on
5259 platform-specific flags.
5261 2008-02-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5263 * Binding.cs: Add 2.0 BindableComponent property - just return control
5266 2008-02-05 Everaldo Canuto <ecanuto@novell.com>
5268 * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
5269 Jonathan for this patch. Fixes #358442.
5271 2008-02-05 Jonathan Pobst <monkey@jpobst.com>
5273 * Form.cs: If we change the active MDI child form, let the others
5274 know they need to repaint their title bar so it will appear inactive.
5275 [Fixes part 1 of bug #325473]
5277 2008-02-05 Ivan N. Zlatev <contact@i-nz.net>
5279 * PropertyGridView.cs: Do not trucate custom editors' width
5280 and align them to the left.
5281 [Fixes #358353 and #358349]
5283 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5285 * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
5286 Also fix the arguments passed to CollectionChangeEventArgs in the
5289 2008-02-04 Geoff Norton <gnorton@novell.com>
5291 * Hwnd.cs: The conversion to Quartz coordinates happens in
5292 System.Drawing. Removing this translation from here.
5294 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
5296 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
5297 CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
5298 GridItemCollection.cs:
5299 PropertyGrid rewrite part 2. Tons of bugfixes and new features.
5301 2008-02-04 Geoff Norton <gnorton@novell.com>
5303 * X11Keyboard.cs: VK_MENU should send a KEYUP instead of
5304 SYSKEYUP if any other key has been pressed in the mean time.
5307 2008-02-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5309 * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
5310 when the item in current position is different than 0. Also, save the
5311 item index in the beginning of the operation, instead of getting the
5312 index of the item when the event is actually performed. Lastly clean
5313 the related fields in ItemsMouseUp if the ItemDrag operation wasn't
5317 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
5319 * Form.cs: Alt-Minus for MDI children system menu should work
5320 with both the minus keys on the keyboard.
5323 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
5325 * Control.cs: Don't invalidate on region change. The WM should
5326 take care of this automagically. Keeps us out of an infinite
5327 paint loop if someone changes the Region in the OnPaint.
5330 2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
5332 * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
5334 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
5336 * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
5337 down the MonthCalendar only on F4, not Alt+F4.
5338 * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
5341 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
5343 * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
5344 if its part of a DateTimePicker, else, use the back color.
5347 2008-02-03 Jonathan Pobst <monkey@jpobst.com>
5349 * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
5352 2008-02-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5354 * CurrencyManager.cs: When we get a ListChanged event from our source,
5355 always fire our own ListChanged event, as .Net does.
5357 2008-02-03 Luke Page <luke.a.page@gmail.com>
5359 * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
5362 2008-02-03 Luke Page <luke.a.page@gmail.com>
5364 * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
5365 property. Removed if for richtext property that was always true.
5366 PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
5368 2008-02-03 Luke Page <luke.a.page@gmail.com>
5370 * TextBoxBase.cs - commited patch from James Purcell that
5371 correctly sets the FixedHeight control style when the MultiLine
5372 property is changed on a TextBox control. Fixes bug 358229.
5374 2008-02-02 Luke Page <luke.a.page@gmail.com>
5376 * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
5377 Fixes bug 351938 - caret is positioned correctly when drawn
5378 and when calculating textual position of caret, no longer
5379 has a NRE in certain situations.
5381 2008-02-01 Geoff Norton <gnorton@novell.com>
5383 * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
5384 get that region removed from the paint event.
5385 * XplatUICarbon.cs: Remove the window mapping after disposing of
5386 window. Prevents a crash with handle reuse. Optimize exposes
5387 only onto visible windows (rare; but possible).
5389 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
5391 * UpDownBase.cs: Make sure the internal textbox calls the base's
5392 OnMouseDown and OnMouseUp so the textbox will function correctly.
5393 There were notes saying it doesn't chain up, but its an internal
5394 class, so our implementation may differ.
5397 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
5399 * ListBox.cs: Fix a logic error and don't process MouseDown
5400 for mouse buttons other than Left.
5402 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
5404 * Control.cs: Remove HeightInternal.
5405 * ListBox.cs: Commit patch from James Purcell that correctly
5406 calculates heights for ListBoxen.
5409 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
5411 * Label.cs: Apply patch from James Purcell that corrects the
5412 signature of the AutoSize property.
5415 2008-02-01 Jonathan Pobst <monkey@jpobst.com>
5417 * ListBox.cs: Don't throw [Mouse]Click events for buttons
5418 other than the left mouse button.
5420 2008-01-31 Jonathan Pobst <monkey@jpobst.com>
5422 * Control.cs: Remove my awesome optimization as it caused some
5423 regressions with control ordering. :(
5426 2008-01-31 Ivan N. Zlatev <contact@i-nz.net>
5428 * PropertyGridView.cs: Fix a NRE on double click when there is no
5431 2008-01-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5433 * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
5435 2008-01-30 Jonathan Pobst <monkey@jpobst.com>
5437 * ListBox.cs: Call MouseClick and MouseDoubleClick.
5440 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
5442 * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
5443 * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
5444 instead of Hwnd.bmp_g.
5446 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
5448 * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
5449 Use the Hwnd one instead.
5451 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
5453 * Form.cs: Remove duplicated copy of GetAutoScaleSize.
5455 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
5457 * Form.cs: corcompare for RestoreBounds.
5459 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
5461 * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
5463 2008-01-29 Jonathan Pobst <monkey@jpobst.com>
5465 * Form.cs: Handle Alt-Minus for MDI children forms.
5466 * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
5467 Add mnemonics to the control menu.
5470 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5472 * Binding.cs: Initial implementation bits of FormattingEnabled
5473 property and BindingComplete event (2.0).
5474 * BindingCompleteEventArgs.cs: Internal methods for setting error text
5477 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
5479 * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
5480 table.Location. [Fixes bug #354672]
5482 2008-01-28 Jonathan Pobst <monkey@jpobst.com>
5484 * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
5485 ResizeBegin and ResizeEnd. [Fixes bug #346529 for win32]
5487 2008-01-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5489 * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
5490 of doing all the re-bound work, just invalidate and call SetControlText
5491 to set the updated text of selected item to our textbox.
5494 2008-01-28 Andreia Gaita <avidigal@novell.com>
5496 * HtmlWindow.cs: Add event handler support. Add Document, Frames,
5497 IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
5498 missing properties and methods. Add Load, Unload, Error, GotFocus,
5499 LostFocus, Resize, Scroll events (only load and unload are connected)
5501 2008-01-27 Gert Driesen <drieseng@users.sourceforge.net>
5503 * AccessibleObject.cs: Modified argument names to match MS.
5504 * Button.cs: Modified argument names to match MS.
5505 * BindingContext.cs: Modified argument names to match MS.
5506 * BindingMemberInfo.cs: Modified argument names to match MS.
5507 * ButtonBase.cs: Modified argument names to match MS.
5508 * ComboBox.cs: Modified argument names to match MS.
5509 * Control.cs: Modified argument names to match MS.
5510 * CheckedListBox.cs: Modified argument names to match MS.
5511 * CommonDialog.cs: Modified argument names to match MS.
5512 * DataGrid.cs: Modified argument names to match MS.
5513 * CursorConverter.cs: Modified argument names to match MS.
5514 * ControlPaint.cs: Modified argument names to match MS.
5515 * CheckBox.cs: Modified argument names to match MS.
5516 * ControlBindingsCollection.cs: Modified argument names to match MS.
5517 * BindingSource.cs: Modified argument names to match MS.
5518 * DataFormats.cs: Modified argument names to match MS.
5519 * ContainerControl.cs: Modified argument names to match MS.
5520 * CurrencyManager.cs: Modified argument names to match MS.
5521 * Application.cs: Modified argument names to match MS.
5522 * ContextMenuStrip.cs: Modified argument names to match MS.
5523 * ContextMenu.cs: Modified argument names to match MS.
5524 * BindingManagerBase.cs: Modified argument names to match MS.
5525 * WindowsFormsSection.cs: Fixed line ending.
5527 2008-01-27 Andreia Gaita <avidigal@novell.com>
5529 * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
5530 detecting that the dropdown toolwindow is hidden. EndLoop outside the
5533 2008-01-26 Gert Driesen <drieseng@users.sourceforge.net>
5535 * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
5536 MS. Code formatting.
5538 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5540 * Binding.cs: Don't avoid the Format event if the control
5541 property type is object. Also, if the value retrieved by
5542 the data source is null _and_ the control proeprty type
5543 is object, return Convert.DBNull (match .Net).
5544 Fixes part of #324286.
5546 2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5548 * ListControl.cs: Since we are getting two BinginContextChanged events
5549 for the same binding context instance (when the control is added to
5550 form, and when the form is actually shown), take it into account only the
5551 first time for a given binding context instance.
5552 Fixes part of #324286.
5554 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
5556 * PropertryGridView.cs: Ops.
5558 2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
5560 * PropertyGridView.cs: Close dropdown form if the owner form is
5564 2008-01-25 Ivan N. Zlatev <contact@i-nz.net>
5566 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs,
5567 RootGridEntry.cs, CategoryGridEntry.cs:
5568 PropertyGrid rewrite.
5569 - Rewrite all of the control logic in PropertyGrid.
5570 - Rewrite all of the ComponentModel logic in GridEntry.
5571 - Rewrite all UI work in PropertyGridView.
5572 - Many bugfixes, etc.
5574 2008-01-24 Jonathan Pobst <monkey@jpobst.com>
5576 * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
5577 when all contained controls are autosize or dock-fill. Also take into
5578 account when the total percentage of column/row sizes is not 100%.
5581 2008-01-24 Andreia Gaita <avidigal@novell.com>
5584 - Save a reference to the IDocument in the instance and
5585 use that one instead of going to WebHost.Document; the document that the
5586 WebHost returns might not be the right one (in case of frames).
5587 - Use the hashcode returned from the IDocument interface.
5588 - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie,
5589 Domain (setter is not supported), Encoding, ForeColor, Forms, Images,
5590 LinkColor, Url, VisitedColor, Window
5593 - Implemented: CanHaveChildren, Children, Document, GetAttribute,
5594 set_Attribute, NextSibling, Parent, TagName, AppendChild,
5595 GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
5596 SetAttribute, Equals, equality operators.
5597 - Added stubs for: AttachEventHandler, DetachEventHandler, Focus,
5598 InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView,
5600 * HtmlElementCollection.cs: Change implementation to use a generic
5601 collection. Implemented Enumerator and CopyTo
5603 * HtmlHistory.cs: Add constructor, no implementation yet.
5605 * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
5606 Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode,
5607 Equals, equality operators.
5609 * HtmlWindowCollection.cs: Implemented.
5611 * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
5612 has been deprecated).
5614 * WebBrowserBase.cs: Use Completed event to track document loading
5615 (Navigated has been deprecated)
5617 2008-01-24 Jonatham Pobst <monkey@jpobst.com>
5619 * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems. Top
5620 level MenuItems do not respect tabs.
5623 2008-01-23 Geoff Norton <gnorton@novell.com>
5625 * XplatUICarbon.cs: Ensure that windows are created in their initial
5626 FormWindowState. Finished fixing Fullscreen windows on Carbon
5628 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
5630 * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
5631 be used as grab_control. Also save status of capture before show ContextMenu
5632 and restore it after close.
5634 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
5636 * Control.cs: Internal FindRootParent method added to return high control
5639 2008-01-23 Geoff Norton <gnorton@novell.com>
5641 * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
5642 * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
5643 it work again. Handle HITTEST events.
5645 2008-01-23 Geoff Norton <gnorton@novell.com>
5647 * XplatUICarbon.cs: Ensure that we always have a host window. Prevents
5648 a crash in certain cases. Support for fullscreen windows in certain cases.
5650 2008-01-23 Jonathan Pobst <monkey@jpobst.com>
5652 * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
5655 2008-01-23 Geoff Norton <gnorton@novell.com>
5657 * XplatUICarbon.cs: Remove some dead code that was causing warnings.
5659 2008-01-23 Geoff Norton <gnorton@novell.com>
5661 * XplatUICarbon.cs: Re-enabled Carets in QuickDraw as a overlay window.
5663 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
5665 * SplitContainer.cs: Remove unused declarations.
5666 * Binding.cs: Remove unused declarations.
5668 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
5670 * Form.cs: Remove unused declaration of 'active' in Activate method.
5671 * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to
5672 prevent compilation warnings.
5673 * TextControl.cs: Remove unused declaration of selection_pos_on_line.
5674 * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
5675 * Bindings.cs: Remove unused formatting_enabled declaration.
5676 * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation
5678 * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation
5680 * PropertyGridView.cs: Remove usused 'ex' declaration.
5681 * DataGridView.cs: Remove unused declarations.
5683 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
5685 [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
5687 * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved
5688 to Control class, it makes possible to grab menu to controls that can't
5689 reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
5690 WmMouseMove removed since it was used only to track menu events.
5693 - Moved all active_tracker stuff from Form.
5694 - ProcessActiveTracker added to prevent code duplicity, now mouse events
5695 can call this method instead of reimplement all necessary code handle for
5697 - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
5701 - Remove special handle to ToolStripOverflow, now we can grab menu to
5702 controls that can't reach Form using parent tree.
5703 - Change type of grab_control from Form to Control.
5705 2008-01-22 Geoff Norton <gnorton@novell.com>
5707 * TextBoxBase.cs: Split up the sizing of controls and placing of
5708 controls. Fixes a bug where scrollbars in Reflector could be sized
5709 wrong and have non-working thumbers.
5711 2008-01-23 Geoff Norton <gnorton@novell.com>
5713 * XplatUI.cs: Refactor environment variables to default support to the
5714 Carbon driver on the Mac.
5716 2008-01-23 Everaldo Canuto <ecanuto@novell.com>
5718 * Label.cs: Uses new LabelPainter for drawing operations.
5719 * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
5720 * Theme.cs: DrawLabel and LabelDefaultSize removed.
5722 2008-01-22 Geoff Norton <gnorton@novell.com>
5724 * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
5726 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
5728 * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
5729 through the normal flat button code and don't draw the checkbox glyph.
5730 * Theme.cs: Button->ButtonBase signature change.
5733 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
5735 * LinkLabel.cs: Uses new class LinkLabelPainter.
5737 2008-01-22 Everaldo Canuto <ecanuto@novell.com>
5739 * MessageBox.cs: Adjust right border space, we don't need to add
5740 "space_border*2" two times.
5742 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
5744 * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
5745 becomes a wrapper around Padding.
5746 [Fixes a part of bug #354676]
5748 2008-01-22 Geoff Norton <gnorton@novell.com>
5750 * Mime.cs: Avoid a needles exception on OSX if we dont have a buffer
5751 acquired. Also ensure the buffer is large enough to grab the header
5752 we need on linux boxes.
5754 2008-01-22 Jonathan Pobst <monkey@jpobst.com>
5756 * Control.cs: Implement a custom enumerator so people can delete
5757 from the Controls collection while in a foreach.
5760 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
5762 * PropertyGridView.cs: Fix focusing behavior:
5763 - Tab should focus the grid text box.
5764 - Clicking on the labels shouldn't focus the grid text box.
5766 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
5768 * PropertyGridView.cs: IsValueTypeGridItem should return true
5771 2008-01-22 Ivan N. Zlatev <contact@i-nz.net>
5773 * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
5774 - Renamed GridEntry.SelectedObjects to TargetObjects to better
5775 reflect the property name role.
5776 - PropertyGrid.GetTarget is not required as the target is known
5778 - Setting values will handle value types as a special case now and
5779 populate them up in the chain.
5782 2008-01-21 Jonathan Pobst <monkey@jpobst.com>
5784 * Hwnd.cs: Create a public property for the Graphics we keep around.
5786 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
5788 * PropertyGridView.cs: Just hide the grid textbox and do nothing more
5789 when the current object selection changes.
5790 Fixes failing test SelectedObject_Null2.B5.
5792 2008-01-21 Ivan N. Zlatev <contact@i-nz.net>
5794 * PropertyGrid.cs: Process Browsable properties with
5795 DesignerSerializationVisibilityAttribute.Content as being expandable.
5796 This seems also what MS does. Without this e.g SplitContainer.Panel1/2
5797 will not be expandable. We should be nested components-friendly now.
5799 2008-01-21 Andreia Gaita <avidigal@novell.com>
5801 * WebBrowserBase.cs: Check if control was loaded properly,
5802 don't bind if it wasn't.
5804 * HtmlDocument.cs: Implement CreateElement, Equals, Focus,
5805 GetElementFromPoint, equality operators, OpenNew, Write.
5806 Remove extra set_Body
5808 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
5810 * ContainerControl.cs, Control.cs: Apply patch from James Purcell
5811 that makes our AutoScale* stuff more tolerant to different orders
5812 of being set. [Fixes bug #354669]
5814 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
5816 * PropertyGridView.cs, PropertyGridTextBox.cs:
5817 Drop WM_LBUTTONDOWN msg sending and use focusing instead.
5818 [Fixes #339005 and #348209]
5820 2008-01-18 Ivan N. Zlatev <contact@i-nz.net>
5822 * PropertyGridView.cs: Hide the grid text box before adjusting it
5823 for the newly selected GridItem.
5826 2008-01-18 Jonathan Pobst <monkey@jpobst.com>
5828 * Form.cs: Give MDI children the opportunity to cancel the parent form
5829 attempting to close. Ensure that all [Form]Clos[ing,ed] events get called
5830 properly for both the parent and child.
5831 * Application.cs: Signature of internal method changed, pass the previous
5835 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
5837 * PropertyGridView.cs: Set the property value only if it has changed.
5840 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
5842 * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
5843 If the mouse hasn't actually moved, ignore these messages so the currently
5844 highlighted menuitem isn't reset to the one under the mouse.
5847 2008-01-17 Ivan N. Zlatev <contact@i-nz.net>
5849 * PropertyGridView.cs: When the property changes Invalidate the GridItem
5850 in order for the properties with UITypeEditor.GetPaintValueSupported == true
5851 to reflect the change visually.
5854 2008-01-17 Jonathan Pobst <monkey@jpobst.com>
5856 * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
5857 to 2.0 button drawing.
5858 * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw
5859 the button text is tall enough for one line. LineLimit says it will
5860 always draw at least one line, but it is a lie.
5863 2008-01-17 Atsushi Enomoto <atsushi@ximian.com>
5865 * XplatUIStructs.cs, X11Keyboard.cs :
5866 added some more VK_* keys to be handled.
5868 2008-01-16 Andreia Gaita <avidigal@novell.com>
5870 * Control.cs: Check if there is a container before setting or getting
5871 the validation flag.
5873 2008-01-16 Andreia Gaita <avidigal@novell.com>
5875 * ContainerControl.cs: Add flag to track if a control cancels validation,
5876 so we don't fire click events.
5879 - (HandleClick) Check if validation was cancelled before firing the click
5880 events (doubleclicks are fired, but not clicks)
5881 - (WmLButtonDown) Reset validation flag. The flag is normally reset on
5882 ContainerControl.set_ActiveControl, but in the case of non-selectable
5883 controls, like a Label, activecontrol is not set.
5885 * ButtonBase.cs: Only fire clicks if validation passes.
5889 2008-01-16 Geoff Norton <gnorton@novell.com>
5891 * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
5894 2008-01-16 Jonathan Pobst <monkey@jpobst.com>
5896 * FolderBrowserDialog.cs: If we cannot interpret the user's requested
5897 SelectedPath, just display the default dialog instead of crashing.
5900 2008-01-16 Geoff Norton <gnorton@novell.com>
5902 * XplatUICarbon.cs: Flicker be gone! Generate our messages in
5903 AddExpose instead of trusting apples compositing manager which doesn't
5904 work for our use case. Remove some dead code causing warnings and
5905 redecorate some other code to prevent warnings.
5907 2008-01-16 Geoff Norton <gnorton@novell.com>
5909 * XplatUICarbon.cs: Avoid some unecessary invalidation calls when
5910 carbon signals us to redraw. Fixes another portion of the flickering bug
5912 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
5914 * Form.cs: Prevent the MdiParent property to be set when value is the same
5915 as value already set. Fixes bug #328019.
5917 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
5919 * Form.cs: Don't set mdi_parent as null when mdi window close is prevented,
5920 it prevents NRE when closing mdi child windows. Fixes bug #325211.
5922 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
5924 * InternalWindowManager.cs: Invalidade close button after mouse up when
5925 mdi form is prevented to close.
5927 2008-01-16 Everaldo Canuto <ecanuto@novell.com>
5929 * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
5930 thanks to Andy Hume. Fixes bug #325433.
5932 2008-01-16 Andreia Gaita <avidigal@novell.com>
5934 * LinkLabel.cs: Reset focused_index when resellecting the control.
5937 2008-01-15 Geoff Norton <gnorton@novell.com>
5939 * XplatUICarbon.cs: Rework Grab/Ungrab handling to send some needed
5942 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
5944 * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
5947 2008-01-15 Jonathan Pobst <monkey@jpobst.com>
5949 * ContainerControl.cs: Setting AutoScaleMode to anything should set
5950 Form.AutoScale to false.
5951 * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
5952 AutoScaleBaseSize should be changed on Font change unless it has been
5956 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
5958 * MenuAPI.cs: On instance of MenuTracker check if source control is
5959 ToolStripOverflow and use properly method to find form.
5962 2008-01-15 Everaldo Canuto <ecanuto@novell.com>
5964 [Fixes bug #323241 Transparent toolbar support]
5966 * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
5969 * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
5970 defined in control style to mimic win32 behavior.
5972 * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar,
5973 it will be transparent.
5975 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
5977 * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
5978 CreateParams for ToolBar controls.
5980 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
5982 * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
5983 FixedToolWindow, SizeableToolWindow, or None for border styles have
5984 different minimum sizes than regular forms. Implemented to fix
5985 regression in PDN with toolbox being too wide.
5987 2008-01-14 Andreia Gaita <avidigal@novell.com>
5989 * HtmlElementCollection.cs: Implemented
5991 * HtmlElement.cs: Implemented:
5999 * HtmlDocument.cs: Implemented GetElementsByTagName.
6001 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
6003 * Screen.cs: Stub BitsPerPixel to always return 32.
6005 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
6007 * Form.cs: Implement RestoreBounds.
6009 2008-01-14 Jonathan Pobst <monkey@jpobst.com>
6011 * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
6012 Sebastien and his fabulous magical problem-finding machine:
6013 Gendarme. Also put a MonoTodo on AutoWordSelect since we don't
6014 respect the value set.
6016 2008-01-14 Everaldo Canuto <ecanuto@novell.com>
6018 * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
6019 minimized. Fixes bug #325122 for Win32. Thanks Srikanth Madikeri.
6021 2008-01-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6023 * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
6024 messages (to match .Net), we need to remove the capture ourselves.
6026 2008-01-11 Jonathan Pobst <monkey@jpobst.com>
6028 * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
6029 will process the message and close our window.
6032 2008-01-10 Geoff Norton <gnorton@novell.com>
6034 * XplatUICarbon.cs: Clip the Graphics context to the invalid area
6035 tracked in the Hwnd. Only invalidate the dirty region to the Carbon
6038 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
6040 * Form.cs: Enforce the Form minimum size in SetBoundsCore. Fixed
6043 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
6045 * XplatUIX11.cs: Set a minimum window size and enforce it. Even though
6046 Linux doesn't care, having a minimum matches MS and keeps the window
6047 from becoming too small to use window decorations.
6050 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
6052 * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
6053 ShowFocusCues. Make focus rectangles fit the text instead of the whole
6054 control. [Fixes bug #325419]
6056 2008-01-10 Jonathan Pobst <monkey@jpobst.com>
6058 * ComboBox.cs: Guard against an NRE if the user open a new form from a
6059 SelectedIndexChanged event. This closes the combobox dropdown, and we
6060 were trying to dispose it. [Fixes bug #352830]
6062 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
6064 * Control.cs, Form.cs: Implement the necessary semantics for
6065 ShowFocusCues. All paint code will need to check Control.ShowFocusCues
6066 to determine if a focus rectangle should be drawn.
6067 * PropertyGrid.cs: Fix property visibility to match override.
6068 * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
6070 2008-01-09 Jonathan Pobst <monkey@jpobst.com>
6072 * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
6075 2008-01-09 Geoff Norton <gnorton@novell.com>
6077 * XplatUICarbon.cs: Scroll windows in the correct direction.
6079 2008-01-09 Geoff Norton <gnorton@novell.com>
6081 * XplatUICarbon.cs: Track all created utility windows so we can hide them
6082 when the app is deactivated or spaces is enabled.
6084 2008-01-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6086 * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
6087 extra separation pixel for the label rect origin if SmallImageList is
6088 null, and thus we don't need that separation between icon and label
6090 Patch by Ernesto Carrea.
6093 2008-01-08 Jonathan Pobst <monkey@jpobst.com>
6095 * StatusStrip.cs: Invalidate after completing a layout. The base
6096 OnLayout does this, but we don't call the base.
6097 * ToolStripItem.cs: Revert the previous change to invalidate after
6099 [Fixes bug #351341 better.]
6101 2008-01-07 Geoff Norton <gnorton@novell.com>
6103 * XplatUICarbon.cs: WM_DESTROY is a teardown of a single window
6104 not a notification to exit the application. Listen for WM_QUIT
6107 2008-01-07 Andreia Gaita <avidigal@novell.com>
6109 * HtmlDocument.cs: Fix case on GetElementById (interface changed)
6111 2008-01-07 Jonathan Pobst <monkey@jpobst.com>
6113 * ToolStripItem.cs: If the bounds of an item changes, invalidate it
6114 so it can repaint at the correct location.
6117 2008-01-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6119 * ListControl.cs: SelectedValue should return a null value if
6120 SelectedIndex is -1. Also, when setting it, it should throw an
6121 ArgumentNullException if the value is null, as well as taking
6122 into account the String.Empty value, instead of ignoring it (we have
6123 tests for that now).
6124 Fixes part of #324286.
6126 2008-01-06 Jonathan Pobst <monkey@jpobst.com>
6128 * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
6129 SelectionStart is updated after pressing enter. Fixes bug #351918.
6131 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
6133 * TextControl.cs: Revert a piece r92316 that prevented the fix
6134 from working when there were multiple tags in the text box.
6137 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
6139 * TextControl.cs: Apply patch from Luke Page that prevents an
6140 NRE when determining the beginning of a paragraph.
6143 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
6145 * TextBoxBase.cs: Apply patch from Luke Page that ensures the
6146 caret gets moved with clicking away from a selected block of
6147 text. Fixes bug #351885.
6149 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
6151 * TextControl.cs: Apply patch from Luke Page that takes line
6152 alignment into account for mouse selection, so that center and
6153 right aligned text can be selected.
6156 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
6158 * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
6159 issues after loading an RTF file by using the correct line feeds.
6162 2008-01-05 Jonathan Pobst <monkey@jpobst.com>
6164 * TextControl.cs: When deleting multiple line selections, we need
6165 to invalidate every line beginning at the first line of the selection.
6166 Patch from Luke Page fixes bug #351791.
6168 2008-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6170 * ListControl.cs: When getting a CurrencyManager.PositionChanged
6171 event, don't set SelectedIndex if the number of items is 1. This is
6172 because, for the first item, PositionChanged is fired _before_
6173 ItemChanged (the place where we actually populate the items), and
6174 leave us in a temporary invalid state (since items collection is
6178 2008-01-04 Geoff Norton <gnorton@novell.com>
6180 * XplatUICarbon.cs: Create native toolwindows instead of
6181 the managed drawing ones.
6183 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
6185 * LineTag.cs: If the line doesn't have any characters, return
6186 0 for GetCharIndex. Fixes an AOORE exception after certain
6187 caret movements. Fixes bug #351683. Patch by Luke Page.
6189 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
6191 * TextBoxBase.cs: Apply patch from Luke Page so when backspace
6192 is hit when there is selected text, only the selected text gets
6193 deleted, not the character in front of the selection as well.
6196 2008-01-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6198 * ComboBox.cs: When the values are displayed, calculate the
6199 ComboListBox scrollbar's LargeChange based on the visible area's
6200 height and the actuall ItemHeight, instead of calculating it
6201 based on MaxDropItems value, since it's not used by our _current_
6205 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
6207 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
6208 Patch from Luke Page that fixes issues with font colors and styles
6209 not showing up in a readonly RichTextBox. Fixes bug #324354.
6211 2008-01-03 Jonathan Pobst <monkey@jpobst.com>
6213 * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
6214 from Luke Page. This one fixes bug #349926.
6216 2007-12-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6218 * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
6219 an item in the IBindingList source changes with
6220 ListChangedType.ItemAdded. Ignore for now firing the event for other
6221 changes, since we want to have tests for those cases as well.
6223 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
6225 * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
6228 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
6230 * TextBoxTextRenderer.cs: Implement a cache for measuring each
6231 character. This is effective because the typical usage of a
6232 TextBox is with a limited amount of fonts and characters, and
6233 the current implementation of TextBox measures everything one
6234 character at a time. Another second or two speedup for bug #347238.
6236 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
6238 * Control.cs: Rewrite the Font getter to only query the parent's
6239 Font property once instead of twice. Since this operation is
6240 recursive, the queries were growing exponentially as the control
6241 tree got deeper. Another second or two speedup for bug #347238.
6243 2007-12-28 Jonathan Pobst <monkey@jpobst.com>
6245 * Control.cs: Avoid setting a parent (and more importantly, updating
6246 the zorder of all its children) if the parent is already correct in
6247 WmShowWindow. Decreases the startup time of the test case on bug
6248 #347238 from 35 seconds to 11 seconds.
6250 2007-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6252 * X11Dnd.cs: When the dnd operation has started and we are
6253 in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
6254 This is done to match .Net, which doesn't send those messages after
6255 dnd operation was completed/cancelled.
6258 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
6260 * ToolStrip.cs: Previous change should be != null, not == null.
6263 2007-12-27 Jonathan Pobst <monkey@jpobst.com>
6265 * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
6266 user may have moved the mouse off the current item during the event.
6268 2007-12-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6270 * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
6271 calling GetItemAt for every MouseMove event by also taking into
6272 account whether any mouse button is pressed (probably dragging);
6273 if so, we can call GetItemAt, and if not, try to not call it
6274 (GetItemAt can be quite expensive when used with a large number of items).
6276 2007-12-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6278 * ListView.cs: Implement -finally- support for dnd, by calling
6279 OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
6281 * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
6282 simple calculation of distances for all the items in the owner
6285 2007-12-21 Geoff Norton <gnorton@novell.com>
6287 * XplatUICarbon.cs: Ensure that we create WindowMapping handles
6288 for windows that are originally created as invisible. Fixes missing
6289 main window in paint-mono.
6291 2007-12-21 Geoff Norton <gnorton@novell.com>
6293 * XplatUICarbon.cs: Register our D&D handler. Register our custom
6294 subclass handler for com.novell.mwfview subclassing HIView. Implement
6295 Pasteboard and Dnd methods.
6297 2007-12-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6299 * ListBox.cs: When we got focus, give focus to first item if there
6300 wasn't any pervious focused item. Also update navigation to depend on
6301 SelectedIndex rather than FocusedItem, just as .Net does.
6304 2007-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6306 * ListBox.cs: Both FindString and FindStringExact methods must do an
6307 case insensitive search, should allow the last valid index to be
6308 passed in the overload taking an initial index, and should also
6309 continue searching from the top back to the specified index when it
6312 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
6314 * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
6315 redraw issue, and allows RichTextBox to draw colored text even while
6316 disabled or readonly.
6318 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
6320 * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
6321 disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
6322 and doesn't grey text in a disabled RichTextBox.
6324 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
6326 * RichTextBox.cs: Apply patch from Luke Page that adds better support
6327 for many RTF commands: quad alignment, separate formatting for blocks
6328 inside groups, and ParDef support. Makes the test case from bug #324589
6331 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
6333 * LineTag.cs: Fix an error in the new Draw method that caused
6334 a crash when rendering the document on bug #324589.
6336 2007-12-19 Jonathan Pobst <monkey@jpobst.com>
6338 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
6339 TextControl.cs: Apply patch from Luke Page that adds support
6340 for URL links in RichTextBox.
6341 [Fixes enhancement #342516]
6343 2007-12-18 Everaldo Canuto <ecanuto@novell.com>
6345 * MenuItem.cs: When cloning menuitem clone also name and tag properties for
6346 2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
6348 2007-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6350 * ListBox.cs: When a key gets pressed, try to find a string
6351 if the key is a character or a digit.
6354 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
6356 * TableLayoutPanel.cs: Remove some unused variables.
6358 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
6360 * DateTimePicker.cs: Commit patch from Luke Page that ensures
6361 we don't end up at an invalid date when we click the up/down
6362 spinner to change the month or year. Fixes bug #348682.
6364 2007-12-17 Jonathan Pobst <monkey@jpobst.com>
6366 * Application.cs: Calling Exit in 2.0 should chain to the
6367 Exit (CancelEventArgs) version so it can be cancelled.
6368 * Form.cs: Create a flag to allow raising the Closing
6369 events to be skipped. We raise them once in Application.Exit
6370 and don't want to raise them again when the Form is actually
6371 closed. [Fixes bug #349073]
6373 2007-12-16 Jonathan Pobst <monkey@jpobst.com>
6375 * ToolStripDropDown.cs: Guard against an NRE when there
6376 hasn't been a mainform set in the application context.
6379 2007-12-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6381 * ListBox.cs: When SetBoundsCore gets called, besides
6382 calling UpdateScrollBars, update the value of
6383 last_visible_index, since we could need to show more items
6384 than before, and we need to let the paint routines know that.
6387 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6389 * ListView.cs: Add DesignerSerializationVisibility attribute to
6390 InsertionMark property.
6391 * ListViewItem.cs: Add same attribute to Position property.
6393 2007-12-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6395 * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
6398 2007-12-14 Jonathan Pobst <monkey@jpobst.com>
6400 * ThemeWin32Classic.cs: Don't draw the background on a
6401 flat button if there is a background image.
6404 2007-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6406 * ListBox.cs: If we remove the item currently selected,
6407 remove it not only from SelectedItems, but also
6408 resetting selected_index. Moreover, set focused_item to Items.Count - 1 if
6409 the items count decreased and focused_item has bigger value than that.
6411 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
6413 * Control.cs: Perform our layout after we resize ourselves
6414 if we had to adjust our AutoSize. Missed commit for bug
6417 2007-12-13 Jonathan Pobst <monkey@jpobst.com>
6419 * TableLayoutPanel.cs: Override GetPreferredSizeCore so
6420 we can provide an implementation of AutoSize.
6423 2007-12-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6425 * ListBox.cs: Add the internal overload Sort (bool paint),
6426 to indicate whether we actually need a paint or we will
6427 call Refresh ourselves. This way we don't request a paint
6428 _before_ having an updated and valid layout.
6431 2007-12-12 Andreia Gaita <avidigal@novell.com>
6433 * XPlatUIX11.cs: Send paint messages when updating a systray icon
6434 * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
6435 properly invalidated.
6438 2007-12-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6440 * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
6441 don't simply assign it to our internal group field, but instead
6442 use our Group property, which should do all the neccessary work
6443 required to support groups. Fixes an issue reported to me (mail) by a
6444 guy using this new feature.
6446 2007-12-11 Jonathan Pobst <monkey@jpobst.com>
6448 * Control.cs: Use Scale instead of ScaleControl to ensure the
6449 whole hierarchy gets scaled.
6452 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
6454 * DateTimePicker.cs: Don't set the internal MonthCalendar's
6455 Parent property. Doing this causes the control to be hosted by
6456 the Form instead of being a popup window.
6459 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
6461 * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
6462 at an index higher than Count, just use Add instead of Insert.
6465 2007-12-10 Jonathan Pobst <monkey@jpobst.com>
6467 * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
6468 DrawPictureBox, this is handled by Control.PaintBackground.
6471 2007-12-10 Everaldo Canuto <ecanuto@novell.com>
6473 * MenuAPI.cs: When process menu keys return true by default only if menu is
6474 active. Fixes bug #342892.
6476 2007-12-09 Andreia Gaita <avidigal@novell.com>
6478 * Control.cs: check if windows are actually mapped before
6479 trying to zorder. Fixes #342509, #346955
6481 2007-12-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6484 * ListViewInsertionMark.cs:
6485 * ThemeWin32Classic.cs: Implement the drawing side of the
6486 new 2.0 ListView.InsertionMark property.
6488 2007-12-07 Jonathan Pobst <monkey@jpobst.com>
6490 * CurrencyManager.cs: Silence some debug spew.
6492 2007-12-07 Geoff Norton <gnorton@novell.com>
6494 * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
6495 masks for our children as well as siblings to avoid having to query
6496 Quartz for this information.
6497 * XplatUICarbon.cs: Implement a delegate based system to pass
6498 information to System.Drawing. Implement Async methods. Remove
6499 the hack for the resize thumb and imlpement a transparent Grow Box.
6500 Rework the messaging system to proplery create window's and messages,
6503 2007-12-06 Andreia Gaita <avidigal@novell.com>
6505 * X11Keyboard.cs: Use Xutf8LookupString to support international
6506 characters under alternate codepages. Patch from #340878
6508 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6510 * ListView.cs: When doing layout computations, set position in the
6511 ListView instances (we cache the position just as .Net does).
6512 * ListViewItem.cs: New internal setter method for Position. Also set
6513 position field as also available in 1.1, since we are going to use it
6514 now in the common case.
6516 2007-12-06 Andreia Gaita <avidigal@novell.com>
6518 * Control.cs: When removing controls, get the actual container
6519 to notify about active control changes. Fixes 341314.
6521 2007-12-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6523 * ListViewItem.cs: Forgot to add Font to our serialization stuff.
6525 2007-12-05 Andreia Gaita <avidigal@novell.com>
6527 * Control.cs: When updating the zorder, ignore windows that are not
6528 mapped. Fixes #342509
6530 2007-12-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6532 * ListViewItem.cs: Actually implement serialization on this class.
6534 2007-12-05 Gert Driesen <drieseng@users.sourceforge.net>
6536 * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
6537 LinkCollection. Spaces to tabs, and removed extra tabs.
6539 2007-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
6541 * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
6542 tests to fail (hopefully).
6544 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
6546 * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
6547 the image margin so custom renderers can correctly place it.
6549 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
6551 * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
6552 so custom renderers can correctly place it.
6554 2007-12-03 Jonathan Pobst <monkey@jpobst.com>
6556 * Application.cs: Let WM_CHAR messages flow through to controls
6557 hosted in Strips. [Fixes bug #343972]
6559 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
6561 * ToolStripManager.cs: Guard against an NRE I ran into.
6563 2007-12-02 Jonathan Pobst <monkey@jpobst.com>
6565 * LinkLabel.cs: Apply patch from George to fix bug 344012. If
6566 a Link is manually added to the Links collection, we need to set
6567 its owner, so it can invalidate properly.
6570 2007-11-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6572 * ListView.cs: When changing ListViewItem.Position (which calls
6573 ListView.ChangeItemLocation), invalidate not only the area
6574 corresponding to the main item, but also to the area occupied
6575 by the items being moved.
6577 2007-11-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6579 * ListView.cs: When changing the position of a given item,
6580 don't use item bounds, but item areas (which includes the item spacing
6581 between them). Also, use first/last position if the requested
6582 position is outside bounds (as .Net does). Invalidate the previous and
6583 new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
6584 in a specific position, instead of directly accessing Items collection
6585 (this is done to get the right item - remember an Item can have a
6586 different position in the grid than in the Items collection).
6588 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
6590 * MessageBox.cs: Calculate text area instead of just top left, this rect
6591 area will be used in DrawString. Fixes bug #343364.
6593 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
6595 * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
6596 screen width. Partially fixes bug #343364.
6598 2007-11-23 Everaldo Canuto <ecanuto@novell.com>
6600 * NotifyIcon.cs: Remove duplicated code before call realculate and put this
6601 code inside recalculate, it makes code more simple.
6603 2007-11-22 Everaldo Canuto <ecanuto@novell.com>
6605 * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
6606 between update or add icon. Fixes bug #324344.
6608 2007-11-21 Andreia Gaita <avidigal@novell.com>
6610 * XPlatUIX11.cs: Do not treat tool windows as if they have no
6611 window manager, since that stretches the drawing area to include
6612 the window decorations, and they get hidden. Reverts r84444 and fixes
6613 #335849 and #342790 (mdi and pdn3 regression)
6615 2007-11-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6617 * ListView.cs: When setting focused item, try to give focus to the
6618 previous one _only_ if the previous one remains valid.
6621 2007-11-20 Jonathan Pobst <monkey@jpobst.com>
6623 * Application.cs: Revert r89650, as it broke a common case to fix
6624 an obscure case. Fixes bug #342606.
6626 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
6628 * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
6630 2007-11-20 Everaldo Canuto <ecanuto@novell.com>
6632 * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal
6633 alignment. [Fixes #324228]
6635 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
6637 * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
6640 2007-11-19 Everaldo Canuto <ecanuto@novell.com>
6642 * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
6643 it prevent problems when empty captions. [Fixes #342141]
6645 2007-11-19 Jonathan Pobst <monkey@jpobst.com>
6647 * Label.cs: Use Size instead of None. Fixes bug #342077.
6649 2007-11-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6651 * ListViewItem.cs: Implement 2.0 FindNearestItem method.
6653 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
6655 * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
6656 but there isn't a MdiContainer.
6659 2007-11-17 Jonathan Pobst <monkey@jpobst.com>
6661 * TextControl.cs: Don't recalculate document if the recalc_start and
6662 recalc_end hasn't changed.
6665 2007-11-17 Gert Driesen <drieseng@users.sourceforge.net>
6667 * DataGridViewTextBoxCell.cs: Removed CWL.
6669 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6671 * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
6673 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
6675 * TextControl.cs: Missed some code for bug 341534 to trigger a
6676 recalculation when the font changes.
6678 2007-11-16 Andreia Gaita <avidigal@novell.com>
6680 * Control.cs: When updating the zorder, check if the child to update is
6681 the same control that is set to always be on top (i.e., scrollbars), and
6682 just put it on top directly. Fixes BadMatch error on pdn3
6684 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6686 * ListView.cs: Throw the needed exceptions for FindNearestItem.
6688 2007-11-16 Jonathan Pobst <monkey@jpobst.com>
6690 * Control.cs: Don't perform a new layout when a label changes its text,
6691 cause label handles its own autosizing.
6694 2007-11-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6696 * ListView.cs: Implement 2.0 FindNearestItem methods.
6698 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
6700 * ToolStripPanel.cs: Make Join at least add the control to the panel,
6701 even if the rest of what Join does isn't supported. Add some more
6702 support for vertical toolbars.
6703 * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
6704 [Fixes the application breaking parts of bug #341998]
6706 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
6708 * ToolStripItem.cs: When determining if we have a check/image margin,
6709 we need to look at ShowCheckMargin as well as ShowImageMargin.
6711 2007-11-15 Geoff Norton <gnorton@novell.com>
6713 * XplatUIOSX.cs: Rename to...
6714 * XplatUICarbon.cs: and refactor all event handling out to the new event handling
6715 system in System.Windows.Forms.CarbonInternal. Lots of code cleanup as well.
6717 2007-11-15 Jonathan Pobst <monkey@jpobst.com>
6719 * KeysConverter.cs: The default values should be an array of Keys, not
6720 strings. Also, the array has more values for 2.0.
6723 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
6725 * Application.cs: Change ExecutablePath to use
6726 Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
6729 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
6731 * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
6732 When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
6733 * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
6734 be ignored. Create a new GetLineEnding that can specify which types of
6735 line endings to look for. On Insert, only create new lines for \n and \r\n.
6738 2007-11-14 Jonathan Pobst <monkey@jpobst.com>
6740 * TextBoxBase.cs: As we loop through each line changing the font, tell
6741 the document that the line needs to be recalculated. Fixes bug #341534.
6743 2007-11-13 Jonathan Pobst <monkey@jpobst.com>
6744 [Another round of refactoring]
6745 * Line.cs: Add DeleteCharacters.
6746 * LineTag.cs: Add Delete.
6747 * TextBoxBase.cs: Update to use new methods.
6748 * TextControl.cs: Refactor the Delete* methods.
6750 2007-11-13 Everaldo Canuto <ecanuto@novell.com>
6752 * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
6753 the patch. [Fixes #324856]
6755 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6758 * ListViewItem.cs: Add an initial implementation of
6759 2.0 ListViewItem.Position getter.
6761 2007-11-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6763 * ListView.cs: Add a reordered_items_indices array, to allow us
6764 to have a different sorting than that of Items (the sorting in Items
6765 could not match the actual sorting in screen). This is needed to
6766 implement a pair of 2.0 features.
6767 * ListViewItem.cs: Add a DisplayIndex property to keep track of the
6768 actual position in the ListView grid, since it could have a position
6769 different than its Index (position in ListViewItemCollection).
6771 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
6773 * Label.cs: Add StringFormatFlags.LineLimit. This tells DrawString to
6774 not draw partial lines.
6775 * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
6776 LineLimit flag from the base is preserved.
6777 Fixes the windows part of bug #338965.
6779 2007-11-09 Jonathan Pobst <monkey@jpobst.com>
6781 * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
6782 so that it can be canceled in KeyPress.
6785 2007-11-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6787 * ListView.cs: In ItemControl, reset mouse-handling related
6788 fields even if we dont' have items (we still should reset them when
6789 we had items but then called Items.Clear). Partially based in a patch
6793 2007-11-08 Gert Driesen <drieseng@users.sourceforge.net>
6795 * Application.cs: In ProductVersion first try AssemblyFileVersion
6796 before falling back to assembly version. Fixes bug #339787.
6798 2007-11-08 Andreia Gaita <avidigal@novell.com>
6800 * HtmlElement.cs: Implement InnerText setter.
6801 * WebBrowserBase.cs: Implement Navigated event support.
6802 Add flag to track when the browser "document" is ready to be retrieved.
6803 * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
6804 Make sure browser document is ready before retrieving it.
6805 Clean up cached objects (document) when moving to a new page through
6806 any of the navigation methods.
6807 Use the new Mono.WebBrowser.INavigation interface to control navigation.
6808 Implement OnNavigated event.
6810 2007-11-07 Jonathan Pobst <monkey@jpobst.com>
6812 * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
6813 DrawLinkLabel, this is handled by OnPaintBackground.
6814 Fixes bug #339565, part II.
6816 2007-11-07 Andreia Gaita <avidigal@novell.com>
6818 * Control.cs: Revert r88915. Selecting text on a textbox depends on
6819 getting a Select call on click, so this call needs to be here for now.
6822 2007-11-07 Geoff Norton <gnorton@novell.com>
6824 * OSXStructs.cs: Add the kEventClassApplication constants.
6825 * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the
6826 application is deactivated otherwise Menu overlays linger on top of
6827 other application windows.
6829 2007-11-07 Geoff Norton <gnorton@novell.com>
6831 * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
6832 dont support cursors yet anyways. This allows Reflector to run.
6834 2007-11-07 Geoff Norton <gnorton@novell.com>
6836 * XplatUIOSX.cs: Implement DragSize.
6838 2007-11-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6840 * ListView.cs: When we receive a WM_LBUTTONDOWN message in
6841 ItemControl, request the focus, as .Net does. This is needed after
6842 Control does not request focus anymore when it receives a
6845 2007-11-06 Jonathan Pobst <monkey@Jpobst.com>
6847 * Label.cs: Make DrawImage internal so it can be called from Theme code.
6848 Remove the DrawImage call from OnPaint.
6849 * LinkLabel.cs: Remove the DrawImage call from OnPaint.
6850 * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
6851 but before we draw the text for DrawLabel and DrawLinkLabel.
6854 2007-11-05 Andreia Gaita <avidigal@novell.com>
6856 * Control.cs: Remove select call on click. Fixes #325809
6858 2007-11-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6860 * ListViewItem.cs: Add 2.0 Position property getter.
6862 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6864 * ListView.cs: Add 2.0 BackgroundImageTiled property.
6865 Also, to make it work properly, change item's BackColor and
6866 BackgroundImageLayout as needed.
6867 * ThemeWin32Classic.cs: Don't fill any background rectangle
6868 in ListView.ItemControl when drawing items; just let the Control
6869 base implementation fill it.
6871 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6873 * ListViewGroup.cs: Adda TypeConverter attribute for this class,
6874 as well as adding a custom 'dummy' Converter, as .net does.
6876 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6878 * PropertyGridView.cs: When clicking drop-down button,
6879 select an index in the listbox only if our standard values collection
6880 has one or more items.
6882 2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6884 * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
6887 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
6889 * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
6890 the value is not changed. This ensure a pushed button remains in that
6891 state when clicked again. When switching the value of PropertySort
6892 between Categorized and CategorizedAlphabetical, do not update the
6893 grid items and do not fire a PropertyChangedEvent. When clicking the
6894 sorting buttons, do not modify the PropertySort value when switching
6895 between Categorized and CategorizedAlphabetical but only update the
6898 2007-11-04 Gert Driesen <drieseng@users.sourceforge.net>
6900 * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
6902 * PropertyGrid.cs: Also put Categorized button in pushed state when
6903 PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
6904 for help description label.
6906 2007-11-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6908 * ListView.cs: When calculating the biggest item for a given column,
6909 take into account 2.0 LIstViewItem.IndentCount, since it directly affects
6912 2007-11-03 Gert Driesen <drieseng@users.sourceforge.net>
6914 * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
6915 value for PropertySort on 1.0 profile. PropertySortChanged event
6916 should only be fired on 2.0 profile. Fixed NullReferenceException
6917 in UpdateSortLayout when PropertyGrid contains no items.
6919 2007-11-02 Jonathan Pobst <monkey@jpobst.com>
6921 * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
6924 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6926 * ListViewItem.cs: Implement 2.0 IndentCount property.
6928 2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6930 * X11Dnd.cs: When sending status in a dnd operation, compare current
6931 effect with the 'allowed' field instead of 'drag_data.Allowed', since
6932 the later is only created when a Winforms application is both the
6933 source and the target, but not when we are the target only.
6934 Fixes part of #324251.
6936 2007-11-01 Geoff Norton <gnorton@novell.com>
6938 * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
6940 * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling
6941 children out of the drawing view on mac.
6942 * XplatUIOSX.cs: Code cleanup. Handle more window grab cases. Fix SetParent
6943 to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
6945 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
6947 * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
6948 on the non-hosted-control part of it shouldn't do anything.
6949 Fixes part of bug #327498.
6951 2007-11-01 Andreia Gaita <avidigal@novell.com>
6953 * WebBrowserBase.cs: revert previous change, resize can be called anytime
6955 2007-11-01 Jonathan Pobst <monkey@jpobst.com>
6957 * Application.cs: When a toolstrip has the keyboard input loop, let messages
6958 it does not use flow through to controls that are hosted in menus.
6959 Same with mouse clicks.
6960 * Form.cs: Don't close all menus on click if the click is on a
6961 control hosted in a menu.
6962 Fixes part of bug #327498, and part of bug #325969.
6964 2007-10-31 Andreia Gaita <avidigal@novell.com>
6966 * WebBrowserBase.cs: Only call resize on gluezilla when it is active
6968 2007-10-31 Jonathan Pobst <monkey@jpobst.com>
6970 * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
6971 Addresses an issue raised in bug #336218.
6973 2007-10-30 Jonathan Pobst <monkey@jpobst.com>
6975 * Form.cs: Patch from George that moves the conversion of ClientSize->Size
6976 for PreferredSize from OnLayout to PreferredSize. Fixes bug #325242.
6978 2007-10-30 Andreia Gaita <avidigal@novell.com>
6980 * ContainerControl.cs: Check if the active control is a
6981 child of a removed control and update active_control accordingly.
6984 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
6986 * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
6987 or the MaxDate. Fixed bug #337693.
6989 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
6991 * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
6992 after calling SetWindowLong for a form, to force an immediate NC refresh.
6993 Fixes first part of bug #325150.
6995 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
6997 * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
6998 simple. Fixes the last part of bug #322668.
7000 2007-10-29 Jonathan Pobst <monkey@jpobst.com>
7002 * MessageBox.cs: If the owner is TopMost, then the MessageBox form
7003 needs to be TopMost as well, or else the MessageBox is under the form.
7004 Patch by George fixes bug #325300.
7006 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7008 * X11Dnd.cs: When starting a new drag operation, reset the static
7009 'dropped' field to false (previously the implementation didn't reset
7010 it and got confused after the first drag).
7013 2007-10-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7015 * PropertyGrid.cs: When PropertySort changes, re-organize the grid
7016 items instead of re-creating them all. For this purpose we now cache
7017 both CategoryGridEntry items and the GridEntries for the main object's
7019 * GridItem.cs: Make SetParent method abstract.
7020 * GridEntry.cs: Override the SetParent method (already there, but now
7024 2007-10-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7026 * PropertyGridView.cs: Set the plus/minus bounds of a grid item
7027 depending on its depth (as .Net does). Update the needed values in
7028 MouseDown handler. Also draw the plus/minus rect after the label,
7029 so we don't draw on top of it.
7031 2007-10-24 Everaldo Canuto <ecanuto@novell.com>
7033 * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
7034 processed by forms or controls when menu is active. [Fixes #333548]
7036 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
7038 * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
7039 parent doesn't have focus. This was causing ToolStripTextBoxes to take
7040 focus on mouse over.
7042 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
7044 * TextControl.cs: Code cleaning, simplifying.
7046 2007-10-24 Geoff Norton <gnorton@novell.com>
7048 * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
7049 * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
7051 2007-10-24 Jonathan Pobst <monkey@jpobst.com>
7053 * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
7054 the cap is maxvalue, not actually 0. [Fixes bug #336218]
7056 2007-10-24 Andreia Gaita <avidigal@novell.com>
7058 * SendKeys.cs: apply jpobst's patch to bug #332409
7060 2007-10-23 Andreia Gaita <avidigal@novell.com>
7062 * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the
7063 Windows 2000 gdi DrawText call doesn't draw if it's higher than that
7066 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7068 * PropertyGridView.cs: If a property has an UIEditor available,
7069 make the drop-down/editor button available only if the property
7072 2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7074 * PropertyGridView.cs: Don't make the grid item textbox
7075 editable when a drop-down control is available, but
7076 CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
7077 true. The same bur the color of the grid item value's label.
7079 2007-10-22 Geoff Norton <gnorton@novell.com>
7081 * OSXStructs.cs: Add the needed constants for keyboard modifiers.
7082 * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
7083 * XplatUIOSX.cs: New reversible frame support. Wire in the new keyboard
7084 driver. Padd the bottom of all real windows so the resize thumb doesn't
7085 obscure scroll/status bars.
7087 2007-10-22 Jonathan Pobst <monkey@jpobst.com>
7089 * WindowsFormsSection.cs: Implement.
7091 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
7093 * MdiClient.cs: Maximize new active mdi child when a maximized child is
7094 closed see #325434 patch.
7096 2007-10-22 Everaldo Canuto <ecanuto@novell.com>
7098 * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
7101 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7103 * PropertyGridView.cs: When showing the textbox for a grid item,
7104 have two local variables to store the read-only and non-editable
7105 status of a grid item (we were previously using just one variable
7106 to do this, when actually they are slightly different).
7107 Fixes part of #325023.
7109 2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7111 * PropertyGridView.cs: When showing a drop-down list, try to get the
7112 values using TypeConverter.ConvertTo (to convert to a string). Fixes
7115 2007-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7117 * PropertyGrid.cs: When updating a property and populating sub grid
7118 items, remove the previous ones, and invalidate the specific area.
7119 * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
7120 area behind a grid item.
7121 * GridItemCollection.cs: Add an internal Clear method, to allow us to
7122 clean the items if needed (specially for controls implementing
7123 ICustomTypeDescriptor and returning a variable number of properties).
7126 2007-10-19 Jonathan Pobst <monkey@jpobst.com>
7128 * TextControl.cs: Clean up and document the Insert function.
7130 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
7132 * TextControl.cs: Make sure we know our start point for updating the view
7133 in ReplaceSelection. Fixes an issue where pasting multiline text wouldn't
7136 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
7138 * ListView: Couple of corcompare fixes.
7140 2007-10-17 Geoff Norton <gnorton@novell.com>
7142 * XplatUIOSX.cs: Implement support for window icons in the dock. Set
7143 the title caption of real window.
7145 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
7147 * ErrorProvider.cs: Add the error provider's internal window to a
7148 containercontrol when the parent changes. [Fixes bug #329714]
7150 2007-10-17 Geoff Norton <gnorton@novell.com>
7152 * XplatUIOSX.cs: Implement ScrollWindow. Properly create TOOLWINDOWs.
7153 When we make a new window; restore the old active window - fixes dialogs.
7155 2007-10-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7157 * PropertyGridView.cs: Look for RefreshPropertiesAttribute
7158 when modifying a property, and if found then invalidate as
7160 Fixes part of #324865.
7162 2007-10-17 Geoff Norton <gnorton@novell.com>
7164 * XplatUIOSX.cs: Re-enable the native driver on the Mac. This is still
7165 highly experimental. Fixed coordinate translation. Fixed window locations.
7166 Initial support for clipping. Implemented NC areas and menus. Support for
7167 launching from command line from Will Johansson (wjohansson@atacomm.com).
7168 * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
7169 wjohansson@atacomm.com)
7170 * Hwnd.cs: Add some internal structures for tracking Mac cursors.
7171 Hwnds now track the existence of all of their children for Mac clipping.
7172 * XplatUI.cs: Re-enabled the native driver on the Mac.
7174 2007-10-17 Jonathan Pobst <monkey@jpobst.com>
7176 * Line.cs: Move the InsertString function to here.
7177 * TextControl.cs: Cleanup some duplicate code, move some InsertString
7178 functionality to Line.
7180 2007-10-17 Geoff Norton <gnorton@novell.com>
7182 * ComboBox.cs: Destroy the popup after hiding it. Fixes #322582
7184 2007-10-16 Gert Driesen <drieseng@users.sourceforge.net>
7186 * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
7187 always setting value to true.
7188 * Form.cs: When changing AcceptButton, notify new and original button.
7190 2007-10-16 Jonathan Pobst <monkey@jpobst.com>
7192 * Form.cs: Guard against an NRE when the user sets the AcceptButton to
7193 a custom control that implements IButtonControl instead of an actual
7194 button. [Fixes bug #334244]
7196 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
7198 * Form.cs: Change SelectActiveControl to internal, we need to call it in
7201 * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
7202 active control when activate a new mdi window.
7206 2007-10-15 Everaldo Canuto <ecanuto@novell.com>
7208 * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
7212 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
7214 * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
7215 to MaxValue and recalc_end to MinValue. Currently, recalc_start is always 1,
7216 so we always recalculate the whole document instead of just the new part.
7219 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
7221 * LineTag.cs: Fix a case where the GetCharIndex would not return 0
7222 when the mouse was to the left of the first character in the line.
7224 2007-10-15 Jonathan Pobst <monkey@jpobst.com>
7226 * TextBox.cs, TextBoxBase.cs: When setting the document's password
7227 character, use the property instead of the variable so that the
7228 UseSystemPasswordChar property is taken into account.
7231 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7233 * FolderBrowserDialog.cs: When a node is right clicked and the "New
7234 folder" contex menu appears, actually add the new folder to it, even
7235 if the node is not currently selected. Still use SelectedNode in case
7236 there wasn't found a node under the pointer.
7239 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7241 * ListViewItem.cs: When retrieving the focused state, the index check
7242 should be done only when ListView is in virtualmode, as it is an
7243 expensive check for normal mode.
7245 2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7247 * ListViewItem.cs: Make the focus state information be stored
7248 in the ListView, not in the items. This is done to match the MS
7249 behaviour for items that are not yet part of a ListView control;
7250 besides that, since just one item can be focused at the same time,
7251 we save a little space in our items.
7252 Fixes part of #331643.
7254 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
7256 * ComboBox.cs: When focus is lost, deselect the text. When setting
7257 text of control, select all text. Do not hide selection when control
7258 does not have focus. Fixes bug #333663.
7260 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
7262 * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
7263 instead of ArgumentException when SelectionLength is set to negative
7264 value. Added same check to SelectionStart. Code formatting.
7266 2007-10-13 Gert Driesen <drieseng@users.sourceforge.net>
7268 * TextBoxBase.cs: Invalidate selection before changing SelectionLength
7269 or SelectionStart. Code formatting.
7271 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7273 * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
7274 indicating that there was not a previous drag-and-drop operation going
7276 Fixes part of #325071.
7278 2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7280 * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
7281 AllowedEffect, don't let the drop operation happen.
7284 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
7286 * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
7288 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
7290 * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
7293 2007-10-12 Jonathan Pobst <monkey@jpobst.com>
7295 * Line.cs: Add a method that finds the tag that contains an x-coord.
7296 * LineTag.cs: Add a method that finds the character at an x-coord using
7297 a binary search, the old way was a linear search.
7298 * TextControl.cs: Change FindCursor to use the above new methods.
7300 2007-10-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7302 * DragEventArgs.cs: Allow Effect to have a non allowed value (a
7303 value different than AllowedEffect). This should be possible to
7304 indicate that dragging is not possible in some control/area.
7306 2007-10-11 Jonathan Pobst <monkey@jpobst.com>
7308 * LineTag.cs: Encapsulate all variables with properties. Calculate ascent/
7309 descent internally when font changes instead of outside code being responsible
7311 * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
7312 instead of accessing internal variables.
7314 2007-10-09 Everaldo Canuto <ecanuto@novell.com>
7316 * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
7317 remove special treatment for ArrangeIcons since it is already arranged.
7319 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
7321 * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
7322 the Win32 backend uses Color.
7323 * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
7324 Refactor to store a Color instead of a Brush for Color.
7326 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
7328 * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
7329 away. I didn't realize I needed this when I refactored these earlier.
7331 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
7333 * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
7334 store a Color structure and use the ResPool for back color instead of
7335 holding onto brushes.
7337 2007-10-09 Jonathan Pobst <monkey@jpobst.com>
7339 * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
7342 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
7344 * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
7345 to recalculate its size. Fixes a part of bug #331052.
7347 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
7349 * NotifyIcon.cs: Set the correct mouse button when handling right mouse
7350 button. Fixes a part of bug #331052.
7352 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
7354 * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
7356 * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
7360 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
7362 * TextBoxTextRenderer.cs: Don't make this a static class, as static
7363 doesn't exist in 1.1. (Thanks jb!)
7365 2007-10-08 Jonathan Pobst <monkey@jpobst.com>
7367 * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
7368 class to allow us to use different backends on different platforms.
7369 Linux uses the current [Draw|Measure]String backend. Windows uses
7370 the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
7371 of GDI+. This leads to better looking text and more accurate measurements
7372 on Windows, fixing many of the reported issues.
7373 * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
7375 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7377 * FolderBrowserDialog.cs: When running on Windows,
7378 try to detect paths such "C:" and add Path.DirectorySeparatorChar,
7379 since we must match both "C:" and "C:\" forms. A little hackish, but
7383 2007-10-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7385 * ListView.cs: When calling EndEdit (after editing an item),
7386 create a new instance of LabelEditEventArgs to keep clean the fields
7387 in case we get a new call to BeginEdit; also do Application.DoEvents
7388 to have focus in synch. This is a fix similar to TreeView's #325244.
7390 2007-10-07 Andreia Gaita <avidigal@novell.com>
7392 * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
7393 * WebBrowserBase.cs: Added dialog support, calling the
7394 WebBrowserDialogs classes for each specific dialog type.
7396 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7398 * ListView.cs: When the last item is focused and is removed,
7399 move the focus to the previous item (in Items order). This is what MS
7403 2007-10-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7405 * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
7406 instead of the opposite (RemoveAt call Remove). This is a better
7407 approach since we don't need to to a pair of traversals when using
7410 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7412 * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
7413 check that the node actually has nodes, and if not, move to the
7414 parent node instead.
7417 2006-10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7419 * TreeView.cs: Move the previous change to the general case (to
7420 call Application.DoEvents in cases where the method was called by
7423 2007_10-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7425 * TreeView.cs: When calling EndEdit and we need to hide the textbox,
7426 call Application.DoEvents. This is neccessary when we get a call to
7427 BeginEdit from an AfterLabelEdit handler, because the focus always
7428 goes to the TreeView, even if we try to give it to our
7429 LabelEditTextBox. The call do Application.DoEvents seems to
7430 synchronize the focus, basically.
7433 2007-10-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7435 * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
7436 should be false. This also removes some nasty recursive paths. Fixes
7439 2007-10-04 Everaldo Canuto <ecanuto@novell.com>
7441 * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
7442 state to normal. Also resize window when cascading. Fixes #325433.
7444 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
7446 * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
7447 DefaultForeColor, as drawing empty colored lines isn't very useful.
7448 [Fixes the not drawn lines part of bug #324358]
7450 2007-10-04 Jonathan Pobst <monkey@jpobst.com>
7452 * TextControl.cs: Move Line and LineTag classes into separate files to
7453 make things easier to find.
7454 * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
7455 * RichTextBox.cs: Capitalize LineTag.Length property access.
7456 - This is purely an organizational/formatting change, no logic changed. -
7458 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
7460 * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
7463 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
7465 * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
7468 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
7470 * ComboBox.cs: On contructor use backgound_color instead of BackColor to
7471 prevent calling of OnBackColorChanged. Fixes #325321.
7473 2007-10-03 Everaldo Canuto <ecanuto@novell.com>
7475 * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
7476 because control can be disabled because owner is disabled.
7478 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
7480 * ComboBox.cs: For the 1.1 profile, the default SelectedText is
7481 string.Empty, test failed from previous change.
7483 2007-10-02 Jonathan Pobst <monkey@jpobst.com>
7485 * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
7486 is null, not String.Empty. See bug #323038.
7488 2007-10-01 Jonathan Pobst <monkey@jpobst.com>
7490 * TextControl.cs: Change the margins to match MS a little better.
7491 Still not perfect for X11 due to some DrawString differences, but
7492 is still an improvement over the old stuff.
7493 Partially fixes #324467.
7495 2007-09-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7497 * FolderBrowserDialog.cs: When using MyComputer as
7498 RootFolder, let absolute paths be considered as valid ones. Also, use
7499 Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
7500 for Windows compatibility.
7501 Partially fixes #325247.
7503 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7505 * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
7506 Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
7507 method, since it causes the dialog to not select folders directly
7508 under the root path (when setting SelectedPath property).
7510 2007-09-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7512 * TreeNode.cs: When calling Expand/Collapse and need to call
7513 ExpandBelow/CollapseBelow respectively, take into account
7514 partially visible nodes (previously Expanding/Collapsing
7515 a partially visible node in the bottom was not updating its +- sign).
7517 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7519 * TreeView.cs: When calling Expand on a TreeNode, and we need to
7520 expand nodes below (ExpandBelow), scroll the entire Viewport
7521 area if the node is above it and not visible (instead of scrolling
7522 the area from node's Bottom, which applies only when the node is
7526 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7528 * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
7529 node in the bottom area (as .Net does). This is done to preserve the
7530 scroll position when ExpandAll is called before handle is created for
7531 the 1.1 profile (bottom area, as opposed to top area in 2.0).
7534 2007-09-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7536 * TreeView.cs: When calling ExpandAll, don't move the scroll to the
7537 bottom area if we are in fact not using the vertical scroll bar.
7540 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
7542 * Control.cs: Comment out a double buffering optimization that doesn't
7543 take into account invalidates created in OnPaint, causing the control
7544 to never be redrawn. It would take quite a bit of work to work around
7545 this, but I left it commented with an explanation for later possible
7549 2007-09-27 Jonathan Pobst <monkey@jpobst.com>
7551 * Control.cs: Ask parent to perform a layout if control is AutoSize and
7553 * RadioButton.cs: Implement GetPreferredSizeCore.
7556 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
7558 * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
7561 2007-09-26 Jonathan Pobst <monkey@jpobst.com>
7563 * Application.cs: Move the sync context stuff to Run instead of RunLoop
7564 so that it doesn't get uninstalled on modal forms.
7565 * Control.cs: Install a sync context when a control is created.
7566 * WindowsFormsSyncronizationContext.cs: Create a private static control
7567 to invoke on. This is easier than trying to find a created control we
7571 2007-09-25 Jonathan Pobst <monkey@jpobst.com>
7573 * Application.cs: Install a WindowsFormsSynchronizationContext in the
7574 run loop, and uninstall it when done.
7575 * WindowsFormsSynchronizationContext.cs: Implement.
7576 [Fixes the common case in bug #327608]
7578 2007-09-23 Gert Driesen <drieseng@users.sourceforge.net>
7580 * DataGridViewCellCollection.cs: Added argument checks for indexers.
7581 Use case-insensitive lookup of column name in indexer. Code
7584 2007-09-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7586 * TreeNode.cs: When collapsing or expanding a node, check whether its
7587 change will affect the visible area (we were previously doing a
7588 IsVisible check, but that check is not enough since children nodes
7589 could be still visible). Fixes part of #325266.
7591 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
7593 * TreeView.cs: Always select the first node when the TreeView gets
7594 focus if there is no currently selected node.
7597 2007-09-21 Jonathan Pobst <monkey@jpobst.com>
7599 * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
7600 node being selected is null.
7601 [Patch from Yves Bastide fixes bug #326858]
7603 2007-09-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7605 * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
7606 whether all the parent nodes are expanded.
7607 * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
7608 call RecalculateVisibleOrder if all previous nodes are expanded.
7609 Before that we were doing a IsVisible check, but sometimes the node
7610 is not in the visible area, but _should_already be ready, because of
7611 all previous nodes are expanded. Fixes #325259.
7613 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
7615 * ToolStripSplitButton.cs: Call the ButtonClick event if the button
7616 portion of the item is clicked.
7618 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
7620 * TextControl.cs: Do not tell the system to move the cursor if the
7621 textbox isn't focused. Fixes part of bug #322668.
7623 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
7625 * ComboBox.cs: When there are no items, do not show the dropdown if
7626 the down arrow is clicked. Fixes part of bug #322668.
7628 2007-09-20 Jonathan Pobst <monkey@jpobst.com>
7630 * ToolStripComboBox.cs: Manually set the size of this control in the
7631 constructor, as it doesn't seem to be the same as DefaultSize.
7632 Fixes a failing monobuild test.
7634 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
7636 * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
7637 change it to DateTimePicker.MinDateTime. [Fixes bug #326609]
7639 2007-09-19 Jonathan Pobst <monkey@jpobst.com>
7641 * Theme.cs: FileDialogs should be using DesktopDirectory instead of
7642 Desktop. This lets it work for people who have moved their desktops
7643 from the default location on windows. For people who have not, both
7644 values are the same, so it shouldn't hurt anything. [Fixes bug #325270]
7646 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
7648 * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
7649 but when the base constructor sets this, the control is null. Set it
7650 again in the constructor. Fixes a failing monobuild test.
7652 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
7654 * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
7656 * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
7659 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
7661 * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
7662 will handle it themselves.
7663 * ToolStripItem.cs: When deciding what the text of a tooltip should
7664 be, use the Text property instead of the text field.
7665 * ToolStripTextBox.cs: Handle tooltips.
7666 [Fixes bugs #325417 and #325973]
7668 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
7670 * ToolStripDropDownButton.cs: Only drop down overflow menu with a
7671 left click. Fixes the easy part of bug #325969.
7673 2007-09-18 Jonathan Pobst <monkey@jpobst.com>
7675 * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
7676 bug #325406, but set a minimum for StatusStrip to 22 to keep
7677 bug #325390 fixed. I think this minimum would have been figured
7678 up automatically if the grip was actually a ToolStripItem, but it
7681 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7683 * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
7684 as this is apparently the actual value used by .Net. Also apply
7685 ItemPadding in Details view only, and decrease the general width padding,
7686 to have only the needed. This should fix #324340 in Windows too.
7688 2007-09-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7690 * ListViewItem.cs: Don't Invalidate item if parent is inside
7691 a BeginUpdate/EndUpdate block. This prevents to have differences
7692 between the ListView and items state, as well as avoid some exceptions
7694 * ListView.cs: Make 'updating' field internal.
7696 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
7698 * ToolStripControlHost.cs: Realign control when ControlAlign changes.
7699 * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
7700 size if appropriate.
7701 Fixes reopened bug #325414.
7703 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
7705 * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
7706 * ToolStripItem.cs: Invalidate before and after our new autosize when
7708 Fixes reopened bug #325390.
7710 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
7712 * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
7713 mnemonics can be drawn or undrawn correctly. Fixes reopened bug
7716 2007-09-17 Jonathan Pobst <monkey@jpobst.com>
7718 * Control.cs: Do WM_CONTEXTMENU before OnMouseUp. [Fixes bug #325535]
7720 2007-09-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7722 * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
7723 instead of EllipsisWord (by equistango at gmail.com). Fixes part of
7726 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
7728 * ToolStrip.cs: Make ToolStrip selectable when TabStop = true. Find an
7729 item to select when the ToolStrip is selected.
7730 * ToolStripControlHost: Realign the control when the bounds or visibility
7732 * ToolStripItem.cs: When selected, if it's a control host, focus the control.
7733 * ToolStripOverflow.cs: When laying out the drop down, respect the item's
7735 * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
7736 base.OnPaint. Was causing text not to be drawn.
7738 2007-09-14 Jonathan Pobst <monkey@jpobst.com>
7740 * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
7742 2007-09-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7744 * TreeView.cs: When creating the label edit text box,
7745 set is initially to Visible = false. This is done to
7746 prevent a confusion in the layout which makes it to lose
7747 focus when shown the first time. Fixes part of #82592.
7749 2007-09-13 Andreia Gaita <avidigal@novell.com>
7751 * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
7753 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
7755 * ToolStrip.cs: Take Margin into account when calculating preferred
7756 size. Also, allow preferred size to get smaller than the explicit
7758 * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
7759 First step towards fixing bug #82747.
7761 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
7763 * TreeView.cs: Applied patch from latency@gmx.de to not paint the
7764 full row select background over the plus/minus glyph. Also, turn
7765 off the focus rectangle for full row select since MS doesn't seem
7766 to ever paint it. [Fixes bug #81839]
7768 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
7770 * ToolStrip.cs: Don't FocusInternal if there is no selected item.
7771 This was causing keyboard opened dropdowns to lose focus.
7774 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
7776 * Control.cs: If Rectangle.Empty is passed to Invalidate, use
7777 ClientRectangle instead. [Fixes bug #82838]
7779 2007-09-13 Jonathan Pobst <monkey@jpobst.com>
7781 * SplitContainer.cs: We can't reset Visible on every layout because
7782 someone may have set Visible = false explicitly on a SplitterPanel.
7783 Make sure when we switch orientation the SplitterDistance does not
7784 change. Fixes two failing tests.
7786 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7788 * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
7789 TextRenderer, since the latter is only available in 2.0.
7791 2007-09-13 Ivan N. Zlatev <contact@i-nz.net>
7793 * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
7794 * SplitContainer.cs: Implement FixedPanel layouting.
7796 2007-09-12 Andreia Gaita <avidigal@novell.com>
7798 * WebBrowserBase.cs: setup shutdown routine
7800 2007-09-12 Andreia Gaita <avidigal@novell.com>
7802 * Application.cs: Let keyboard events that are targetted
7803 to non-mwf windows hosted inside mwf (as in, webbrowser),
7804 propagate properly. Fixes keyboard handling on the webbrowser.
7806 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7808 * ListView.cs: When handling MouseUp event and we are
7809 highligting a node with the mouse right button, don't trigger
7810 Before/AfterSelecting event, since we are not actually selecting
7813 2007-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7815 * TreeView.cs: When editing a node, modify the edit text box
7816 depending on the text length (as you are typing), like MS does.
7818 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
7820 * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars.
7821 Override GetPreferredSizeCore to perform calculations. Remove custom
7822 autosize logic. [Fixes bug #82739]
7824 2007-09-12 Jonathan Pobst <monkey@jpobst.com>
7826 * TextBoxBase.cs: Modified should default to false.
7828 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
7830 * Control.cs: Update the anchoring distances even when layout is supspended.
7831 Patch provided by George fixes bug #82805.
7833 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
7835 * Control.cs: Provide a setter for ExplicitHeight.
7836 * TextBoxBase.cs: Now that we have the implementation for explicit heights,
7837 remove the hacks in here for requested_height.
7840 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
7842 * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
7843 Maximum to lower that its current Value caused an ArgumentException by setting
7844 the Value to the new Maximum.
7846 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
7848 * ThemeWin32Classic.cs: Math is hard! Fix some math so that the TrackBar
7849 handle moves to the closest tick when it is being dragged.
7852 2007-09-11 Jonathan Pobst <monkey@jpobst.com>
7854 * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
7855 can't let them count as real items when calculating where to merge in the
7856 user's items. [Fixed bug #82786]
7858 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
7860 * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
7861 who want to add a menu item directly onto a toolstrip.
7862 [Fixes bug #82775, part II]
7864 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
7866 * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
7867 * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
7868 don't set it to available.
7869 * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
7870 [Fixes bug #82727, part II]
7872 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
7874 * StatusStrip.cs: Change item placement to None if not visible.
7875 * ToolStripItem.cs: Invalidate when InternalVisible changes.
7876 These should have been committed to fix 82723, but I missed them.
7878 2007-09-10 Jonathan Pobst <monkey@jpobst.com>
7880 * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
7881 Click, and that it is only called once.
7882 * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
7883 * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
7887 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7889 * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
7891 * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
7892 instead of 8, just like above. Partially fixes #82734.
7894 2007-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7896 Patch by Ernesto Carrea <equistango at gmail.com>. Partially
7899 * ListView.cs: Remove extra space between rows in Details view (match
7901 * ThemeWin32Classic.cs: Header text should use ListView.Font, not
7904 2007-09-08 Gert Driesen <drieseng@users.sourceforge.net>
7906 * Application.cs: Modified ProductVersion to return value of
7907 AssemblyInformationVersion if available, and fallback to assembly
7908 version. Fixes bug #82746. Code formatting.
7909 * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
7912 2007-09-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7914 * Control.cs: When updating ZOrder for a child control,
7915 take into account the implicit ones (we need it in our controls
7916 using them). Fixes #82642.
7918 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
7920 * ToolStripItem.cs: Add support for animated images.
7923 2007-09-07 Jonathan Pobst <monkey@jpobst.com>
7925 * ToolStrip.cs: Make sure we aren't drawing anything that isn't
7926 visible. [Fixes bug #82727]
7928 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
7930 * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
7931 so we repaint using the new size. [Fixes bug #82723]
7933 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
7935 * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
7936 option. [Fixes bug #81779]
7938 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
7940 * TreeView.cs: Override HandleClick because the StandardClick style is
7941 set to false. According to MSDN (and testing), the click events should
7942 only be raised when the click occurs on a TreeNode. [Fixes bug #81739]
7944 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
7946 * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
7947 the border will disappear. Fixes reopened #82653.
7949 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
7951 * Control.cs: If the control is autosize, and its preferred size changes
7952 when it lays out its children, tell its parent so it can be re-layed out.
7953 Fixing some of the fallout from r85433.
7955 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
7957 * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
7958 and CheckBox share some code.
7960 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
7962 * TrackBar.cs: Only call OnScroll if we actually changed the Value of
7963 the TrackBar, not every mouse move. [Fixed bug #82718]
7965 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
7967 * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
7968 under 2.0 rendering. [Fixes bug #82657]
7970 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
7972 * TreeView.cs: If we found a TreeNode to display a context menu, but
7973 it doesn't have one to show, let the TreeView display its menu
7974 instead. [Fixes bug #82680]
7976 2007-09-06 Jonathan Pobst <monkey@jpobst.com>
7978 * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
7979 OnPaintInternal instead. Give the internal TextBox a Border property
7980 so it can draw itself more correctly. [Fixes bug #82653]
7982 2007-09-06 Zoltan Varga <vargaz@gmail.com>
7984 * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
7986 2007-09-05 Everaldo Canuto <everaldo@simios.org>
7988 * ComboBox.cs: Adjust combobox button state to reflect current state when
7989 back to enabled = true. Fixes first issue of #82654.
7991 2007-09-05 Everaldo Canuto <everaldo@simios.org>
7993 * Control.cs: Fix last patch regression, prevent forms to update zorder when
7994 setting visible property.
7996 2007-09-05 Everaldo Canuto <everaldo@simios.org>
7998 * Control.cs: Update zorder after control creation in SetVisibleCore, it
7999 fix zorder for controls initially created as non visible. Fixes #82667.
8001 2007-09-04 Everaldo Canuto <everaldo@simios.org>
8003 * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
8004 mimic win32 look. Fixes #82656.
8006 2007-09-01 Zoltan Varga <vargaz@gmail.com>
8008 * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs:
8009 Stubs for new net 3.5 classes.
8011 2007-08-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8013 * ListViewItem.cs: In ListViewItemCollection operations calculate
8014 Layout for owner as well as invalidate it. Fixes part of #82642.
8016 2007-08-31 Jonathan Pobst <monkey@jpobst.com>
8018 * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
8019 when returning Enabled. [Fixes bug #82651]
8021 2007-08-30 Everaldo Canuto <everaldo@simios.org>
8023 * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
8025 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8027 * ListView.cs: Put item padding info in a single place
8028 (Theme.ListViewItemPaddingWidth) to have working AutoResize on
8030 * ThemeWin32Classic.cs:
8031 * Theme.cs: Likewise.
8033 2007-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8035 * ListView.cs: When a ListViewSubItem instance is invalidated,
8036 invoke Invalidate on parent ListViewItem, not parent ListView.
8039 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
8041 * ListView.cs, ListViewItem.cs: corcompare stuffs.
8043 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
8045 * BindingMemberInfo.cs: Implement == and != operators.
8047 2007-08-30 Jonathan Pobst <monkey@jpobst.com>
8049 * HtmlElementEventArgs.cs: Implement properties.
8051 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
8053 * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
8055 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
8057 * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
8058 Add (string,string,string) to implement the imagekey. It turns out, we
8059 use the requested imagekey whereas .Net does not. So I broke ours to match
8062 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
8064 * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
8066 2007-08-29 Jonathan Pobst <monkey@jpobst.com>
8068 * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
8070 2007-08-29 Gert Driesen <drieseng@users.sourceforge.net>
8072 * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
8073 up-to-date. Fixes bug #82618.
8075 2007-08-29 Everaldo Canuto <everaldo@simios.org>
8077 * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
8078 reflect document changes. Fixes #82367.
8080 2007-08-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8082 * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
8083 as well as add new ones. This should make work the BackgroundImage
8084 property for ListView again.
8086 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
8088 * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
8089 DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
8090 DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
8092 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
8094 * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
8097 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
8099 * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
8100 * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
8102 2007-08-28 Jonathan Pobst <monkey@jpobst.com>
8104 * RadioButton.cs: Use 2.0 rendering. Use base implementation of TextAlign.
8105 * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
8107 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
8109 * CursorConverter.cs: Implement conversion to InstanceDescriptor.
8111 2007-08-27 Ivan N. Zlatev <contact@i-nz.net>
8113 * GridEntry.cs: Implement GetService.
8115 2007-08-27 Jonathan Pobst <monkey@jpobst.com>
8117 * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
8118 for label editting, make sure we focus back on the TreeView.
8121 2007-08-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8123 * ListView.cs: Add some 2.0 overrides.
8125 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
8127 * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
8128 because getter dont returns right value before handle creation. Thanks
8129 to George. Fixes #82569.
8131 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
8133 * Theme.cs: Revert last patch, it causes error under win32.
8135 2007-08-27 Everaldo Canuto <ecanuto@novell.com>
8137 * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of
8138 Environment.SpecialFolder.Desktop in Places method, Desktop returns the
8139 logical Desktop rather than the physical file system location. Fixes #82603.
8141 2007-08-26 Everaldo Canuto <ecanuto@novell.com>
8143 * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
8144 for the patch. Fixes #82568.
8146 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8148 * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
8151 2007-08-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8153 * ListViewInsertionMark.cs: New stubbed class.
8155 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
8157 * FolderBrowserDialog.cs: When adding folder, immediately create the
8158 directory with temporary name and rename the directory when editing
8159 finishes. This matches MS. Ensure the node for the new folder is
8160 selected and LabelEdit is disabled, when editing is either finished
8163 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
8165 * TreeView.cs: When editing label of node, ensure node is visible.
8167 2007-08-25 Ivan N. Zlatev <contact@i-nz.net>
8169 * PropertyGridView.cs: Set the value only if it has changed.
8171 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8173 * ListView.cs: Some more code refactoring to add support sorting
8174 with groups (now for Details view). Remove unused code also.
8176 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
8178 * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
8179 Not a big fan of reacting immediately to a field in an EventArg, but that's
8180 the way it's done. (This is part of the previous commit that got left out.)
8182 2007-08-25 Gert Driesen <drieseng@users.sourceforge.net>
8184 * FolderBrowserDialog.cs: Removed need for separate description field.
8185 Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
8186 has focus when dialog box is displayed again, regardless of what
8187 button was pressed the previous time. Set RootFolder and SelectedPath
8188 each time dialog box is displayed. This ensures the treeview is
8189 refreshed, and fixes bug #82579. Do no hide selected node in TreeView
8190 when it does not have focus. Added support for more special folders.
8192 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
8194 * TreeView.cs: Create a CancelEdit method. Clone the edit_args in EndEdit
8195 before calling AfterLabelEdit. If the user calls BeginEdit in that event,
8196 it resets the edit_args.
8197 * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
8200 2007-08-24 Gert Driesen <drieseng@users.sourceforge.net>
8202 * FolderBrowserDialog.cs: Modifies form caption and text of new folder
8203 button to match MS. Provide more meaningful exception message for
8204 invalid RootFolder value. Use zero-length string when SelectedPath
8205 is set to null. Allow non-rooted paths in SelectedPath, but ignore
8206 them in FolderBrowserTreeView. Allow folders to be created in
8207 RootFolder. Fixes bug #82576.
8209 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8211 * ListView.cs: Correctly compute the layout_ht (height) when using groups,
8212 since we need to take into account the group headers and the margin
8214 * ListViewGroup.cs: Add a rows field to store the number of rows per
8217 2007-08-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
8219 * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
8220 Anyways, let's just follow the lead.
8222 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
8224 * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
8225 * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored
8226 controls in GetPreferredSizeCore.
8227 * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
8230 2007-08-24 Jonathan Pobst <monkey@jpobst.com>
8232 * PrintDialog.cs: Need to instantiate the form variable here too.
8234 2007-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8236 * ListView.cs: Do some reorganization to support sorting in groups,
8237 by doing the layout sequentially in ListView.Items. Also add support
8238 for the Default Group, which should be available for items with no
8240 * ListViewGroup.cs: Add support for DefaultGroup. Include new members
8241 for storing layout info also.
8242 * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
8243 collection, as well as providing internal members to do a traversal
8244 including the default group (needed when doing layout/drawing).
8245 * ThemeWin32Classic.cs: When drawing group headers use internal
8246 ListViewGroupCollection members to take into account the default
8249 2007-08-23 George Giolfan <georgegiolfan@yahoo.com>
8251 * FlowLayoutPanel.cs: Add GetPreferredSizeCore. [Fixes bug #82537]
8253 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
8255 * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
8256 been created. If handle is created, we want arror keys. If we are editing
8257 a node, we want things like enter, esc, home, end, page up, page down.
8258 Allows Esc to work for FolderBrowserDialog.
8260 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
8262 * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
8263 they close when ESC is pressed. Thanks Andy!
8265 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
8267 * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
8268 This way we can tell if this is a CommonDialog provided with mono, or one
8269 that is being implemented outside by a developer. If it is an external one,
8270 the developer is responsible for showing their own form. We were showing
8271 our blank form after the developer showed his.
8272 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
8273 PageSetupDialog.cs: Instantiate form variable in our constructor.
8276 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
8278 * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
8279 and always return true. [Fixes bug #81616]
8281 2007-08-23 Jonathan Pobst <monkey@jpobst.com>
8283 * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
8284 TextBox. [Fixes bug #82549]
8286 2007-08-23 Gert Driesen <drieseng@users.sourceforge.net>
8288 * FileDialog.cs: When Save/Open is clicked and no filename is selected
8289 or entered then do not close the dialog. Fixes bug #82539. Removed
8292 2007-08-22 Everaldo Canuto <ecanuto@novell.com>
8294 * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
8295 code to this method. It is calling every time filter changes. This method
8296 will help to fix the bug #80887.
8298 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
8300 * CheckBox.cs: Implement AutoSize calculation.
8302 2007-08-22 Jonathan Pobst <monkey@jpobst.com>
8304 * CheckBox.cs: Use new 2.0 rendering for 2.0.
8305 * Theme.cs: Method declarations for 2.0 rendering path.
8306 * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
8308 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8310 * ListViewGroupCollection.cs: Fix a typo of the previous patch.
8312 2007-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8314 * ListViewGroupCollection.cs: Implement AddRange the right way, to
8315 only call Redraw on the parent one time.
8317 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
8319 * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
8320 GetClipboardContent.
8321 * DataGridViewCell.cs: Implemented GetClipboardContent,
8322 GetEditedFormattedValue, GetFormattedValue.
8323 * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
8325 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
8327 * TableLayoutStyleCollection.cs: corcompare fix.
8329 2007-08-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
8331 * DataObject.cs: Implemented retrieval of convertible / not convertible
8334 2007-08-21 Jonathan Pobst <monkey@jpobst.com>
8336 * ToolStripItem.cs: When changing the item's text, invalidate before we resize
8337 ourselves. This ensures the entire old bounds are repainted, in case our new
8338 size is smaller. [Fixes bug #82518]
8340 2007-08-20 Everaldo Canuto <ecanuto@novell.com>
8342 * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
8343 flag to make fast handle of mouse events, without this the mouse move is
8344 handled in some manner, whether it is a mouse move or not. Fixes #81588.
8346 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8348 * ListView.cs: When doing layout calculations don't use a ref
8349 param to keep the current item; instead use its Index value (this
8350 is specially important when doing the layout with Groups
8351 and Items being sparse). Also don't take into account items added to
8352 the Group but not yet added to the main ListView.Items collection.
8354 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8356 * ListViewGroupCollection.cs: Forgot to mimic an issue
8357 in the indexer (don't assign the ListView owner for new values).
8359 2007-08-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8361 * ListViewGroupCollection.cs: Make the string indexer use
8362 the int based indexer to re-use code, instead of duplicate the code.
8363 Also Redraw as needed and take into account null values.
8365 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
8367 * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
8370 2007-08-20 Jonathan Pobst <monkey@jpobst.com>
8372 * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
8373 when other buttons are clicked or navigated to.
8375 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
8377 * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
8378 it's XplatUIX11 that attaches them.
8380 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
8382 * DataGridView.cs: If a column has been added, recreate the editing row.
8385 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
8387 * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
8388 of the tag to draw. Makes disappearing text show up again.
8390 2007-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
8392 * StatusBar.cs: Take into account any icons when a panel has AutoSize =
8393 Contents. Fixes #82487.
8395 2007-08-19 Andreia Gaita <avidigal@novell.com>
8397 * Added HtmlElement.cs, HtmlElementCollection.cs,
8398 HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
8400 2007-08-19 Andreia Gaita <avidigal@novell.com>
8402 * BindingSource.cs: Implement this, dispose and getenumerator.
8403 * DataGridViewRowCollection.cs: Move the InvalidOperationException
8404 out of AddInternal, throw it only on public Add calls. The
8405 UsingWebBrowser sample was blowing up with this when setting the
8406 DataSource after adding DataBindings, so it's likely that .net
8407 only throws this exception when Add is called directly.
8409 * ToolStripControlHost.cs: Return the hosted control's text
8410 property, and not the ToolStripItem one (it would always return
8413 * HtmlDocument.cs: Implement GetElementById and All
8414 * WebBrowser.cs: Remove exception on set_DocumentStream.
8416 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
8418 * Form.cs: Fix the max and min value for opacity (0~1).
8420 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
8423 * DataGridTableStyle.cs: Default header font is now null, on getter it
8424 returns datagrid font when is null. On setter permits null.
8427 - When ResetHeaderFont set header font to null.
8428 - On EndInit set grid_style.DataGrid.
8430 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
8432 * TabControl.cs: Fix regression in default padding x.
8434 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
8436 * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
8438 2007-08-19 Everaldo Canuto <ecanuto@novell.com>
8440 * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
8441 not 2. Fixes #82229.
8443 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
8445 * TabControl.cs: Fix tab size when image height is less than text height.
8446 Partially fixes #81837.
8448 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
8450 * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using
8451 "alt + tab". It works only for Win32, for X11 theres no way to remove window
8452 from taskbar and keep it on "alt_tab". Fixes #81722.
8454 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
8456 * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
8457 and DrawReversibleLine, also apply same behavior to FillReversibleRectangle.
8458 Fixes #80877 and #79418.
8460 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
8462 * MenuAPI.cs: Fix popup menu position when the size is larger than distance
8463 between position and one of the screen borders. Fixes #82349.
8465 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
8467 * MessageBox.cs: When there is no form that invoked the MessageBox, shows
8468 the MessageBox in the taskbar. Fixes #82457.
8470 2007-08-18 Everaldo Canuto <ecanuto@novell.com>
8472 * MessageBox.cs: Fix form size when icon is set and text height is bigger
8473 than icon. Fixes #82468.
8475 2007-08-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
8477 * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
8478 * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
8479 if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
8480 Refactored HandleNCCalcSize somewhat to avoid code duplication.
8481 * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
8482 FormBorderStyle to decide if we're calculating a new size from the
8483 client size or not. CreateParams: Don't fake tool windows, only the X11
8484 backend manages toolwindows manually.
8486 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
8488 * Form.cs: Only reset is_visible if !IsDisposed to prevent an
8489 ObjectDisposedException.
8491 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
8493 * Form.cs: Reset is_visible back to true after OnLoad. Setting this
8494 in OnLoad should not have any effect. [Fixes bug #82470]
8496 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
8498 * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
8499 paint for controls that create their own ToolTipWindow instead of
8500 going through ToolTip.
8502 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
8504 * ToolTip.cs: Make Hide internal instead of public to match MS API.
8506 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8508 * ListViewGroupCollection.cs: Use generic List instead of an
8509 ArrayList, since this collection is 2.0 only.
8511 2007-08-17 Jeffrey Stedfast <fejj@novell.com>
8513 * ToolTip.cs (Hide): Made public to make the build work (should
8514 this not be public?).
8516 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
8518 * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
8520 * ToolTip.cs: Add an internal Visible property to facilitate transition.
8522 2007-08-17 Jonathan Pobst <monkey@jpobst.com>
8524 * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
8525 PopupEventHandler.cs: Make these internal for 1.1.
8526 * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
8527 use ToolTipWindow internals.
8528 * ToolTip.cs: Add 2.0 modal Show methods. Had to move a lot of stuff around to
8529 support this. A lot of stuff in the ToolTipWindow got moved to the ToolTip.
8531 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
8533 * X11Dnd.cs: Add a null check.
8535 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
8537 * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
8538 nothing else succeeds. Fixes #82453.
8540 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
8542 * XplatUIWin32.cs: PaintEventStart: validate the entire source client
8543 rectangle if we're painting to another window than the one the paint
8544 message was generated on. Simplify the code somewhat, which makes
8545 PaintEventEnd also simpler.
8547 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
8549 * Control.cs: When changing parent of a form, let the form decide whether
8550 XplatUI.SetParent should be called or not.
8551 * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
8552 recreating the handle. If the new parent's handle isn't created, don't
8553 recreate our handle, just destroy it. CreateParams: Check if the
8554 parent's handle is created before fetching it.
8556 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
8558 * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
8559 Update calls to PaintEventStart/End to take a Message argument.
8560 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
8561 take a Message argument.
8562 * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
8563 Message argument, and handle the case where we don't paint to the window
8564 for which the paint message was generated.
8566 2007-08-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
8568 * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
8569 Marshal.GetLastWin32Error. Plug nasty memory leak in
8570 PaintEventStart/End, we were creating a DC we weren't releasing.
8572 2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8574 * ListView.cs: Add Groups support in Details view. Also have a small
8575 method to do the layout of the group header. Don't use a separate
8576 method to do the groups calculation in Icons view, since our methods
8577 are now a little simpler.
8578 * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
8580 * ThemeWin32Classic.cs: Likewise.
8582 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
8584 * Application.cs: Add FilterMessage method and rework our message loop
8587 2007-08-16 Jonathan Pobst <monkey@jpobst.com>
8589 * Application.cs: Add some methods and stub a few methods that are
8590 pretty much never used.
8592 2007-08-15 Jonathan Pobst <monkey@jpobst.com>
8594 * TreeNode.cs: Add some serialization methods.
8596 2007-08-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8598 * ListView.cs: In ListViewItemCollection have a
8599 'is_main_collection' field to not modify ListViewItem.ListView
8600 when using it as ListViewGroup.Items (and not ListView.Items)
8601 and also don't modify selection state (.Net behaviour).
8602 Instead, set group for items contained in a ListViewGroup.Items collection.
8603 * ListViewItem.cs: Simplify some code in Group setter.
8604 * ListViewGroup.cs: use the new .ctor to pass the current instance
8605 to the ItemsCollection.
8606 * ListViewGroup.cs: Set the ListView property for ListViewGroup
8607 instances when adding/removing. Also make Remove use RemoveAt, which
8608 should perform better.
8610 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
8612 * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
8613 that crept into the 1.1 profile.
8615 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
8617 * ToolBarButton.cs: Implement ImageKey.
8619 2007-08-14 Jonathan Pobst <monkey@jpobst.com>
8621 * ToolBar.cs: Implement ScaleControl/ScaleCore.
8623 2007-08-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
8625 * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
8626 created, it might have gotten destroyed since we last checked. Fixes
8629 2007-08-11 Jonathan Pobst <monkey@jpobst.com>
8631 * ToolTip.cs: Remove mouse in control check from mouseleave handler so
8632 tooltip will hide when mouse is moved off the control.
8635 2007-08-11 Andreia Gaita <avidigal@novell.com>
8637 * WebBrowserBase.cs, WebBrowser.cs: add implementation
8638 using Mono.Mozilla for loading and navigating webcontrol
8640 The initial implementation was done on
8641 /trunk/mozembed/tests/browser , and copied here.
8643 2007-08-11 Gert Driesen <drieseng@users.sourceforge.net>
8645 * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
8646 ToolTipWindow for drawing the tooltip. Fixes bug #82408.
8648 2007-08-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
8650 * DataGridView.cs: Add support for an editing row. Fixes #82226.
8651 RowTemplateFull: throw an exception if a column doesn't have a template.
8652 * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
8653 add the row just before it.
8654 * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
8656 * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
8657 DataGridView field to be able to reach the grid's editing row.
8659 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
8661 * ToolTip.cs: If the control's handle hasn't been created when it has a
8662 tooltip set on it, don't check to see if we need to show the tooltip. This
8663 check was causing the control's handle to be created.
8666 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
8668 * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
8670 Handle Not Created -1 0
8674 2007-08-10 Jonathan Pobst <monkey@jpobst.com>
8676 * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
8679 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
8681 * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
8682 * ToolTip.cs: Implement some properties and owner draw.
8684 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
8686 * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
8687 show them again, since setting visibility causes a paint, causing an
8688 endless loop (instead use a temporary and set it all when it's known if
8689 they should be shown or not). Fixes #79265.
8691 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
8693 * DataGridView.cs: Only do a full column/row selection if a header was
8694 clicked and we're in Column/RowHeader selection mode. If shift and ctrl
8695 isn't pressed, deselect everything before selecting something.
8697 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
8699 * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
8700 behaviour according to bug #81075 - they are returned in the order they
8701 are selected. Fix HitTest to check if the point is within any of the
8702 headers. Allow for row/column selection when in ColumnHeader or
8703 RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
8704 the row and column to call when their selected state changes, and
8705 updated selected_[rows|columns] whenever SetSelected* is called.
8706 * DataGridViewBand.cs: Initialize isRow correctly. Call
8707 SetSelected[Row|Column]CoreInternal when the selected state changes, and
8708 add a SelectedInternal to avoid StackOverflows.
8709 * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
8710 ReadOnly no matter what.
8711 * DataGridViewSelectedColumnCollection.cs,
8712 DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
8713 the items in reverse order (just as MS does...)
8715 2007-08-09 Jonathan Pobst <monkey@jpobst.com>
8717 * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
8718 itself, not part of a mnemonic. [Fixes bug #82378]
8720 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
8722 * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
8723 * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
8724 the DGV, the column, the row, or the cell itself is readonly.
8726 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
8728 * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
8730 * FileDialog.cs: Same.
8731 * TextRendered.cs: Same.
8732 * FolderBrowserDialog.cs: Same.
8733 * TextBoxBase.cs: Same.
8734 * Application.cs: Same.
8736 * ThemeClearLooks.cs: Same.
8738 2007-08-09 Gert Driesen <drieseng@users.sourceforge.net>
8740 * XplatUI.cs: Added RunningOnUnix property to be used by controls
8741 instead of duplicating these checks everywhere.
8742 * FileDialog.cs: Use case-insensitive comparison for populating the
8743 DirComboBox when not running on unix. Fixes bug #82385.
8744 * OpenFileDialog.cs: to match MS, change label of DirComboBox to
8747 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
8749 * DataGridView.cs: SelectedRows: we need to check if selectionMode is
8750 FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
8751 BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
8752 cell and column selection with ctrl and shift pressed. Call the correct
8753 BeginEdit/EndEdit whenever we start/end editing. Move painting code to
8754 the corresponding virtual method (PaintBackground to paint background,
8756 * DataGridViewCell.cs: Implement Selected correctly, we're selected if
8757 either the column, row or the cell itself is selected.
8758 * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
8760 * DataGridViewRow.cs: Moved some of the painting code from DataGridView
8761 here. When the row is selected, don't select all cells. Each cell now
8762 queries the row to see if the row is selected.
8764 2007-08-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
8766 * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
8769 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8771 * ListView.cs: In ListViewItemsCollection check that owner is
8772 not null before trying to access it (this happens quite often
8773 using Groups). Also don't duplicate calls by calling CollectionChanged
8776 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
8778 * ToolStrip.cs: Record if we were activated by mouse or keyboard. Redraw
8779 when we are dismissed to clear keyboard mnemonics.
8780 * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs,
8781 ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
8782 * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
8783 was activated by keyboard or the OS tells us to always draw them.
8784 * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
8785 [Fixes bugs #82376, #82377]
8787 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
8789 * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a
8790 shot at having it because Alt was pressed.
8791 * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
8792 the first real menu item.
8793 * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
8794 a mnemonic if Text is null.
8797 2007-08-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8799 * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
8800 search do check whether the item is already contained in the
8801 collection or not; instead check if the owner of the item is the same
8802 as ours. Also, remove a redundant check in the same method.
8804 2007-08-08 Jonathan Pobst <monkey@jpobst.com>
8806 * Control.cs: Allow the clip region to be set back to null.
8807 * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
8808 [Fixes button still showing up in bug #82370 when Show Through is turned off]
8810 2007-08-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
8812 * GridEntry.cs: Add a null check.
8813 * PropertyGrid.cs: When checking for existing grid entries, ignore category
8814 entries. Fixes #82297.
8816 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
8818 * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
8821 2007-08-07 Jonathan Pobst <monkey@jpobst.com>
8823 * ListBox.cs: Implement ScaleControl.
8825 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
8827 * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
8829 * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
8830 parent has a menu strip. Fixes #81689.
8832 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
8834 * ToolTip.cs: We don't get mouse events on all platforms in the exact same
8835 moments, so apply some fuzzy logic to determine if the mouse is still
8836 inside a control or not. Fixes #82288 (for the third time).
8838 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
8840 * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
8841 Don't create the child if it has been disposed already (may happen if
8842 the user closes the form the Load event).
8844 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
8846 * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
8849 2007-08-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
8851 * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
8852 might call us after we've been destroyed, in which case our own private
8853 parent field is null. Fixes #82326.
8855 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
8857 * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
8858 check for setting the dropdown's owner.
8860 2007-08-06 Jonathan Pobst <monkey@jpobst.com>
8862 * MdiClient.cs: Fix some failing tests on X11 by adding a null check
8863 before removing system menu items.
8865 2007-08-02 Jonathan Pobst <monkey@jpobst.com>
8867 * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
8869 * MdiControlStrip.cs: Added. These are the menu items used in mdi
8871 * ToolStrip.cs: Add a null check to mnemonics.
8872 * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
8874 [Fixes most of bug #81689]
8876 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
8878 * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
8880 2007-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
8882 Use InitialDelay if ReshowDelay is zero. Fixes #82288.
8884 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
8886 * DataGridViewCell.cs: EditType: returns
8887 DataGridViewTextBoxEditingControl always.
8889 2007-08-01 Jonathan Pobst <monkey@jpobst.com>
8891 * TextRenderer.cs: Remove the LineLimit string format flag from the
8892 DrawString fallback method so that things like buttons that aren't
8893 tall enough to draw a full line will still draw part of the text.
8894 [Fixes part of bug #82272]
8896 2007-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
8898 * DataGridView.cs: Implemented AutoResizeColumn(s).
8899 * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
8900 according to the Alignment.
8901 * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
8902 Implement alignment and padding when painting.
8903 * DataGridViewRow.cs: SetValues: Don't create a cell if it already
8905 * DataGridViewCell.cs: Implement BorderWidths in the most primitive
8907 * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
8910 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
8912 * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
8915 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
8917 * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
8918 hide GetPreferredSize from public API.
8919 * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
8920 * ToolStripItem.cs: Stub out drag and drop methods and events.
8921 * ToolStripManager.cs: Stub out Save/LoadSettings.
8922 * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
8923 * ToolStripPanel.cs: Fix corcompare error.
8924 * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
8925 * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
8926 * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
8928 2007-07-31 Jonathan Pobst <monkey@jpobst.com>
8930 * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
8931 bounds height instead of PreferredHeight. Puts things back the way
8932 they were for height while still fixing the width. Fixes broken unit
8935 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
8937 * Binding.cs: Implement 2.0 constructors and add a null check.
8939 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
8941 * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
8942 and fix row index (off by one).
8944 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
8946 * PropertyGridView.cs: Remove debug output.
8948 2007-07-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
8950 * Control.cs: We need to reset the is_created flags when the handle is
8951 destroyed. Fixes #82187.
8952 * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
8953 client coordinates if the window doesn't have a parent.
8954 Win32GetParent returns the parent or the owner, and for top-level
8955 windows with no parent (but with an owner) we were calculating the
8956 location from the location of the owner.
8957 * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
8958 form has been disposed.
8959 * MdiClient.cs: Add a null-check.
8961 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
8963 * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
8964 actually do auto-sizing. Override the internal GetPreferredSizeCore
8965 so we can provide an implementation that returns the current width
8966 and preferred height. Allows anchor = right to work with TextBox 2.0.
8969 2007-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
8971 * ListView.cs: Add support for navigating items in Groups mode, by
8972 creating a big matrix containing all rows and cols of all groups. When
8973 are in other mode than Details, pressing Up should have a similar
8974 behaviour as that one of Down (moving to the next available column if
8975 current one doesn't have an item in the requested row). Also, don't
8976 proceed to use groups if ShowGroups is false.
8977 * ListViewGroup.cs: Add an internal int field to store the starting
8978 row of the group (used by the big matrix used for navigating the
8980 * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
8983 2007-07-30 Jonathan Pobst <monkey@jpobst.com>
8985 * ToolStripDropDown.cs: When we do Show, start with the
8986 DefaultDropDownDirection, but if our popup menu is going to off-screen,
8987 modify the direction to keep it on screen. [Fixes bug #82210]
8989 2007-07-29 Gert Driesen <drieseng@users.sourceforge.net>
8991 * FileDialog.cs: Accept any FilterIndex value, and store it
8992 unmodified. When FilterIndex is less than 1, or greater than number
8993 of filters, then default to first filter. Only add filter extension to
8994 file if user did not specifiy an extension. When type of dialog is
8995 OpenFileDialog and DefaultExt is set, then only use filter extension
8996 if: CheckFileExists is true and no file wih the default extension
8997 exists, or CheckFileExists is false, and user specified file does not
8998 exist. When CheckFileExists is true, then add first extension of
8999 selected filter that matches existing file. Perform checks for
9000 existing file, overwrite and create after extension has been added to
9001 file name. When CheckFileExists is true and type is SaveFileDialog,
9002 then only consider first filter extension if DefaultExt is set.
9003 When CheckFileExists is true, then ignore DefaultExt if file with that
9004 extension does not exist. Also perform check for existing file when
9005 type is SaveFileDialog. Changed some field to constants.
9007 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9009 * ListView.cs: Take into account the region used by header
9010 control when doing the vertical scroll (this way we invalidate
9011 the precise area, and don't get any dirty one).
9013 2007-07-27 Everaldo Canuto <ecanuto@novell.com>
9015 * FileDialog.cs: Check for valid filterIndex on button open/save.
9018 2007-07-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9020 * ListView.cs: Update some layout calculations in details view
9021 and clean the code in a pair of assignations.
9023 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
9025 * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
9026 LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
9027 MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
9028 ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
9030 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
9032 * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
9033 performance of thread-safe Graphic methods. (Thanks rolf!)
9035 2007-07-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9037 * ListView.cs: When doing the layout calculations, don't calculate
9038 scroll bars before handle is created. This is unnecessary and also
9039 calculating them before handle creation item causes a number of random
9040 bugs (which begin to appear after Chris' big patch for handle creation
9043 2007-07-26 Jonathan Pobst <monkey@jpobst.com>
9045 * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
9046 for things that don't have a Graphics object. Currently, things just use
9047 the static Hwnd.bmp_g which is not thread safe.
9049 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
9051 * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
9052 dialog. Fixes #82187.
9054 2007-07-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
9056 * DataGridViewElement.cs: Initialize state.
9057 * DataGridView.cs: Forward a few Mouse events to cells. Add
9058 GetRowInternal and GetCellInternal that doesn't unshare rows.
9059 Implement GetCellDisplayRectangle. HitTest: if the row is shared,
9060 don't use the index, but look it up. Add
9061 DataGridViewControlCollection.RemoveInternal to remove controls
9062 that Remove won't remove (scrollbars, edit control).
9063 * DataGridViewColumn.cs: Initialize State correctly.
9064 * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
9065 DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
9067 * DataGridViewRowCollection.cs: Implemented shared rows.
9068 * DataGridViewRow.cs: Throw exceptions as MS do.
9069 * DataGridViewCell.cs: A few properties are implemented by a
9070 Get<Property> method, so move implementation there and remove the
9071 NIEX in the method. Add a bunch of OnXInternal that DataGridView
9072 calls when necessary.
9073 * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
9074 complicates matters.
9075 * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
9078 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
9080 * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
9081 the children controls. Instead, we will just set up the proper docking for the
9082 children controls so we don't have to worry about it. [Fixes bug #82188]
9084 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
9086 * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
9087 canceling and correct Before/AfterLabelEdit properties as layed out in bug
9088 81847. [Fixes bug #81847]
9090 2007-07-25 Jonathan Pobst <monkey@jpobst.com>
9092 * Label.cs: If AutoSize = true and a width or height is set, ignore it and
9093 redo the autosize. VS2005 defaults to setting the AutoSize, and then setting
9094 an explicit size based on the design-time size of the text. Since our fonts
9095 may not match this explicit size, we tend to cut off the ends of people's labels.
9097 2007-07-24 Jonathan Pobst <monkey@jpobst.com>
9099 * Menu.cs: Add some missing methods to MenuItemCollection.
9101 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
9103 * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
9104 * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
9105 * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
9106 * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
9107 * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
9108 * DataGridViewElement.cs: State defaults to Visible.
9109 * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
9110 * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
9112 2007-07-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
9114 * Control.cs: Minor 1.1 corcompare fix.
9116 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
9118 * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
9119 TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
9121 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
9123 * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
9124 DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
9125 DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
9126 DataGridViewSelectedColumnCollection.cs,
9127 DataGridViewSelectedRowCollection.cs: Corcompare work.
9129 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
9131 * PrintDialog.cs: Stub UseEXDialog. I chose to stub this because
9132 it is autoset by VS2005 designer and the effect is barely noticeable.
9134 2007-07-23 Jonathan Pobst <monkey@jpobst.com>
9136 * TreeView.cs: Implement HitTest.
9138 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
9140 * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
9141 manually adding and removing the control from the Controls
9143 * DataGridView.cs: Implement DataGridViewControlCollection. Add an
9144 EditingControlInternal property that tracks the editing control.
9145 Always keeping the scrollbars in the Controls collection, as MS
9146 testing confirms is the right behaviour.
9148 2007-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
9150 * ScrollableControl.cs: Fix implementation of AutoScrollPosition
9151 according to MSDN and new test.
9153 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
9155 * TreeNode.cs: Implement ToolTipText.
9156 * TreeView.cs: Implement tooltips, NodeMouse* events.
9158 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
9160 * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
9162 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
9164 * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
9165 * TreeView.cs: Use the node's contextmenu[strip] if applicable.
9167 2007-07-20 Ivan N. Zlatev <contact@i-nz.net>
9169 * Control.cs, Form.cs, ContainerControl.cs,
9170 ScrollableControl.cs, ButtonBase.cs: Added ShouldSerialize
9171 for misc properties.
9173 2007-07-20 Jonathan Pobst <monkey@jpobst.com>
9175 * TreeNode.cs: Implement StateImageIndex and StateImageKey.
9176 * TreeView.cs: Implement StateImageList.
9178 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9180 * Form.cs: Don't check if the current form is the active form before
9181 activating it. Fixes #81904.
9183 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9185 * Form.cs: Don't check if the current form is the active form before
9186 activating it. Fixes #81904.
9188 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9190 * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
9192 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9194 * Form.cs: Don't try to position the form after loading if the form was
9195 disposed. Fixes #81969.
9197 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9199 * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
9200 properties. Had to change ToolBar into ToolStrip, which required a
9203 2007-07-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
9205 * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
9206 resized, fixes part of #79829 (vertical lines in toolbar).
9207 PropertyGrid: Refactored Populate* to something that's easier to
9208 follow at least for me, as well as splitting it up into several new
9209 methods, required to update only subitems when something has
9210 changed by a popup editor or listbox. Don't use events to check
9211 when any values are changed, since the events are unreliable (we're
9212 changing the objects the events are registered with, and if the
9213 event handling requires the objects to be immutable (objects stored
9214 in hashtables for instance), the events will never be raised).
9215 * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
9216 everytime we change a value, since events are unreliable.
9217 DropDownButtonClicked: For the same reason don't compare objects to
9218 check if it has changed or not, it would require all objects to
9219 derive Equals. Fix dialog location on windows, MS is doing weird
9220 things when creating parented forms.
9221 * GridEntry.cs: Add a SelectedObject setter.
9223 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
9225 * TreeNode.cs: Add some corcompare attributes.
9226 * TreeNodeCollection.cs: Implement 2.0 stuffs.
9227 * TreeView.cs: Implement some 2.0 stuffs.
9229 2007-07-18 Andreia Gaita <avidigal@novell.com>
9231 * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
9234 2007-07-19 Jonathan Pobst <monkey@jpobst.com>
9236 * ListBox.cs: Implement custom tab offsets.
9238 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
9240 * ToolStripContentPanel.cs: Support System renderer.
9241 * ToolStripControlHost.cs: Set RightToLeft to default to No.
9243 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
9245 * ScrollableControl.cs: Don't mess up the user's explicit bounds.
9247 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
9249 * CheckBox.cs: Chain TextAlign to base implementation instead of
9250 maintaining another one.
9252 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
9254 * ButtonBase.cs: Fix an incorrect string constant.
9256 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
9258 * TextRenderer.cs: Use the static Graphics context in Hwnd instead
9259 of creating one for measuring strings.
9261 2007-07-18 Jonathan Pobst <monkey@jpobst.com>
9263 * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs:
9264 Implement MaxItemSize.
9266 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
9268 * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
9269 for DeviceContext. Instead, use the static one available in Hwnd.
9270 Informal tests show this saves about 500k on formtest.exe.
9272 2007-07-17 Jonathan Pobst <monkey@jpobst.com>
9274 * ContainerControl.cs: Implement 2.0 AutoScaling.
9276 2007-07-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
9278 * ComboBox.cs: Work around bug #82120 (bug in mcs).
9280 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
9282 * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
9283 Darken the focus color.
9285 2007-07-16 Jonathan Pobst <monkey@jpobst.com>
9287 * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
9289 * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
9290 X, Y instead of a rect for drawing text.
9291 - For ControlPaint.DrawCheckBox, center the check a little better when the
9292 checkbox is odd width. When drawing a flat checkbox, use a white background
9293 when state != inactive.
9294 [Fixes bugs #82097, 82100]
9296 2007-07-16 Gert Driesen <drieseng@users.sourceforge.net>
9298 * ListControl.cs: When changing CurrencyManager, disconnect event
9299 handlers from previous one. Fixes bug #81771. Code formatting.
9301 2007-07-15 Andreia Gaita <avidigal@novell.com>
9303 * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
9304 full preview invalidation from layout invalidation, and only invalidate
9305 the layout when setting zoom or other properties. Invalidation should
9306 always be done even when resetting properties with the same values as
9307 what is there. Fixes #81744 and #79830.
9309 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9311 * ListView.cs: Implement initial support for Groups. Split some of the
9312 LayoutIcons code to render a partial list of the items (needed by
9313 items contained in ListViewGroup instances). Let the
9314 ListViewItemsCollection.ListView property be modifiable (needed when
9316 * ListViewGroup.cs: Use a Bounds property rather than a Location
9317 one. Also invalidate the bounds when they get changed.
9318 * ThemeWin32Classic.cs: When drawing items, also draw the group header
9319 if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
9322 2007-07-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9324 * ListView.cs: When space gets pressed and CheckBoxes is true,
9325 don't invoke the Begin and EndUpdate methods. We are generating
9326 a redraw of the entire control without need to do so.
9328 2007-07-13 William Holmes <billholmes54@gmail.com>
9330 * Control.cs: Changing logic in FindFlatForward and
9331 FindFlatBackward to handle multiple Controls with
9333 This fixes bug 81687.
9335 2007-07-13 Jonathan Pobst <monkey@jpobst.com>
9337 * OSFeature.cs: Enable IsPresent.
9339 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
9341 * Control.cs: Don't do anything in WmShowWindow if the control has been
9342 disposed. We can get WM_SHOWWINDOW after a control is disposed: a
9343 control is created, put on a form, the control is disposed (the
9344 form is never shown), and then we get a MapNotify, triggering a
9346 * Form.cs: Exclude the current form when sending Deactivate to all
9348 * NativeWindow.cs: Set WindowCreating to null as soon as possible,
9349 there was a race condition because assigning the handle raises
9350 events, we can get more messages, therefore trying to assign the
9351 handle again, which would fail if any of those event handlers
9352 closed/disposed the control.
9354 2007-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
9356 * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
9358 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
9360 * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
9361 XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
9363 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
9365 * DateTimePicker.cs: If there's no part format specifier, return an
9368 2007-07-12 Jonathan Pobst <monkey@jpobst.com>
9370 * FlatButtonAppearance.cs: Throw NotSupportedException for a
9371 Transparent BorderColor.
9373 2007-07-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
9375 * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
9376 MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
9377 X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
9378 LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
9379 LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
9380 TextBoxBase.cs, BindingNavigator.cs, Application.cs,
9381 ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
9383 * X11Structs.cs: Remove warnings, add ToString implementations.
9385 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
9387 * XplatUIX11.cs: Translate min/max size according to the actual min/max
9388 size, and not the current size. Fixes #81798.
9390 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
9392 * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
9393 XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
9394 to the control yet).
9396 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
9398 * PropertyGridTextBox.cs: Add a method that sends any forwarded
9399 mousedowns to the contained textbox.
9400 * X11Structs.cs: More ToString implementation.
9401 * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
9404 2007-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
9406 * PropertyGridView.cs: Add a null-check, fixes a few tests.
9408 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
9410 * TableLayoutPanelCellPosition.cs: TypeConverter.
9412 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
9416 * PropertyGridTextBox.cs: Propagate any color changes to all contained
9418 * PropertyGridView.cs: A few color fixes.
9420 2007-07-10 Jackson Harper <jackson@ximian.com>
9422 * TextControl.cs: Remove some old unused text formatting stuff.
9424 2007-07-10 Jackson Harper <jackson@ximian.com>
9426 * TreeView.cs: Update full row select invalidation to match the
9427 newer DrawSelection... method.
9428 - Make sure to invalidate the entire width when selecting a new
9429 node, if we have full row selection enabled.
9431 2007-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
9433 * PropertyGridView.cs: Fix for #81800, makes text show up on initial
9434 display of properties again.
9436 2007-07-10 Jonathan Pobst <monkey@jpobst.com>
9438 * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
9439 to existing collections.
9441 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
9443 * AccessibleObject.cs, RadioButton.cs: Fix some base classes
9444 that changed between 1.1 and 2.0.
9446 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
9448 * PowerStatus.cs: Added. This is just a data class, it is filled
9449 in by SystemInformation.
9451 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
9453 * Message.cs: Add op_Equality and op_Inequality.
9455 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
9457 * MenuStrip.cs: Finish corcompare work.
9459 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
9461 * LinkArea.cs: Add op_Equality and op_Inequality.
9463 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
9465 * Application.cs: Add MessageLoopCallback delegate.
9467 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
9469 * ListBox.cs: First set of 2.0 stuffs.
9471 2007-07-09 Jonathan Pobst <monkey@jpobst.com>
9473 * Control.cs: Make an internal Height property we can override
9474 without messing up the public API.
9475 * ListBox.cs: Override HeightInternal to always return the size
9476 the user set. [Fixes bug #80466]
9478 2007-07-08 Jonathan Pobst <monkey@jpobst.com>
9480 * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
9481 paint cell borders if we haven't calculated where they go yet.
9482 [Fixes bugs #82040 and #82041]
9484 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9486 * ListView.cs: In Details view, set the location of item_control
9487 in the (0,0) position (and the header_control is thus on the
9488 item_control). This way the Bounds of the Items are relative to the
9489 ListView control (before this, they had a Bounds value without the
9490 header_control offset, which wasn't matching .Net). Fixes #82004.
9492 2007-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9494 * ListControl.cs: When DataSource is set to null, pass an empty
9495 array of object to SetItemsCore. This is done to clean the items
9496 in the ListContol children. Fixes #81788.
9498 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
9500 * ListControl.cs: Add 2.0 stuffs.
9502 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
9504 * Label.cs: Finish up 2.0 stuffs. Replace calls to Refresh with Invalidate,
9505 Refresh is overkill for just about every repaint request.
9507 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
9509 * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
9510 so remove my custom Get method and fix the property getter.
9512 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
9514 * Label.cs: DefaultMargin for 2.0.
9516 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
9518 * ComboBox.cs: Override IsInputCharInternal and return true. Fixes
9519 reported issue where other controls with mnemonics would steal strokes
9520 from a selected ComboBox.
9522 2007-07-06 Jonathan Pobst <monkey@jpobst.com>
9524 * ScrollOrientation.cs: Make internal for 1.1.
9525 * ScrollEventArgs.cs: Add 2.0 stuffs.
9527 2007-07-05 Jonathan Pobst <monkey@jpobst.com>
9529 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
9530 ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
9531 ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
9533 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9535 * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
9537 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9539 * ListView.cs: Implement the so-incredibly broken 2.0
9540 VirtualItemsSelectionRangeChanged event.
9542 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9544 * ListView.cs: When enter is pressed and selection is non empty,
9545 an OnItemActivate event must be fired.
9547 2007-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9549 * ListView.cs: Store the FocusedItem information as an
9550 int instead of a ListViewItem (needed by VirtualMode).
9551 Update the calls to SetFocusedItem to pass an index instead of
9553 * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
9554 the Focused state from the owner ListView.
9556 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9558 * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
9559 property. Also, invalidate previous focused item in the mentioned
9560 property (match .Net).
9562 2007-07-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9564 * ListView.cs: Implement 2.0 FocusedItem property setter.
9566 2007-07-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9568 * ListView.cs: Implement 2.0 TopItem property setter.
9570 2007-07-03 Jonathan Pobst <monkey@jpobst.com>
9572 * StatusStrip.cs: The default renderer is System.
9573 * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it
9574 if the user specifies it.
9575 * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
9576 if we are ManagerRenderMode.
9577 * ToolStripMenuItem.cs: Calculate our text color better.
9578 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
9579 from Professional to the base class based off working with the System renderer.
9580 * ToolStripSystemRenderer.cs: Added.
9582 2007-07-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9584 * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
9586 2007-07-02 Jonathan Pobst <monkey@jpobst.com>
9588 * ToolTip.cs: Implement 2.0 Tag property.
9590 2007-06-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9592 * ListView.cs: Implement 2.0 HitTest methods.
9594 2007-06-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9596 * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
9597 item is under the pointer or not (sugar). Also remove the TODO
9598 regarding to the cursor changes in OneClick activation.
9599 * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
9600 the subitems use the parent's HotFont if UseItemStyleForSubItems is
9601 true; otherwise don't show the underline style.
9603 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9605 * ListView.cs: In ItemControl.ItemsMouseMove, refactor
9606 the code to retrieve the item at position only one time. Also
9607 change cursor when Activation is ItemActivation.OneClick as well
9608 as invalidate the item if HotTracking is true (to show/hide the
9609 underline style). Add an internal HotItemIndex property to retrieve
9610 the current hot item's index.
9611 * ListViewItem.cs: Add an internal HotFont property to cache the
9612 font used when HotTracking is true and the pointer moves within the
9614 * ThemeWin32Classic.cs: When drawing the item's text, use Font or
9615 HotFont depending on the hot state of the item.
9617 2007-06-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9619 * ListView.cs: Implement 2.0 HotTracking property.
9621 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
9623 * ToolStripControlHost.cs: If our hosted control never got created,
9624 don't try to dispose it. [Fixes bug #81909]
9626 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
9628 * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
9630 2007-06-21 Jonathan Pobst <monkey@jpobst.com>
9632 * TableLayoutPanel.cs: Implement CellBorderStyle. [Fixes bug #81884]
9634 2007-06-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9636 * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for
9638 * DrawListViewColumnHeaderEventArgs.cs:
9639 * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
9640 using the DrawText () methods.
9642 2007-06-19 Jonathan Pobst <monkey@jpobst.com>
9644 * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
9645 background which got erased in my changes yesterday.
9647 2007-06-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9649 * ListViewItem.cs: Actually set bounds for subitems in Details view
9651 * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
9652 can invoke from the owner draw routines if we need it. Also, add
9653 support for Owner draw in Details view.
9655 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
9657 * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
9658 ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
9659 ShowImageMargin setting, properly align text in a ToolStripLabel
9660 hosted on a ToolStripDropDown.
9662 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
9664 * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
9665 ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
9667 2007-06-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9669 * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
9671 2007-06-18 Jonathan Pobst <monkey@jpobst.com>
9673 * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
9674 location to match ToolStripMenuItems.
9676 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9678 * DrawListViewColumnHeaderEventArgs.cs:
9679 * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
9680 column headers in ListView.
9682 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
9684 * UserControl.cs: Implement AutoSize.
9686 2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9688 * DrawListViewItemEventArgs.cs:
9690 * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
9693 2007-06-15 Jonathan Pobst <monkey@jpobst.com>
9695 * ToolStripDropDownItemAccessibleObject.cs: Added.
9696 * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
9697 ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
9698 ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
9699 ToolStripTextBox.cs: corcompare work.
9701 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
9703 * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
9704 TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
9705 ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
9708 2007-06-14 Jonathan Pobst <monkey@jpobst.com>
9710 * OSFeature.cs: Add IsPresent.
9711 * PrintPreviewControl.cs: Add RightToLeft.
9712 * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
9713 * SplitterPanel.cs: Add AutoSizeMode.
9715 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
9717 * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
9718 * MdiClient.cs: Add 2.0 ScaleControl.
9719 * NativeWindow.cs: Implement 2.0 interface IWin32Window.
9720 * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
9722 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
9724 * Form.cs: Implement some scaling methods, stub some RTL methods,
9727 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
9729 * Control.cs: corcompare work.
9730 * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
9732 2007-06-13 Jonathan Pobst <monkey@jpobst.com>
9734 * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
9735 ControlPaint 2.0 stuffs.
9737 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
9739 * ThreadExceptionDialog.cs: Add 2.0 stuffs.
9741 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
9743 * UpDownBase.cs: Add 2.0 stuffs.
9745 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
9747 * NumericUpDown.cs: Add 2.0 stuffs.
9749 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
9751 * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
9753 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
9755 * ErrorProvider.cs: Implement 2.0 stuffs.
9757 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
9759 * DomainUpDown.cs: Implement 2.0 stuffs.
9761 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
9763 * CheckedListBox.cs: Fix RefreshItems signature.
9765 2007-06-12 Jonathan Pobst <monkey@jpobst.com>
9767 * PictureBox.cs: Implement 2.0 stuffs.
9769 2007-06-12 Andreia Gaita <avidigal@novell.com>
9771 * TabControl.cs: Check if there are tabpages before checking
9772 the selected index - fix #81802 (font changes raise a ResizeTabs
9773 call on controls.add, which blew up nicely with no tabpages)
9775 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9778 * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
9780 2007-06-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9783 * ListViewItem.cs: In VirtualMode the selection information
9784 resides in the ListView, rather than in the Items. Also, throw
9785 InvalidOperationExceptions when VirtualMode is being used and
9786 CheckedItemCollection is accessed.
9788 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
9790 * ComboBox.cs: Add ScaleControl.
9792 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
9794 * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
9796 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
9798 * GroupBox.cs: Add 2.0 stuffs.
9800 2007-06-08 Jonathan Pobst <monkey@jpobst.com>
9802 * Panel.cs: Add autosize properties/event.
9804 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
9807 - When we remove a control, remove it from the collection before performing the layout.
9808 - Setup an internal property for explicit_bounds.
9809 - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
9810 - Perform a layout when we set a new AutoSizeMode.
9812 2007-06-07 Jonathan Pobst <monkey@jpobst.com>
9814 * ScrollableControl.cs: Add 2.0 stuffs.
9816 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
9818 * ScrollBar.cs: Add 2.0 stuffs.
9820 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
9822 * Splitter.cs: Add 2.0 stuffs.
9824 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
9826 * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
9827 to have BindingContext simply use base implementation.
9829 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
9831 * ColumnHeader.cs: corcompare fix.
9833 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
9835 * Button.cs: corcompare fixes.
9836 * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
9838 2007-06-06 Jonathan Pobst <monkey@jpobst.com>
9840 * Button.cs: Override GetPreferredSizeCore.
9841 * ButtonBase.cs: PerformLayout after changing properties that can affect
9842 AutoSize. Simplify some mouse/keyboard code.
9843 * Control.cs: PerformLayout after changing Padding if AutoSize = true.
9844 * MouseEventArgs.cs: Make Location internal for 1.1.
9845 * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
9846 * Theme.cs: Add CalculateButtonAutoSize.
9847 * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
9849 2007-06-05 Miguel de Icaza <miguel@novell.com>
9851 * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
9853 2007-06-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9855 * ListViewItem.cs: We can't cache Bounds in VirtualMode
9856 since we can get different item instances every time we retrieve it.
9858 2007-06-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9860 * ListView.cs: Work around for #81602, since an unkown an pretty
9861 infrequent condition appears only in some systems (old linux boxes, it
9864 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
9866 * Button.cs: Completely reformat and a little refactor to bring
9867 this closer to Mono circa 2007.
9869 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
9871 * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
9872 to be ButtonBase.Invalidate.
9874 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
9876 * ButtonBase.cs: GetPreferredSize is 2.0 only. Fixes build.
9878 2007-06-04 Jonathan Pobst <monkey@jpobst.com>
9880 * ButtonBase.cs: Completely reformat and a little refactor to bring
9881 this closer to Mono circa 2007.
9883 2007-06-01 Everaldo Canuto <ecanuto@novell.com>
9885 * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
9886 values for autosize. Fixes #80137.
9888 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
9890 * Control.cs: Don't perform layout when AutoSize changes.
9891 * Form.cs: Perform layout in AutoSize override. Don't set ClientSize
9892 directly when autosizing, use SetBounds with BoundsSpecified.None.
9893 Fixes unit tests my last commit broke.
9895 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
9897 * Control.cs: Perform layout when AutoSize changes.
9898 * Form.cs: Implement AutoSizing.
9900 2007-06-01 Chris Toshok <toshok@ximian.com>
9902 * DataGrid.cs: remove the XXX'ed check at the top of
9903 ProcessGridKey. fixes #80464.
9905 2007-06-01 Chris Toshok <toshok@ximian.com>
9907 * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
9908 adding idempotent (add/remove in Edit()), and also make sure we
9909 don't add it until after we set the text, so it's not tripped in
9910 Edit(). Fixes unit test regression.
9912 2007-06-01 Jonathan Pobst <monkey@jpobst.com>
9914 * Control.cs: In UpdateBounds, only recalculate anchor distances if the
9915 change is user explicit, not when the layout engine moves stuff. Fixes
9916 anchoring to bottom and right. [Fixes bug #81790]
9918 2007-06-01 Andreia Gaita <avidigal@novell.com>
9920 * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
9922 2007-06-01 Andreia Gaita <avidigal@novell.com>
9924 * ContainerControl.cs:
9925 Fire enter event for common ancestor if it is not a ContainerControl.
9926 Send focus to the active_control and not the 'value', the active
9927 control might have been changed in one of the events fired.
9928 Definitely fixes #80159.
9930 2007-06-01 Andreia Gaita <avidigal@novell.com>
9932 * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
9934 2007-06-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
9936 * PropertyGrid.cs: Anchor the help description to the bottom of the
9937 help panel and refactor SelectGridItem into a
9938 SelectGridItemInternal that can be set to null (and update it to
9939 clear the help texts when it is set to null). Set root item to null
9940 when there's no SelectedObject. Fixes #80438.
9941 * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
9942 when we're recalculating after a resize (only).
9944 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9946 * ListView.cs: Implement 2.0 RedrawItems method.
9948 2007-05-31 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9950 * ListControl.cs: Disconnect PositionChanged and ItemChanged
9951 handlers from previous data manager when DataSource is set to
9954 2007-05-31 Jackson Harper <jackson@ximian.com>
9956 * TextBoxBase.cs: These seem to be the correct values.
9958 2007-05-31 Everaldo Canuto <ecanuto@novell.com>
9960 * FileDialog.cs: When close dialog with ok set filterindex using combobox
9961 value. Fixes #81784.
9963 2007-05-31 Jonathan Pobst <monkey@jpobst.com>
9965 * Control.cs: Implement 2.0 scaling methods.
9967 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
9969 * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
9970 MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
9973 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
9975 * ProgressBar.cs: Implemented missing 2.0 members.
9977 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
9979 * Control.cs: Corcompare issues.
9980 * MessageBox.cs: Implemented missing 2.0 functions.
9982 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
9984 * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
9985 Implemented more 2.0 members.
9987 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
9989 * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
9990 null (strange, but it seems to happen when running unit tests).
9992 2007-05-30 Andreia Gaita <avidigal@novell.com>
9994 * ContainerControl.cs: Set active_control even earlier, before
9995 firing any events, and undo it if validation returns false.
9997 2007-05-30 Andreia Gaita <avidigal@novell.com>
9999 * ContainerControl.cs: Raise Validation and Enter/Leave events
10000 even if there is no Form and set active_control earlier, just
10001 before firing Enter events (toshok's patches). Fixes #80647.
10003 2007-05-30 Jackson Harper <jackson@ximian.com>
10005 * TextControl.cs: Redid the pageup/pagedown a little to simplify
10006 things and fix bug #81311.
10008 2007-05-30 Jackson Harper <jackson@ximian.com>
10010 * X11Dnd.cs: Now that we have our own event loop, we need to
10011 cancel when we get a mouseup but it won't be accepted.
10013 2007-05-30 Chris Toshok <toshok@ximian.com>
10015 * DataGrid.cs (set_CurrentCell): guard against negative
10018 * DataGridColumnStyle.cs (CheckValidDataSource): just use the
10019 array index syntax instead of looping over the property names.
10021 * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
10022 and set IsInEditOrNavigateMode to false there.
10024 2007-05-30 Jackson Harper <jackson@ximian.com>
10026 * TreeView.cs: Make sure we don't get a bad visible order when
10027 setting to the top node. Fixes some misc crashing in
10030 2007-05-30 Andreia Gaita <avidigal@novell.com>
10032 * UserControl.cs: Add 2.0 AutoSizeMode
10034 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
10036 * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
10038 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
10040 * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
10041 lines. Fixes #80285.
10043 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
10045 * DataGridColumnStyle.cs: Add char trimming column header text format.
10047 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
10049 * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name.
10052 2007-05-29 Jackson Harper <jackson@ximian.com>
10054 * TreeNode.cs: Fix off by one on calculating whether or not a node
10057 2007-05-29 Jonathan Pobst <monkey@jpobst.com>
10059 * Control.cs: ResumeLayout(false) should recalculate anchor distances.
10060 * ScrollableControl.cs: Force an UpdateDistances when we move the
10064 2007-05-29 Andreia Gaita <avidigal@novell.com>
10066 * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
10067 update the page setup screen.
10069 2007-05-29 Andreia Gaita <avidigal@novell.com>
10071 * PageSetupDialog.cs: Fix landscape mode.
10073 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10075 * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
10076 IconSizeHorizontalSpacing.
10078 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10080 * ListView.cs: The declaration of prev_tooltip_item should be inside
10081 a NET_2_0 conditional (avoid a warning).
10083 2007-05-28 Andreia Gaita <avidigal@novell.com>
10085 * PageSetupDialog.cs: Implement PrintPreview control to display
10086 the preview thumbnail. Change unit conversion to use
10087 PrinterUnitConvert methods.
10089 Note: there is a huge bug in ms.net where the default margins are
10090 interpreted as centimeters (?), when in fact they are set in inches. When
10091 loading the page setup dialog initially (ms.net), the default margins
10092 are set to 1 inch, and the dialog shows them with value 10, when in fact
10093 it should be 25 (properly converted). Our dialog doesn't have this bug.
10095 * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for
10097 * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
10099 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10102 * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
10105 2007-05-28 Andreia Gaita <avidigal@novell.com>
10107 * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
10108 an IntPtr on csc (it builds fine on mcs, could it be a compiler
10109 bug?), convert the ptr to Int32 first.
10111 2007-05-28 Jackson Harper <jackson@ximian.com>
10113 * X11Dnd.cs: Add a timer, so after drop, if a finish is not
10114 recieved, we will exit the dnd tracking loop.
10116 2007-05-28 Jackson Harper <jackson@ximian.com>
10118 * X11Dnd.cs: Keep tracking until the xdnd finished event is
10119 recieved. TODO: I should probably stick a timer on the dropped
10120 event, and finish the drag if the XDND Finished event never shows
10121 (because some apps don't seem to send it).
10123 2007-05-28 Everaldo Canuto <ecanuto@novell.com>
10125 * ToolBar.cs: Fix toolbar default width for button with image. Fixes
10128 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
10130 * MonthCalendar.cs: Only mark the keypresses we actually handle as
10133 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
10135 * MonthCalendar.cs: Set the size after initializing all the relevant
10136 variables. Fixes #81742.
10138 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
10140 * KeyEventArgs.cs: Fix typo.
10142 2007-05-28 Gert Driesen <drieseng@users.sourceforge.net>
10144 * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
10145 to match MS. Fixed MinDate to only accept value less than or equal
10146 to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
10147 Removed TODO's that are now verified by unit tests.
10149 2007-05-27 Gert Driesen <drieseng@users.sourceforge.net>
10151 * TreeNodeCollection.cs: Minor corrections to exceptions to match
10154 2007-05-25 Jackson Harper <jackson@ximian.com>
10156 * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
10157 it's own message loop.
10158 * XplatUIX11.cs: Remove some of the dnd hooks
10160 2007-05-25 Gert Driesen <drieseng@users.sourceforge.net>
10162 * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
10163 instead of MinimizedWindowSize.
10165 2007-05-25 Jackson Harper <jackson@ximian.com>
10167 * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
10169 2007-05-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
10171 * KeyEventArgs.cs: Added SuppressKeyPress.
10172 * Control.cs: Added support for SuppressKeyPress.
10174 2007-05-24 Andreia Gaita <avidigal@novell.com>
10176 * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
10177 problems with PieChart. suppress_validation should not be a counter,
10178 if there are several BeginInit calls, the first EndInit will
10179 activate validation. Fix exceptions thrown by set_Value.
10180 * UpDownBase.cs: ValidateText only if it's the user editing it.
10182 2007-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10184 * ListControl.cs: FilterItemOnProperty should return the filtered
10185 item proeprty even if DataSource is null. The same applies for
10186 GetItemText. Fixes #80427.
10188 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
10190 * Control.cs: If a control doesn't have a parent when it's Dock is
10191 set, but it has children, it needs to do a layout. Fixes some nested
10192 controls issues. [Fixes bug #81199]
10194 2007-05-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
10196 * ComboBox.cs: If there are few items in the drop down list, make it
10197 the exact size the items need, no bigger. Fixes #81612.
10199 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
10201 * Application.cs: When we have captured the keyboard for a menu,
10202 check for mouse down events in case we need to close the menu.
10203 * Control.cs, Form.cs: Remove mouse down checks for menus.
10205 2007-05-24 Jackson Harper <jackson@ximian.com>
10207 * TextControl.cs: Handle tabs in non multiline mode a little
10210 2007-05-24 Jackson Harper <jackson@ximian.com>
10212 * TextControl.cs: We need to manually break apart tabbed text and
10213 move the tabs, since the system.drawing tabbing mechanism relies
10215 * TextBoxBase.cs: Move the caret properly when the user enters a
10218 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
10220 * ContainerControl.cs: Don't check CanSelect before calling
10222 * ToolStrip.cs: Only do implicit mnemonics on MenuStrips. Don't
10223 release a KeyboardActive on click if it's not ours.
10225 2007-05-23 Andreia Gaita <avidigal@novell.com>
10227 * ColumnHeader.cs: Add TypeConverter
10229 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
10231 * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
10233 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
10235 * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
10237 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
10239 * LinkLabel.cs: Implement public Padding property.
10241 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
10243 * LinkLabel.cs: Implement public FlatStyle.
10245 2007-05-23 Jonathan Pobst <monkey@jpobst.com>
10247 * Control.cs: Apply patch from George to call parent.PerformLayout
10248 when Visible is changed. [Fixes bugs #81118, 81718]
10250 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
10252 * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
10254 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
10256 * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
10258 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
10260 * ContextMenu.cs: Implement Collapse.
10262 2007-05-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
10264 * ToolBarButton.cs: Implement Name.
10266 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
10268 * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
10269 use current_item, it prevents some NRE. Fixes #81675.
10271 2007-05-22 Andreia Gaita <avidigal@novell.com>
10273 * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
10274 without updating the text.
10276 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
10278 * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
10279 without calling DeleteObject. [Should fix bug #81709]
10281 2007-05-22 Jackson Harper <jackson@ximian.com>
10283 * RichTextBox.cs: Set the line endings correctly, when flushing
10286 2007-05-22 Gert Driesen <drieseng@users.sourceforge.net>
10288 * XplatUIX11.cs: MinimumWindowSize on X11 is actually
10289 {Width=0,Height=0}.
10291 2007-05-22 Jackson Harper <jackson@ximian.com>
10293 * TreeView.cs: Setting top with a null node should set to the very
10296 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
10298 * Form.cs: ShowDialog: destroy the handle when message loop is
10299 finished, matches MS behaviour. Refactor parts of WmClose into
10300 RaiseCloseEvents, that only raises events if they haven't already
10301 been raised. Fixes #81688 and #81521.
10302 * Application.cs: Don't call close on the form when exiting a modal
10303 loop, it will raise all the (Form)Closed/Closing events again if
10304 WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
10305 which doesn'r raise any events it they have been raised before.
10307 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
10309 * Control.cs: Add OnPrint.
10310 * ToolStrip.cs: Add GetChildAtPoint.
10311 * ToolStripContainer.cs: Add OnRightToLeftChanged.
10312 * ToolStripRenderer.cs: Make CreateMirrorImage internal.
10314 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
10316 * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.
10318 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
10320 * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
10321 isn't visible anymore. Fixes #81651.
10323 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
10325 * Control.cs: WmShowWindow: Update children's z-order after setting
10326 their parent. SetParent may show the window, thereby corrupting
10327 z-order, since the window will be shown on top.
10328 * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
10329 multiple (and redundant) WM_SHOWWINDOW messages.
10330 * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
10331 event has already been raised.
10332 * Form.cs: Change is_changing_visible_state to a counter, since
10333 SetVisibleCore can be called recursively. CreateHandle: when
10334 creating mdi children, send (De)Activated events.
10335 * MdiClient.cs: Update use of is_changing_visible_state.
10336 * Application.cs: OnThreadException: Surround exception handling with
10337 try/finally to ensure we always reset the error-handling state
10340 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
10342 * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
10345 2007-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10347 * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
10348 SmallIcon views, now that we have a standarized horizontal spacing.
10350 * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
10351 4, just like the other views (Match .Net).
10353 2007-05-21 Jonathan Pobst <monkey@jpobst.com>
10355 * Control.cs: Delay calculating anchor distances until we actually layout.
10356 Always query the WM for the actual size and location it put us at instead of
10357 only when we send negative values.
10358 [Fixes bugs #81694, 81695]
10360 2007-05-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
10362 * Application.cs: Avoid a possible stack overflow when trying to exit
10365 2007-05-19 Marek Safar <marek.safar@gmail.com>
10367 * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
10370 2007-05-19 Andreia Gaita <avidigal@novell.com>
10372 * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
10373 * NumericUpDownAcceleration.cs,
10374 NumericUpDownAccelerationCollection.cs: Added 2.0
10377 2007-05-19 Gert Driesen <drieseng@users.sourceforge.net>
10379 * RichTextBox.cs: Recalculate the document after the ScrollBars
10380 property is changed. Fixes bug #81681.
10382 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
10384 * DataObject.cs: Implement 2.0 methods.
10386 2007-05-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10388 * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
10389 in the center of the checkbox, not in the left-top corner.
10392 2007-05-18 Jackson Harper <jackson@ximian.com>
10394 * RichTextBox.cs: Recalculate the document after the scrollbars
10395 property is changed.
10396 * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
10399 2007-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
10401 * CreateParams.cs: Make HasWindowManager marginally faster.
10402 * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
10403 into Hwnd so that other drivers can use it as well.
10404 * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
10405 the default location from Hwnd. Fixes MDI client windows always
10406 showing up at (0,0) in Windows (Win32 won't set the default
10407 location since the window styles aren't correct).
10409 2007-05-18 Gert Driesen <drieseng@users.sourceforge.net>
10411 * TreeView.cs: Modified DoubleBuffered to just use the base
10414 2007-05-18 Jackson Harper <jackson@ximian.com>
10416 * TreeView.cs: Set the top node to the last child node when
10418 - When we get focus, if there is no selected node, use the top
10421 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
10423 * KeysConverter.cs: Add CanConvertTo.
10424 * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
10425 * LinkConverter.cs: Added.
10427 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
10429 * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
10430 it prevents error when file dont have write access. Fixes #81669 and #81667.
10432 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
10434 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar
10435 button text. Fixes #79640.
10437 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
10439 * Control.cs: According to MSDN controls created in the designer theres
10440 keyboard accelerators visible by default. So included check for design
10441 in ShowKeyboardCuesInternal.
10443 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
10445 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox
10446 text. Fixes #81621.
10448 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
10450 * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
10451 for 1.0, becuse ShowKeyboardCues is protected on 1.0.
10453 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
10455 * Control.cs: Finish implementation of UI State using WmChangeUIState
10456 to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
10457 in some controls to check for show_keyboard_cues to draw accell keys "_".
10459 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10461 * ListBox.cs: When calculating the horizontal scrollbar
10462 in single column mode, don't use values less than 0 for
10463 Maximum. Fixes #81474.
10465 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10467 * ListBox.cs: Throw the some missing exceptions in
10468 ListBox.ObjectCollection methods.
10470 2007-05-17 Jackson Harper <jackson@ximian.com>
10472 * TextBoxBase.cs: Recalculate the document when the word wrap
10473 value has changed. This fixes 81488.
10475 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
10477 * Clipboard.cs: Implement missing GetText overload.
10479 2007-05-17 Chris Toshok <toshok@ximian.com>
10481 * Control.cs (CheckDataBindings): remove the binding_context arg
10484 * CurrencyManager.cs (OnItemChanged): fix this now that
10485 BindingManagerBase is fixed. also remove the comment telling where
10486 the fix should go. We set transfering_data to true/false around
10487 the call to PushData to keep UpdateIsBinding from being called.
10488 (ListChangedHandler): remove the extra OnMetaDataChanged call for
10489 PropertyDescriptorAdded in the 1.1 case. The extra call is
10490 actually generated by System.Data generating 2 metadata changed
10491 events of its own per column add. The fix should go there. Add a
10492 comment to that affect in our test's Assert.Ignore.
10494 * BindingManagerBase.cs: Rework PullData and PushData slightly.
10495 we keep a boolean flag (transfering_data) that keeps us from
10496 calling UpdateIsBinding multiple times if we re-enter either of
10499 * ControlBindingsCollection.cs (AddCore): remove the
10500 binding_context arg to binding.Check.
10502 * Binding.cs (IsBinding): don't check if we're binding here, just
10503 return our cached value. we update it in UpdateIsBinding.
10504 (Check): don't take the binding_context arg, we'll just use our
10505 control's. Also, for some reason MS doesn't use the data member
10506 field when getting the bindingmanager for this binding. it just
10507 uses the datasource. Make this method callable multiple times,
10508 and only do the is_null_desc stuff if manager.Position != -1 (so
10509 we don't get an exception accessing manager.Current).
10510 (UpdateIsBinding): move the code from IsBinding here.
10511 (PositionChangedHandler): call Check here to we can initialize
10512 things that require a non- -1 position.
10514 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
10516 * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
10519 2007-05-17 Andreia Gaita <avidigal@novell.com>
10521 * TabControl.cs: Add 2.0 methods and events, including
10522 OnEnter / OnLeave and raises it for tabpages (fixes #79869)
10523 * TabPage.cs: Add 2.0 methods
10525 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
10527 * Control.cs: Implement WmUpdateUIState, show_focus_cues and
10528 keyboard_cues is properly handled by message method.
10530 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
10532 * TreeViewImageIndexConverter.cs: Add 2.0 methods.
10534 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
10536 * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
10538 2007-05-16 Everaldo Canuto <ecanuto@novell.com>
10541 - WmUpdateUIState added to handle state changes, it make call to
10542 OnChangeUICues event.
10543 - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
10546 2007-05-16 Jonathan Pobst <monkey@jpobst.com>
10548 * ImageKeyConverter.cs: Added.
10549 * TreeViewImageKeyConverter.cs: Added.
10551 2007-05-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10553 * ToolTips.cs: Update Text if SetToolTip is called for a control
10554 already showing the tooltip, as well as restarting its timer; show
10555 tooltip if we are inside the control bounds by the time of calling
10556 SetToolTip. Inside ShowTooltip remove the check to not show the
10557 tooltip again for the active control (it is allowed by .Net to
10558 show the tooltip on the same control multiple times).
10560 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
10562 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
10564 2007-05-16 Andreia Gaita <avidigal@novell.com>
10566 * ContainerControl.cs: only process tab key if there are no
10567 modifier keys present, otherwise the control does the
10568 tab processing, if it needs to. Fixes #81622
10569 * TabControl.cs: Fixes calculation for which tab to select on
10572 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
10574 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
10576 2007-05-15 Jonathan Pobst <monkey@jpobst.com>
10578 * Control.cs: Make IsInputCharInternal to allow controls to
10579 override it and still match MS API.
10580 * TextBoxBase.cs: Override IsInputCharInternal and always
10584 2007-05-15 Jackson Harper <jackson@ximian.com>
10586 * TextBox.cs: Disable some of the menu options when using a
10589 2007-05-15 Jackson Harper <jackson@ximian.com>
10593 * RichTextBox.cs: Some new 2.0 methods
10595 2007-05-15 Gert Driesen <drieseng@users.sourceforge.net>
10597 * FileDialog.cs: On 1.0 profile, do not support multidotted
10600 2007-05-14 Jackson Harper <jackson@ximian.com>
10602 * TextBoxBase.cs: Implement some of the new 2.0 methods.
10603 * RichTextBox.cs: We need to override these methods on 2.0.
10604 * MaskedTextBox.cs: These are implemented now
10605 * TextControl.cs: This was off by one.
10607 2007-05-14 Jackson Harper <jackson@ximian.com>
10609 * TextControl.cs: Because the line endings are including in the
10610 text, we don't need to add them in anymore.
10612 2007-05-11 Everaldo Canuto <everaldo@simios.org>
10614 * ToolBar.cs: Fix autosize and get it working only after hadle is created,
10615 also prevent redraw in set_autosize if handle is not created. Fixes #81523.
10617 2007-05-11 Everaldo Canuto <everaldo@simios.org>
10619 * ToolBar.cs: Adjust size to default size when button theres no text and
10620 image, it fixes remaining issues from #81524.
10622 2007-05-11 Everaldo Canuto <everaldo@simios.org>
10625 - When not flat call redraw to recalculate sizes on creare handle to match
10627 - Revert 77220 because it causes some regressions in toobar
10630 2007-05-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
10632 * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
10633 now actually enters a usable state.
10635 2007-05-11 Everaldo Canuto <everaldo@simios.org>
10637 * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
10638 calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
10641 2007-05-11 Everaldo Canuto <everaldo@simios.org>
10643 * ToolBar.cs: Save default_size on create handle to use later for buttons
10644 without text, needed to mimic win32 behavior.
10646 2007-05-11 Everaldo Canuto <everaldo@simios.org>
10648 * ToolBar.cs: Fix button layour to best fit width or height according to
10649 vertical or not. Fixes #81524.
10651 2007-05-10 Everaldo Canuto <everaldo@simios.org>
10653 * ToolBarButton.cs: When change style call ToolBar.Redraw to update
10654 toolbar size info because different styles theres different sizes.
10657 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10659 * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
10660 if we are using checkboxes, checked is true, and we have less
10661 than two images in StateImageList; for the 1.1 in the same scenario
10662 draw the first image if we have at least one image in StateImageList.
10663 Fixes part of #81191.
10665 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
10667 * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
10668 the owner's Items collection on merge.
10670 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
10672 * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
10673 * ToolStripItemCollection.cs: Lots of fixes to when events get called
10674 and parent/owner gets changed based on gert's unit tests.
10676 2007-05-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
10678 * MaskedTextBox.cs: Started implementing parts of it.
10680 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10682 * ListView.cs: When clicking the checkbox on the items
10683 take into account the double clicks even if we have only
10684 one image in StateImageList (only for 1.0/1.1). Also
10685 generate an extra change of checked state when we receive
10686 the second click on checkbox (match .Net behaviour).
10687 Fixes part of #81191.
10689 2007-05-10 Everaldo Canuto <everaldo@simios.org>
10691 * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
10693 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
10695 * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
10696 even if OnLoad is overriden and base.OnLoad is not called.
10699 2007-05-10 Andreia Gaita <avidigal@novell.com>
10701 * TableLayoutSettings.cs: A big doh! fix and bowing down of head in
10702 shame. (I blame my ever-persisting and annoying cold)
10704 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
10706 * ListView.cs: Don't eat navigation keys. Let them flow through to
10707 KeyDown/KeyPress routines. [Fixes bug #81569]
10709 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
10711 * ListView.cs: When handling keys for selecting the item based off
10712 keyboard input, do not consider keys pressed with Alt or Control. Also,
10713 correctly handle keys when the Shift key is down. [Fixes bug #81578]
10715 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
10717 * Control.cs: When using UseWaitCursor, we have to store the requested
10718 Cursor to use when UseWaitCursor is turned off.
10720 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
10722 * Control.cs: Implement PreProcessControlMessage. Default IsInputChar
10724 * Application.cs: Use PreProcessControlMessage instead of
10726 * PreProcessControlMessage.cs: Make internal for 1.1.
10728 2007-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10730 * Control.cs: Add InternalContains focus property, which hast the same
10731 functionality of ContainsFocus, but also including implicit controls.
10732 * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
10733 since we need to know if the focus is contained in our implicit
10734 ItemControl when calculating Layout. Fixes part of #80888.
10736 2007-05-08 Everaldo Canuto <everaldo@simios.org>
10738 * ToolTip.cs: Remove center form string alignment as it must be align to
10741 2007-05-08 Jonathan Pobst <monkey@jpobst.com>
10743 * ToolStripItemCollection.cs: Set the new item's parent and owner
10744 in Insert like we do in Add. [Fixes bug #81568]
10746 2007-05-08 Jackson Harper <jackson@ximian.com>
10748 * TreeView.cs: GotFocus differences between 1.1 and 2.0.
10749 - Off by one error in SetTop
10750 - Disable DoubeBuffering
10752 2007-05-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
10754 * ScrollableControl.cs: ScrollIControlntoView: we now only move the
10755 control as much as necessary in order to make it entirely visible,
10756 instead of centering the control in the container (matches MS
10757 behaviour). CalculateCanvasSize: we need to take the current scroll
10758 position into account when calculating the maximum canvas,
10759 otherwise the following scenario will fail: resize so that the
10760 scrollbars appear, use the scrollbars to scroll, resize again
10761 smaller, and now the canvas size is too small. Recalculate: when
10762 showing scrollbars make sure they start off at 0, and try to scroll
10763 the active control into view. Fixes #79540. HandleScrollBar: don't
10764 scroll anywhere if the scrollbar isn't visible.
10766 2007-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10768 * ListView.cs: When focus changed, call Layout/Invalidate
10769 in the focused item to update the selected state (should show
10770 entire label when ListView is focused, and a part of it if is not).
10771 * ListViewItem.cs: When doing layout for LargeIcon, take into account
10772 for displaying the entire label not only the Focused state of the
10773 item, but also the Focused state of the ListView (match .Net
10776 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
10778 * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
10779 Implement UseWaitCursor.
10781 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
10782 Applying contributed patch from Sergey Volk.
10784 * Clipboard.cs: Implement SetDataObject retry logic and new overload
10786 * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
10788 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
10790 * Control.cs: Implement DrawToBitmap.
10792 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
10793 Applying contributed patch from Stefan Noack.
10795 * Control.cs: Add [Get|Set]AutoSizeMode.
10797 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
10799 * MdiClient.cs: Unmerge menus when the last child is closed.
10801 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
10803 * ToolStrip.cs: Do not call BeginMerge on DropDowns.
10804 * ToolStripManager.cs: Call Merge on DropDowns.
10807 2007-05-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
10809 * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
10811 * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
10812 visibility. We can't create forms visible, since we have to set the
10813 owner before making the form visible (otherwise Win32 will do
10814 strange things with task bar icons). The problem is that we set the
10815 internal is_visible to true before creating the control, so
10816 is_changing_visible_state is the only way of determining if we're
10817 in the process of creating the form due to setting Visible=true -
10818 this works because SetVisibleCore explicitly makes the form
10819 visibile afterwards anyways. Fixes #80775.
10821 2007-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10823 * ThemeWin32Classic.cs: When drawing ListViewItems,
10824 use StringTrimming.EllipsisCharacter if the view is Tile, Details,
10825 or LargeIcon _and_ item is not focused (match .Net behaviour).
10827 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
10829 * Control.cs, Form.cs: Fix some obsolete method warnings.
10831 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
10833 * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
10834 * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
10836 2007-05-04 Andreia Gaita <avidigal@novell.com>
10838 * ContainerControl.cs: Fix active_control attribution when going
10839 up the parent chain so that the first parent container gets the control
10840 and the rest of the parent containers get the child containers (skips
10841 non-containers). Fixes #80729
10843 2007-05-04 Randolph Chung <tausq@debian.org>
10845 * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
10848 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
10850 * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
10851 takes a size parameter, since the CreateParam's size isn't true for
10852 minimized forms. Fixes #81518,
10854 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
10856 * Form.cs: Add OnDeactivateInternal.
10857 * MdiClient.cs: Raise Deactivate event. Fixes #81409.
10859 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
10861 * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
10862 accessing the parent. Fixes #81508.
10864 2007-05-03 Chris Toshok <toshok@ximian.com>
10866 * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
10867 2.0 block, pass listposition + 1 to ChangeRecordState when a row
10868 was added before the current listposition. Fixes the
10869 TestInsertRowBeforeCurrent unit test.
10871 2007-05-03 Jonathan Pobst <monkey@jpobst.com>
10873 * Application.cs: Add RaiseIdle.
10874 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
10875 XplatUIX11.cs: Implement RaiseIdle.
10877 2007-05-02 Jonathan Pobst <monkey@jpobst.com>
10878 corcompare work: N - Z
10882 * ScrollableControl.cs
10883 * SplitContainer.cs
10886 * SystemInformation.cs
10888 * TableLayoutControlCollection.cs
10889 * TableLayoutPanel.cs
10894 * ToolStripComboBox.cs
10895 * ToolStripContainer.cs
10896 * ToolStripContentPanel.cs
10897 * ToolStripDropDown.cs
10898 * ToolStripDropDownItem.cs
10899 * ToolStripDropDownMenu.cs
10901 * ToolStripItemCollection.cs
10902 * ToolStripMenuItem.cs
10903 * ToolStripPanel.cs
10904 * ToolStripSplitButton.cs
10907 * TreeNodeCollection.cs
10908 * TreeNodeMouseHoverEventArgs.cs
10911 2007-05-01 Everaldo Canuto <everaldo@simios.org>
10913 * ContextMenu.cs: Add public method Show with alignment property to 2.0
10914 stuff. Thanks aatdark for the patch.
10916 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
10918 * GridItem.cs: Implement 2.0 Tag property.
10920 2007-05-01 Frederik Carlier <frederik.carlier@carlier-online.be>
10922 * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
10923 count instead of Nodes.Length. [Fixes bug #81448]
10925 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
10927 * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
10930 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
10931 corcompare work: A - M
10932 * BindingNavigator.cs
10937 * FlowLayoutPanel.cs
10943 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
10945 * Application.cs: Give toolstrips a chance to process mnemonics.
10946 * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
10947 ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
10948 ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
10950 2007-05-01 Jackson Harper <jackson@ximian.com>
10952 * TextBoxBase.cs: Better preferred height, FixedSingle gets the
10954 - Don't set the BoundsSpecified
10956 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
10958 * Application.cs: When using the toolstrip shortcut mechanism, allow the
10959 message to pass through to a regular control if it hosted by a toolstrip.
10960 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
10961 ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
10963 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
10965 * TextRenderer.cs: Use the flags argument when using the MeasureString
10966 fallback algorithm.
10968 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
10970 * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
10971 the MDI menu item. [Fixes bug #81483]
10973 2007-04-30 Gert Driesen <drieseng@users.sourceforge.net>
10975 * DataGridViewColumn.cs: Initialize value of headercell to zero-length
10976 string. When setting Name to null, use zero-length string instead.
10978 2007-04-29 Andreia Gaita <avidigal@novell.com>
10980 * TabControl.cs: Implement missing 2.0 methods (SelectTab,
10981 DeselectTab). Implement missing 2.0 TabPageCollection methods
10982 (Add, ContainsKey, RemoveByKey, IndexOfKey)
10984 2007-04-29 Pedro MartÃnez Juliá <pedromj@gmail.com>
10986 * DataGridViewColumn.cs: Make HeaderText take preference over Name.
10988 2007-04-29 Gert Driesen <drieseng@users.sourceforge.net>
10990 * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
10991 Fixes bug #81479. Include details of exception when LoadFile fails.
10993 2007-04-28 Alan McGovern <alan.mcgovern@gmail.com>
10995 * DrawListViewSubItemEventArgs.cs: Added missing setter
10997 2007-04-27 Andreia Gaita <avidigal@novell.com>
10999 * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and
11000 Hide methods (not complete). Implement missing 2.0 OnPopup event.
11002 2007-04-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11004 * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
11005 removed in ly last commit (it was breaking the Label edit feature).
11007 * ThemeWin32Classic.cs: When drawing a ListViewItem use
11008 StringAlignment.Near for LineAlignment (match .Net).
11010 2007-04-27 Andreia Gaita <avidigal@novell.com>
11012 * TabControl.cs: Change SetTab so it adds the tabpage to the list
11013 of controls if it isn't already there - was blowing up when doing
11014 tabcontrol.TabPages[i]=new TabPage().
11015 SetTab now does a replace by removing the page at the index.
11016 Add a new InsertTab method that inserts a page in a given index
11017 instead of replacing.
11018 Implements TabPageCollection.Insert(int, TabPage).
11020 2007-04-27 Chris Toshok <toshok@ximian.com>
11022 * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
11023 internal handler that can be invoked from our subclasses.) Also,
11024 add a comment to PushData about how we need to fix it.
11026 * CurrencyManager.cs: tons of changes here. trying to get things
11027 matching the behavior of .net wrt event orders (ItemChanged,
11028 CurrentChanged, PositionChanged.) I've implemented a private .net
11029 symbol (ChangeRecordState) that appears in stack traces because
11030 it's actually easier to do this than to effective inline all its
11031 various behaviors at every call site.
11033 * RelatedPropertyManager.cs: guard against an exception here by
11034 not using parent.Current if the position is set to -1 (if the
11035 parent datasource is cleared, for instance).
11037 * Binding.cs: don't parse data in PushData (this might be wrong,
11038 but it jives with MS's behavior.) Also, don't call PushData when
11039 we get a CurrentChanged event.
11041 2007-04-27 Andreia Gaita <avidigal@novell.com>
11045 WebBrowserSiteBase.cs,
11046 HtmlDocument.cs: Added stubbed out classes, no real implementations
11049 2007-04-27 Everaldo Canuto <everaldo@simios.org>
11051 * MainMenu.cs: In draw method without parameters call draw method with
11052 PaintEvent, another one (just rect) adjust rectangle and we dont need it
11053 as Rect property is already adjusted. Fixes #80694.
11055 2007-04-27 Jonathan Pobst <monkey@jpobst.com>
11057 * Application.cs: Need to handle keyboard menu deselection here.
11058 * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
11059 navigation, allowing keyboard to work on X11.
11060 * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
11062 2007-04-27 Everaldo Canuto <everaldo@simios.org>
11064 * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
11065 menu bar. It fixes some drawing issues in menu bar.
11067 2007-04-27 Everaldo Canuto <everaldo@simios.org>
11069 * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before
11070 Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
11071 when <alt> key is pressed.
11073 2007-04-26 Everaldo Canuto <everaldo@simios.org>
11075 * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries, Gtk as
11076 example just set visible to false and make this prevent from other problems.
11077 In SystrayAdd always remove pending expose. Fixes #81072.
11079 2007-04-26 Marek Safar <marek.safar@gmail.com>
11081 * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
11084 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
11086 * ListView.cs: Added three missing 2.0 events and corresponding
11087 EventHandlers. Added the OwnerDraw property.
11088 * DrawListViewColumnHeaderEventHandler.cs: fixed typo
11090 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
11092 * DrawListViewItemEventArgs.cs
11093 * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
11095 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
11097 * TextControl.cs: Fixed typo in constructor
11099 2007-04-26 Jonathan Pobst <monkey@jpobst.com>
11101 * Application.cs: Create a shortcut path so that currently selected
11102 MenuStrips can intercept keyboard events without having focus.
11103 * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
11104 * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
11105 ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
11106 keyboard navigation (arrows, tab, enter, esc) on Windows. Still need to
11107 generate WM_SYSCOMMAND message in X11 for other platforms.
11108 * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
11109 in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
11110 * ToolStripSplitButton.cs: Add DefaultItem property.
11112 2007-04-26 Everaldo Canuto <everaldo@simios.org>
11114 * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
11115 fixes some menu draw problem on Windows with border diferent from default
11116 it also fixes #81403.
11118 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
11120 * Form.cs: Refactor WndProc into separate methods, just like Control is
11123 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
11125 * Control.cs: set_Text: move the call to the driver into a seperate
11126 virtual method so that Form can override it.
11127 * MaskedTextBox.cs: Corcompare fixes.
11128 * Form.cs: Override UpdateWindowText and only update the styles if the
11129 form has been shown (fixes #81405).
11131 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
11133 * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
11134 WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
11135 WM_ACTIVATEAPP. This fixes menus not disappearing on X11 when
11136 the form lost focus or another control was clicked.
11138 2007-04-25 Gert Driesen <drieseng@users.sourceforge.net>
11140 * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
11143 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
11145 * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
11146 DrawListViewItemEventHandler.cs,
11147 DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
11149 * X11Structs.cs: More ToString implementation.
11151 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
11153 * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
11154 * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
11156 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
11158 * Control.cs: Only raise OnVisibleChanged if we're not recreating the
11160 * FormCollection.cs: Don't add a form if it's already in the
11162 * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
11163 according to behaviour and MSDN. The ownerWin32 is the active
11164 window at the moment when we call ShowDialog, not the context's
11165 main form (the context's main form may open another form that opens
11166 a form with ShowDialog, the win32 owner is the second form). Add
11167 and remove forms to the Application.OpenForms in other places to
11168 better match MS behaviour. Add an IsActive property that raises
11169 On(de)Activated only if the active state has changed (we were
11170 raising OnDeactivated before OnActivated while creating forms).
11171 * Application.cs: Refactor Enabling/Disabling of windows for modal
11172 dialog loops out to separate methods, and restore the thread
11173 context when we quit the method. Fixes #81407.
11175 2007-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11177 * ListView.cs: In ItemControl.HandleClicks, also fire
11178 2.0 MouseClick or MouseDoubleClick events on the parent,
11179 not only the Click/DoubleClick events.
11181 2007-04-24 Andreia Gaita <avidigal@novell.com>
11183 * TableLayoutSettings.cs:
11184 - Added a GetControls method and a support structure to help the
11185 TypeConverter to enumerate the controls for serialization.
11186 - Added a new serialization constructor.
11187 - Added a isSerialized flag initialized to true on the
11188 serialization constructor so that the TableLayoutPanel.LayoutSettings
11189 setter does not throw the designed NotSupportedOperation exception
11190 when the object is built through deserialization.
11191 - Implemented GetObjectData
11193 * TableLayoutPanel.cs: Added check on LayoutSettings.
11195 2007-04-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11197 * ListView.cs: Report Click and DoubleClick events to the parent
11198 from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
11199 from breaking the click count state when using dialog forms (Control
11200 reports the clicks in a similar fashion). In the previous behaviour
11201 the last WM_LBUTTONUP message in a double click was sent to the
11202 ListView's form, instead of the ListView, which was breaking the click
11203 count for it. Fixes #80387.
11205 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
11207 * BindingNavigator.cs : fixed bugs revealed by new nunit tests
11209 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
11211 * ToolStripDropDownItem.cs: Lazy initialize the DropDown. This prevents
11212 us from created dropdowns for menu items that do not have subitems.
11213 * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
11214 Check HasDropDownItems before calling DropDown so a dropdown will not be
11215 created if it isn't needed.
11217 2007-04-24 Jackson Harper <jackson@ximian.com>
11219 * TreeView.cs: Set the first node to the selected node when we get
11220 focus if there is no selected node.
11222 2007-04-24 Andreia Gaita <avidigal@novell.com>
11224 * MimeIcon.cs: remove using blocks so that image streams are
11225 not disposed of. Fixes #80151
11227 2007-04-24 Jackson Harper <jackson@ximian.com>
11229 * TextBoxBase.cs: Fixup the height of textboxes when the control
11232 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
11234 * ToolStrip.cs: Fully implement GetNextItem. Call OnParentRightToLeftChanged
11235 for each ToolStripItem when the parent's RightToLeftChanged is called.
11237 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
11239 * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
11241 * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
11242 property, so that the setter can be overriden too.
11243 * TextBox.cs: Change GetContextMenuInternal() to use
11244 ContextMenuInternal.
11246 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
11248 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
11251 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
11253 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
11256 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
11258 * MaskedTextBox.cs: Commit this so nobody else starts working on it and
11259 avoid duplicate work. Mostily skeleton code, it's not working at
11262 2007-04-20 Leszek Ciesielski <skolima@gmail.com>
11264 * NotifyIcon.cs : stub for MouseClick event
11265 * Application.cs: stub for SetUnhandledExceptionMode
11267 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
11269 * BindingNavigator.cs : Initial (partial) implementation
11271 2007-04-23 Jackson Harper <jackson@ximian.com>
11273 * TreeView.cs: Do not create the treeview's handle when setting
11274 the scroll position.
11275 - ExpandAll needs to compute the scrollbars so it knows which
11276 position to set the bar too.
11278 * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
11280 2007-04-23 Jackson Harper <jackson@ximian.com>
11282 * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
11285 2007-04-23 Jonathan Pobst <monkey@jpobst.com>
11287 * ToolStripItem.cs: Make GetImageSize internal.
11288 * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
11289 need to draw an item. Fixes a reported issue where images on menus
11290 that were not 16x16 were drawing incorrectly.
11292 2007-04-21 Miguel de Icaza <miguel@novell.com>
11294 * Padding.cs: Use the converter, fixes the resgen2 issue with
11297 2007-04-21 Jackson Harper <jackson@ximian.com>
11299 * TreeView.cs: Dont try to unhighlight the selected node if there
11300 isn't a selected node.
11302 2007-04-21 Jackson Harper <jackson@ximian.com>
11308 * TreeView.cs: Use the InternalBorderStyle property to set the
11309 initial border style, this forces the client rectangle to be sized
11312 2007-04-20 Jackson Harper <jackson@ximian.com>
11314 * TreeView.cs: Simplify scrolling to the last node after expanding
11316 - Fix some off by ones with setting the bottom.
11318 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
11320 * Control.cs: Use DefaultSize for Size, calculate ClientSize from
11321 that. We were incorrectly doing it the other way around. Also,
11322 update ClientSize if we change the BorderStyle before the control
11325 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
11327 * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
11328 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
11329 XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
11330 * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
11331 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
11332 Caption to CaptionHeight.
11333 * XplatUIX11.cs: Renamed Caption to CaptionHeight.
11334 * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
11335 and FixedFrameBorderSize to return value from current XplatUI driver.
11336 * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
11337 CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
11338 and FixedFrameBorderSize using win32 API. Renamed Caption to
11340 * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
11341 * SystemInformation.cs: Fixed typo in BorderSize.
11343 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
11345 * XplatUI.cs: Added MenuAccessKeysUnderlined.
11346 * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
11347 * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
11349 * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
11350 value from XplatUI driver.
11351 * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
11352 SystemParametersInfo.
11353 * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
11355 * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
11358 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11360 * XplatUIX11.cs, Hwnd.cs: Remove warnings.
11362 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11364 * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
11366 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
11368 * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
11369 MenuStrips that contain ToolStripSeparators.
11371 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
11373 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
11374 DefineStdCursorBitmap.
11375 * Cursor.cs: Add an internal constructor so that the Cursor knows if it
11376 has been created off a standard cursor. This is used to get a
11377 bitmap of the standard cursor when Draw or DrawStretched is called
11378 in order to draw the cursor.
11379 * X11Structs.cs: Added XcursorImage and XcursorImages.
11380 * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
11381 DefineStdCursorBitmap.
11382 * Cursors.cs: Update all relevant creations of Cursor to use the new
11383 internal constructor.
11385 2007-04-19 Jackson Harper <jackson@ximian.com>
11387 * TextBox.cs: Move the has_been_focused into the base control, so
11388 some of the text adding methods can manipulate it (probably time
11389 for a better name for this flag too).
11390 - Call a new version of selectall that doesn't scroll
11391 * TextBoxBase.cs: When we append text, if the document is empty,
11392 don't scroll. If the document has text already, we scroll to the
11393 end of the appended text.
11394 - When the text is changed, we reset the has_been_focused, so the
11395 next time the control gets focused, all the text is selected.
11397 2007-04-19 Jackson Harper <jackson@ximian.com>
11399 * TextControl.cs: Move the margins to the document, add a method
11400 so the margin sizes can be updated.
11401 * TextBoxBase.cs: When the border style is changed, update the
11404 2007-04-19 Jonathan Pobst <monkey@jpobst.com>
11406 * Control.cs: Respect DefaultPadding.
11407 * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
11408 padding into account.
11409 * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.
11411 2007-04-19 Jackson Harper <jackson@ximian.com>
11413 * TextControl.cs: Oops, we need to use the ClientRect not the
11416 2007-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11418 * ListView.cs: In ItemControl.ItemsMouseDown, take into
11419 account the double clicks when CheckBoxes are used and
11420 the pointer is inside the checkbox. Fixes part of #81191.
11422 2007-04-18 Jackson Harper <jackson@ximian.com>
11424 * TextControl.cs: Pressing the end key shouldn't move the caret
11425 past the line ending.
11426 * TextBoxBase.cs: We can still delete if we are in the line
11427 ending and the combine will just kill the existing line ending.
11429 2007-04-18 Jackson Harper <jackson@ximian.com>
11431 * TextControl.cs: We can't move lines, then invalidate their
11432 bounds, we need to get the old bounds and combine that with the
11434 * TextBoxBase.cs: Before combining two lines for a delete, we need
11435 to invalidate the area of the old line, since that will be moved
11436 in the combine operation.
11438 2007-04-18 Everaldo Canuto <everaldo@simios.org>
11440 * LinkLabel.cs: In OnPaint invoke draw background to fix problems
11441 with transparent background. Fixes #80482.
11443 2007-04-18 Jonathan Pobst <monkey@jpobst.com>
11445 * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
11446 * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
11449 2007-04-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
11451 * CreateParams.cs: Add a couple of helper methods and do a less string
11452 concatenation in ToString.
11453 * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
11454 overload that takes a Control parameter, since this method may be
11455 called before a control is assigned to the hwnd (from
11456 CreateWindow), and update CreateWindow to use the new overload. In
11457 GetMenuOrigin subtract the title bar from the y position if the
11458 form has a window manager (since we're painting it and not X).
11459 * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
11460 CreateParams to calculate the origin (since border sizes may vary).
11461 In ScreenToMenu only subtract the title height if we actually have
11463 * MdiWindowManager.cs: Override MenuHeight to always return 0, since
11464 mdi children never have menus of themselves.
11465 * InternalWindowManager.cs: Implement menu handling like form does.
11466 Added GetMenuOrigin to calculate the menu origin, can't use the
11467 CreateParams from the form like normally since it's lying.
11468 * Hwnd.cs: Implement GetBorderSize better (in the sense more
11469 windows-like) and add Inflate and comparison operators to the
11470 Borders type. When calculating MenuOrigin and it's a form with a
11471 window manager, use the window manager to calculate it.
11473 2007-04-17 Chris Toshok <toshok@ximian.com>
11475 * Control.cs (CreateControl): turns out in 2.0 we don't need this
11476 OnBindingContextChanged thing here. It's only generated from
11477 ContainerControl.OnCreateControl. Fixes a newly written unit test
11478 - BindingTest.BindingContextChangedTest4.
11480 2007-04-17 Jackson Harper <jackson@ximian.com>
11482 * ScrollBar.cs: When setting values, make sure the current
11483 position stays within the new values range.
11485 2007-04-17 Chris Toshok <toshok@ximian.com>
11487 * Control.cs (CreateControl): talk about a bizarre corner case.
11488 Don't emit OnBindingContextChanged here if we're a parentless
11489 control (i.e. if we're a form.). Fixes
11490 BindingTest.BindingContextChangedTest2.
11492 2007-04-17 Everaldo Canuto <everaldo@simios.org>
11494 * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior
11495 from win32. Fixes #81255.
11497 2007-04-17 Everaldo Canuto <everaldo@simios.org>
11499 * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
11500 already present in CalculateButtonTextAndImageLayout.
11502 2007-04-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
11504 * XplatUIX11.cs: When setting min/max size for a window we need to
11505 translate the coordinates to x coordinates. Create an overload of
11506 SetWindowMinMax that takes a CreateParams handling this, and change
11507 SetWMStyles to call this function (can't use Control.FromHandle in
11508 the SetWindowMinMax to get the control/CreateParams from the handle
11509 because the handle might not have been assigned to the control
11510 yet). Fixes #81371.
11512 2007-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11514 * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
11515 if StateImageList is non-null and it has less than two items (match MS
11516 behaviour). Also, in HandleNavKeys handle the Space key, calling
11517 the new ToggleItemsCheckState method, which tries to change the
11518 checked state of the selected items. Fixes part of #81191.
11520 2007-04-16 Jackson Harper <jackson@ximian.com>
11522 * RichTextBox.cs: namespace cleanup.
11524 2007-04-16 Everaldo Canuto <everaldo@simios.org>
11526 * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
11528 2007-04-16 Everaldo Canuto <everaldo@simios.org>
11531 * Control.cs: Call invalidate in set_Region.
11533 * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
11534 it dont works here.
11536 2007-04-16 Jackson Harper <jackson@ximian.com>
11538 * TextBoxBase.cs: When enter is pressed, we need to update all
11539 lines below the current.
11541 2007-04-16 Jonathan Pobst <jpobst@monkey.com>
11543 * MdiClient.cs: Implement implicit menu merging for MDI
11544 children. When a child form is active, if it has a menustrip
11545 and the parent form has a MainMenuStrip, automatically merge
11548 2007-04-15 Andreia Gaita <avidigal@novell.com>
11550 * TabControl.cs: Refactored sizing methods to not repeat
11551 code all over the place. Tab bounds are now calculated
11552 as if alignment is top and single line, and only when
11553 setting the bounds are the positions adjusted according
11554 to alignment. Replaced hardcoded positions, spacings and
11555 paddings by getting the values the ThemeEngine.
11558 * Theme.cs: Change TabControl properties and methods so
11559 that all start with TabControl*. Added more properties
11560 to help remove hardcoded values on tabcontrol.
11561 Add CPDrawBorder3D declaration so the Theming classes
11564 * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
11566 * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
11567 on the Theming namespace, and call the appropriate methods here.
11568 Change CPDrawBorder3D to public.
11570 2007-04-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11572 * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
11573 the control after firing the OnMouseUp event, instead of sending
11574 the message before the mentioned event. This is so we can match the
11575 MS behaviour. Fixes part of #80385.
11577 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
11579 * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
11580 RightToLeft property.
11582 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
11584 * ToolStrip.cs: Add properties and internal methods to support merging.
11585 * ToolStripItem.cs: Add MergeAction and MergeIndex.
11586 * ToolStripItemCollection.cs: Add Insert and Remove methods that do
11587 not trigger reparenting or layouts.
11588 * ToolStripManager.cs: Add Merge and RevertMerge methods.
11589 * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
11590 is hosting the overflow menu.
11592 2007-04-13 Jackson Harper <jackson@ximian.com>
11594 * TextControl.cs: Set the line ending correctly for the first
11597 2007-04-13 Sebastien Pouliot <sebastien@ximian.com>
11599 * Theme.cs: Update GetMethod to get the new definition for
11600 KnownColors.Update (and fix theme color updates).
11602 2007-04-12 Everaldo Canuto <everaldo@simios.org>
11604 * MessageBox.cs: Fix some test and button position.
11606 2007-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11608 * Form.cs: Consider the implicit controls in
11609 GetRealChildAtPoint. We need it since this method
11610 is called on Form when handling the some messages in
11611 WndProc, and need to consider those implicit ones too.
11614 2007-04-12 Jonathan Pobst <monkey@jpobst.com>
11616 * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
11617 if there are no ShortcutKeys set.
11618 * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
11619 set, use it when painting.
11621 2007-04-12 Jackson Harper <jackson@ximian.com>
11623 * TextControl.cs: Fix some off-by-one issues in line duplication
11624 and insertion in the undo manager. Also, overwrite the first tag
11625 of a line on insert, if it is just a zero lengthed tag. This
11626 prevents us from getting an extra stranded tag at the beginning of
11629 2007-04-11 Everaldo Canuto <everaldo@simios.org>
11631 * Label.cs: Remove check for handle created in CalcAutoSize, we need
11632 to calculated proper size including when handle was not created yet.
11634 2007-04-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
11636 * MdiWindowManager.cs: When moving a form, allow the form to be moved
11637 when the mouse is outside of it's parent's client rectangle. Fixes
11638 #79982 (take 3, part 2).
11640 2007-04-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
11642 * X11Structs.cs: Add a few ToString() overrides.
11643 * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
11644 the window location in a window-manager independent way. Reworked
11645 FrameExtents, it now actually works. Reworked AddConfigureNotify
11646 and ReparentNotify handling to use GetTopLevelWindowLocation
11647 instead of the earlier, more hacky solution. Reworked SetWMStyles,
11648 hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
11649 windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
11650 for all other windows (fixes #81281 part 1), a toolwindow is hidden
11651 from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
11652 and generally refactored to do as few calculations as possible
11655 2007-04-09 Sebastien Pouliot <sebastien@ximian.com>
11657 * Theme.cs: Change "reflective-contract" between MWF and SD to
11658 minimize # of calls, avoid Color serialization and avoid updating
11659 every "known colors" each time a single one is updated.
11661 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
11663 * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
11664 when not readonly and the text is explicitly set. Code style updates.
11665 * DataGridTableStyle.cs: Removed extra line.
11666 * DataGrid.cs: Code style updates. Removed extra whitespace.
11667 * DataGridColumnStyle.cs: Code style updates. Removed extra
11670 2007-04-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
11672 * XplatUIX11.cs: Added comment that "fixes" #80021.
11674 2007-04-09 Jackson Harper <jackson@ximian.com>
11676 * TextControl.cs: We don't need this -1 on the line count anymore.
11678 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
11680 * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
11681 entered value to underlying type, and convert it back to a string to
11682 apply formatting. Modified GetFormattedValue to use TypeConverter
11685 2007-04-08 Gert Driesen <drieseng@users.sourceforge.net>
11687 * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
11688 Use SubItems property when we want to ensure there's at least one
11689 subitem. Modified SubItems property to ensure there's always at least
11690 one subitem. Avoid using ListViewSubItemCollection.AddRange to match
11691 the NRE's reported by MS.
11693 2007-04-07 Gert Driesen <drieseng@users.sourceforge.net>
11695 * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
11696 ResetForeColor override on 2.0. Fixed a few API compatibility issues.
11697 Spaces to tabs. Removed extra tabs.
11699 2007-04-06 Jonathan Pobst <monkey@jpobst.com>
11701 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
11702 infinite loop. (Forgot to copy to the horizontal toolstrip case.)
11704 2007-04-06 Jackson Harper <jackson@ximian.com>
11706 * TextBoxBase.cs: When a delete removes a line, recalculate all
11707 lines below that line (they need to get offsets setup correctly)
11710 2007-04-05 Jackson Harper <jackson@ximian.com>
11712 * TextControl.cs: We need to invalidate across the width of the
11713 document when we are invalidating multiple lines.
11714 * TextBoxBase.cs: Don't delete into the line ending.
11716 2007-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11718 * ListView.cs: Restore the check for the MouseHover event
11719 in ListView. It looks like the ListView fires more than one MouseHover
11720 event when HoverSelection is true _only_ in weird-corner scenarios, but
11721 in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
11724 2007-04-05 Mike Kestner <mkestner@novell.com>
11726 * ListView.cs : raise MouseDown before updating selection.
11727 [Fixes #80373 tab 1&3]
11729 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
11731 * ToolStripRenderer.cs: Add static method to mirror image.
11732 * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
11733 and RightToLeftAutoMirrorImage.
11734 * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
11736 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
11738 * ToolStripSplitStackLayout.cs: Support Alignment property.
11739 * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
11741 2007-04-05 Jackson Harper <jackson@ximian.com>
11743 * TextControl.cs: Move around the line endings when crossing line
11745 - When combining lines, strip the ending text off the first line.
11747 2007-04-05 Jackson Harper <jackson@ximian.com>
11750 * TextBoxBase.cs: Try to never move the cursor into the line
11753 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
11755 * ToolStripItem.cs: Make sure we aren't firing mouse events when
11756 the item is disabled. Also add a few missing methods.
11758 2007-04-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11760 * ListView.cs: We don't need the MouseEnter/MouseLeave check
11761 to fire just one MouseHover event when HoverSelection is true, since
11762 .Net does fire more than one MouseHover event in that scenario. Also,
11763 fix the selection in HoverSelection, by invoking UpdateMultiSelect
11764 if MultiSelect is true, instead of only setting ListViewItem.Selected.
11765 Finally, we need to reset the Hover logic in MouseMove, even when we
11766 don't have a selected item.
11768 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
11770 * ToolStrip.cs: Add several missing methods, properties, and events.
11772 2007-04-04 Chris Toshok <toshok@ximian.com>
11774 * DataGridTextBoxColumn.cs: set the bounds of the text box to
11775 (0,0,0,0) in Commit, as MS does.
11777 * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
11778 make sure we set CurrentRow on a row header click *before* calling
11779 Select. This moves the current cell (and the textbox) to the new
11780 row. The call to Select then hides the textbox, giving us the
11781 correct behavior. Fixes #80362.
11783 * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
11784 (ListChangedHandler): reorder the position/current changed events,
11785 and call UpdateIsBinding in the ItemAdded case.
11787 * GridColumnStylesCollection.cs: add some columns events, one of
11788 which raises the CollectionChanged event.
11790 2007-04-04 Jackson Harper <jackson@ximian.com>
11792 * TextControl.cs: When we delete multiple selection lines
11793 invalidate the selection area, don't need to do that for single
11794 lines because the final update view will handle it.
11796 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
11798 * Control.cs: When we CreateControl, we need to also create all of the
11799 control's children. The child's OnLoad must also fire before the parent's
11800 OnLoad. Fixes the toolbox size in PDN.
11802 2007-04-04 Jackson Harper <jackson@ximian.com>
11804 * TextBoxBase.cs: When the user presses enter, insert a line
11805 ending into the text. (Maybe this would be a good spot for
11806 Environment.NewLine).
11807 * TextControl.cs: Remove undo manager hack, line endings get
11808 inserted properly now.
11810 2007-04-04 Everaldo Canuto <everaldo@simios.org>
11813 - Remove unneeded parameters in UpdateCursor.
11814 - Fix UpdateCursor to check if menu is active.
11815 - Call UpdateCursor when menu deactivate my click.
11816 [Fixes remaining issues from #80410]
11818 2007-04-04 Everaldo Canuto <everaldo@simios.org>
11820 * Control.cs: GetRealChildAtPoint method added, it make an
11821 recursive child control search for the point.
11823 * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
11826 * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
11828 2007-04-03 Everaldo Canuto <everaldo@simios.org>
11830 * Form.cs: Fix mouse position when send back mouse event after closes
11833 2007-04-03 Everaldo Canuto <everaldo@simios.org>
11835 * Form.cs: Simplify the BUTTONDOWN for active tracker.
11837 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
11839 * Control.cs: Fix an issue where if a user resized a control inside
11840 a sizing method like OnResize, we would overwrite their explicit
11841 value. Also, only call DefaultSize once in the constructor instead
11842 of 4 times. Also, do not call SetBoundsCore from SetBounds if
11843 nothing actually changed.
11845 2007-04-03 Jackson Harper <jackson@ximian.com>
11847 * TextControl.cs: Don't attempt to copy text for lines with no
11848 text in them (technically this shouldn't happen, but we aren't
11849 always inserting line endings when we should be).
11851 2007-04-03 Jackson Harper <jackson@ximian.com>
11853 * TextBoxBase.cs: Calculate the scrollbars before calculating the
11854 document, because this sets some of the document size properties
11857 2007-04-03 Jackson Harper <jackson@ximian.com>
11859 * TextBoxBase.cs: We need to calculate maximums even if this is
11860 not a multiline control, because the maxs are used for scrolling.
11861 - Display the caret after doing a page up/down, we need to
11862 manually display it because a proper CaretMoved event isn't
11863 triggered (this is because of the way the math is done to
11864 determine how far to scroll).
11866 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
11868 * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
11869 (ToolBar was relying on SetBoundsCore to default the values sent
11870 base off of BoundsSpecified.)
11872 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
11874 * DateTimePicker.cs: Change Text so that when a null value or empty
11875 string is assigned to the test we always raise ValueChanged and
11876 TextChanged (earlier implementation would only raise ValueChanged
11877 if the current date value was different from DateTime.Now).
11879 2007-04-03 Andreia Gaita <avidigal@novell.com>
11881 * ButtonBase: Call update after invalidation, fixes #80194
11883 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
11885 * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
11888 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
11890 * XplatUIX11.cs: SetWMStyles: If the control is a form with
11891 FormBorderStyle = None, don't give the window any decorations.
11894 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
11896 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
11897 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
11898 to check for is a mix of several styles (such as WS_CAPTION for
11900 * Control.cs: Don't paint an area bigger than the client area when
11901 painting the background colour. Add an internal GetCreateParams.
11902 Update calls to XplatUI.CalculateWindowRect due to API change.
11903 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
11904 window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
11905 the size if it hasn't been handled by any windows. When creating
11906 and moving windows, X wants the location of the entire window, but
11907 the size of the client window, so add
11908 TranslateClientRectangleToXClientRectangle,
11909 TranslateWindowSizeToXWindowSIze and
11910 TranslatedXWindowSizeToWindowSize to cope with this, and call them
11911 before every window creation and move. Update CalculateWIndowRect
11912 to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
11913 In AddConfigureNotify don't do anything if the hwnd is a zombie
11914 (fixes the BadWindow we were getting while running the tests),
11915 always calculate the offsets when it's a parentless window, not
11916 only when reparented, and translate the window size, since we're
11917 getting the client size of the whole window, excluding entire
11919 * Theme.cs: Added BorderSizableSize.
11920 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
11921 anymore. Update calls to XplatUI.CalculateWindowRect due to API
11923 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
11924 change. Fake the window styles here instead of in XplatUIWin32 so
11925 that all back-ends get the same window styles (and it's Form that's
11926 deciding when to use wm, not the Win32 backend anyways)
11927 * Hwnd.cs: Completely reworked GetWindowRectangle and
11928 GetClientRectangle - they are now passed a CreateParams and they
11929 only use Style and ExStyle to determine the rectangles (they should
11930 now work just like Win32AdjustWindowRectEx - though quite a few
11931 special cases are probably missing). They should also be 100%
11932 complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
11933 == rect), and all numbers (borders, menu sizes) are taken from the
11934 current theme. Added a GetBorders helper function that will return
11935 the borders for any given CreateParams (including captions and
11936 menus), and GetBorderSize that returns the given border size only.
11937 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
11938 Hwnd.GetClientRectangle.
11940 2007-04-02 Chris Toshok <toshok@ximian.com>
11942 * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
11943 logic between the values we present to the user and the values
11944 which are stored in the column's property. Also, don't call
11945 GetPreferredSize - it's virtual. Along the way, fix bug #80965.
11947 2007-04-02 Jackson Harper <jackson@ximian.com>
11949 * TextBoxBase.cs: Scroll faster!
11951 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
11953 * StatusStrip.cs: Layout fixes for PDN.
11954 * ToolStrip.cs: Set item's available to true, and placement to main when
11956 * ToolStripItem.cs: Fix an Available issue, check that Parent is really
11957 changing in setter before doing any work, add InternalVisible.
11958 * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
11959 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
11962 2007-04-02 Jackson Harper <jackson@ximian.com>
11964 * TextBox.cs: LBUTTON does not make the textbox select all of it's
11967 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
11969 * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
11970 Makes ToolStripComboBoxes show up again.
11972 2007-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11974 * ListView.cs: Add a hover_pending field in ListView
11975 to fire just one OnMouseHover event for each MouseEnter/MouseLeave
11976 cycle (we are resetting the MouseHover logic in XplatUI
11977 to handle HoverSelection). Fixes #80429.
11979 2007-04-02 Jackson Harper <jackson@ximian.com>
11981 * TextControl.cs: Make sure the attributes get set on the last
11983 - Still have to do the end tag if we have stepped all the ways to
11986 2007-04-02 Sebastien Pouliot <sebastien@ximian.com>
11988 * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
11989 on an internal libgdiplus call when the information is already
11990 available via the public API.
11992 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
11994 * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
11995 control is removed from a control collecftion.
11996 * XplatUIX11.cs: The first location for toplevel form is (22, 22).
11997 Fixes FormPropertyTest (failed on rare occasions).
11998 * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
11999 of Win32SetParent (when changing from no parent to a parent it
12000 might add the new parent's location in screen coordinates to this
12001 window's location).
12002 * Form.cs: Rework ChangingParent once again, now the handle is
12003 recreated whenever a FormWindowManager is added or removed (that is
12004 whenever a normal form is parented or abandoned). Also change
12005 CreateParams so that all non-toplevel windows always get the
12006 specified sice (StartupPosition is never considered for
12007 non-TopLevel forms).
12008 * ContainerControl.cs: Add ChildControlRemoved, the container control
12009 needs to be notified when a control is removed from it's
12010 collection, in the case the removed control is the active control.
12012 2007-04-02 Jackson Harper <jackson@ximian.com>
12014 * RichTextBox.cs: Use the new methods for setting the font and
12015 color, these methods set the specified attribute without
12016 overriding the other attributes.
12018 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
12020 * ToolStripPanel.cs: Fixes for better layouts in PDN.
12022 2007-03-31 Gert Driesen <drieseng@users.sourceforge.net>
12024 * TextBox.cs: Added internal ChangeBackColor method to special-case
12025 Color.Empty. Added check for invalid ScrollBars value.
12026 * TextBoxBase.cs: Added internal ChangeBackColor method.
12027 * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
12028 internal ChangeBackColor method to special-case Color.Empty. Added
12029 check for invalid ScrollBars value.
12031 2007-03-30 Everaldo Canuto <everaldo@simios.org>
12033 * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
12035 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
12037 * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
12038 * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
12039 [Based on submitted patch from Olivier Duff.]
12041 2007-03-30 Jackson Harper <jackson@ximian.com>
12043 * TextBox.cs: Only select all on initial focus if the user has not
12044 specified a selection area.
12046 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
12048 * UserControl.cs: Override CreateParams.
12050 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
12054 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
12055 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
12056 check for is a mix of several styles (such as WS_CAPTION for instance).
12057 * Control.cs: Don't paint an area bigger than the client area when painting
12058 the background colour. Add an internal GetCreateParams. Update calls to
12059 XplatUI.CalculateWindowRect due to API change.
12060 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
12061 size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
12062 hasn't been handled by any windows. When creating and moving windows, X
12063 wants the location of the entire window, but the size of the client
12064 window, so add TranslateClientRectangleToXClientRectangle,
12065 TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
12066 to cope with this, and call them before every window creation and move.
12067 Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
12068 removing DeriveStyles). In AddConfigureNotify don't do anything if the
12069 hwnd is a zombie (fixes the BadWindow we were getting while running the
12070 tests), always calculate the offsets when it's a parentless window, not
12071 only when reparented, and translate the window size, since we're getting
12072 the client size of the whole window, excluding entire window.
12073 * Theme.cs: Added BorderSizableSize.
12074 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
12075 anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
12076 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
12077 Fake the window styles here instead of in XplatUIWin32 so that all
12078 back-ends get the same window styles (and it's Form that's deciding when
12079 to use wm, not the Win32 backend anyways)
12080 * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
12081 they are now passed a CreateParams and they only use Style and ExStyle
12082 to determine the rectangles (they should now work just like
12083 Win32AdjustWindowRectEx - though quite a few special cases are probably
12084 missing). They should also be 100% complimentary (i.e. GetWindowRectangle
12085 (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
12086 sizes) are taken from the current theme. Added a GetBorders helper
12087 function that will return the borders for any given CreateParams
12088 (including captions and menus), and GetBorderSize that returns the given
12090 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
12091 Hwnd.GetClientRectangle.
12093 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
12095 * Form.cs: Don't layout mdi children on MdiParent creation, the initial
12096 layout of the mdi children is handled by CreateParams. Fixes
12099 2007-03-29 Everaldo Canuto <everaldo@simios.org>
12101 * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
12104 * Form.cs: When active tracker mouse down is not processed, send event
12105 back to control inside mouse position. [Fixes #81227]
12107 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
12109 * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
12110 remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
12111 stealing focus from the active form on Windows. (Control will be made
12112 visible in ShowWindow.)
12114 2007-03-29 Mike Kestner <mkestner@novell.com>
12116 * ImageList.cs : add internal Changed event.
12117 * ListView.cs : hook up to StateImageList.Changed to perform
12118 invalidations when the the state icon list changes. [Fixes #81191]
12120 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
12122 * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
12123 to prevent tooltips from stealing focus from the active form on Windows.
12125 2007-03-29 Everaldo Canuto <everaldo@simios.org>
12127 * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon.
12129 * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
12131 2007-03-29 Everaldo Canuto <everaldo@simios.org>
12133 * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
12136 2007-03-29 Jackson Harper <jackson@ximian.com>
12138 * TextControl.cs: When deleting text from non multiline textboxes,
12139 we need to update the entire document, because line offsets will
12142 2007-03-29 Everaldo Canuto <everaldo@simios.org>
12144 * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
12145 added to theme, now we can create themes that uses diferent notify engines
12146 like notification-daemon from galago project or growl for Mac OS.
12148 2007-03-28 Everaldo Canuto <everaldo@simios.org>
12150 * NotifyIcon.cs: Prevent Balloon to show in task bar.
12152 2007-03-28 Everaldo Canuto <everaldo@simios.org>
12154 * XplatUIX11.cs: Prevent system to open more than one balloon.
12156 * NotifyIcon.cs: Prevent system to open more than one balloon and remove
12157 some compiler warning messages.
12159 2007-03-28 Everaldo Canuto <everaldo@simios.org>
12163 * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
12165 * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect
12166 implemented, this methods is used by NotifyIcon.BalloonWindow class.
12168 * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11
12171 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12173 * ListViewItem.cs: Forgot to make Invalidate internal.
12175 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12177 * ListView.cs: Add a InvalidateSelection method to
12178 invalidate methods which are currently selected, and call
12179 it when setting FullRowSelect and HideSelection, instead of
12182 2007-03-28 Chris Toshok <toshok@ximian.com>
12184 * XplatUIX11.cs (UnmapWindow): reindent this block.
12186 * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
12187 the selection_start if we're moving the selection (that is, not
12188 extending it). Fixes bug #80461.
12190 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
12192 * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
12193 * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
12194 create private ControlCollection.
12196 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
12198 * Control.cs: We need to call OnVisibleChanged for our implicit
12199 children as well as our normal children. Fixes scrollbars in
12200 comboboxes not showing up.
12202 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
12204 * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
12205 the check for IsHandleCreated first. The check in CreateHandle is not
12206 good enough because CreateHandle can be overriden, and the override
12207 should not be called if the handle is already created.
12209 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
12211 * ToolStrip.cs: Remove MonoTODO for tooltips.
12212 * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
12213 * ToolStripContainer.cs: Add custom ControlCollection class.
12214 * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
12215 * ToolStripDropDown.cs: Add some missing properties/methods.
12216 * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
12217 * ToolStripItem.cs: Remove MonoTODO for tooltips.
12218 * ToolStripManager.cs: Add IsShortcutDefined.
12219 * ToolStripOverflow.cs: Override LayoutEngine.
12220 * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
12221 * ToolStripSeparator.cs: Add ImageKey.
12223 2007-03-28 Jackson Harper <jackson@ximian.com>
12225 * TextControl.cs: If a char delete removes a line ending, we need
12226 to update the ending style.
12227 - Make sure the line ending calcs get called.
12229 2007-03-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
12231 * XplatUIX11.cs: CreateWindow: Remove old default form location code,
12232 it was making the new code not work. Fixed a typo in the new code
12233 as well. Fixes #79826.
12235 2007-03-27 Everaldo Canuto <everaldo@simios.org>
12238 - NIF_STATE and NIF_INFO added to NotifyIconFlags.
12239 - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
12240 - SystrayBalloon method implemented.
12241 [Add support for notifyicon balloon on win32, #79149]
12243 2007-03-27 Mike Kestner <mkestner@novell.com>
12245 * ThemeWin32Classic.cs : update StateImageList selection to mirror
12246 the ms behavior when only one image is added to the list.
12249 2007-03-27 Jackson Harper <jackson@ximian.com>
12251 * TextControl.cs: Improvements to non multiline line ending
12254 2007-03-27 Everaldo Canuto <everaldo@simios.org>
12256 * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon.
12258 2007-03-27 Everaldo Canuto <everaldo@simios.org>
12261 - Balloon message handling added.
12262 - Call XplatUI.SystrayBalloon in ShowBalloonTip.
12264 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
12265 XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed
12266 to SystrayBalloon to me like other Systray method, also a
12267 handle parameter added.
12269 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12271 * ListView.cs: Show scrollbars even when items.Count == 0
12272 but the columns Width is bigger than the ListView.Width.
12273 Also, when columns.Count == 0 set layout_wd and layout_ht
12274 to the ClientRectangle values, so we don't show any scrollbar
12277 2007-03-27 Everaldo Canuto <everaldo@simios.org>
12279 * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
12281 2007-03-27 Jackson Harper <jackson@ximian.com>
12283 * RichTextBox.cs: The RTF library decodes the text properly for us
12286 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12288 * ListView.cs: Display HeaderControl even when columns.Count == 0.
12289 * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
12290 ListView header (HeaderControl), instead of Control.BackColor.
12292 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
12294 * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
12295 Fixes tab control issues where controls would not show up because they
12296 never received their OnVisibleChanged call.
12298 2007-03-27 Everaldo Canuto <everaldo@simios.org>
12300 * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
12303 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
12305 * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
12306 is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
12307 * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
12308 are max or min. Remove WS_VISIBLE from CreateParams unless we are recreating
12309 the handle. Fix WindowState by using the internal variable until we are
12310 sure that we've been shown.
12311 * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
12315 2007-03-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
12317 * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
12318 (at least borders). Fixes #79386 on Linux (with a small difference
12319 in behaviour: when trying to resize a caption-less window metacity
12320 shows the sysmenu. Resizing is still possible though).
12321 * XplatUIWin32.cs: When setting window styles send request an extra
12322 WM_NCCALCSIZE when it's a form without title (due to no text and no
12323 caption), since Win32 seems to calculate it wrong the first time we
12324 get the message, though the second time things work as they should.
12325 * Form.cs: Reorder a few statements in ChangingParent, otherwise the
12326 newly reparented window might show up unparented. Update
12327 CreateParams to exclude WS_DLGFRAME if ControlBox is false and
12328 there's no title text. Fixes #79386.
12330 2007-03-27 Mike Kestner <mkestner@novell.com>
12332 * ListBox.cs : don't perform invalidations if the handle hasn't been
12333 created. [Fixes #80753]
12335 2007-03-27 Mike Kestner <mkestner@novell.com>
12337 * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
12340 2007-03-26 Everaldo Canuto <everaldo@simios.org>
12342 * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields
12343 needed to implement Balloon.
12345 2007-03-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12347 * ListViewItem.cs: In the constructors that take
12348 an array of strings, don't use ListViewSubItemCollection.AddRange
12349 method to add items, since we need to have a different behaviour (in
12350 the constructors we add an item for each null string, opposed to
12351 the behaviour of AddRange, which adds nothing).
12353 2007-03-26 Andreia Gaita <avidigal@novell.com>
12355 * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
12357 2007-03-26 Jackson Harper <jackson@ximian.com>
12359 * TextControl.cs: Draw and measure line endings when in non
12361 - When searching the text, count the end of the last line as a
12364 2007-03-26 Jackson Harper <jackson@ximian.com>
12366 * RichTextBox.cs: The selection_start and selection_end don't
12367 really track the correct tags for the selection. So we'll manually
12368 compute the correct tag here.
12370 2007-03-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
12372 * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
12373 and Continuous styles. Fixes #79469.
12375 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
12377 * ToolStrip.cs: Implement Tooltips.
12378 * ToolStripItem.cs: Create internal method for determining tooltip.
12380 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
12382 * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
12384 2007-03-26 Everaldo Canuto <everaldo@simios.org>
12386 * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
12387 it prevents a problem thak keeps icon visible after application
12390 2007-03-26 Everaldo Canuto <everaldo@simios.org>
12392 * NotifyIcon.cs: Balloon properties and methods created.
12394 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
12395 XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
12397 2007-03-25 Jonathan Pobst <monkey@jpobst.com>
12399 * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
12401 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
12403 * Control.cs: Make SetBoundsCore match MS better. The BoundsSpecified
12404 parameter indicates which aspects were explicit/user-set.
12405 * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
12407 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
12409 * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
12410 * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
12411 SmallChange, and Value (2.0).
12412 * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
12414 2007-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12416 * ListView.cs: Always set item_control.Width in LayoutDetails
12417 if View is Details. Setting it later in CalculateScrollBars
12418 in a not-so-corner scenario (the sum of columns width is
12419 not bigger than the ListView width when handle is created, and then
12420 that sum gets bigger by increasing the width of the columns)
12421 causes a very weird recursion path (which shouldn't be happening,
12422 since header_control sets it in CalculateScrollBars too). This bug
12423 appeared after Chris' fixes for handle created issues, so probably
12424 it's related to some handle-creation time.
12426 2007-03-23 Chris Toshok <toshok@ximian.com>
12428 * DataGrid.cs (GetVisibleRowCount): increase the row count in the
12429 case where there's an add row, just so we don't end up in a case
12430 where it's not displayed (this happens when the row is partially
12431 obscured). Fixes bug #79574.
12433 2007-03-23 Jackson Harper <jackson@ximian.com>
12437 * RichTextBox.cs: Preserve line endings in the lines text buffer,
12438 also added an enum that represents the line ending type.
12440 2007-03-23 Andreia Gaita <avidigal@novell.com>
12442 * NumericUpDown.cs: Fix logic so Text and Value properties are not
12443 messed with in every method call, but only from DownButton,
12444 UpButton, UpdateEditText() and ValidateText. Fixes #80346
12446 2007-03-23 Chris Toshok <toshok@ximian.com>
12448 * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
12449 format objects if the format spec is "". Fixes bug #80889.
12451 2007-03-22 Miguel de Icaza <miguel@novell.com>
12453 * ToolStripPanel.cs (Join): added stubs to build PDN3
12455 * Control.cs (AutoScrollOffset): Add.
12457 * SystemInformation.cs (MouseWheelScrollDelta): Expose this
12458 property, its only implemented for Win32, on X11 it defaults to
12459 some hardcoded value.
12461 * ToolStripItem.cs (AllowDrop): Add property
12463 2007-03-22 Mike Kestner <mkestner@novell.com>
12465 * ListView.cs : in FullRowSelect Details mode, only enable box
12466 selection if the user clicks over the "item" column outside of the
12467 text area. Mmmmm, compatibility. [Fixes #80374 subpart 7]
12469 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
12471 * Control.cs: ChangeParent: Call Form's ChangingParent even if the
12472 handle is not created yet.
12473 * Form.cs: Select: Don't call CreateHandle if the handle is already
12474 created, avoids a stack overflow on Windows when we are recreating
12476 * ScrollableControl.cs: Set the correct z-order for the scrollbars when
12477 they are made visible, and override AfterTopMostControl to keep
12478 them on top when other controls are brought to front.
12479 CalculateCanvas: Scrollbars are only visible if auto_scroll is true
12480 or force_*scroll_visible is true (old implementation always shows
12481 scrollbars when needed, no matter what auto_scroll was set to).
12482 * InternalWindowManager.cs: UpdateWindowDecorations: Add a
12483 IsHandleCreated check.
12485 2007-03-22 Andreia Gaita <avidigal@novell.com>
12487 * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
12488 row or col separator.
12489 * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
12491 2007-03-22 Everaldo Canuto <everaldo@simios.org>
12493 * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
12495 2007-03-22 Everaldo Canuto <everaldo@simios.org>
12497 * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
12498 cursor for child controls. In ShowWindow and HideWindow now call SetCursor
12499 every time. Fixes #80410.
12501 2007-03-22 Chris Toshok <toshok@ximian.com>
12503 * BindingSource.cs (AddNew): partially implement.
12505 remove a couple of NotImplementedException's
12506 to get bug #81148 closed.
12508 2007-03-22 Everaldo Canuto <everaldo@simios.org>
12513 - UpdateCursor method added to update the screen cursor.
12514 - GetAvailableCursor method added to return cursor for enabled tree,
12515 it searches for cursor on control and it's parent's for enabled control.
12516 - Call UpdateCursor method on setter of Cursor property.
12517 - On setter of Enabled call UpdateCursor when it is false, we need to
12518 change cursor to normal (or to this parent cursor) because cursor
12519 setting theres no effect to disabled controls.
12520 - Some minor source changes to follow the coding style guidelines.
12522 * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled
12525 2007-03-22 Chris Toshok <toshok@ximian.com>
12527 * XplatUIX11.cs: ignore the BadPicture errors cairo+render
12530 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
12532 * XplatUIX11.cs: Implement default locations for forms.
12533 * Form.cs: Completely rework startup location for forms. Fixes #79964.
12534 * Hwnd.cs: Add previous_child_startup_location (to track the current
12535 startup location for any child forms of the current form) and
12536 previous_main_startup_location (to track the startup location for
12537 the current toplevel form).
12539 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
12541 * Control.cs: Don't trigger a layout if an implicit control is added
12542 that isn't visible. Also, don't notify the owner when an implicit control
12543 is added. (Owners shouldn't even know about their implicit controls.)
12545 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
12547 * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
12548 to save some re-layouts.
12550 2007-03-21 Everaldo Canuto <everaldo@simios.org>
12552 * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
12555 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
12557 * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
12558 ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
12560 2007-03-21 Mike Kestner <mkestner@novell.com>
12562 * ListView.cs : disable selection update for non-left button clicks
12563 with mods and over selected items. [Fixes #80524]
12565 2007-03-20 Jackson Harper <jackson@ximian.com>
12568 * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
12571 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12573 * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
12574 very probably a more complicated calculation there. Update the
12575 textbox' ForeColor and BackColor when the ComboBox' colors are
12576 changed. Change the border change in LayoutComboBox to only affect
12577 the textbox, not all the calculations there. Seems to fix most of
12580 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12582 * ComboBox.cs: Handle Home and End keys as well as all combinations of
12583 modifiers + navigation keys as input keys, enables advanced text
12584 selection in the combobox (like Shift+Left Arrow for instance).
12585 ComboTextBox now overrides Focused and returns whatever
12586 ComboBox.Focused returns, since it really should be focused
12587 whenever the ComboBox is. Fixes #80795. Also make the border around
12588 the text box one pixel bigger, as mentioned in #79436.
12590 2007-03-20 Jackson Harper <jackson@ximian.com>
12592 * TreeView.cs: Don't offset the images, this was causing some
12593 artifacts when expanding/collapsing with images that were the
12594 exact height of the treenode.
12596 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12598 * TrackBar.cs: Query the theme for the correct value when the mouse
12599 moves and the thumb is pressed.
12600 * Theme.cs: Added TrackBarValueFromMousePosition
12601 * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
12602 implementation was updating the trackbar value when drawing, now
12603 the drawing methods only draw. Fixes #80900. Refactored the
12604 calculations out to TrackBarValueFromMousePosition and
12605 GetTrackBarDrawingInfo, so that TrackBar can get the correct value
12606 according to the mouse position whenever it wants to. Changed the
12607 light coloured pen when drawing the thumb from ControlLight to
12608 ControlLightLight, because the ControlLight is the same colour as
12609 the background so the 3D effect is lost.
12611 2007-03-20 Everaldo Canuto <everaldo@simios.org>
12613 * Form.cs: In ShowDialog uses MainForm as transient form when no form is
12614 defined. Fixes #80784.
12616 2007-03-20 Marek Habersack <mhabersack@novell.com>
12618 * ContextMenuStrip.cs: align with the change introduced in
12621 2007-03-20 Everaldo Canuto <everaldo@simios.org>
12623 * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs,
12624 XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner
12627 2007-03-19 Chris Toshok <toshok@ximian.com>
12629 * Control.cs (WmPaint): don't make use of the Handle property
12630 after an event is emitted, as the user could have closed the
12631 form/destroyed the control. Store the Handle in a local variable
12632 and make use of that. Fixes bug #80768.
12634 2007-03-20 Everaldo Canuto <everaldo@simios.org>
12636 * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
12637 behavior in X11 environments.
12639 2007-03-20 Everaldo Canuto <everaldo@simios.org>
12641 * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
12642 because on setter of topmost we dont call SetTopmost when handle is not
12645 2007-03-20 Jackson Harper <jackson@ximian.com>
12647 * TextControl.cs: Need to use SelectionLength () not
12648 selection_length, since that var is reset to -1.
12649 - Draw the caret when we don't have focus.
12650 * TextBox.cs: The selectall actually doesn't occur until the first
12652 * TextBoxBase.cs: Need to update the caret position after a
12655 2007-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12657 * ListView.cs: Enable scrolling when using Tile view.
12659 2007-03-20 Everaldo Canuto <everaldo@simios.org>
12663 * XplatUIDriver.cs: Abstract SetOwner method created.
12665 * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method
12666 must be implemented and was masked as todo.
12668 * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with
12671 * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but
12672 cheking for null owner to remove transient. The SetTopmost will be change
12675 * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
12676 SetTopmost. Now owned forms will work properly in win32 and X11.
12678 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
12680 * MdiWindowManager.cs: Update function name.
12681 * Form.cs: After closing a form MdiParent is always null.
12682 * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
12683 better what it should do: necessary book-keeping when the form is
12684 closed, it should not close the form itself.
12686 2007-03-19 Andreia Gaita <avidigal@novell.com>
12688 * ListViewItem.cs: Fix back and fore color. The subitems only
12689 use their own colors if they are set, otherwise use the listview's
12690 colors. Don't set default colors on constructor for subitem.
12693 2007-03-19 Mike Kestner <mkestner@novell.com>
12695 * ListView.cs : make box selection for Details views with
12696 FullRowSelect conform to MS behavior when clicking in the "item"
12697 column and clicking outside the defined columns.
12698 [Fixes case 5-6 of #80374]
12700 2007-03-19 Chris Toshok <toshok@ximian.com>
12702 * ScrollableControl.cs: create the controls from within the ctor,
12703 but don't actually add them until our handle is created. this
12704 fixes a NRE possibility jpobst found (if you override OnLayout in
12705 a subclass, it's called before your ctor). Also, add a
12706 IsHandleCreated guard to UpdateSizeGripVisibility as well.
12708 2007-03-19 Jackson Harper <jackson@ximian.com>
12710 * TextBox.cs: Reduce the amount of invalidation we do.
12711 * TextBoxBase.cs: Make shortcuts enabled true by default, at least
12712 some of them are true by default on MS.
12713 - Add some functions to reduce the amount of invalidates we do.
12714 * TextControl.cs: Less invalidation.
12716 2007-03-19 Chris Toshok <toshok@ximian.com>
12718 [ Fixes #81773, and *seems* to fix #81553 as well ]
12720 * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
12721 AccumulateDestroyedHandles. We need to do it *after* we send
12722 WM_DESTROY, as the user's code can access Control.Handle in
12723 OnHandleDestroyed, and this shouldn't cause a recreation. Also,
12724 move the WM_DESTROY/zombie handling to before the call to
12725 XDestroyWindow. For some reason without this ordering
12726 FormTest.RecreateHandle hangs. This ordering is semantically
12727 equivalent, however, as XDestroyWindow is async anyway.
12729 2007-03-19 Gert Driesen <drieseng@users.sourceforge.net>
12731 * RichTextBox.cs: Reset backcolor_set after setting default.
12733 2007-03-19 Chris Toshok <toshok@ximian.com>
12735 * ScrollableControl.cs: the scroll position should not effect the
12736 canvas size. commit patch from georgegiolfan@yahoo.com, which
12737 fixes some really bizarre behavior on resizing. Fixes bug #80778.
12739 2007-03-19 Chris Toshok <toshok@ximian.com>
12741 * ScrollableControl.cs: clean this up a bit. create the
12742 scrollbars in the ctor and just show/hide them as needed. Also,
12743 make hscroll_visible/vscroll_visible internal to Recalculate, and
12744 just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
12745 everywhere else. This seems to fix the scrollbars appearing
12746 beneath the content for me (i have *no* idea why that is,
12749 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
12751 * ToolStrip.cs: Don't call DoAutoSize when we change Dock. Also, remove
12752 some redundacy for stuff in Anchor and Dock that base will take care of.
12755 2007-03-19 Mike Kestner <mkestner@novell.com>
12757 * ListView.cs : make box selection for Details views without
12758 FullRowSelect dependent on the text bounds, not item bounds.
12759 * ListViewItem.cs : add an internal property to obtain the TextBounds
12760 in Details view. [Fixes case 1-4 of #80374]
12762 2007-03-19 Andreia Gaita <avidigal@novell.com>
12764 * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
12765 we're < 2.0. #78448 && #80316
12767 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
12769 * FontDialog.cs: Don't crash when we switch to a new font that doesn't
12770 have the same style available as the previously selected one. Also,
12771 support FixedPitchOnly property. [Fixes bugs #80918, #80947]
12773 2007-03-19 Jackson Harper <jackson@ximian.com>
12775 * TextControl.cs: Add an alignment property that all new lines
12777 - Make sure to use the align shift when calculating the line's X
12779 * TextBox.cs: Set the alignment on the document as well as on all
12780 the document lines.
12782 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
12784 * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
12785 throw if setting the parent of an mdichild that already has an
12786 mdiparent. Update signature for 2.0 profile. ProductName: If there's no
12787 AssemblyProductAttribute in the assembly, use the type's namespace (as
12788 MS seems to do). CreateControl: don't create the handle if the control
12789 is not visible (according to MS behaviour and spec). SetTopLevel: Only
12790 create handle if the control is not a form. Change FocusInternal to
12791 virtual so that it can be overriden by Form.
12792 * TextBox.cs: Update call to FocusInternal.
12793 * Form.cs: Always create the handle when calling Focus on a MdiChild. The
12794 form is not a toplevel form when it's a mdi child, so update is_toplevel
12795 accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
12796 hasn't been created. Show (IWin32Window): Don't allow this overload for
12797 toplevel windows. CenterToParent/CenterToScreen/Select: create the
12798 handle as MS does. SetVisibleCore: if called on a MdiChild and the
12799 parent isn't visible yet, save the visibility and restore it when the
12800 parent is made visible.
12801 * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
12802 methods, since the visibility of the scrollbars can be changed from
12803 several places, not only from AutoScroll.
12806 2007-03-19 Jackson Harper <jackson@ximian.com>
12808 * RichTextBox.cs: Enable shortcuts by default.
12809 * TextBoxBase.cs: Add conditional shortcuts.
12811 2007-03-19 Everaldo Canuto <everaldo@simios.org>
12813 * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).
12815 2007-03-19 Chris Toshok <toshok@ximian.com>
12817 [ Fixes bug #80604]
12819 * XplatUIX11.cs (WaitForHwndMessage): change this to actually
12820 swallow the message we're waiting on, instead of delivering it, as
12821 this is only used for the WM_SHOWWINDOW raised from
12822 MapWindow/UnmapWindow, and the message needs to be generated
12823 (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
12824 before doing the Map/Unmap. Also make sure that the Hwnd is still
12825 alive after the message has been handled.
12827 *before* the window is shown.
12829 * Control.cs (CreateControl): guard a few more things inside the
12830 if (!is_created) block, as we might end up being called again -
12832 (WmShowWindow): call CreateControl if we're showing the control.
12834 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
12836 * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
12837 controls without a handle if they have any parent with a handle. In
12838 Dispose add a check whether the handle is created or not before
12839 calling BeginInvoke, this removes the need of the extra disposing
12840 parameter (which was bogus anyway since it didn't prevent the
12841 invoke from happening, it only skipped the check for an existing
12842 handle, meaning that the invoke would call on an inexistent
12845 2007-03-19 Everaldo Canuto <everaldo@simios.org>
12847 * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
12848 appears in taskbar.
12850 2007-03-18 Everaldo Canuto <everaldo@simios.org>
12853 - Fixed a problem that dont show help button for messages with 3 buttons.
12854 - Refactory button size and position calculations, now dont use fixed
12855 values, also fixed button sizes (#80043) and form's border space.
12856 - AddButton method created, now all other AddButton methods call this one.
12857 - Some other source code cosmetic changes.
12859 2007-03-18 Jackson Harper <jackson@ximian.com>
12861 * RichTextBox.cs: Don't do this all fonts must match check if
12862 there is only one char selected.
12864 2007-03-18 Jackson Harper <jackson@ximian.com>
12866 * TreeView.cs: ScrollWindow works properly now, so we don't need
12867 to screw around with the scroll area. This fixes some artifacts
12868 when expanding and collapsing.
12870 2007-03-18 Jackson Harper <jackson@ximian.com>
12872 * TextBoxBase.cs: Allow updating the selection position when the
12873 cursor is outside the textarea, but we have a capture.
12874 * TextControl.cs: A special case for when the cursor is outside
12875 the bounds of the TB.
12877 2007-03-18 Jackson Harper <jackson@ximian.com>
12879 * TextBoxBase.cs: Remove image pasting code for now. There is no
12880 way to get an image on the clipboard right now anyways.
12882 * RichTextBox.cs: Use the new RTF Picture class for pictures.
12884 2007-03-18 Everaldo Canuto <everaldo@simios.org>
12887 - Set window properties in constructor intead of on CreateParams.
12888 - Remove topmost from Window ExStyle.
12889 - Set ShowInTaskbar to false.
12890 - Set form border to FixedDialog.
12891 - Some cosmetic changes and remove unneeded comments.
12892 - It fixes itens 2,3 and 4 of bug #80043.
12894 2007-03-18 Gert Driesen <drieseng@users.sourceforge.net>
12896 * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
12897 none was explicitly set. Fixes part of bug #79949.
12899 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
12901 * ToolStripComboBox.cs: Add AutoComplete*.
12903 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
12905 * ToolStripComboBox.cs: Add FlatStyle.
12907 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
12909 * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
12910 ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
12912 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
12914 * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
12915 CheckBox.cs, RadioButton.cs, BindingSource.cs,
12916 DataGridColumnStyle.cs: Remove warnings.
12918 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
12920 * Menu.cs: MergeMenu: Check menu argument for null before looping over
12922 * MdiWindowManager.cs: Add IsVisiblePending to track the pending
12923 visibility of mdi child forms. FormSizeChangedHandler: update the
12924 maximized size if size has changed while maximized.
12925 * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
12926 creating the handle.
12927 * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
12928 avoid creating the handle if not created.
12929 * XplatUI.cs: Update debug output.
12930 * XplatUIStructs.cs: Added ToString's for a couple of structs.
12932 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
12934 * ContainerControl.cs: Give ToolStripManager the opportunity to handle
12936 * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs,
12937 ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
12938 Implement keyboard shortcuts.
12940 2007-03-15 Everaldo Canuto <everaldo@simios.org>
12942 * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
12943 Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog,
12944 ColorDialog and all derived classes.
12946 2007-03-15 Everaldo Canuto <everaldo@simios.org>
12948 [ Fixes bug #79828 ]
12951 - Rename ToolBarButtonInfor to ToolBarItem.
12952 - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
12953 - Maintain an array of ToolBarItem, used instead of ToolBarButton
12954 collection to be able add same button more than one time on a toolbar.
12955 - Refactory all properties and methods to use ToolBarItem.
12957 * ToolBarButton.cs:
12958 - Remove all propeties and methods that is now in ToolBarItem.
12959 - Rectangle propery now gets the rectangle from first ToolBarItem to
12960 mimic win32 behavior.
12961 - Size calculation and layout methods also removed.
12963 * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
12964 ToolBarItem instead of ToolBarButton to right drawing buttons when
12965 same button/separator was added more than one time to ToolBar.
12967 * ThemeNice.cs: Same as above.
12969 2007-03-15 Andreia Gaita <avidigal@novell.com>
12971 * XplatUIX11.cs: Fire extra MouseMove events right after
12972 MouseDown and MouseUp, emulating win32's <censored> behaviour
12973 for apps that rely on it.
12975 2007-03-15 Jackson Harper <jackson@ximian.com>
12978 * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
12979 it is drawn on the controls client window and there is no NC
12981 - Set the background color to gray on 2.0 when we are readonly.
12983 2007-03-15 Chris Toshok <toshok@ximian.com>
12985 [ Fixes bug #81144 ]
12987 * XplatUIX11.cs: implement VirtualScreen independently of
12988 WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
12991 2007-03-15 Chris Toshok <toshok@ximian.com>
12993 * Hwnd.cs: add an internal field for the cached_window_state.
12995 * XplatUIX11.cs: cache the window state, invalidating the cache
12996 (and thus re-querying the X server) only when we see an update to
12997 the _NET_WM_STATE property.
12999 2007-03-15 Chris Toshok <toshok@ximian.com>
13001 * BindingSource.cs: get a lot of the unit tests working.
13003 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
13005 * Control.cs: Modify UpdateStyles to store distances when bounds >=
13006 0 instead of just bounds > 0. [Fixes bug #80912]
13008 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
13010 * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
13013 2007-03-15 Ivan N. Zlatev <contact@i-nz.net>
13015 * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
13016 XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
13017 XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
13018 WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
13020 2007-03-15 Chris Toshok <toshok@ximian.com>
13024 * Control.cs: add Ivan's fix for 81101, with a slight modification
13025 - you can set control.Target to null.
13027 2007-03-14 Jonathan Pobst <monkey@jpobst.com>
13029 * ToolStripItem.cs: If our OwnerItem is null, we can't use
13030 HideDropDown, use Hide instead to prevent an NRE.
13033 2007-03-14 Jackson Harper <jackson@ximian.com>
13035 * TextBoxBase.cs: Mess with the creation stuff a little. We need
13036 to calculate the document before the handle is created, in some
13037 cases. (Actually just one case).
13039 2007-03-14 Jackson Harper <jackson@ximian.com>
13041 * TextBoxBase.cs: Need to display the caret after letting the base
13042 wndproc handle the focus methods, because the caret display
13043 methods check the focus state.
13044 - Try to display the caret after updating it's position with SelectWord.
13045 - Don't need to do an immediate update on this recalc, since there
13046 will be an invalidate anyways.
13048 2007-03-14 Jackson Harper <jackson@ximian.com>
13050 * TreeView.cs: Some workarounds so that we can match event order a
13053 2007-03-14 Gert Driesen <drieseng@users.sourceforge.net>
13055 * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
13056 #80803. Avoid NullReferenceException when Control does not have
13057 parent. Fixed different blinkstyle issues. Only subscribe to Tick
13058 event a single time. Only draw error icon when control is created and
13059 visible. Fixes failing unit tests.
13061 2007-03-14 Andreia Gaita <avidigal@novell.com>
13063 * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
13064 Selecting events. Fire Leave and Enter events when changing tabs.
13066 2007-03-14 George Giolfan <georgegiolfan@yahoo.com>
13068 * TreeView.cs: Add TreeViewNodeSorter.
13069 * TreeNodeCollection.cs: Add sorter parameter to Sort method.
13071 2007-03-14 Chris Toshok <toshok@ximian.com>
13073 * Form.cs: go ahead and remove the RecreateHandles that jpobst
13074 removed earlier and I had him add back it. It turns out metacity
13075 *does* in fact handle the MOTIF_WM_HINTS property changing, it
13076 just doesn't redraw the window titlebar until you resize the
13077 window. This also means we aren't recreating the entire window
13078 hierarchy on X when you change this property. And it looks better
13081 2007-03-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13084 * ListView.cs: Collecting selection information
13085 is now done in SelectedIndexCollection rather than in
13086 SelectedListViewItemCollection. This is done so we can
13087 have the selection information code in one single place
13088 (virtual mode selection information entirely depends on
13089 SelectedIndexCollection).
13091 2007-03-13 Miguel de Icaza <miguel@novell.com>
13093 * ErrorProvider.cs: Add stubs for ISupportInitialize
13095 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13097 * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
13098 in the right order with the right values, from the Checked property,
13099 just as MS does (instead of triggering them from ListView).
13101 * ListView.cs: Make OnItemCheck and OnItemChecked internal.
13103 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13105 * ListView.cs: Implement ItemChecked 2.0 event. Also cast to
13106 the correct handler in OnItemCheck method (ItemCheckEventHandler
13107 instead of EventHandler). This used to throw an InvalidCastException.
13109 2007-03-13 Jackson Harper <jackson@ximian.com>
13111 * TextBoxBase.cs: Calculate the document before the handle is
13112 created, so there isn't an extra invalidate called.
13114 2007-03-13 Jonathan Pobst <monkey@jpobst.com>
13116 * Form.cs: Don't set owner in ShowDialog until we are sure
13117 that we aren't going to throw an exception. [Fixes bug #80773]
13119 2007-03-12 George Giolfan <georgegiolfan@yahoo.com>
13121 * TreeView.cs: Make it compile.
13123 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
13125 * Control.cs: Another place we don't call SizeFromClientSize.
13126 * Form.cs: Another place we don't call SizeFromClientSize.
13129 2007-03-12 Jackson Harper <jackson@ximian.com>
13131 * TreeView.cs: Basically emulating some strangness here with
13132 exanding nodes and setting node positions when windows aren't
13134 - Also attempting to walk the node tree less than previously, and
13135 just use visible order calculations for determining offsets.
13136 - oops made scrolling backwards.
13137 * TreeNode.cs: We need to start nodes with a zero visible order,
13138 because the order calcs are based on the first nodes order.
13140 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
13142 * Form.cs: Don't exit the program if RecreateHandle is called on
13145 2007-03-12 Chris Toshok <toshok@ximian.com>
13147 * XEventQueue.cs: remove the use of PostQuitState.
13149 * XplatUIX11.cs: remove the use of PostQuitState. If we get a
13150 WM_QUIT message in GetMessage, return false (and if we're in the
13151 nested WaitForHwndMessage, repost the WM_QUIT message).
13153 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
13155 * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
13156 or the MaximizeBox properties. [Part of bug #80640]
13158 2007-03-12 Everaldo Canuto <everaldo@simios.org>
13160 * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
13163 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
13165 * ToolStripItem.cs: Fix some tests I broke by checking Visible
13166 instead of visible.
13168 2007-03-12 Gert Driesen <drieseng@users.sourceforge.net>
13170 * FileDialog.cs: Use text of File name combobox to determine what
13171 files the user selected. Added tokenizer to parse the file names.
13174 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
13176 * Control.cs: We can't call SizeFromClientSize in the constructor,
13177 but we still need to do the same work, so make an internal version.
13180 2007-03-12 Jackson Harper <jackson@ximian.com>
13184 * OpenTreeNodeEnumerator: Match MS better for IsVisible and
13187 2007-03-12 Jackson Harper <jackson@ximian.com>
13189 * TextBoxBase.cs: Now that the handles are being created a little
13190 later, we need to make sure that the document is recalculated when
13191 the handle is created.
13193 2007-03-11 Everaldo Canuto <everaldo@simios.org>
13195 * Theme.cs: GetLinkFont abstract method added.
13198 - Remove CalcTrimRectangle, no longer needed.
13199 - Factor also remove, position issues must be fixed in libgdiplus.
13200 - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
13201 - GetPieceFont, CreateLinkFont and link_font removed, theme must be
13202 care about font used to draw links.
13203 - Set TabStop to true when control is "Selectable", control is selectable
13204 when have one or more links. Fixes #80501 (test case is also added).
13205 - Set the LinkArea values after links change, LinkArea values must be
13206 based in first link position and size, a test case was created.
13207 - Fix ControlStyles.Selectable value, now is based on LinkArea value,
13208 the attribute must be true LinkArea.Length > 0. The same was applied to
13211 * ThemeWin32Classic.cs:
13212 - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used
13214 - Use CPDrawStringDisabled to draw disabled text instead of hard code
13216 - Draw focus rectangle for every parts focused, including parts that
13217 is on another line, its because regions returns various rectangles
13218 and not only one. Needed to mimic W32 look.
13219 - Uses Graphics.Clip to delimite region painted, it mean that now
13220 complete text is passed to DrawString, with this we solve layout
13221 issues without create another text renderer.
13222 - Uses Region.Intersect to fix some flickers problems, now only needed
13223 parts will redrawed.
13224 - This changes fixes #79614 and some other unreported issues, on Linux
13225 some layout problems still remain, the problem is under
13226 MeasureCharacterRanges but it is an libgdiplus bug.
13228 2007-03-10 Gert Driesen <drieseng@users.sourceforge.net>
13230 * TextBox.cs: Set for foreground color.
13231 * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
13232 this is already done in Control.
13234 2007-03-10 Jackson Harper <jackson@ximian.com>
13236 * TextBox.cs: Set the background color, but reset the
13237 backcolor_set flag which is just for the user setting the
13240 2007-03-09 Chris Toshok <toshok@ximian.com>
13242 * Control.cs: really remove the call to XplatUI.SetVisible from
13243 CreateHandle(), like I said I did when I merged the branch.
13245 * BindingSource.cs: implement some more of this stuff.
13247 2007-03-09 Jackson Harper <jackson@ximian.com>
13249 * TextBox.cs: Don't explicitly set our background colors.
13251 * TextBoxBase.cs: Draw readonly text.
13252 - Need to invalidate when backcolor or readonly are changed.
13254 2007-03-09 Jackson Harper <jackson@ximian.com>
13256 * TextBoxBase.cs: Don't set the forecolor until the handle is
13258 - Do not raise OnPaint, and removed some old debug code.
13260 2007-03-09 George Giolfan <georgegiolfan@yahoo.com>
13262 * ScrollableControl.cs: Fix mouse wheel scrolling.
13264 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
13266 * Control.cs: Wire up MouseDoubleClick event.
13268 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
13270 * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
13272 * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
13273 * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
13274 item is added. This logic was moved to ToolStrip.OnItemAdded.
13277 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13279 * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
13281 2007-03-08 Jackson Harper <jackson@ximian.com>
13283 * TreeView.cs: Show the correct image for selected node (this used
13284 to work, not sure how the code got deleted). Also implemented 2.0 feature
13287 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13290 * ListViewItem.cs: Cache index in items when retrieving them
13293 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
13295 * ToolStripItem.cs: Don't return the explicit_size if we are using
13296 AutoSize. Fixes invalidation issue when user has explicitly set a
13297 size and has AutoSize = true.
13299 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
13301 * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
13303 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
13305 * DataGridView.cs: Remove event handler from DataView when a
13306 DataTable is used as DataSource.
13308 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
13310 * Control.cs: Create internal setter for client_size to allow it to be
13311 set without triggering resizing code.
13312 * Form.cs: Calculate client_size in constructor, only change client_size
13313 in FormBorderStyle property if Handle has been created.
13314 [Fixes #80574, #80791]
13316 2007-03-08 George Giolfan <georgegiolfan@yahoo.com>
13318 * SystemInformation.cs: Add TerminalServerSession.
13320 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
13322 * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
13325 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
13327 * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
13328 Handle before we were supposed to. Now checks ActivateOnShow property
13330 * Control.cs: Add internal ActivateOnShow property.
13331 * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
13332 for ActivateOnShow.
13333 * Hwnd.cs Remove no longer needed no_activate field.
13335 2007-03-07 Jackson Harper <jackson@ximian.com>
13337 * TreeView.cs: Implement owner draw tree nodes. And a couple more
13339 * DrawTreeNodeEventHandler.cs: Add
13340 * DrawTreeNodeEventArgs.cs: Correct default value.
13342 2007-03-07 Chris Toshok <toshok@ximian.com>
13344 * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
13345 to be called before NativeWindow.WndProc. Put the HwndCreating
13346 magic there to hook up our Hwnd's to handles.
13348 2007-03-07 Gert Driesen <drieseng@users.sourceforge.net>
13350 * DataGridView.cs: Comment out debug code.
13352 2007-03-07 Chris Toshok <toshok@ximian.com>
13354 [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
13355 to make the rest of the world happy]
13357 * Control.cs (CreateHandle): there's no need to call
13358 XplatUI.SetVisible here, it's effectively done by
13359 XplatUI.CreateWindow on X now, and always was on windows.
13361 * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
13362 shortcircuit out of the loop if we have a message loop running on
13365 [Changelog from merge]
13367 2007-03-05 Chris Toshok <toshok@ximian.com>
13369 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
13370 causes handle creation.
13372 2007-02-28 Chris Toshok <toshok@ximian.com>
13374 * ApplicationContext.cs: Add a flag to make sure we only raise the
13375 ThreadExit event once (ExitThreadCore can be indirectly called
13376 from a few places.) I don't like the additional flag, but it
13377 makes the event ordering/count correct.
13379 * Application.cs (MWFThread.LoopCount): don't use an enumerator
13380 without locking the collection. An enumerator doesn't give us any
13381 protection from modification anyway. Lock the thread hash and
13382 replace the complicated enumerator loop with a foreach.
13383 (Application.CloseForms): make internal so it can be called from
13384 ApplicationContext. This should probably be moved to MWFThread.
13385 (Application.ExitThread): don't call MWFThread.Current.Exit()
13386 here. just call XplatUI.PostQuitMessage. We'll exit the thread
13387 when the runloop exits (in response to WM_QUIT.)
13388 (Application.RunLoop): add a comment (and check) for
13389 context.MainForm being null after setting context.MainForm.Visible
13390 = true. This is because you're perfectly free to dispose of a
13391 form in VisibilityChanged. Chalk this up to another case where we
13392 need to synchronously generate WM_ACTIVATE from Control.Show.
13393 Also, add handling for WM_QUIT here so we'll exit the loop.
13395 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit. The
13396 fact that we don't wait if we're only unmapping the whole_window
13397 makes me a bit nervous, but it doesn't seem to cause any problems
13400 also, add a comment about the stupid, broken and wrong resetting
13401 of PostQuitState to false in GetMessage().
13403 In PostQuitMessage, we need to add a WM_QUIT message to the
13404 thread's queue. We use the FosterParent to get the right
13407 Lastly, in SetVisible, we need to unmap both windows, since the
13408 waiting only happens when we're unmapping the client window. So
13409 now, the *only* time we unmap just the whole_window is in the hack
13410 for resizing a control to 0,0.
13412 2007-02-21 Chris Toshok <toshok@ximian.com>
13414 * Application.cs (CloseForms): rewrite this so that we don't
13415 modify the list while we're traversing it.
13417 2007-02-20 Chris Toshok <toshok@ximian.com>
13419 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
13420 of OnHandleCreated.
13421 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
13422 handle is created. otherwise we'll create it here.
13423 (VerticalScrollEvent): same here.
13425 * Application.cs (CloseForms): call Form.Dispose, don't post
13428 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
13429 here. Application should Dispose() of the Form's.
13431 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
13432 WM_DESTROY as well.
13433 (MapWindow,UnmapWindow): only actually do the waiting for
13434 SHOWWINDOW if the control we're dealing with is a Form.
13435 (CreateWindow): if the control isn't a form, SendMessage
13436 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
13438 * Control.cs (SetVisibleCore): always use is_visible here, not
13439 value. If we use value, we can end up re-setting something
13440 visible if, for instance, you do Control.Hide() in a delegate
13441 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
13443 2007-02-20 Chris Toshok <toshok@ximian.com>
13445 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
13446 the message we need. PeekMessage returning false should not be a
13447 condition under which we exit the loop.
13449 2007-02-15 Chris Toshok <toshok@ximian.com>
13451 * Control.cs (Refresh): only refresh if we've got a handle and are
13453 (CreateAccessibilityInstance): CreateControl() here.
13454 (UpdateChildrenZOrder): complicate the code loop even more by
13455 taking into account controls that haven't had their handle
13456 created, and those that aren't visible. But on the flip side,
13457 simplify the code by splitting it into two loops. one which
13458 builds up the list of child controls we're interested in, and the
13459 other that sets the z order of those children.
13461 2007-02-14 Chris Toshok <toshok@ximian.com>
13463 * Control.cs: Control.AccessibilityObject causes the control to be
13464 created, not just the handle.
13466 2007-02-14 Chris Toshok <toshok@ximian.com>
13468 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
13469 problem on X where a window might have its handle created (and be
13470 visible) while the window is unmapped. calling XConfigureWindow
13471 on an unmapped window is bad, and generates X errors.
13473 2007-02-13 Chris Toshok <toshok@ximian.com>
13475 * Control.cs (CreateHandle): don't loop over our children setting
13476 their parent here. do it when in WndProc when we're shown.
13477 (UpdateChildrenZOrder): make this internal so we can call it from
13479 (WndProc): for WM_SHOWWINDOW, reparent the child control after
13480 creating its handle. Also, remove the calls to PerformLayout from
13481 here. they're done in ScrollableControl.OnVisibleChanged. Also,
13482 OnVisibleChanged only seems to be called directly here for the
13483 toplevel control. It's propagated down the window hierarchy by
13484 calls to child.OnParentVisibleChanged.
13485 (OnVisibleChanged): don't do layout here - it's done (oddly
13486 enough, according to a glance at stack traces on ms.net..) in
13489 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
13490 z order of our children before calling PerformLayout.
13492 2007-02-12 Chris Toshok <toshok@ximian.com>
13494 [big change, fixes #80020]
13496 * AccessibleObject.cs: we need to make owner internal again to fix
13497 some of ControlAccessibleObject.
13499 * Control.cs: lots of changes here. add support for WM_CREATE,
13500 for which we generate OnHandleCreated. Remove the OnHandleCreated
13501 call from CreateHandle. Also add support for WM_SHOWWINDOW where
13502 we create child controls. leave the MonoTODO's for the
13503 accessibility calls, but fix the exceptions so the tests pass.
13505 Add the InvalidOperationExceptions to Invoke methods, and remove a
13506 couple of InvokeInternal methods we aren't using.
13508 Also, add a couple of CreateHandle calls in places where we know
13509 the handles are being created but our code doesn't reference
13512 Make SetVisibleCore call OnVisibleChange if the handle isn't
13513 created. If the handle is created, we rely on XplatUI.SetVisible
13514 generating the event synchronously.
13516 Lastly, make sure we don't use this.Handle inside CreateHandle,
13517 because we can call back into client (and that code can dispose of
13520 * XplatUIStructs.cs: misc/cleanup.
13522 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
13523 although we don't populate the wParam properly.
13524 (CreateWindow): generate WM_CREATE.
13525 (MapWindow,UnmapWindow): make these calls synchronous, at great
13526 performance expense (particularly in the unmap case), to match
13529 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
13531 (set_MdiParent): don't recreate the handle unless it's been
13534 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
13537 * NativeWindow.cs: this is probably the weirdest part of the
13538 patch. We need a way to link up the window being created to the
13539 WM_CREATE message. Since we can only be creating one window at a
13540 time on a given thread, we keep track of a per-thread reference so
13541 we can dispatch it properly. We also need to keep track of the
13542 Hwnd currently being created so that the win32 backend doesn't
13545 * XplatUIWin32.cs: a similar change to the one we made in
13548 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
13550 * ToolStripItem.cs: Make CalculatePreferredSize virtual.
13551 * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
13552 to draw the menu shortcut string.
13554 2007-03-07 Jackson Harper <jackson@ximian.com>
13556 * TreeNode.cs: Add the 2.0 collapse method.
13558 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
13560 * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
13562 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
13564 * DataGridView.cs: Change DataSource will clear column and row
13565 lists. Call Invalidate() to reflect DataSource change.
13567 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
13569 * DataGridView.cs: Add rows when DataSource is System.Data.DataView
13570 and a new row is added to it.
13572 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
13574 * DataGridView.cs: Add columns when DataSource is en empty list but
13575 is a System.Data.DataView (from a System.Data.DataTable).
13577 2007-03-06 Andreia Gaita <avidigal@novell.com>
13579 * Label.cs: Implement AutoEllipsis (2.0)
13581 2007-03-06 Jackson Harper <jackson@ximian.com>
13583 * TreeView.cs: Implement 2.0 TopNode setter property.
13584 - Use a local var instead of the skipped_nodes field for computing
13585 how many nodes to skip. Otherwise we won't scroll because the
13586 valuechanged handler checks if skipped_nodes is equal to the new
13588 - Implement 2.0 Sort method.
13589 - Add useless 2.0 DoubleBuffer property
13590 - Implement 2.0 LineColors property. Lets you change the color of
13591 the lines in the tree. Terribly useful for creating non cohesive
13593 - Implement 2.0 image key feature.
13595 2007-03-06 Jackson Harper <jackson@ximian.com>
13597 * TreeView.cs: We can't get the bounds of the nodes before raising
13598 the AfterSelect event, because that event could change the node's
13599 bounds (scrolling, font change, etc).
13601 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
13603 * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
13604 * Form.cs: Don't recreate handle when creating FormWindowManager, just
13605 update window styles. In CreateParams us VisibleInternal instead of
13606 VIsible to get the actual visible flag set for this form.
13607 * FormWindowManager.cs: Activate the form whenever the mouse clicks on
13608 the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
13609 handle the case when the form is already maximized, in which case
13610 it should be restored. Fixes #81043.
13612 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
13614 * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
13616 2007-03-05 Jackson Harper <jackson@ximian.com>
13618 * TreeViewHitTestInfo.cs: implement.
13620 2007-03-05 Jackson Harper <jackson@ximian.com>
13622 * InternalWindowManager.cs: class status fix.
13624 2007-03-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
13626 * InternalWindowManager.cs: All windows that have a parent
13627 are confined to their parent when they're being moved.
13630 2007-03-04 Gert Driesen <drieseng@users.sourceforge.net>
13632 * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
13633 on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
13635 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
13637 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
13638 buttons invisible before deciding which ones should be visible
13639 (fixes minimize/maximize buttons showing up in toolwindows). Remove
13640 an unused variable.
13641 * InternalWindowManager.cs: Remove warning.
13643 2007-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13645 * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
13646 to throw an InvalidOperationException is virtual mode is being used.
13648 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
13650 * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
13651 ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
13652 ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
13653 ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
13654 ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
13655 ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
13657 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
13659 * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
13660 driver.KeyboardDelay from XplatUI.KeyboardDelay
13661 * XplatUIW in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
13662 (patch by Sergey Volk)
13664 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
13666 * ToolWindowManager.cs: Added, contains logic for
13668 * CreateParams.cs: Add a few helper methods and an
13669 internal variable to know which control the CreateParams belongs
13671 * Control.cs: Call Form.ChangingParent when the
13672 parent is about to be changed.
13673 * XplatUIX11.cs: DeriveStyles (): Set
13674 caption_height for all windows that have captions and are children.
13675 Update to use ToolWindowManager instead of InternalWindowManager
13677 * XplatUIWin32.cs: Set fake window styles for all
13678 windows that have window managers.
13679 * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
13680 now duplicated for mdi windows when they are
13681 maximized, first for the buttons the window itself has, then for
13682 the buttons that appear in the menu bar. Makes things a little
13683 easier). Updated UpdateWindowDecorations, SetWindowState and the
13684 mouse eventhandlers accordingly.
13685 * Form.cs: Add ChangingParent (), contains the
13686 logic of what should happen when the parent changes. In MdiParent
13687 don't set things that ChangingParent () is doing. When handling
13688 WM_CLOSE, we can close the form if there are any other modal forms
13689 and the current form is a descendent of the modal form.
13690 * InternalWindowManager.cs: A lot of refactoring,
13691 the title buttons are now extracted to a separate container class
13692 that takes care of all button code (clicks, tooltips, etc). Moved
13693 Iconic|Maximized|Normal Bounds properties to this class from
13694 MdiWindowManager, so that the window state logic can succeed for
13695 other than mdi wm's. Implemented general window state change logic.
13696 Moved CreateButtons to ThemeWin32Classic, since the theme might
13697 override which buttons are available when as well as the exact
13699 * FormWindowManager.cs: Added, contains logic for
13701 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
13702 which buttons go where (and if they are at all visible).
13703 Removed special handling of maximized windows, since they aren't special.
13704 In DrawManagedWindowDecorations don't try to draw the text if it is
13706 * MdiClient.cs: ArrangeIconicWindows: Don't calculate any sizes,
13707 use whatever the wm gives us.
13709 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
13711 * ButtonBase.cs: Add 2.0 properties.
13712 * Button.cs: Override Draw for 2.0.
13713 * Control.cs: Add Entered and Selected properties.
13714 * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
13715 TextRenderer.cs: Make internal for 1.1 to unify drawing code.
13716 * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
13718 * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
13720 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
13722 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code. :/
13724 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
13726 * XplatUIWin32.cs: Register a new class with Windows each time we get
13727 a new ClassStyle. [Fixes bugs #79432, #80817]
13728 * Controls.cs: Set the correct ClassStyle in CreateParams.
13729 * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
13731 2007-03-01 Gert Driesen <drieseng@users.sourceforge.net>
13733 * ListView.cs: Add fireEvent argument to ReorderColumn since the
13734 ColumnReordered event must not be signaled when modifying DisplayIndex
13735 of a ColumnHeader. Added internal ReorderColumns method which takes
13736 care of drawing, and updating the internal DisplayIndex of the
13737 ColumnHeader. Added AddColumn method which is invoked from
13738 ColumnHeaderCollection when adding or inserting columns, and which
13739 ensures that reorder_columns_indices is kept in sync. Avoid redrawing
13740 after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
13741 Recalculated dispay indices after removing a ColumnHeader.
13742 * ColumnHeader.cs: Save DisplayIndex separately from ListView to
13743 match MS. Allows last display index to be returned after ListView
13744 is disposed. Update actual location of ColumnHeader when DisplayIndex
13747 2007-03-01 Everaldo Canuto <everaldo@simios.org>
13749 * LinkLabel.cs: Improve CalcTrimRectangle.
13751 * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
13753 2007-02-28 Everaldo Canuto <everaldo@simios.org>
13755 * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
13756 get rectangle as a result value.
13758 2007-02-28 Everaldo Canuto <everaldo@simios.org>
13760 * LinkLabel.cs: Theres some diferences between rectangle return from
13761 MeasureCharacterRanges and the area used for DrawString to fix this
13762 CalcMeasurementFactor method was created, it calcules the diferences
13763 to be use later to adjust rectangle in draw operations. Fixes #80473.
13765 * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
13766 to adjust draw rectangle.
13768 2007-02-27 Everaldo Canuto <everaldo@simios.org>
13770 * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
13771 text and some other changes to reduce and optimize source code.
13773 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
13775 * RadioButton.cs: Implement 2.0 event.
13776 * RelatedImageListAttribute.cs: Implement new class.
13778 2007-02-27 Everaldo Canuto <everaldo@simios.org>
13780 * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
13782 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
13784 * CheckBox.cs: Implement 2.0 functionality.
13786 2007-02-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13788 * ListView.cs: Refactor Add and AddRange methods of
13789 ListViewItemCollection, to not update the ListView
13790 everytime an item is added in AddRange. Also move the update
13791 code to a new CollectionChanged method, and call it
13792 from other methods that need it as well (this should also fix some
13793 bugs when Sorting is used).
13795 2007-02-27 Jackson Harper <jackson@ximian.com>
13797 * TextControl.cs: Try to never let the caret stay in a non-text
13799 * TextBoxBase.cs: Update the caret.
13801 2007-02-26 Jonathan Pobst <monkey@jpobst.com>
13803 * XplatUIStructs.cs: Add some convenience methods for POINT structure.
13804 * XplatUIWin32.cs: Add some convenience methods for RECT structure,
13805 delete POINT structure, duplicate of one in XplatUIStructs.
13806 * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
13808 2007-02-26 Gert Driesen <drieseng@users.sourceforge.net>
13810 * ListView.cs: Initialize LabelEditEventArgs after setting Text of
13811 edit box since otherwise the Label would immediately be set (even if
13812 the user did not modify the label). In OnKeyDown set Handled to true
13813 if Return or Escape was pressed. In ColumnHeaderCollection unlink
13814 columns that are to be removed. In ListViewItemCollection unlink items
13815 that are to be removed.
13817 2007-02-24 Jonathan Pobst <monkey@jpobst.com>
13819 * TextRenderer.cs: If we set a GDI clip region, we need to clear
13820 it when we are done. [Fixes bug #80949]
13822 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
13824 * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
13826 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13828 * ListView.cs: I forgot to commit the changes for ListView
13829 in my previous patch.
13831 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
13833 * Clipboard.cs: Partially implement an overload of SetDataObject.
13834 * Form.cs: Implement ShowWithoutActivation.
13835 * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
13837 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13839 This is a first set of changes to make the Virtual mode works,
13840 by avoiding the retrieval of ListViewItem instances until
13843 * ListView.cs: Store item position in the ListView instead of the
13844 ListViewItem, this way we don't request the Bounds property of
13845 ListViewItem inside the ListView calculations, as well as cache the item
13846 size in item_size field. Store indexes instead of ListViewItem
13847 instances in the matrix used by icon view. Add a ItemMatrixLocation
13848 struct to hold the row and col info of the matrix info.
13850 * ListViewItem.cs: Don't store the location anymore, and only cache
13851 the rectangles for GetBounds. Use the ListView.GetItemLocation
13852 method to retrieve the actual location.
13854 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
13856 * TextRenderer.cs: Add clipping support, thanks to George.
13859 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
13861 * ListViewItem.cs: Cancel label edit when item is removed from
13863 * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
13864 event before the edit textbox is displayed. Added CancelEdit method
13865 which is used end to editing while ignoring the value set by the
13866 user. In EndEdit, set focus to ListView to avoid losing focus to
13867 other controls. In ListViewItemCollection.Clear, cancel editing of
13868 any of the items. In Remove, cancel editing of item being removed.
13869 Avoid udplicate code by modifing RemoveAt to invoke Remove.
13871 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
13873 * FileDialog.cs: Update FSEntry when move is successful. Fixes
13876 2007-02-23 Everaldo Canuto <everaldo@simios.org>
13878 * MainMenu.cs: Change Draw method to take care about MenuOrigin to be
13879 compatible with non X11 systems. Fixes #80901.
13881 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
13883 * ListView.cs: Added bool argument to UpdateMultiSelection to specify
13884 whether the item should be unselected and reselect. We do no want this
13885 when we're starting to edit the label. Do not fire the
13886 SelectedIndexChanged event from ListView when its already been fired
13887 by modifying ListViewItem.Selected. Fixes bug #80943.
13889 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
13891 * TextRenderer.cs: Previos commit logic was backwards.
13893 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
13895 * TextRenderer.cs: Don't add padding on MeasureText if we were
13896 sent the NoPadding flag.
13898 2007-02-23 Everaldo Canuto <everaldo@simios.org>
13900 * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
13901 after DrawButton. To prevent image overlaps button borders SetClip and
13902 ResetClip added before and after draw image. Fixes #79129.
13904 2007-02-23 Everaldo Canuto <everaldo@simios.org>
13906 * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify
13907 window size, it fix problem when you run under win32 that theres
13908 Size diferent than ClientSize. Also fix controls size and positions
13909 to mimic Win32. Fixes #80837.
13911 2007-02-22 Everaldo Canuto <everaldo@simios.org>
13913 * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on
13914 menu area to fix some problems for non X11 systems. Fixes #80613.
13916 2007-02-22 Jackson Harper <jackson@ximian.com>
13918 * TreeNode.cs: When a node is expanded, set its is_expanded flag
13919 even if it doesn't have any children.
13921 2007-02-22 Jackson Harper <jackson@ximian.com>
13923 * TreeView.cs: Calculate the top node 'on the fly', this
13924 eliminates issues where you need to click on the tree before
13925 scrolling it to get the top node computed correctly.
13926 * TreeNodeCollection.cs: We don't need to mess with the top node
13929 2007-02-22 Jackson Harper <jackson@ximian.com>
13931 * DataGridViewRow.cs: Fix typo so height can actually be set.
13932 Patch by Peter Grimm.
13934 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
13936 * FileDialog.cs: Fixed support for renaming files and directories.
13937 * ListView.cs: Do not lose focus when edit is canceled. Process
13938 Escape as regular key (to prevent closing of dialogs).
13940 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
13942 * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
13943 spaces. Changed spaces to tabs. Removed unnecessary init of bools.
13945 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
13947 * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
13948 did not modify label.
13949 * ListView.cs: Only set LabelEditEventArgs.Label if user actually
13950 modified the text. Reset Label when user presses Escape in edit mode.
13951 Move focus to ListView after having cancelled or finished editing the
13954 2007-02-21 Gert Driesen <drieseng@users.sourceforge.net>
13956 * ComboBox.cs: Removed unnecessary initializations. Marked items field
13957 private. Clear textbox when Text is set to null and SelectedIndex is
13959 * FileDialog.cs: Removed unnecessary initializations. Removed
13960 workarounds for ComboBox bugs that are now fixed. Modified
13961 DefaultExt, InitialDirectory and Title property to change null to
13962 zero-length string in getters. Avoid directly accessing fields.
13964 2007-02-20 Jackson Harper <jackson@ximian.com>
13966 * TextControl.cs: Remove RecalAlignments call, that was some
13967 debugging leftovers.
13968 - Don't use the line indent when we shouldn't.
13969 * RichTextBox.cs: Add support for paragraph left indents.
13971 2007-02-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
13973 * Control.cs: Fix BeginInvoke signature for 2.0 profile.
13974 Seems like the class status pages doesn't catch params differences.
13976 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
13978 * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
13980 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
13982 * ComboBox.cs: Setting Text should have no effect if item text of
13983 selected item exactly matches value. First lookup text using
13984 case-sensitive comparison, and fallback to case-insensitive comparison.
13985 FindString(Exact) returns -1 if search string is null. On 2.0 profile,
13986 allow startIndex to be last index. Changed ArgumentOutOfRangeException
13987 paramname to match MS. Restart from first item if string is not found
13988 after startIndex. Fixed paramname of ArgumentNullException that is
13989 thrown for null value in ObjectCollection.Contains.
13991 2007-02-19 Everaldo Canuto <everaldo@simios.org>
13993 * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
13995 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
13997 * ListControl.cs: In SelectedValue use value.Equals to compare for
13998 equality instead of ==, otherwise it will fail for strings.
14001 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
14003 * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
14004 since the caret won't show up unless ShowSelection is true.
14007 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
14009 * Application.cs: When disabling all forms but the main form, do not
14010 disable any descendants of the main form (such as mdi children or
14011 other parented forms). Fixes #80822 on Windows.
14012 * Form.cs: If we have a parent, set the WS_CHILD style.
14013 * Control.cs: Update the window styles if the control whose parent has
14014 changed is a form (the WS_CHILD style has to be switched).
14016 2007-02-19 Everaldo Canuto <everaldo@simios.org>
14018 * XplatUIStructs.cs: MsgUIState structure added.
14020 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
14022 * FileDialog.cs: Removed need for separate fileName field. On 2.0
14023 profile, do not check filename(s) for illegal character if filename(s)
14024 were set non-interactively but always check on 1.0 profile. Fixed NRE
14025 in DefaultExt and only strip off first leading dot. Improve exception
14026 message when invalid Filter is set. Do not ignore InitialDirectory if
14027 it does no exist. Store specified Title, and if empty use default
14028 title (depending on type of dialog). Added an internal DialogTitle
14029 property for retrieving dialog title. Fixed logic of displayed dir to
14030 more closely match MS. Avoid setting ComboBox.Text to a zero-length
14031 string as its buggy.
14032 * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
14033 FileName is a zero-length string (it can never be null). Override
14034 DialogTitle property to set default title of dialog box.
14035 * SaveFileDialog.cs: Override DialogTitle property to set default
14036 title of dialog box.
14038 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
14040 * FileDialog.cs: Modify default text of filename and filetype labels
14041 to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
14042 after we've updated the SelectedIndex. Fixes part of bug #80887.
14043 * SaveFileDialog.cs: Set text of filetype label.
14045 2007-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14047 * LabelEditEventArgs.cs: New internal SetLabel method, to set the
14048 label field. Needed by latest Jackson's fixes for ListView.
14050 2007-02-16 Andreia Gaita <avidigal@novell.com>
14052 * PrintPreviewControl/PrintPreviewDialog: Properly dispose of
14053 print preview images.
14055 2007-02-16 Jackson Harper <jackson@ximian.com>
14057 * ListView.cs: Make AfterLabelEdit work correctly.
14058 * FileDialog.cs: After changing the name of the folder, we have to
14059 make sure that it is created, or that we pop up an error because
14062 2007-02-16 Jackson Harper <jackson@ximian.com>
14064 * X11Dnd.cs: Implement aliases on mime handlers, so things like
14065 System.String are mapped to text.
14066 - Handle dataobjects, getting all the possible formats out of them
14067 - We dont need the drag event args before we give feedback. This
14068 allows feedback cursors to be immediate before selections have
14071 2007-02-16 Jackson Harper <jackson@ximian.com>
14073 * TextBoxBase.cs: Modified the method for inserting images to
14074 taking a line and position instead of tag and position.
14075 * RichTextBox.cs: Handle PngBlip data by inserting the png image
14077 * TextControl.cs: Allow images to be inserted as the first tag of
14079 - Fix some off by one issues when we assume the first tag is a
14080 text tag, not an image tag.
14082 2007-02-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14084 * ListView.cs: Set focus to ListView when ItemControl gets a
14085 WM_RBUTTONDOWN message, to mimic .Net behaviour.
14086 Fixes part of #80467.
14088 2007-02-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
14090 * DateTimePicker.cs: Call RecreateHandle if the Format changes and
14091 validate Text input (if null or empty string reset Value to default
14092 value). Fixes #80830.
14094 2007-02-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
14096 * ListView.cs: Set owner as null for columns and items when
14097 Dispose is invoked. Fixes #80607.
14099 2007-02-14 Jonathan Pobst <monkey@jpobst.com>
14101 * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
14102 showing DropDowns, don't show a Grip when doing Flow layout.
14103 [This fixes the toolbox in PDN 2.72.]
14104 * ToolStripItem.cs: Add Anchor property and some internal properties to
14105 reduces needed changes to FlowLayout.
14106 * ToolStripOverflow.cs: Remove unused variable.
14107 * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
14108 use it in the layout calculations.
14110 2007-02-13 Everaldo Canuto <everaldo@simios.org>
14112 * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
14113 reported in #79640.
14115 * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
14118 2007-02-13 Everaldo Canuto <everaldo@simios.org>
14120 * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from
14121 MeasureString format, it can make button very large in some cases, it is
14122 strange but is what win32 do.
14124 2007-02-13 Everaldo Canuto <everaldo@simios.org>
14126 * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string
14129 * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
14130 rendering, the value is based on MenuAccessKeysUnderlined.
14132 2007-02-13 Everaldo Canuto <everaldo@simios.org>
14134 * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
14137 * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
14139 * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
14140 and use MenuAccessKeysUnderlined instead.
14142 2007-02-13 Andreia Gaita <avidigal@novell.com>
14144 * ContainerControl.cs: Focus fix for nunit treeview selection bug.
14145 A selected control would not get a Focus call if:
14146 - the default active control of the container is the same as
14147 the one that was selected
14148 - we are switching from one container to another
14149 Under these conditions, the container being selected already has
14150 an active_control, which is the same as the one being activated,
14151 so set_ActiveControl would always return and not send the Focus
14152 call. Fix to check if the currently active control of the container
14153 is actually focused.
14155 2007-02-13 Jonathan Pobst <monkey@jpobst.com>
14157 * StatusStrip.cs: Implement the spring layout.
14158 * ToolStripControlHost.cs: Make sure the hosted control's visibility
14159 always matches the host.
14160 * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
14161 and TextAfterImage.
14163 2007-02-13 Andreia Gaita <avidigal@novell.com>
14165 * Control.cs: Code reorganization only.
14166 - Reorganize the WndProc cases so that each case has it's own handling method,
14167 to help with the no-line-numbering stack traces.
14168 - Formatting changes (it's vstudio's fault, really :p)
14170 2007-02-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
14172 * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
14173 Thread.CurrentUICulture to match DateTimePicker's (and MS)
14176 2007-02-12 Jackson Harper <jackson@ximian.com>
14179 * TextBox.cs: By default we have a non multiline document
14180 - use the multiline property instead of the internal variable
14181 * TextBoxBase.cs: Treat multiline and non multiline the same in
14183 - Use the documents multiline flag instead of tracking it ourself
14184 * TextControl.cs: Attempt at getting multiline to match MS
14185 behavior. Lines now track an offset, which is either their X or Y
14186 offset depending on whether or not we are in multiline mode.
14187 - Update all the methods to understand that lines have an X value.
14188 - Fix crash in Undo::Duplicate when empty lines are deleted.
14190 2007-02-12 Everaldo Canuto <everaldo@simios.org>
14192 * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and
14193 code moved to properties PreferredHeight and PreferredWidth. It solve the
14194 all problems when preferred sizes must be recalculated. Fixes #80801.
14196 2007-02-12 Everaldo Canuto <everaldo@simios.org>
14198 * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
14199 font height when compatible_text_rendering is false. Partially fix #80801.
14201 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
14203 * Form.cs: Fixed typo in exception message. Fixes bug #80779.
14205 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
14207 * Form.cs: Improved exception messages in ShowDialog.
14209 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
14211 * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
14212 PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
14213 if not set. Fixes bug #80764. Avoid accessing current_settings field
14216 2007-02-08 Everaldo Canuto <everaldo@simios.org>
14218 * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
14221 * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
14222 public in 2.0 and for easy maintenance and dont break compatibility it is
14225 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
14227 * ToolStripItem.cs: Implement using images from ImageList.
14229 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
14231 * DateTimePicker.cs: Change default date-formatting culture from
14232 CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
14233 seems to be the way MS does it.
14235 2007-02-08 Andreia Gaita <avidigal@novell.com>
14237 * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image
14238 (the 6 was cut off on the right side)
14240 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
14242 * Form.cs: Tell MenuStrips to close when the form is clicked.
14243 * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs,
14244 ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
14245 ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
14246 ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add
14247 support for Overflow, where items that do not fit are automatically
14248 reparented to a drop down menu.
14249 * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
14250 Also: fixes bug #80747.
14252 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
14254 * ComboBox.cs: Remove warning (unused code).
14255 * ScrollableControl.cs: Remove warning for 1.1 profile.
14257 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
14259 * Form.cs: Remove a warning.
14261 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
14263 * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
14264 'g' specifier, not documented anywhere, but seems to always show up
14265 as a single space (might have something to do with the DateTime 'g'
14266 specifier, which is the era format, but since DateTimePicker can't
14267 go earlier than 1753 it wouldn't matter) . Fixed quote handling,
14268 won't crash if the format has an unmatched quote. Now shows
14269 single-character formats correctly. Fixes #80744.
14271 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
14273 * StatusStrip.cs: Stretch property needs to call base.Stretch,
14274 not this.Stretch to fix stack overflow. [Fixes bug #80760]
14276 2007-02-07 Chris Toshok <toshok@ximian.com>
14278 * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
14279 background color. it overwrites the background image we've
14280 already painted. Fixes #80599.
14282 2007-02-07 Chris Toshok <toshok@ximian.com>
14284 * DataGrid.cs: return immediately from Edit() when there are no
14285 columns. Fixes #80662.
14287 2007-02-07 Chris Toshok <toshok@ximian.com>
14289 * MessageBox.cs: fix #80625. don't always show the Help button in
14290 2.0. use the displayHelpButton parameter to determine if we
14291 should show it. Also, make the internal show_help field private.
14293 2007-02-07 Chris Toshok <toshok@ximian.com>
14295 * Control.cs (SetVisibleCore): check in the proposed patch for
14296 80604, and set is_visible before calling CreateControl.
14298 2007-02-07 Jonathan Pobst <monkey@jpobst.com>
14300 * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to
14301 MonoInternalNote. This is added automagically by VS2005, so let's not crash
14304 2007-02-06 Everaldo Canuto <everaldo@simios.org>
14306 * MenuAPI.cs: hotkey_active internal field added, it is required because
14307 we need to know when hotkeys must be draw, before this change a keystate
14308 Navigating was used but we can have menu in navigating state without
14309 hotkeys. Fixes #80694.
14311 * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
14313 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
14315 * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
14316 corresponding events and methods to be internal for 1.1 profile and
14317 public for 2.0 profile (required by SizeGrip).
14318 * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
14319 implicit control list). Don't set the size nor the location of the
14320 SizeGrip anymore as it's not needed.
14321 * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
14322 draw directly on the captured control (fixes #80656). Removed
14323 ShowGrip (it wasn't used anywhere), redraw (always true), added
14324 GetDefaultSize and GetDefaultRectangle to calculate defaults.
14325 * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
14326 be called from SizeGrip.
14328 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
14330 * Timer.cs: Throw ArgumentException if Interval <= 0.
14332 2007-02-05 Jackson Harper <jackson@ximian.com>
14334 * TreeView.cs: We need to check scrollbar visibility when window
14335 visibility is updated, because non visible trees don't ever add
14337 * Cursor.cs: We want the override cursor to be reset to NULL when
14338 we set current cursor to the default cursor.
14340 2007-02-05 Jackson Harper <jackson@ximian.com>
14342 * TextControl.cs: Don't have crlfs when we are non multiline.
14343 - Consolidate the line position.
14345 2007-02-05 Jackson Harper <jackson@ximian.com>
14347 * X11Keyboard.cs: BACK+CTRL gets a special char code.
14349 2007-02-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
14351 * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
14352 handling LeaveNotify->NotifyUngrab in order to send
14353 WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
14354 after calling XUngrabPointer, so we call WindowUngrabbed directly
14355 from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
14356 * Control.cs: Handle WM_CAPTURECHANGED in order to raise
14357 MouseCaptureChanged correctly. Also create handles if changing
14358 Capture (matches MS behaviour).
14360 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
14362 * SizeGrip.cs: Make the last change 2.0 only.
14364 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
14366 * SizeGrip.cs: If resizing and the capture is lost, revert any size
14367 changes to initial size (fixes #80597).
14369 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
14371 * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
14373 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
14375 * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
14376 background) and only allow dragging if enabled. This way the
14377 sizegrip can be used to fill the open square that otherwise would
14378 have been shown in the bottom right corner of ScrollableControl
14379 when ScrollableControl is not suppose to support sizing.
14380 * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
14381 sizegrip is shown and enabled, and hook up with necessary events.
14383 2007-02-01 Chris Toshok <toshok@ximian.com>
14385 * DataGridTextBoxColumn.cs: clean up the
14386 GetFormattedString/GetColumnValueAtRow combination of functions.
14387 Also fix UpdateUI, and the initial state of
14388 IsInEditOrNavigateMode.
14390 * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
14391 aren't supposed to scroll the textbox here, we're supposed to
14392 scroll the datagrid.
14394 2007-02-01 Chris Toshok <toshok@ximian.com>
14396 * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
14397 setting the position.
14399 2007-02-01 Chris Toshok <toshok@ximian.com>
14401 * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
14402 here, since the most recent focus fixes keep us from generating
14403 the Leave event when our textbox gets focus.
14404 (Edit): we should be passing null for the column style's
14405 instantText parameter.
14407 2007-02-01 Jonathan Pobst <monkey@jpobst.com>
14409 * ToolStripDropDownItem.cs: Make sure DropDownOpening event is
14410 raised. Fixes menu text/icons not showing up in PDN.
14412 2007-02-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
14414 * Control.cs: Remove code in constructor that makes every
14415 control with WS_CHILD set have initial location -1, -1.
14417 2007-01-31 Jackson Harper <jackson@ximian.com>
14419 * X11Dnd.cs: Take the keyboard on init to reduce coupling with
14421 * XplatUIX11.cs: Give teh keyboard to teh dnd.
14423 2007-01-31 Jackson Harper <jackson@ximian.com>
14425 * X11Dnd.cs: Use IDataObject instead of the DataObject class.
14426 - Remove some debug code.
14428 2007-01-31 Jackson Harper <jackson@ximian.com>
14430 * XplatUIX11.cs: If you set the override cursor during a grab, it
14431 should actually override the grab cursor. This comes into play
14432 when you are setting custom cursors in a DND feedback method.
14434 2007-01-31 Jackson Harper <jackson@ximian.com>
14436 * X11Dnd.cs: Add support for handling the QueryContinue and
14437 GiveFeedback events.
14438 - Cancel drag and drop actions when the escape key is clicked.
14439 * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
14440 can handle the ESCAPE key.
14441 - Allow dnd to swallow BUTTONUP messages if it needs to. This is
14442 done when dnd events are continued after the button is released.
14443 - Add a new helper method so that dnd can translate key events.
14445 2007-01-31 Alexander Olk <alex.olk@googlemail.com>
14447 * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
14448 make it more obvious what is happening.
14450 2007-01-30 Jackson Harper <jackson@ximian.com>
14452 * XplatUIX11.cs: Don't break when handling button release in drag
14453 and drop operations. We need that BUTTONUP message to get through
14454 so capture is released.
14455 * X11Dnd.cs: We don't need to manually grab the pointer anymore,
14456 this is handled automatically when the mouse is down.
14458 2007-01-30 Jackson Harper <jackson@ximian.com>
14460 * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
14461 is closed, so we need to make sure that we aren't changing the
14462 dialog result when the OK (Open or Save) button has been clicked
14463 and we are closing the window ourselves. Note we don't need to
14464 worry about the cache being written in this case, because it was
14465 already done in the previous FilOk call.
14467 2007-01-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
14469 * DateTimePicker.cs: Remove a warning.
14470 * ComboBox.cs: Remove a couple of warnings.
14472 2007-01-29 Chris Toshok <toshok@ximian.com>
14474 * XplatUIX11.cs: don't crash, and remove the icon if the user has
14475 set one, if SetIcon is passed a null icon.
14477 2007-01-29 Andreia Gaita <avidigal@novell.com>
14479 * TextBox.cs: Redraw when the password characters changes
14480 * TextControl.cs: Check if textbox has a password char and draw
14481 a line of password chars instead of the text in the line. LineTag gets
14482 an extra Draw() method which allows document.Draw to override the text
14483 that will be drawn. Removes 1024 char limitation on length of passworded
14486 2007-01-29 Jackson Harper <jackson@ximian.com>
14488 * TextBoxBase.cs: Deleting sections of text is undoable. Deleting
14489 single chars is not.
14491 2007-01-28 Jonathan Pobst <monkey@jpobst.com>
14493 * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
14494 one pixel. Fix a StackOverflowException caused by an overload wrongly
14497 2007-01-26 Everaldo Canuto <everaldo@simios.org>
14499 * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
14500 also remove ProcessArrowKey and put the code inside ProcessKeys.
14502 2007-01-26 Jonathan Pobst <monkey@jpobst.com>
14504 * PaddingConverter.cs: Added.
14506 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
14508 * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
14509 ShowPanels is false (fixes #80600). Only draw up to 127 characters
14510 of text (fixes #80601). For panels clip the text to draw to the
14511 panel (fixes #80603).
14513 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
14515 * ComboBox.cs: Fixed implementation of ResetText.
14517 2007-01-25 Jackson Harper <jackson@ximian.com>
14519 * TextControl.cs: For the last char of a line we need to use the
14520 line size, not that chars width, since it won't actually be
14521 computed since the right side of a char is based on the start of
14522 the left side of the next char, and the next char does not exist.
14524 2007-01-25 Chris Toshok <toshok@ximian.com>
14526 * Splitter.cs: fix the new unit tests, and reindent some switch
14529 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
14531 * ComboBox.cs: Implemented 2.0 methods and events.
14532 * TextBoxBase.cs: Added OnTextUpdate, so that
14533 ComboBox.ComboTextBox can inform ComboBox of it.
14535 2007-01-25 Jackson Harper <jackson@ximian.com>
14537 * TextControl.cs: Respect ShowSelection when deciding whether or
14538 not to display the caret, this allows comboboxes to have carets
14539 when the combotextbox does not have focus.
14541 2007-01-25 Jackson Harper <jackson@ximian.com>
14543 * TextControl.cs: Add a Suspend/Resume for updating, basically the
14544 same as the Suspend/Resume for recalc, except this will do actual
14546 - New Undo manager, works much like the MS version.
14548 * TextBoxBase.cs: The Cut operation is undoable.
14550 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
14552 * TextBoxBase.cs: Don't antialias text. Makes it look way better
14553 on Windows (no difference on Linux).
14555 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
14557 * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
14558 we don't want to activate any windows. Fixes #79433.
14560 2007-01-25 Jonathan Pobst <monkey@jpobst.com>
14562 - ButtonBase.cs: Fix capitalization of parameter: disposing.
14565 2007-01-25 Alexander Olk <alex.olk@googlemail.com>
14568 - Move to using System.ComponentModel.EventHandlerList
14569 - Replace Refresh with Invalidate
14570 - Clear the mime filecache on closing
14571 - Some other memory reducing work. After beeing closed FD now uses
14572 only about 300 KB for the fdo mime stuff plus the memory of the
14574 * Mime.cs: Changed coding style and removed unnecessary commented
14575 code. Some more memory memory reducing work.
14577 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
14579 * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
14580 a few other missing 2.0 properties.
14581 * Theme.cs: Added DrawFlatStyleComboBox.
14582 * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
14584 2007-01-24 Chris Toshok <toshok@ximian.com>
14586 * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
14587 wake_waiting flag, not just when there's data to be read. if we
14588 don't, then future wakeup's won't reach us and we'll be doomed to
14589 wait for the entire 1 second timeout forever (unless there are X
14592 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
14594 * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
14595 until you pass Items.Count, not Items.Count - 1 like 1.1.
14597 2007-01-24 Gert Driesen <drieseng@users.sourceforge.net>
14599 * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
14601 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
14603 * ToolStripContainer.cs: The recent Dock fix exposed that I was
14604 adding the panels in the wrong order.
14606 2007-01-24 Jackson Harper <jackson@ximian.com>
14608 * TextBoxBase.cs: When we move the caret we also need to move the
14609 selection, this fixes some random crashing after doing select
14610 text, unselect, delete a char, paste.
14612 2007-01-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
14614 * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
14616 2007-01-23 Everaldo Canuto <everaldo@simios.org>
14618 * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
14619 OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553.
14620 * ToolBar.cs: Force redraw in BackgroundImageChanged.
14622 2007-01-23 Everaldo Canuto <everaldo@simios.org>
14625 - Implement support for vertical toolbars. Fixes #80539;
14626 - Call LayoutToolBar when resize, it fix some other problems in layout.
14627 - Rename requested_height to requested_size, as we can have width on it
14628 when toolbar is vertical.
14629 - Create a private property "Vertical" that uses Dock to verify when
14630 toolbar is vertical or not.
14631 - Set ControlStyles when change Dock property.
14632 - Refactory in LayoutToolBar to have better variables names and to support
14634 - Fixes default value for ButtonSize when button count is equal zero, size
14635 must be (39, 36) test case writed.
14637 2007-01-23 Chris Toshok <toshok@ximian.com>
14639 * Control.cs: fix the checks so that they work correctly for mdi
14642 2007-01-23 Chris Toshok <toshok@ximian.com>
14644 * Control.cs: ControlCollection seems to have super-secret
14645 abstraction breaking knowledge of Mdi containers. allow MdiClient
14646 to add toplevel controls.
14648 2007-01-23 Chris Toshok <toshok@ximian.com>
14650 * Control.cs: throw an ArgumentException if a toplevel control is
14651 added to our control collection from ControlCollection.Add, as
14652 well as from ControlCollection.IList.Add. This fixes the
14653 ControlSetTopLevelTest.TestTopLevelAdd unit test.
14655 Also, in ControlCollection.IList.Add, don't through an
14656 ArgumentNullException, throw an ArgumentException, when value ==
14657 null. This matches MS.
14659 2007-01-23 Chris Toshok <toshok@ximian.com>
14661 * BindingSource.cs: initial, incomplete, implementation of
14664 2007-01-23 Jackson Harper <jackson@ximian.com>
14667 * TextBoxBase.cs: Checking in some pieces of the undo stuff so
14668 that I can fix a broken unit test (TextBoxTest::ClearUndo)
14670 2007-01-23 Everaldo Canuto <everaldo@simios.org>
14672 * ToolBar.cs: Add status fields to ToolBarButtonInfo.
14674 2007-01-23 Andreia Gaita <avidigal@novell.com>
14676 * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
14677 * TreeNodeCollection.cs: New Add() methods, ContainsKey and
14678 IndexOfKey() for 2.0
14680 2007-01-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
14682 * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
14683 to prevent it from changing z-order.
14684 * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
14685 leave UI updates in MdiWindowManager.
14686 * InternalWindowManager.cs: Check for 0 sized nc areas and make them
14687 1 sized (NC handling goes weird on Linux otherwise).
14688 * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
14689 necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
14690 remove a few NCRequestRecalcs. Changed calculations in IconicBounds
14691 to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
14692 and SetWindowState(s) to allow for changing the size of an activated child
14693 before activating it (reduces a lot of flicker).
14695 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
14697 * Form.cs: Changing FormBorderStyle has different semantics based
14698 on whether the Form is visible or not. If not visible, don't change
14699 the Size. But InvalidateNC needs to be called to force the window
14700 to pick up the changes and redraw itself. [Fixes bug #80574]
14702 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
14705 * ContainerControl.cs: ProcessCmdKey.
14706 * ErrorProvider.cs: new constructor.
14707 * Form.cs: fix AutoValidateEvent compiler warning.
14708 * Label.cs: fix OnAutoSizeChanged compiler warning.
14709 * MenuStrip.cs: fix CanOverflow compiler warning.
14710 * TabControl.cs: SelectTab, OnSelected methods, Selected event.
14711 * TextBox.cs: Dispose.
14712 * ToolStrip.cs: CanOverflow, re-enable double buffering.
14713 * ToolStripControlHost.cs: fix CausesValidation compiler warning.
14714 * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
14715 * ToolStripItem.cs: Overflow, RightToLeft properties.
14717 2007-01-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
14719 * Form.cs: Move the layout of the main form to MdiWindowManager.
14720 * MdiWindowManager.cs: If WindowState changes from or to Maximized,
14721 do a layout of the main window to update MdiClient's client area to
14722 the right area. Fixes #80533. Remove the calculation of nc size,
14723 it was just wrong and the correct one is the same as for
14724 InternalWindowManager.
14726 2007-01-20 Jonathan Pobst <monkey@jpobst.com>
14728 * Control.cs: Setting Anchor or Dock needs to reset the other
14729 to its default. [Fixes bug #80556]
14731 2007-01-20 Chris Toshok <toshok@ximian.com>
14733 * CheckedListBox.cs: class status changes.
14735 * ScrollableControl.cs: same.
14737 * RichTextBox.cs: same.
14739 * ContainerControl.cs: same.
14741 * ListView.cs: same.
14743 * NotifyIcon.cs: same.
14745 * MenuStrip.cs: same.
14747 * RadioButton.cs: same.
14749 * CheckBox.cs: same.
14751 * PrintPreviewDialog.cs: same.
14755 2007-01-19 Jonathan Pobst <monkey@jpobst.com>
14757 * TreeNode.cs: Apply Alan's patch for Name property.
14759 2007-01-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
14761 * Form.cs: Implemented SizeGripStyle.
14762 * SizeGrip.cs: Check for minimum and maximum size for the
14763 control being resized and only resize if size has actually
14766 2007-01-19 Chris Toshok <toshok@ximian.com>
14768 * DataGridColumnStyle.cs: stop setting _readonly in the
14769 PropertyDescriptor setter. fixes a unit test failure.
14771 also, rename ParentReadOnly to TableStyleReadOnly, and have it
14772 just consult our table style (if we have one). We don't need to
14773 consult the datagrid readonly attribute because that's passed in
14774 as the _ro arg to Edit. this simplifies things a little.
14776 * DataGrid.cs: use CurrentColumn instead of
14777 current_cell.ColumnNumber just to simplify some of the code.
14779 switch the order of some things in the CurrentCell setter to keep
14780 the previous cell from getting a textbox again -
14781 EnsureCellVisibility causes scrolling to happen, which calls Edit.
14782 So we need to set the new cell before calling it.
14784 call Edit in OnEnter, as does Microsoft.
14786 also, make sure the current table style isn't the one we create
14787 initially when checking to see if it's different than the one
14788 we're setting it to in BindColumns (this fixes #80421).
14790 * GridTableStylesCollection.cs: table styles can have "" for a
14791 mapping name. part of the fix for #80421.
14793 * DataGridTextBoxColumn.cs: simplify the readonly calculation in
14794 Edit significantly.
14796 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
14798 * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
14799 and less GDI object leaky-er.
14801 2007-01-18 Andreia Gaita <avidigal@novell.com>
14803 * LinkLabel.cs: Add opaque control style
14805 2007-01-18 Jackson Harper <jackson@ximian.com>
14807 * TextControl.cs: Calculate width properly.
14808 - Don't store the tag's X offset, this can be figured out very
14810 - When getting the caret tag make sure to get the last empty tag.
14812 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
14814 * Form.cs: Recalculate our size after setting a new FormBorderStyle.
14817 * Control.cs: Color.Empty shouldn't count for previous transparent
14820 2007-01-18 Jackson Harper <jackson@ximian.com>
14824 * TextControl.cs: Starting to merge in some pieces of my older
14825 undo work. Basically just some slight cleanup of the undo API.
14827 2007-01-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
14829 * TrackBar.cs: Fix signature of RightToLeftLayout.
14830 * StatusBar.cs: Implemented missing 2.0 methods and attributes.
14831 * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
14832 * Application.cs: Implemented UseWaitCursor.
14834 2007-01-18 Jackson Harper <jackson@ximian.com>
14836 * TextControl.cs: We can't skip tags if any part of the tag is
14839 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
14841 * ContainerControl.cs: Override OnLayout.
14843 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
14845 * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
14847 * ContextMenuStrip.cs: Make sure context menu is shown on top of
14850 2007-01-18 Chris Toshok <toshok@ximian.com>
14852 * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
14853 (leftover from the container_selected days, I'd wager). fixes bug
14856 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
14858 * Control.cs: Apply patch from George to fix the new testcase on
14859 bug #80451. We can't just check for Color.Transparent, we need
14860 to check if the back color's alpha channel is < 255.
14862 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
14864 * Form.cs: Move setting show_icon = true to before the constructor
14865 so that the base constructor has that information when it calculates
14866 the form's size. Was causing forms to be (6, 6) bigger than they
14867 were supposed to be. Thanks for catching this Rolf!
14869 2007-01-18 Jackson Harper <jackson@ximian.com>
14871 * TextControl.cs: When replacing a selection we need to invalidate
14872 from the initial selection start, because selection start is moved
14873 to the end of the replacement.
14875 2007-01-18 Andreia Gaita <avidigal@novell.com>
14877 * LinkLabel.cs: Missing ControlStyles. Fixes #80482
14879 2007-01-18 Chris Toshok <toshok@ximian.com>
14881 * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
14884 2007-01-17 Everaldo Canuto <everaldo@simios.org>
14886 * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every
14887 layout methods and properties from ToolBarButton must be available
14888 into ToolBarButtonInfo.
14890 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
14892 * Control.cs: If the control has a transparent background, we
14893 need to refresh it when it moves and when it's parent's background
14894 image changes. [Fixes bug #80451]
14896 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
14898 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code! Doh!
14900 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
14902 * XplatUIWin32.cs: Implement proper double buffering for Windows.
14903 [Fixes bug #80447, and probably speeds up things as well]
14905 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
14907 * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
14908 * XplatUIWin32.cs: We need to recalculate NC size after changing
14909 window style to toolwindow (otherwise the client rectangle will be
14910 3 pixels to small for some reason).
14911 * MdiWindowManager.cs: Revert NC size calculations to match how
14912 they are calculated only based on window styles (to match
14913 Win32AdjustWindowRectEx, since otherwise when setting size or
14914 location, Control will call Win32AdjustWindowRectEx to update client
14915 size, which would provoke a paint, then we'd get a NCCALCSIZE and
14916 calculate a different value of client size causing another paint
14918 * InternalWindowManager.cs: When moving or resizing a window only
14919 update size or location if they actually changed.
14920 * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
14921 (seems to match Windows behaviour better). Cleaned up
14922 ManagedWindowDecorations to draw what's needed and nothing else
14923 (was drawing borders and lines where they shouldn't be)
14924 * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
14925 (style = 0xFFFF) and takes into account caption height when
14926 calculating window rectangle.
14928 2007-01-16 Everaldo Canuto <everaldo@simios.org>
14930 * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button
14931 can be added to toolbar multiple times, we need to maintain a list of
14932 button information for each positions.
14934 2007-01-16 Everaldo Canuto <everaldo@simios.org>
14936 * ToolBar.cs: Some small stetic changes.
14938 2007-01-16 Jackson Harper <jackson@ximian.com>
14940 * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
14941 that allow us to have nested recalc = false blocks.
14942 - Add paste support for images in the RichTextBox
14943 * RichTextBox.cs: flush the text after the color is changed, so
14944 the change takes effect.
14945 - Use SuspendRecalc
14946 - Some extra debugging info
14947 * TextControl.cs: Tags no longer track their length, it is just
14948 computed from the next tags length, this makes things a little
14949 simpler and reduces places that we have to track length changes.
14950 - Refactored the linetag class a little so we could make it
14951 a base class for different kinds of tags
14952 - Created a image tag, a tag that can have a single image inserted
14954 - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
14955 that we can call suspend multiple times.
14956 - Add some debugging methods
14958 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
14960 * MdiClient.cs: Add ActivatePreviousChild for
14961 mdi child window navigation.
14962 * Form.cs: Use MdiClient.ActivateNextChild/
14963 ActivatePreviousChild instead of Form.SelectNextControl
14964 to select the next/previous child since
14965 SelectNextControl doesn't do it in the same order
14966 as mdi children should do it.
14968 2007-01-16 Chris Toshok <toshok@ximian.com>
14970 * Control.cs: remove container_selected field.
14972 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
14974 * MdiClient.cs: Update main form's ActiveChild when
14975 updating keyboard focus for the mdi child.
14977 2007-01-16 Jonathan Pobst <jpobst@novell.com>
14979 * Control.cs: PreferredSize fix.
14981 * Form.cs: Add several 2.0 events, properties, and methods.
14983 2007-01-16 Gert Driesen <drieseng@users.sourceforge.net>
14985 * Form.cs: Provide meaningful message when MdiParent is assigned a
14986 Form that is not an MdiContainer.
14988 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
14990 * MdiClient.cs: Update main form's ActiveChild when
14991 activating a mdi child.
14993 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
14995 * MdiWindowManager.cs: Fix NRE when merging menus and main form
14996 doesn't have a menu.
14998 * Form.cs: Request NCRecalc after creating a mdi child window.
14999 Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab,
15000 Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
15002 * MdiClient.cs: Add new method SendFocusToActiveChild that either
15003 sends keyboard focus to the active child, or to the MdiClient
15004 if there are no child forms.
15006 2007-01-15 Chris Toshok <toshok@ximian.com>
15008 * ListView.cs: drop the *Internal overrides, just do our work in
15009 ItemControl's WndProc instead.
15011 * UpDownBase.cs: a few large changes. Fix up the Selectable state
15012 of the various controls, and forward the events properly (in the
15013 same manner as MS) from the textbox to the UpDown. Also the
15014 ActiveControl of the UpDownBase gets set properly now. Finally,
15015 we don't call UpdateEditText from the ctor. Fixes bug #79957.
15017 * NumericUpDown.cs: set Text in the ctor.
15019 * DomainUpDown.cs: call UpdateEditText in the ctor.
15021 * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
15022 so even a Selectable = false textbox can be focused if you click
15025 * Control.cs: remove On{Got,Lost}FocusInternal. Subclasses can
15026 just add their handling in their respective WndProc's. Also add
15027 an explicit FocusInternal method that doesn't consult CanFocus
15028 before calling Select(this).
15030 * TextBoxBase.cs: deal with removal of the FocusInternal calls -
15031 do our work in WndProc instead.
15033 * TabControl.cs: same.
15035 * ComboBox.cs: same.
15037 2007-01-15 Everaldo Canuto <everaldo@simios.org>
15039 * Menu.cs: implement MergeItems and Replace for MenuMerge method.
15042 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15045 * ThemeWin32Classic.cs: Don't draw the item text outside
15046 item bounds in Details view, as well as use trimming.
15049 2007-01-15 Jonathan Pobst <jpobst@novell.com>
15051 * Form.cs: Implement Form.ShowIcon.
15053 * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
15054 null, which when combined with the DlgModalFrame window style removes
15055 the icon from the title bar.
15057 2007-01-15 Jonathan Pobst <jpobst@novell.com>
15059 * Control.cs: Call OnMouseClick after OnClick. (2.0)
15061 2007-01-15 Everaldo Canuto <everaldo@simios.org>
15063 * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
15064 menu when mdi child windows theres a menu, uses insert to get icon
15065 at first position. Partially fix #80006.
15067 2007-01-15 Jonathan Pobst <jpobst@novell.com>
15069 * Clipboard.cs: Implement 2.0 methods.
15071 2007-01-15 Everaldo Canuto <everaldo@simios.org>
15073 * Menu.cs: Implement Insert method of MenuItemCollection class
15076 2007-01-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15078 * ListView.cs: Implement 2.0 FindItemWithText method.
15080 2007-01-11 Everaldo Canuto <everaldo@simios.org>
15082 * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
15083 to calculate menu bar size. Fixes #80290.
15085 2007-01-11 Everaldo Canuto <everaldo@simios.org>
15087 * ThemeWin32Classic.cs: Fix position of menuitem check mark.
15089 2007-01-11 Chris Toshok <toshok@ximian.com>
15091 * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
15094 2007-01-11 Chris Toshok <toshok@ximian.com>
15096 * LinkLabel.cs: make sure to call base.Select in our Select method
15097 if it turns out we're going to be selected (i.e. if we have a link
15098 that is going to receive focus). That way our container's
15099 ActiveControl is updated properly.
15101 2007-01-11 Chris Toshok <toshok@ximian.com>
15103 * LinkLabel.cs: turns out that LinkLabels are only Selectable if
15104 they have 1 or more links. this fixes the crash gert reported.
15106 2007-01-11 Andreia Gaita <avidigal@novell.com>
15108 * ContainerControl.cs: Remove ContainerSelected flag, not needed
15111 * Control.cs (Controls.Add): Check if control to be added to the collection
15112 is a top level control, and throw an ArgumentException if it is.
15113 Remove ContainerSelectedFlag, not needed anymore.
15115 * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
15116 top most control doesn't activate the form. This fixes a problem in the
15117 MessageBox, where the default button wouldn't get focus because the form
15118 was activated before being Loaded - when the Owner is set, SetTopMost is
15119 called, and it would activate it.
15121 2007-01-11 Jonathan Pobst <jpobst@novell.com>
15123 * Button.cs: When clicked and setting the parent form's DialogResult,
15124 use FindForm instead of Parent, since parent could be a container
15125 control and not the Form. Fixes bug #80495.
15127 2007-01-10 Chris Toshok <toshok@ximian.com>
15129 * Form.cs: move the call to SendControlFocus into the same
15132 2007-01-10 Chris Toshok <toshok@ximian.com>
15134 * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
15135 It breaks in the face of the new ActiveControl stuff, and should
15138 * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
15139 activecontrol's focus if it's not already set, after we set
15140 ActiveControl, but before we call OnActivated. Re-fixes #79667
15141 after the previous focus/active control fixes regressed it.
15143 * Control.cs: reindent some code.
15145 2007-01-10 Chris Toshok <toshok@ximian.com>
15147 * Splitter.cs: clearing some outstanding changes from my tree.
15148 Replace all accesses (not writes) to the internal dock_style field
15149 with the Dock property.
15151 2007-01-10 Chris Toshok <toshok@ximian.com>
15153 * Control.cs: make FireEnter, FireLeave, FireValidating, and
15154 FireValidated virtual.
15156 * Form.cs: override and don't chain up calls to FireEnter and
15159 2007-01-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15161 * ListView.cs: Add more text padding space when using
15162 auto resize for columns (the previous value didn't work fine).
15164 * ThemeWin32Classic.cs: Update text position inside columns,
15165 to match the appeareance of .Net.
15167 * ColumnHeader.cs: When using auto resize, only the Width should
15168 depend on the sub items, not the Height. Also, set width after
15169 auto resizing (the value of Width should never remain as -1 or -2).
15171 2007-01-10 Chris Toshok <toshok@ximian.com>
15173 * Application.cs: fix compilation errors when debug is enabled.
15175 2007-01-10 Chris Toshok <toshok@ximian.com>
15177 * ContainerControl.cs (set_ActiveControl): rework this a bit (and
15178 add some nice ascii art pictures and explanation of the process).
15179 (GetMostDeeplyNestedActiveControl): new utility function we need
15180 because our ActiveControl can refer to a child container with its
15183 * Form.cs (OnActivated): remove the call to SelectActiveControl
15184 from here, since you can override this method and not chain up,
15185 and winforms still sets the active control.
15186 (OnCreateControl): also remove the unnecessary SelectActiveControl
15188 (WndProc): it's actually called from the WM_ACTIVATE block, just
15189 before calling OnActivated.
15191 * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
15192 inside the else. the ActiveControl setter will end up setting
15193 focus on @control. This keeps us from setting it again (and
15194 generating an extra LostFocus/GotFocus pair).
15195 (Select (bool, bool)): reindent.
15197 2007-01-10 Jonathan Pobst <jpobst@novell.com>
15199 * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
15200 StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
15201 ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
15202 ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
15203 ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
15204 ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
15205 ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
15206 ToolStripTextBox.cs: Another wave of corcompare work.
15208 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15210 * ColumnHeader.cs: Implement 2.0 AutoResize method using
15211 the Width property.
15213 * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
15214 methods by callling Column.AutoResize method on columns.
15216 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
15218 * Control.cs: Provide proper implementations of PreferredSize
15219 and GetPreferredSize (2.0).
15221 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
15223 * Form.cs: Remove one character (!) to make my previous OnClosing
15224 stuff work for modal windows like MessageBox.
15226 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15229 * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
15230 ListView.Columns to get the last displayed column. Fixes #80452.
15232 2007-01-09 Everaldo Canuto <everaldo@simios.org>
15234 * Label.cs, LinkLabel.cs: Source code identation fixes.
15236 2007-01-08 Everaldo Canuto <everaldo@simios.org>
15238 * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
15239 we dont need to invalidate only borders because when we invalidate four
15240 border lines the invalidate's generates a complete redraw of button,
15241 because it now invalidate a complete rect some other redraws operations
15242 are fixed. Fixes #80196.
15244 * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
15245 Remove ToolBarInvalidateEntireButton as it is not used.
15247 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
15249 * Form.cs: Make sure that both OnClosing and OnFormClosing are
15250 called for 2.0 profile.
15251 * CloseReason.cs: Make class internal for 1.1.
15253 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
15255 * ToolStripManager.cs: Implement FindToolStrip functionality.
15256 * ToolStrip.cs: Register and unregister with ToolStripManager.
15258 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
15260 * Control.cs: This was messy. 2.0 moves much of ControlCollection
15261 to ArrangedElementCollection. Implemented this with as few #if's as
15262 possible (which is still too many).
15264 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
15266 * Control.cs: Implement SizeFromClientSize() [2.0].
15268 2007-01-07 Everaldo Canuto <everaldo@simios.org>
15270 * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
15271 use Theme.BorderSize to calculate area instead of static value 1,
15272 by the way use new BorderStaticSize instead Border3DSize when
15273 border_static is true. Fixes #79537.
15275 * XplatUIOSX.cs: Fix call to GetClientRectangle.
15277 * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
15280 2007-01-06 Everaldo Canuto <everaldo@simios.org>
15282 * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
15284 2007-01-06 Everaldo Canuto <everaldo@simios.org>
15286 * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
15287 WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
15290 - border_static field added, it will used to define when a control
15291 theres 3D border but it must be static (thin).
15292 - In GetWindowRectangle use Theme.BorderSize to calculate area
15293 instead of static value 1, by the way use new BorderStaticSize instead
15294 Border3DSize when border_static is true.
15296 * XplatUIX11.cs, XplatUIOSX.cs:
15297 - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
15299 * Theme.cs: BorderStaticSize field added.
15301 2007-01-05 Everaldo Canuto <everaldo@simios.org>
15303 * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
15305 2007-01-05 Everaldo Canuto <everaldo@simios.org>
15307 * Control.cs: Under InternalBorderStyle call RecreateHangle to
15308 mimic same behavior than win32 that set border only in CreateParams,
15309 it fix problems under CreateParams overrides. Fix #79442 and partial
15312 * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
15313 of thi control you must call recreate handle.
15315 * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
15316 need to do anything as RecreateHangle will take care about borders.
15318 2007-01-05 Mike Kestner <mkestner@novell.com>
15320 * ListView.cs: hack to eliminate Lost/Got focus notifications on
15321 cycles between the ItemControl and parent. Fixes #80388.
15323 2007-01-05 Gert Driesen <drieseng@users.sourceforge.net>
15325 * Control.cs: Lazy init layout engine. Do not directly use
15326 layout_engine since LayoutEngine may be overridden (on 2.0 profile).
15328 2007-01-05 Chris Toshok <toshok@ximian.com>
15330 * DataGrid.cs: don't forceably rebind columns in SetDataSource
15331 unless our list manager has changed (i.e. unless we have reason to
15332 believe our columns have changed). Fixes #80422.
15334 also, disable the call do BindColumns in
15335 OnListManagerMetaDataChanged. this breaks this test in 2.0 (in
15336 1.1 the event isn't raised in response to a column addition on a
15339 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
15341 * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
15342 that inheritors can not call it if they choose. Fixes bug #80456.
15344 2007-01-05 Andreia Gaita <avidigal@novell.com>
15346 * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it
15347 doesn't blow up with a null exception on marshalling.
15349 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
15351 * Control.cs: Implement several 2.0 protected properties and methods.
15352 Ensure that all necessary events are being called when properties
15355 2007-01-05 Mike Kestner <mkestner@novell.com>
15357 * ListView.cs: implement PgUp/PgDn for Details view. Also
15358 fixes First/LastVisibleIndex to use the item_control.ClientRect
15359 instead of the parent control. Fixes #80378.
15361 2006-01-05 Atsushi Enomoto <atsushi@ximian.com>
15363 * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
15364 determine whether to use yard-pound or not (bug #78399).
15366 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
15368 * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
15369 problems. So it is time to bring back the old popupbutton colors.
15371 2006-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15374 * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
15375 property by using the internal information of the
15376 columns order in ListView.
15378 2007-01-04 Jonathan Pobst <monkey@jpobst.com>
15380 * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
15381 Add 2.0 Tag properties.
15383 * LinkArea.cs: Add 2.0 ToString method.
15385 2007-01-03 Chris Toshok <toshok@ximian.com>
15387 * DataGrid.cs: the Alt+0 handling was wrong, it should have been
15388 Ctrl+0. Fixes bug #80367. Also, don't eat the Delete keypress
15389 when we're editing, which fixes #80047.
15391 2007-01-03 Chris Toshok <toshok@ximian.com>
15393 * Form.cs: apply patch contributed by Dominik Seichter. fixes
15396 2007-01-03 Jonathan Pobst <monkey@jpobst.com>
15398 * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
15399 property and implementation.
15401 * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
15402 for MdiWindowListItem property.
15404 * ToolStripDropDown.cs: Don't consider hidden menu items while
15405 laying out the menu.
15407 2007-01-03 Andreia Gaita <avidigal@novell.com>
15409 * SendKeys.cs: window handle is not needed in win32, so just
15410 get the active window for X after parsing keys and don't use
15411 it when building the message; it is passed by parameter to the
15412 Xplat method and used there to build the message instead. Also,
15413 wait for events to be processed on SendWait, as opposed to Send,
15414 which doesn't wait :) Playing with threads and Send() completely
15415 hangs on ms.net, only SendWait() works.
15418 X11Display.cs: Check for valid window handle.
15420 2007-01-03 Jackson Harper <jackson@ximian.com>
15422 * TextControl.cs: Need to prevent wrap calculations when replacing
15423 text (this was there before i removed it accidently).
15424 - Don't update the cursor during the positioning, just set it to
15425 selection_start at the end of the operaion.
15427 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
15430 * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
15432 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
15434 * MonthCalendar.cs: Added Click and DoubleClick events again,
15435 but this time they only hide Control's Click and DoubleClick.
15437 2007-01-03 Gert Driesen <drieseng@users.sourceforge.net>
15439 * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
15440 System.Drawing assembly. Spaces to tabs. Removed extra tabs.
15442 2007-01-02 Jackson Harper <jackson@ximian.com>
15444 * TextBoxBase.cs: We move the caret with the split now, so we
15445 don't need to explicitly move the caret after splitting. This
15446 fixes the caret bumping down an extra line on Enter.
15448 2007-01-02 Miguel de Icaza <miguel@novell.com>
15450 * ContainerControl.cs: Add AutoValidateChanged event (for PDN
15453 * ScrollableControl.cs: Add Scroll event.
15455 2007-01-02 Mike Kestner <mkestner@novell.com>
15457 * ListView.cs: one more try with help from georgegiolfan@yahoo.com
15458 to fix all hdr height padding codepaths. Fixes #80207.
15460 2007-01-02 Chris Toshok <toshok@ximian.com>
15462 * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
15463 setting it to the Control defaults anyway, and it being after the
15464 Dock set was screwing up layout.
15465 (set_Dock): don't short circuit out of setting base.Dock. Also,
15466 no need to call UpdateStatusBar here, as it'll be re-layed out if
15469 2007-01-02 Mike Kestner <mkestner@novell.com>
15471 * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
15472 to header height for width == -1. Fixes the rest of #80207.
15474 2007-01-02 Mike Kestner <mkestner@novell.com>
15476 * ListView.cs: rework the mouse event forwarding everaldo added
15477 to translate the coordinates to the parent control not
15478 raise the parent events until after we've done our work. Hover
15479 needs more work, in the case where HoverSelection is on, because
15480 the item control receives more than one MouseHover per Enter
15481 event, so we need to ensure only the "first" hover gets forwarded.
15482 Opening a minor bug for that.
15484 2007-01-02 Gert Driesen <drieseng@users.sourceforge.net>
15486 * CheckedListBox.cs: Fixed SelectionMode to match MS.
15487 * ListControl.cs: Implemented AllowSelection property. Removed extra
15489 * ListBox.cs: Implemented AllowSelection property.
15491 2007-01-02 Everaldo Canuto <everaldo@simios.org>
15493 * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
15494 SelectedItem, it prevent for errors when you must disable item
15495 before perform click. Fixes #80409.
15497 2007-01-02 Everaldo Canuto <everaldo@simios.org>
15499 * MenuAPI.cs: Prevent second level and beyond submenus to close
15500 until first level when move out side of popup.
15502 2007-01-02 Everaldo Canuto <everaldo@simios.org>
15505 - Down submenu positin in three pixels.
15506 - Closes sub menu when mouse leaves from menu. Fixes #80402.
15508 2007-01-02 Everaldo Canuto <everaldo@simios.org>
15510 * ThemeWin32Classic.cs:
15511 - Fix popup menu size adding one pixel on the top.
15512 - Down menu item border from two to one to mimic Win32.
15513 - Some source identation fixes.
15515 2007-01-01 Everaldo Canuto <everaldo@simios.org>
15517 * ThemeWin32Classic.cs: Use float numbers to calculate size and
15518 position of menu arrows, it fix wrong arrow size.
15520 2007-01-01 Everaldo Canuto <everaldo@simios.org>
15522 * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
15523 instead of line, it simplify draw operation and fix it using 3D
15524 borders to mimic Win32.
15526 2007-01-01 Jonathan Pobst <monkey@jpobst.com>
15528 * StatusStrip.cs: Add implementation of the sizing grip.
15530 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
15531 StatusStrip rendering.
15533 2006-12-31 Chris Toshok <toshok@ximian.com>
15535 * ToolBar.cs: don't assign to dock_style in the .ctor. it doesn't
15536 override the layout style (anchor/dock) of the control. assign to
15537 Dock instead. Fixes bug #80416.
15539 * ToolStrip.cs: same.
15541 2006-12-31 Andreia Gaita <avidigal@novell.com>
15543 * ContainerControl.cs: Use ContainerSelected flag to check if
15544 a Container is directly selected, or if Select is called on a
15545 non-container. If a container is directly selected, focus events
15546 should not be raised.
15547 Apply #80411 patch to throw exception on set_ActiveControl if
15548 control is the same as the current one.
15550 * Control.cs: Use ContainerSelected flag (see above).
15551 Add invalidation check to raise event but not invalidate if
15553 Apply #80411 patch.
15556 2006-12-31 Everaldo Canuto <everaldo@simios.org>
15558 * MenuAPI.cs: After click, dont close popup menu when menu is
15559 ContextMenu. Fixes #80399.
15561 2006-12-30 Chris Toshok <toshok@ximian.com>
15563 * ContainerControl.cs: make sure we throw the exception if the
15564 container control doesn't contain the control we're setting
15567 2006-12-30 Chris Toshok <toshok@ximian.com>
15569 * Control.cs (SetTopLevel): fix the exception raised by
15570 SetTopLevel for child controls.
15571 (set_Anchor): call UpdateDistances when setting the anchor type.
15572 This fixes bug #80336.
15574 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
15576 * Theme.cs: For now, revert back to 8pt font.
15578 2006-12-29 Everaldo Canuto <everaldo@simios.org>
15580 * MenuAPI.cs: Set popup as active when open a ContextMenu.
15583 2006-12-29 Chris Toshok <toshok@ximian.com>
15585 * Control.cs: reorder the code in OnResize to give the same event
15588 2006-12-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
15590 * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
15591 TileHorizontally and TileVertically.
15593 2006-12-29 Alexander Olk <alex.olk@googlemail.com>
15595 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
15596 FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
15597 SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
15598 Corrected copyright and email adress.
15600 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
15602 * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
15603 of Exception in FullPath property if no TreeView is associated with
15606 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
15608 * Theme.cs: Marked default_font as private, and initialize it in ctor
15609 with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
15611 * ThemeGtk.cs: Removed default_font intialization.
15612 * ThemeWin32Classic.cs: Removed default_font initialization.
15614 2006-12-28 Chris Toshok <toshok@ximian.com>
15616 * Control.cs: fix a couple of place where we were creating handles
15617 more aggressively than we should be. Fixes ControlRefresh unit
15620 2006-12-28 Chris Toshok <toshok@ximian.com>
15622 * Control.cs: contrary to what the comment said, Control.Dock does
15623 not supercede Control.Anchor - the last one you assign to decides
15624 the layout behavior. so we need to keep track of which was the
15625 last set. Also, fix some of the affected property arguments in
15626 PerformLayout calls, and remove an redundant parent.PerformLayout
15629 Add a VisibleInternal property, which returns is_visible. We
15630 can/should get rid of all the usage of this field elsewhere.
15632 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
15634 * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
15635 control style, not DoubleBuffer. Added UseDoubleBuffering property
15636 that indicates whether doublebuffering is enabled and supported.
15637 (comment from and code based on Gert Driesen's patch in #80324).
15640 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
15642 * Control.cs: Fixed a NRE.
15644 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
15646 * TrackBar.cs: Fix SmallChange and LargeChange exceptions
15649 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
15651 * Control.cs: Rewrote double buffering, now a seperate
15652 class handles all the buffering, no Graphics is disposed of
15653 until the painting is finished (earlier implementation
15654 would crash if the control was resized in the OnPaint,
15655 since it would cause the double buffer to be recreated
15656 and the old one disposed), a separate Graphics is
15657 created for every paint (MS behaviour and anyways the state
15658 of the Graphics would have to be saved and restored otherwise)
15660 * XplatUIDriver.cs:
15662 * XplatUI.cs: Added and implemented GetOffscreenGraphics
15663 so that we can get the graphics for the back buffer without
15664 having to create a new one and remove the offscreen_dc parameter
15665 from CreateOffscreenDrawable and DestroyOffscreenDrawable.
15667 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15669 * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
15670 Also make virtual all the key-related methods.
15672 * ListViewItem.cs: Make virtual the key related methods for
15673 ListViewSubItemCollection.
15675 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
15679 * ThemeWin32Classic.cs:
15680 * Theme.cs: Initial support for Tile view in ListView,
15681 as well as the implementation of the required bits for it (Item
15684 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
15686 * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
15687 of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
15688 Provide useful exception messages.
15690 2006-12-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
15692 * TrackBar.cs: Remove a warning.
15693 * MonthCalendar.cs: Moved back to using Capture to hide the calendar
15694 when used by DateTimePicker, fixes #80287. This also requires that
15695 MonthCalendar implements it's own drawing for the yearly updown control,
15696 otherwise the Capture tracking would be too complicated. Removed the Click
15697 and DoubleClick events (according to comments they were hiding the base class
15698 event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
15699 raise these events, not that they cannot be raised. It is possible to raise
15700 them by calling OnClick and OnDoubleClick). Added two internal fields in
15701 HitTestInfo in order to track give more tracking info needed by MonthCalendar.
15702 * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
15703 * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
15704 event, no longer needed.
15706 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
15708 * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
15709 true if new value differs from current value.
15711 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
15713 * Control.cs: ControlCollection.Count must be public. Fixed build of
15716 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
15718 * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
15720 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
15722 * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
15724 2006-12-26 Everaldo Canuto <everaldo@simios.org>
15726 * Control.cs: Invalidates control including when Width and Height is
15727 equal zero or is not visible, only Paint event must be care about
15728 this. Fixes #79913.
15730 2006-12-26 Chris Toshok <toshok@ximian.com>
15732 * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
15733 more corcompare work.
15735 * DataGridView.cs: fix compiler warning.
15737 * ColumnHeader.cs: some corcompare work, and also take the
15738 opportunity to make the internal fields private.
15740 * ListView.cs: fix the fallout from the above field change.
15742 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
15744 * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
15745 ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
15746 ToolStripTextBox.cs: Fixes to events and corcompare.
15748 2006-12-26 Everaldo Canuto <everaldo@simios.org>
15750 * ListView.cs: Call owner.OnMousexx event to propagate events from
15751 item to ListView. Fixes #80367.
15753 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
15755 * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
15756 if value is less than one. ItemHeight should not be set to a value
15757 less than 1, and throw ArgumentOutOfRangeException on 2.0 profile.
15758 Removed extra tabs.
15760 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
15762 * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
15763 * ToolStripStatusLabel.cs: Add Spring for Moma.
15765 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
15767 * DataGridView.cs: Fixed several NullReferenceException in On* methods.
15768 Fixed code formatting. Removed debug code.
15769 * DataGridViewTextBoxEditingControl.cs: Removed debug code.
15771 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
15773 * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
15774 RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
15775 ArgumentOutOfRangeException if ColumnCount is negative. In
15776 ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
15777 less than 4 or higher than 32768.
15778 * DataGridViewCellStyle.cs: Fixed default value for NullValue.
15779 Fixed FormatProvider to return CurrentCulture unless explicitly set.
15780 Fixed IsFormatProviderDefault to return true if FormatProvider has
15781 not been explicitly set.
15783 2006-12-25 Chris Toshok <toshok@ximian.com>
15785 * Application.cs: add a couple of 2.0 events.
15787 2006-12-25 Chris Toshok <toshok@ximian.com>
15789 * Control.cs: fix compiler warning.
15791 * AxHost.cs: corcompare fixes.
15793 * ApplicationContext.cs: corcompare fixes.
15795 2006-12-25 Chris Toshok <toshok@ximian.com>
15797 * Control.cs: only update dist_right/dist_bottom if the
15798 width/height is > 0. this fixes anchored controls being resized
15799 smaller until they disappear and then resized larger again.
15801 2006-12-25 Chris Toshok <toshok@ximian.com>
15803 * Control.cs: a couple of changes. Remove dist_left and dist_top,
15804 since they're nothing more than X/Left and Y/Top, respectively.
15806 Also, move back to a per-control Bitmap/Graphics for
15807 DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
15808 MT case. Go with a tiny bitmap though, 1x1, instead of Width x
15811 2006-12-25 Miguel de Icaza <miguel@novell.com>
15813 * MessageBox.cs: Implemented overload that takes a new "bool
15814 displayHelpButton" by adding a new internal field "show_help".
15815 When clicked this will raise the HelpRequested on the owner or the
15818 From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
15819 From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
15821 * ListView.cs: Add support ColumnWidthChanged and
15822 ColumnWidthChanging.
15824 Add support for ColumnReordered event.
15825 (ReorderColumn): Add NET_2_0 specific support for cancelling the
15828 Very nice codebase!
15830 * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
15832 This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
15834 2006-12-24 Chris Toshok <toshok@ximian.com>
15836 * GridTablesFactory.cs: 2.0 corcompare work.
15838 * ToolStripContainer.cs: add "override" to
15839 ContextMenuStripChanged, and remove the local event object.
15841 * ToolStripDropDown.cs: same with a couple properties.
15843 * ToolStripPanel.cs: same with AutoSizeChanged event.
15845 * TextBoxBase.cs: add "override" to AutoSizeChanged.
15847 * Form.cs: add the remaining 2.0 events, and do some corcompare
15850 * DateTimePicker.cs: add "new" to padding.
15852 * ButtonBase.cs: use Control's use_compatible_text_rendering.
15854 * ToolStripContentPanel.cs: use base.AutoSizeChanged.
15856 * DataGridView.cs: PaddingChanged is overridden.
15858 2006-12-24 Chris Toshok <toshok@ximian.com>
15860 * Control.cs: corecompare work here too.
15862 * DataGridViewElement.cs, DataGridView.cs,
15863 DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
15864 DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
15865 DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
15866 DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
15869 2006-12-24 Miguel de Icaza <miguel@novell.com>
15871 * Control.cs: Switched the error message on the console for a
15872 todo. A review of the code will have to cope with this anyways
15873 (since its a large feature, it is in our radar) and it was
15874 producing too much output when running PDN.
15876 * ToolStripComboBox.cs: Set the text when the SelectedIndex
15877 changes. Applications depend on this (PDN 2.72)
15879 2006-12-23 Chris Toshok <toshok@ximian.com>
15881 * TableLayoutSettings.cs: finish up the corcompare work for this
15884 2006-12-23 Chris Toshok <toshok@ximian.com>
15886 * Control.cs: make SetImplicitBounds internal, do some futzing
15887 with LayoutEngine so that it's available in 1.1, and remove the
15888 entire duplicated code mess from PerformLayout. Use
15889 System.Windows.Forms.Layout.DefaultLayout instead.
15891 * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
15893 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
15895 * Form.cs: Add MainMenuStrip property.
15897 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
15899 * Control.cs: Add ContextMenuStrip property and implementation.
15900 Fix ContextMenu implementation to show menu centered on control when
15901 activated using the keyboard instead of showing at screen (0,0).
15903 * ToolStripDropDown.cs: Fix needed overload of Show ().
15905 2006-12-23 Everaldo Canuto <everaldo@simios.org>
15907 * Menu.cs: Name property added for 2.0 profile.
15909 2006-12-23 Everaldo Canuto <everaldo@simios.org>
15911 * Menu.cs: Update information about FindMenuItem, method to be
15914 2006-12-23 Everaldo Canuto <everaldo@simios.org>
15916 * MenuAPI.cs: When deselect items deselect also selected subitems.
15918 2006-12-23 Everaldo Canuto <everaldo@simios.org>
15920 * MenuAPI.cs: When hides menu set Wnd to null, it prevents
15921 FindSubItemByCoord to found itens that is not active, also an
15922 cheking added to FindSubItemByCoord to search for items only
15923 in visible popup windows. Fixes #80274.
15925 2006-12-22 Everaldo Canuto <everaldo@simios.org>
15927 * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
15928 internal property, it be care about change ExStyle.
15930 2006-12-22 Andreia Gaita <avidigal@novell.com>
15932 * ContainerControl.cs: set activeControl for parent forms up the
15933 tree when the new activecontrol is a container.
15934 When validating the active control, if it is a container, also
15935 raise up the validation for it's active control. Fixes #80280
15937 * Control.cs: Add internal property flag and check to prevent
15938 Focus events from getting raised when Select() is called for
15939 a ContainerControl. There are still too many focus events being
15940 raised at the moment though.
15941 Cleaned up the code a bit.
15943 2006-12-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
15945 * Control.cs: Added all missing 2.0 events.and
15946 fixed a couple of corcompare issues.
15947 * TrackBar.cs: Implemented missing 2.0 bits.
15948 * MonthCalendar.cs,
15949 * DateTimePicker.cs,
15950 * MdiClient.cs: Fixed some corcompare issues.
15952 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
15954 * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
15955 SplitterPanel.cs: corecompare work.
15957 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
15959 * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
15960 Clean up warnings for BackgroundImageChanged and PaddingChanged
15961 events now that they are implemented in Control.cs.
15963 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
15965 * Control.cs: Make sure layout_engine isn't null before using it (2.0).
15967 * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
15968 TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
15969 of TableLayoutPanel and supporting cast.
15971 2006-12-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
15974 - GrabWindow now confines the mouse pointer to the confine window.
15975 - Added Win32ClipCursor and Win32GetClipCursor.
15978 - Added CaptureWithConfine to be able to capture and confine
15981 * InternalWindowManager.cs:
15982 - Call CaptureWithConfine instead of Capture if we're an
15983 MdiChild (fixes #79982).
15985 2006-12-21 Chris Toshok <toshok@ximian.com>
15987 * DataGrid.cs: guard against the initial state of selection, where
15988 selection_start == -1. make sure we only select from index >= 0.
15991 2006-12-21 Chris Toshok <toshok@ximian.com>
15993 * Control.cs: we don't need to be so draconian with
15994 UpdateDistances, and we thusly don't need to call it before
15995 calling PerformLayout in ResumeLayout. Fixes bug #80289.
15997 2006-12-21 Daniel Nauck <dna@mono-project.de>
16000 TextBox.cs: Implemented AutoComplete properties.
16002 2006-12-20 Chris Toshok <toshok@ximian.com>
16004 * DataGridView*.cs: some corecompare work.
16006 2006-12-20 Jackson Harper <jackson@ximian.com>
16008 * XplatUIX11.cs: We need to hide the caret when deleting it,
16009 otherwise you get carets left lying around everywhere.
16010 * TextBoxBase.cs: Kill then redraw the caret when scrolling. This
16011 prevents getting some weird half drawn caret tracers when
16013 * TextControl.cs: Attempt to reduce the number of times we need to
16014 recreate the caret.
16016 2006-12-20 Gert Driesen <drieseng@users.sourceforge.net>
16018 * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
16020 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
16022 * DateTimePicker.cs:
16023 - Implemented missing 2.0 bits.
16024 - Changed some default values to match MS.
16026 2006-12-20 Jackson Harper <jackson@ximian.com>
16028 * TextBoxBase.cs: When changing the font across the document we
16029 can't recalculate after changing each line, since that will cahnge
16031 - PreferredHeight is a little different than i thought.
16032 - When backspacing, move the caret before we do the actual char
16033 delete, because when that delete crosses a wrap boundary the
16034 positional information will change.
16036 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
16038 * Control.cs: Added some missing 2.0 bits:
16039 BackgroundImageLayout, BackgroundImageLayoutChanged,
16040 OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and
16041 add IBindableComponent and IDropTarget implementation.
16043 * MonthCalendar.cs:
16044 - Added all missing 2.0 features:
16045 BackgroundImageLayout, RightToLeftLayout,
16046 OnHandleDestroyed, RightToLeftLayoutChanged,
16047 BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
16049 - Rewrote all the BoldDate code, it was completely broken.
16050 - Fixed all the tests (the tests can now be re-enabled, the
16051 problems were not with the tests, but with the control, it was
16054 * DateTimePicker.cs: Changed the location where the
16055 MonthCalendar is shown.
16057 2006-12-19 Chris Toshok <toshok@ximian.com>
16059 * DataGridView.cs: add IDropTarget implementation.
16061 * ToolStripPanel.cs: add IDropTarget implementation.
16063 2006-12-19 Jackson Harper <jackson@ximian.com>
16065 * TextControl.cs: soft now means something different than what it
16066 used to mean, we want to move the caret regardless of whether or
16067 not this break was soft (would we really have wanted the caret
16068 to not move with the break in the old context?)
16069 * TreeView.cs: Make sure we factor in the vert scrollbar when
16070 calculating the horizontal scrollbar's maximum.
16072 2006-12-19 Andreia Gaita <avidigal@novell.org>
16074 * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
16075 check for keywords in alternate casing, close bug #80049.
16077 2006-12-19 Chris Toshok <toshok@ximian.com>
16079 * ToolStripItem.cs: add the implementation of the 4 IDropTarget
16080 methods (which all do nothing).
16082 * IDropTarget.cs: add the 4 missing methods.
16084 2006-12-19 Chris Toshok <toshok@ximian.com>
16086 * TableLayoutRowStyleCollection.cs: corcompare work.
16088 * TableLayoutSettings.cs: same.
16090 * TableLayoutStyle.cs: same.
16092 * TableLayoutColumnStyleCollection.cs: same.
16094 2006-12-19 Jonathan Pobst <monkey@jpobst.com>
16096 * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
16097 TableLayoutPanel I've had in my local tree for way too long.
16099 2006-12-19 Miguel de Icaza <miguel@novell.com>
16101 * TableLayoutSettings.cs: Finish the public API (still needs all
16102 the logic to update on changes).
16104 * TableLayoutPanelCellPosition.cs: new file.
16106 * TableLayoutRowStyleCollection.cs,
16107 TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
16108 TableLayoutSettings.cs: Track the final 2.0 table api.
16110 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16112 * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
16113 and Image List 2.0 members for ColummnHeader.
16114 * ListView.cs: Add key-related 2.0 methods for
16115 ColumnHeaderCollection.
16117 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
16119 * ListViewItem.cs: Changed AddRange overloads to match MS: throw
16120 ArgumentNullException if items argument is null. Ignore null item in
16121 arrays. Removed extra tabs.
16123 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
16125 * MonthCalendar.cs: Fixed InvalidCastException.
16127 2006-12-19 Jackson Harper <jackson@ximian.com>
16129 * TextControl.cs: Don't increment the position here.
16130 - When calculating char positions only add in the line break size
16131 for hard line breaks.
16133 2006-12-19 Andreia Gaita <avidigal@novell.org>
16135 * SendKeys.cs: Changed some things to match ms.net behaviour
16136 when parsing shifted capital letters.
16138 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX:
16139 Add window handle as parameter to SendInput. X11 needs the
16140 window handle, and the handle being passed to it in the keys
16141 queue is the active control handle (which windows needs), not
16144 XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput
16145 to support SendKeys on X.
16147 * X11Keyboard: Implement helper method to lookup a linux keycode
16148 given the virtual keycode. Added table of keycode-2-virtualkey
16149 values to support this.
16151 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16153 * ListView.cs: Add support for SelectedIndexCollection
16154 and SelectedItemCollection 2.0 methods. Implement support
16156 * ListViewItem.cs: Add support for ListViewSubItemCollection
16157 2.0 methods. Also, fix an incorrect behavior of AddRange method
16158 (it shouldn't call Clear).
16159 * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
16161 2006-12-19 Jackson Harper <jackson@ximian.com>
16164 * TextBoxBase.cs: New args for FormatText
16165 * TextControl.cs: Rewrote the main drawing method, this version
16166 feels a little easier to understand and debug to me. Hopefully it
16167 does to others also
16168 - Fix FormatText to OR in the new formating values. Added
16169 FormatSpecified param, basically this works in the same way as
16170 BoundsSpecified in Control.
16171 - Set the caret properties when the caret is positioned.
16172 - When wrapping text make sure that we calculate the width of the
16174 - when calculating alignments we might have wrapped down to the
16175 next line, so don't search for an individual tag, search for the
16177 - We need to invalidate the selection area when we replace the
16180 2006-12-19 Daniel Nauck <dna@mono-project.de>
16182 * Application.cs: add Restart () 2.0 support
16184 2006-12-18 Everaldo Canuto <everaldo@simios.org>
16186 * MenuItem.cs: Invalidate menu item rectangle after change Enable
16187 property. Fixes #80268.
16189 2006-12-18 Everaldo Canuto <everaldo@simios.org>
16191 * MenuAPI.cs: Dont trigger select event when closes top menu
16192 item. Fixes #80270.
16194 2006-12-18 Everaldo Canuto <everaldo@simios.org>
16196 * MenuAPI.cs: When you click on menuitem only trigger onselect
16197 event for top menu itens. Fixes #80271.
16199 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
16201 * MdiWindowManager.cs: Make IconicBounds depend on
16202 the bottom of MdiClient, not the top (fixes #80267)
16204 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
16206 * MdiClient.cs: Added missing 2.0 attribute
16208 2006-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16210 * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
16211 as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
16213 2006-12-18 Everaldo Canuto <everaldo@simios.org>
16215 * MenuAPI.cs: Fix click when menuitem is not popup,
16216 this regression was caused by last commit (#80272).
16218 2006-12-17 Everaldo Canuto <everaldo@simios.org>
16220 * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
16221 fire click event or close menu. Fixes #80272.
16223 2006-12-17 Daniel Nauck <dna@mono-project.de>
16225 * ListViewHitTestInfo.cs: add
16227 2006-12-17 Daniel Nauck <dna@mono-project.de>
16229 * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
16230 * FlatButtonAppearance.cs: add
16231 * DockingAttribute.cs: add
16233 2006-12-17 Chris Toshok <toshok@ximian.com>
16235 * DataGrid.cs: hook up MetaDataChanged event on the list manager,
16236 and rebind our columns when it does - this way, if you make
16237 changes to the DataTable (or set the Table attribute on a DataView
16238 after setting it as the DataGrid's DataSource, the changes are
16239 made visible.) Fixes bug #80107.
16241 2006-12-17 Daniel Nauck <dna@mono-project.de>
16243 * ListViewGroup.cs: add internal Location property for layouting.
16244 * Theme.cs: add abstract ListViewGroupHeight function.
16245 * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
16247 2006-12-16 Andreia Gaita <avidigal@novell.com>
16249 * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
16250 Added reset of selected index to 0 when adding first tab page.
16253 * NumericUpDown.cs: Fix NET_2_0 check
16255 2006-12-16 Daniel Nauck <dna@mono-project.de>
16257 * ListViewGroup.cs: fixed DefaultValueAttribute value
16259 2006-12-16 Daniel Nauck <dna@mono-project.de>
16261 * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
16263 2006-12-15 Miguel de Icaza <miguel@novell.com>
16265 * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
16266 TextBoxBase.cs, ListView.cs, ContainerControl.cs,
16267 ScrollableControl.cs: Add a handful of methods that are
16270 2006-12-15 Chris Toshok <toshok@ximian.com>
16272 * XplatUIWin32.cs: initial implementation of the Reversible
16273 drawing functions. there are some problems. DrawReversibleFrame
16274 doesn't seem to work at all for Dashed FrameStyle, and in the
16275 Thick case there are drawing errors at the corners (we probably
16276 need to bind Rectangle instead of doing moveto/lineto's.)
16278 2006-12-16 Andreia Gaita <avidigal@novell.com>
16280 * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput,
16281 to send blocks of key messages. Send accumulates keys to send with Flush,
16282 while SendWait sends all keys immediately.
16284 * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
16285 XplatUIX11.cs, XplatUIX11-new.cs:
16286 - Define SendInput and stubs for OSX and X11, implements Win32 with a call
16287 to Win32 SendInput.
16288 - Added INPUT support structures to XplatUIWin32 for Win32SendInput
16290 Tests: It seems ms.net is hooking the keyboard to implement this, so doing unit
16291 testing for ms.net on this class is very tricky, as the tests run too fast
16292 to allow the hook to release, essentially freezing the keyboard and the
16293 test. So, barring a win32 miracle, they'll be commited in the ms-notworking
16296 2006-12-16 Daniel Nauck <dna@mono-project.de>
16298 * Padding.cs: fixed serialization compability to MS ("_var" field names),
16299 added missing attributes.
16301 2006-12-15 Daniel Nauck <dna@mono-project.de>
16303 * ListViewGroup.cs: Added missing attributes.
16304 * ListViewGroupCollection.cs: Added missing attributes.
16306 2006-12-15 Daniel Nauck <dna@mono-project.de>
16308 * ListViewItem.cs: fixed ListViewSubItem text property.
16310 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
16312 * Control.cs: Added missing 2.0 attributes
16314 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
16316 * MdiClient.cs: Added missing 2.0 attribute.
16317 * MonthCalendar.cs: Added some missing 2.0 attributes
16320 2006-12-15 Daniel Nauck <dna@mono-project.de>
16322 * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
16324 2006-12-15 Jonathan Pobst <monkey@jpobst.com>
16326 * MainMenu.cs: Add the new 2.0 constructor to help out people
16327 using the MainMenu in VS2005.
16329 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
16331 * MdiChildContext.cs: Removed it, no longer used.
16332 * MdiClient.cs: Added missing 2.0 attributes.
16334 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
16336 * InternalWindowManager.cs: Fix a NullRef with previous
16337 changes for toolwindows.
16339 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
16342 - Added AfterTopMostControl to allow for certain controls
16343 to always stay on top when normal controls are brought to
16347 - (DrawInversibleRectangle): Get window rectangle from Win32
16348 in stead of from control, since Win32 doesn't calculate
16349 screen coords correctly from control's Location if it
16350 have docked siblings.
16352 * MdiWindowManager.cs:
16353 - Correct the control menu popup location when clicked on
16354 the maximized form icon. (fixes #80223.1)
16355 - Don't show moving rectangle if mouse hasn't moved from
16356 the original clicked point.
16357 - Removed FormGotFocus handler (not used).
16358 - Calculate the control buttons location from the main
16359 window's size and not client size (fixes #79770).
16360 - Form is now closed when the form icon is double-clicked
16362 - Correct NCCalcSize numbers a little bit (fixes #80223.2)
16364 * InternalWindowManager.cs:
16365 - Moved some MDI-only methods to MdiWindowManager.
16366 - Removed unused properties and methods.
16367 - Unified method naming for methods handling wm messages.
16368 - Moved all message handling to seperate methods for
16371 * ThemeWin32Classic.cs:
16372 - DrawManagedWindowDecorations now draws the title bar
16373 with a gradient brush.
16374 - Add a CPDrawButtonInternal that allows us to specify
16375 light, normal and dark colors for the buttons (control
16376 buttons for MDI children were drawn with the same light
16377 color as the background, therefore loosing the 3D effect).
16380 - Add a CapturedControl property that is used to
16381 determine the control to resize (defaults to parent).
16382 Needed for MdiClient, since its SizeGrip's parent is
16383 MdiClient, but the control to resize is the main form.
16386 - Set SizeGrip's CapturedControl to the main form in order
16387 to resize the main form and not the MdiClient.
16388 - Override AfterTopMostControl to leave the scrollbars
16391 2006-12-15 Daniel Nauck <dna@mono-project.de>
16393 * ListView.cs: fixed ListViewItemCollection AddRange and
16394 implemented ListViewItemCollection AddRange 2.0 support.
16396 2006-12-15 Daniel Nauck <dna@mono-project.de>
16398 * ListViewGroup.cs: Add.
16399 * ListViewGroupCollection.cs: Add
16400 * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
16401 * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
16402 stub for ImageKey 2.0 support.
16404 2006-12-14 Mike Kestner <mkestner@novell.com>
16406 * ListView.cs: add text padding to the autocalculation for columns
16407 of width -2. Fixes #80207.
16409 2006-12-14 Mike Kestner <mkestner@novell.com>
16411 * ListView.cs: add some index guarding for partial row navigation
16412 logic. Fixes #80250.
16414 2006-12-14 Mike Kestner <mkestner@novell.com>
16416 * ListView.cs: throw ArgumentExceptions when parented ListViewItems
16417 are added or inserted to the collection. Fixes #81099.
16419 2006-12-13 Everaldo Canuto <everaldo@simios.org>
16421 * MenuAPI.cs: Closes menu when right click out side of popup
16422 it fix problem in ContextMenu and MainMenu. Fixes #80252.
16424 2006-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16426 * ListViewItem.cs: Fix dumb error.
16428 * ListView.cs: Add Find and ContainsKey methods in
16429 ListViewItemCollection, and also return true for IsReadOnly
16430 and IsFixedSize (changes for 2.0).
16432 2006-12-13 Gert Driesen <drieseng@users.sourceforge.net>
16434 * Control.cs: Allow Region to be set to null.
16436 2006-12-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
16438 * MdiWindowManager.cs: Remove unused (commented out) code.
16439 * Form.cs: When the MdiChild is maximized, the form needs
16440 WM_NCMOUSELEAVE, so request it.
16441 * InternalWindowManager.cs:
16442 - Added tooltips to control buttons.
16443 - Removed duplicated control button handling code.
16444 - Removed unused (commented out) code.
16446 2006-12-12 Everaldo Canuto <everaldo@simios.org>
16448 * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor
16449 was used because we must set cursor without trigger ChangeCursor event
16450 and without change Cursor control property. Fixes #79963.
16452 2006-12-12 Andreia Gaita <avidigal@novell.com>
16454 * Control.cs: Check if Region setter value is null, and ignore
16456 2006-12-12 Jackson Harper <jackson@ximian.com>
16458 * TextControl.cs: We were almost always drawing one more line then
16459 needed, since the GetLineByPixel will return the last line found
16460 at that pixel. In most cases though, we were invalidating up to
16461 the junction between two lines.
16462 - Improve debug code.
16464 2006-12-12 Chris Toshok <toshok@ximian.com>
16466 * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
16467 and FillReversibleRectangle.
16469 * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
16470 and FillReversibleRectangle.
16472 * XplatUIWin32.cs: add stubs which do nothing for
16473 DrawReversibleFrame, DrawReversibleLine, and
16474 FillReversibleRectangle.
16476 * XplatUIOSX.cs: add stubs which raise NIE for
16477 DrawReversibleFrame, DrawReversibleLine, and
16478 FillReversibleRectangle.
16480 * XplatUIX11.cs: add working implementation for
16481 DrawReversibleFrame, DrawReversibleLine, and
16482 FillReversibleRectangle.
16484 * ControlPaint.cs: implement DrawReversibleFrame,
16485 DrawReversibleLine, and FillReversibleRectangle, by calling into
16486 the appropriate XplatUI method.
16488 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
16490 * Form.cs: Make MdiClient have the focus even if it's
16491 not selectable, since it should receive WM_KEY* and WM_MOUSE
16492 messages. Fixes #79907.
16494 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
16496 * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
16497 queried after the window is created.
16499 * XplatUIX11.cs: Added SendParentNotify to implement
16500 WM_PARENTNOTIFY logic. Fixes #79965.
16502 * Control.cs: Added MakeParam.
16504 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
16506 * MdiClient.cs: Resume Layout before setting window
16507 states (fixes #80201).
16509 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
16511 * MenuAPI.cs: Deselect a menu item after performing
16512 the click (fixes #80197).
16514 2006-12-11 Jackson Harper <jackson@ximian.com>
16516 * TextBoxBase.cs: We need to cap this value, since Maximum -
16517 ViewPortHeight can be less than zero.
16518 - Only do selection with the left mouse button.
16519 * TextBox.cs: Don't tell the world that we have a context menu.
16520 * Control.cs: New method so that we can control whether or not the
16521 context menu is visible outside MWF.
16523 2006-12-11 Everaldo Canuto <everaldo@simios.org>
16525 * ToolBarButton.cs: Fix text positon.
16527 2006-12-11 Miguel de Icaza <miguel@novell.com>
16529 * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
16531 * Control.cs (DoubleBuffered): Add implementation.
16533 * Application.cs (OpenForms): Add.
16535 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
16537 * Form.cs: Use opacity instead of Opactiy to determine if we need
16538 to set the WS_EX_LAYERED bit. [Fixes bug #80185]
16540 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
16542 * Control.cs: Fix NRE if Control.Site was set to null.
16544 2006-12-11 Chris Toshok <toshok@ximian.com>
16546 * Control.cs: ControlCollection.Remove should return if the arg is
16547 null, and ControlCollection.SetChildIndex should raise a ANE.
16549 2006-12-11 Gert Driesen <drieseng@users.sourceforge.net>
16551 * Control.cs: Verify value set for Dock property. Code formatting
16554 2006-12-11 Jackson Harper <jackson@ximian.com>
16556 * TextControl.cs: Draw the caret and the selection when a flag is
16558 * TextBoxBase.cs: We want to draw the caret and the selection for
16559 TextBox but not for TextBoxBase.
16560 - If the window is resized and scrolling is no longer needed (the
16561 whole doc is visible) set the scroll position to zero.
16562 - The default SelectWord (the one TextBox uses) should move the
16563 caret to the end of the word.
16564 - SelectAll moves the caret to the end of the selection.
16565 * TextBox.cs: We don't selectall on focus, we just do it when the
16566 control is created.
16568 2006-12-11 Mike Kestner <mkestner@novell.com>
16570 * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
16572 2006-12-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
16574 * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer
16576 * ListViewItem.cs: Add Name 2.0 property.
16578 2006-12-11 Andreia Gaita <avidigal@novell.com>
16580 * TabControl.cs: Set visibility on selected or default tab
16581 when tabcontrol handle is created, so that it's contents
16582 actually show up (duh). Fixes #80193
16583 Don't redraw the control if there is no handle created, as
16584 the selected index might be completely invalid. Added some tests
16587 2006-12-11 Everaldo Canuto <everaldo@simios.org>
16589 * ToolBar.cs: Uses maximun width and height of all buttons as
16590 button rectangle when ButtonSize specified, it looks strange but
16591 is what happens in Win32. Fixes #80189.
16593 2006-12-11 Jackson Harper <jackson@ximian.com>
16595 * TextControl.cs: Need to track undo levels ourself, since
16596 compound actions will mess them up.
16598 2006-12-10 Andreia Gaita <avidigal@novell.com>
16600 * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
16601 SelectedIndex value is changed (even if it's not valid).
16602 Reset SelectedIndex to 0 when the handle is created and if
16603 the current index is invalid.
16604 Fixes SelectdeIndex unit tests and #80128
16606 2006-12-08 Chris Toshok <toshok@ximian.com>
16608 * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
16609 calls EndEdit, it needs to be called before we set current_cell to
16610 its new value. Otherwise, we end up committing the value in the
16611 textbox to the new cell as well. Fixes bug #80160.
16613 2006-12-08 Chris Toshok <toshok@ximian.com>
16615 * Form.cs (set_CancelButton): if the button's DialogResult is
16616 None, set it to Cancel. Fixes bug 80180.
16618 2006-12-08 Jackson Harper <jackson@ximian.com>
16620 * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
16621 to watch ourselves when setting the canvas size and setting the
16624 2006-12-08 Chris Toshok <toshok@ximian.com>
16626 * DataGrid.cs: comment out the two MakeTransparent calls for the
16627 time being so people using trunk (and not 1.2.2) on windows can
16628 actually use the datagrid. This deals with bug #80151.
16630 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
16632 * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
16633 Graphics.DrawImage (image, int, int, int, int) overload instead
16634 of Graphics.DrawImage (image, int, int). GDI+ can't figure out
16635 the dpi difference and was blurring images it drew.
16638 2006-12-08 Chris Toshok <toshok@ximian.com>
16640 * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
16641 rowcnt is 0 (such as with an empty datasource), and make sure we
16642 initialize not_usedarea.Y to cells.Y, so we don't draw over the
16643 other areas (caption, parent row, etc, etc). Fixes bug #80095.
16645 2006-12-08 Chris Toshok <toshok@ximian.com>
16647 * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
16650 2006-12-08 Chris Toshok <toshok@ximian.com>
16652 [ Fixes bug #80167 ]
16654 * ThemeWin32Classic.cs: don't draw the image if the button's flat
16655 style is FlatStyle.System.
16657 * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
16658 ButtonBase.flat_style private, and switch uses of it to the public
16661 2006-12-08 Chris Toshok <toshok@ximian.com>
16663 [ Fixes bug #80121 ]
16665 * ThemeWin32Classic.cs: center the caption text in the datagrid
16668 * DataGrid.cs: lessen the amount we add to the caption height from
16669 6 to 2. 6 was making it huge.
16671 2006-12-08 Andreia Gaita <avidigal@novell.com>
16673 * UpDownBase: Handle MouseWheel call directly instead of capturing
16674 the inner textbox's OnMouseWheel. Fixes #80166
16676 2006-12-08 Jackson Harper <jackson@ximian.com>
16678 * TextControl.cs: We need to invalidate the textbox when we empty
16679 it (how had this not been discovered before?)
16681 2006-12-08 Jackson Harper <jackson@ximian.com>
16683 * TextBoxBase.cs: Reworked the mouse down code so I could get it
16684 to behave like MS, we now ignore the eventargs.Click and just
16685 track state ourself, which we were already doing anyways.
16686 - Constrain the double click handler to the double click size.
16688 2006-12-08 Chris Toshok <toshok@ximian.com>
16690 * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
16691 direction if that scrollbar isn't shown. fixes bug #80158.
16693 2006-12-08 Andreia Gaita <avidigal@novell.com>
16695 * NumericUpDown.cs: Update value on getter. Fixes #79950
16697 2006-12-08 Chris Toshok <toshok@ximian.com>
16699 * MenuItem.cs: add back in the event cloning code. I didn't know
16700 how to do it in the face of the EventHandlerList work i'd done
16701 last week. Fixes bug #80183.
16703 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
16705 * Control.cs: Add an invalidate to the BackgroundImage setter.
16708 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
16710 * ToolStrip*: Add some small properties reported by MoMA, fix event
16711 firing and default properties based off of unit tests, and add some
16712 attributes based off of the class status page.
16714 2006-12-07 Jackson Harper <jackson@ximian.com>
16716 * TextBoxBase.cs: Take HideSelection into account when determining
16717 whether or not to show the selection.
16718 * RichTextBox.cs: After inserting the RTF into the document move
16719 the cursor to the beginning of the document.
16721 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
16723 * Control.cs: Remove static ArrayList "controls" which maintained
16724 a reference to every control created.
16725 * Application.cs: Create a static FormCollection to maintain a reference
16726 to every form created. Use it in places that formerly enumerated through
16727 the controls one looking for forms.
16728 * Form.cs: Add and remove self from above FormCollection.
16730 2006-12-07 Alexander Olk <alex.olk@googlemail.com>
16732 * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
16733 not libgdk (though it makes me wonder why I didn't have any
16736 2006-12-07 Chris Toshok <toshok@ximian.com>
16738 [ you had to know this was coming after that last commit...]
16740 * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
16741 XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
16742 DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
16745 2006-12-07 Chris Toshok <toshok@ximian.com>
16747 * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
16748 DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
16749 all the behavior we need for double buffering.
16751 * XplatUIDriver.cs: implement the 3 double buffer methods using a
16752 client side Bitmap, just like the old Control-based double buffer
16753 code did. The methods are virtual, so each XplatUI driver
16754 subclass can replace the implementation to use a faster, platform
16757 * Control.cs: make use of the 3 Offscreen XplatUI calls in the
16758 double buffer code, and clean things up a bit in the process.
16760 2006-12-06 Chris Toshok <toshok@ximian.com>
16762 * Control.cs: reindent WndProc.
16764 2006-12-06 Chris Toshok <toshok@ximian.com>
16766 [ I wanna be like BenM when I grow up ]
16768 * Hwnd.cs: create a single static Graphics object on the static
16769 Bitmap we create. use this for our text measurements.
16771 * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
16772 This was causing us to allocate a backbuffer for every control,
16773 even when it wasn't flagged as double buffered. Instead use the
16774 single graphics instance. This might have implications for
16775 multithreaded applications. If we run into problems we can switch
16776 to creating 1 Graphics per control, on the static Hwnd bitmap.
16778 this change nets us a 7M savings in private dirty mappings when
16779 running FormsTest.exe.
16781 2006-12-06 Chris Toshok <toshok@ximian.com>
16783 * ListView.cs: the BackgroundImage override is just to set
16784 attributes. chain up to base.BackgroundImage.
16786 * RichTextBox.cs: same.
16788 * ToolBar.cs: same, but we need to also redraw the toolbar when it
16789 changes, so instead a handler for BackgroundImageChanged.
16791 * Control.cs: make background_image private.
16793 2006-12-06 Chris Toshok <toshok@ximian.com>
16795 * ScrollBar.cs: change the assignment of cursor to Cursor. not
16796 sure we even need this assignment, but roll with it for now.
16798 * Control.cs: make the cursor field private.
16800 2006-12-06 Chris Toshok <toshok@ximian.com>
16802 * Form.cs: we don't need to explicitly set ImeMode to
16803 ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
16804 behavior in the face of ImeMode.Inherit.
16806 * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
16807 change the ctor's assignment to use ImeMode instead of ime_mode.
16809 * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
16810 ImeModeInherit. Only check for the parent's imemode (and return
16811 NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
16812 This fixes the button unit test, which sets both ImeMode and
16813 DefaultImeMode to ImeMode.Disable.
16815 also make the ime_mode field private.
16817 2006-12-06 Chris Toshok <toshok@ximian.com>
16819 * Control.cs: make control_style private.
16821 * TextBoxBase.cs: fix the HandleClick override. it was explicitly
16822 setting the styles to true, then setting them to false instead of
16823 reverting to their previous values.
16825 also, call SetStyle on the scrollbars instead of using
16826 control_style directly.
16828 2006-12-06 Jonathan Pobst <monkey@jpobst.com>
16830 * FormCollection.cs: Implement. [2.0]
16832 2006-12-06 Chris Toshok <toshok@ximian.com>
16834 * Control.cs: make tab_stop private.
16836 * Label.cs: set TabStop, not tab_stop. reformat some event
16837 add/remove methods to make them more compact.
16839 2006-12-06 Chris Toshok <toshok@ximian.com>
16841 * RadioButton.cs: fix TabStop handling.
16843 2006-12-06 Chris Toshok <toshok@ximian.com>
16845 * TextBox.cs: remove the explicit assignments to has_focus.
16848 * ButtonBase.cs: remove the assignment to has_focus. Control will
16851 2006-12-06 Chris Toshok <toshok@ximian.com>
16853 * ButtonBase.cs: remove all uses of is_enabled from this code.
16854 it's always true when any of the code containing the checks is
16857 2006-12-06 Chris Toshok <toshok@ximian.com>
16859 * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
16860 with different semantics (some are present in both 1.1 and 2.0
16861 profiles) so that we match MS's behavior in our unit tests.
16863 2006-12-06 Jackson Harper <jackson@ximian.com>
16865 * TextControl.cs: Make this operation undoable.
16866 * TextBoxBase.cs: Factor the border width into the preferred
16868 - implement Modified as per the spec.
16870 2006-12-06 Chris Toshok <toshok@ximian.com>
16872 * Timer.cs, Control.cs, Menu.cs: make control_tag private.
16874 2006-12-06 Chris Toshok <toshok@ximian.com>
16876 * Control.cs: make right_to_left and context_menu fields private.
16878 2006-12-06 Chris Toshok <toshok@ximian.com>
16880 * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
16881 XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
16882 Control.child_controls private. switch all uses over to
16885 2006-12-06 Chris Toshok <toshok@ximian.com>
16887 * System.Windows.Forms/GroupBox.cs,
16888 System.Windows.Forms/AccessibleObject.cs,
16889 System.Windows.Forms/ErrorProvider.cs,
16890 System.Windows.Forms/Control.cs,
16891 System.Windows.Forms/UpDownBase.cs,
16892 System.Windows.Forms/ScrollBar.cs,
16893 System.Windows.Forms/DateTimePicker.cs,
16894 System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
16895 System.Windows.Forms/ToolTip.cs,
16896 System.Windows.Forms/RadioButton.cs,
16897 System.Windows.Forms/LinkLabel.cs,
16898 System.Windows.Forms/Splitter.cs,
16899 System.Windows.Forms/TextBoxBase.cs,
16900 System.Windows.Forms/ToolStripTextBox.cs,
16901 System.Windows.Forms/ContainerControl.cs,
16902 System.Windows.Forms/ThemeWin32Classic.cs,
16903 System.Windows.Forms/SizeGrip.cs,
16904 System.Windows.Forms/ToolStripDropDown.cs,
16905 System.Windows.Forms/ScrollableControl.cs: Make Control.parent
16906 private. switch all uses over to Control.Parent.
16908 2006-12-06 Chris Toshok <toshok@ximian.com>
16910 * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
16911 Control does this before calling emitting these events.
16913 * TabControl.cs: same.
16915 * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
16916 Control.client_rect.
16918 * ButtonBase.cs: use the ClientSize property instead of the
16921 * ScrollableControl.cs: same.
16923 * Control.cs: another pass at making properties private. also,
16924 move the initialization of tab_stop to the ctor.
16926 2006-12-05 Andreia Gaita <avidigal@novell.com>
16928 * TabControl.cs: Let the selected index be set freely if the
16929 control handle is not yet created.
16931 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
16933 * Control.cs: Revert dist_top, dist_right, and dist_bottom to
16934 internal until I can rewrite DefaultLayout.
16935 * ToolStrip.cs: Fix build error and some general cleaning.
16936 * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
16937 Fix build errors caused by making some of Control's fields private.
16939 2006-12-05 Jackson Harper <jackson@ximian.com>
16941 * TextControl.cs: Redo Insert a little so that it use IndexOf
16942 instead of Split, this prevents it from messing up on things like
16943 \n\n\n. Also more effecient since the split array doesn't need to
16945 * TextBoxBase.cs: AppendText doesnt handle multiline and non
16946 multiline text differently, this is the first of many fixes that
16947 will make multiline/non-multiline the same thing as far as the
16948 TextBoxBase is concerned.
16949 - Don't split the text and insert lines, this can lose some line
16950 endings (like is the last line a soft or hard break). Instead use
16952 - Fix an off by one when combining all the lines in the Text
16954 - Remove separate multiline handling from the Text getter/setter.
16956 2006-12-05 Chris Toshok <toshok@ximian.com>
16958 * ButtonBase.cs: a few changes:
16960 - don't reinitialize internal Control fields in the ctor when they
16961 have the same values as Control sets them.
16963 - don't set has_focus in OnGotFocus/OnLostFocus. Control does
16964 this before calling those methods.
16966 - we don't need to call Refresh for anything. use Invalidate
16969 - OnEnabledChanged doesn't need to redraw at all - Control.cs
16970 calls Refresh in its OnEnabledChanged.
16972 - several of the events we were registered for in the ctor to
16973 redraw ourselves already include calls to Invalidate in the
16974 property setters that raise the events. remove the extra
16977 - reformat a switch statement that was 83274658 columns wide.
16979 2006-12-05 Mike Kestner <mkestner@novell.com>
16981 * ComboBox.cs: fix a unit test regression from a TextBox
16982 SelectionLength return of -1 when there's no selection.
16984 2006-12-05 Chris Toshok <toshok@ximian.com>
16986 * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
16987 ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
16988 cleaning up some of the internal Control fields being used by
16991 2006-12-05 Mike Kestner <mkestner@novell.com>
16993 * ComboBox.cs: fix some Simple mode regressions. Set Visible on the
16994 listbox after AddImplicit calls since it defaults to hidden. Add a
16995 hack to preserve requested heights across DropDownStyle changes.
16997 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
16999 * PropertyGrid.cs: Hide FindFirstItem method from public API.
17001 2006-12-05 Chris Toshok <toshok@ximian.com>
17003 * DataGridView.cs: fix compiler warnings.
17005 * PrintControllerWithStatusDialog.cs: same.
17007 * ToolBar.cs: same.
17009 * FolderBrowserDialog.cs: same.
17011 * Splitter.cs: same.
17013 * DataGridViewComboBoxCell.cs: same.
17015 * XplatUIWin32.cs: same.
17017 * PictureBox.cs: same.
17019 * Win32DnD.cs: same.
17021 * PageSetupDialog.cs: same.
17023 * FileDialog.cs: same.
17025 * PrintDialog.cs: same.
17027 * DataGridTextBoxColumn.cs: same.
17029 * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
17031 2006-12-05 Chris Toshok <toshok@ximian.com>
17033 * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
17034 MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
17035 System.ComponentModel.EventHandlerList work.
17037 2006-12-05 Jonathan Chambers <joncham@gmail.com>
17039 * DrawTreeNodeEventArgs.cs: Added.
17041 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
17043 * InternalWindowManager.cs: Remove an unused field.
17045 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
17047 * InternalWindowManager.cs:
17048 - Save the point where the title bar is clicked.
17050 * MdiWindowManager.cs:
17051 - Only allow moving of the window as long as the
17052 clicked point on the title bar does not get out of
17053 MdiClient's rectangle. Fixes #79982.
17056 - Added Horizontal/VerticalScrollbarVisible.
17057 - Simplified the scrollbar sizing algorithm.
17058 - Cache the difference in scrolled value in
17059 H/VBarValueChanged and move the calculation out
17062 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
17064 * Control.cs: Make the Console.WriteLine in WndProc
17067 2006-12-05 Chris Toshok <toshok@ximian.com>
17069 * ToolStripManager.cs, ToolStripButton.cs,
17070 ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
17071 ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
17072 ToolStripSplitButton.cs, ToolStripSeparator.cs,
17073 ToolStripRenderer.cs, ToolStripDropDownItem.cs,
17074 ToolStripProgressBar.cs, ToolStripContainer.cs,
17075 ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
17076 to using System.ComponentModel.EventHandlerList.
17078 2006-12-04 Chris Toshok <toshok@ximian.com>
17080 * LinkLabel.cs: fix up compiler warnings.
17082 * TableLayoutSettings.cs: same.
17084 * TreeView.cs: same.
17086 * ToolBar.cs: same.
17088 * TabControl.cs: same.
17090 * RichTextBox.cs: same.
17092 * ListViewItem.cs: same.
17094 * PropertyGrid.cs: same.
17096 * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
17100 * TextRenderer.cs: fix up compiler warnings.
17104 * Form.cs: corcompare fixes.
17106 * PictureBox.cs: fix up compiler warnings.
17108 * ImageListStreamer.cs: same.
17110 * TrackBar.cs: corcompare fix.
17112 * Control.cs: fix up compiler warnings.
17114 * SplitterPanel.cs: same.
17116 * NumericTextBox.cs: same.
17118 * ImageList.cs: same.
17120 * StatusStrip.cs: same.
17122 * ProgressBar.cs: corcompare fix.
17124 * ToolStripButton.cs: fix up compiler warnings.
17126 * ToolStripStatusLabel.cs: same.
17128 * ToolStripSplitButton.cs: same.
17130 * ToolStripSeparator.cs: same.
17132 * ToolStripProgressBar.cs: same.
17134 * ToolStripDropDownMenu.cs: same
17136 * ToolStripDropDown.cs: same.
17138 * ToolStripDropDownButton.cs: same.
17140 * ToolStrip.cs: same.
17142 * ToolStripControlHost.cs: same.
17144 * ToolStripContentPanel.cs: same.
17146 * ToolStripDropDown.cs: same.
17148 * ToolStripContainer.cs: same.
17150 * ToolStripPanel.cs: same, and add "new" where we need it to work
17151 with the new ArrangedElementCollection.
17153 * ToolStripItemCollection.cs: add "new" where we need it to work
17154 with the new ArrangedElementCollection.
17156 2006-12-04 Andreia Gaita <avidigal@novell.com>
17158 * TabControl.cs: Fix default tab selection to after TabControl
17159 gets focus and not before. Fixes #80128
17161 2006-12-04 Chris Toshok <toshok@ximian.com>
17163 * DataGridTableStyle.cs: remove the gross calling of
17164 datagrid.Refresh from here. It's a broken idea and it doesn't
17167 * DataGrid.cs: instead, just register/unregister from the
17168 DataGridTableStyle events in CurrentTableStyle. we play it
17169 conservatively and EndEdit + CalcAreasAndInvalidate on any event,
17170 even though some would most likely not require it. Fixes bug
17171 #80115 (and one portion of #80117 as a side effect).
17173 2006-12-04 Chris Toshok <toshok@ximian.com>
17175 * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
17176 so the textbox (if any) goes away. Fixes bug #80117.
17178 2006-12-04 Chris Toshok <toshok@ximian.com>
17180 * DataGridColumnStyle.cs: set the column's readonly property
17181 initially based on the property descriptor's IsReadOnly. Fixes
17184 2006-12-04 Chris Toshok <toshok@ximian.com>
17186 * ComboBox.cs: wrap the dropdown style changing work in
17187 SuspendLayout/ResumeLayout. Fixes bug #79968.
17189 2006-12-04 Jackson Harper <jackson@ximian.com>
17191 * TextBoxBase.cs: Fix off by one, since these are one-based.
17192 * TextBox.cs: Select all the text when we get focus. The TextBox
17193 does this but the RTB does not.
17195 2006-12-04 Chris Toshok <toshok@ximian.com>
17197 * DataGridTextBoxColumn.cs: remove some spew.
17199 * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
17200 but some part of me is saying "it shouldn't be here.." At any
17201 rate, it fixes bug #80046. Call IEditableObject.EndEdit after
17204 2006-12-04 Chris Toshok <toshok@ximian.com>
17206 * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
17207 to reassign the propertydescriptor.
17209 2006-12-04 Jackson Harper <jackson@ximian.com>
17212 * TextControl.cs: Remove some unused variables. Maybe this will
17213 patch things up between mike and I.
17214 - don't split lines less then one char wide, if the viewport is
17215 that small text won't be visible anyways.
17217 2006-12-04 Jackson Harper <jackson@ximian.com>
17219 * TextBoxBase.cs: Default selection length is -1, need to do some
17220 more testing on windows to see when this is used for the property.
17221 - Redid the Lines [] property to that we properly remove soft line
17223 - added support for preserving carriage returns
17224 - CanUndo is not a variable like 'is undo enabled' it just returns
17225 true if there is undo operations available.
17226 - AppendText doesn't need to grab the last tag itself anymore,
17227 this happens automatically when we move the cursor.
17228 * TextControl.cs: Add CompoundActions to the undo class. This
17229 allows combining the other operations into one big option. ie a
17230 paste will combine { delete old, insert new, move cursor }
17231 - Add InsertString undo operation
17232 - New method for deleting multiline text
17233 - Add carriage returns to lines. So we can preserve carriage
17234 returns when text is 'roundtripped'
17236 2006-12-04 Chris Toshok <toshok@ximian.com>
17238 * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
17239 minimum 0. Fixes the scrollbar exception in bug #80136.
17241 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
17244 * MdiWindowManager: Removed unused fields and methods.
17246 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
17248 * StatusBar.cs: Update all panels when a AutoSize=Contents
17249 panel needs updating.
17251 * StatusBarPanel.cs: Remove twidth and only use initialize.
17254 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
17256 * Form.cs: When a form's MdiParent is set add it directly
17257 on top of the z-order in stead of relying on MdiClient's
17258 ActivateChild to do it. Fixes #80135.
17261 - Remove original_order, mdi_child_list is already doing
17263 - Create mdi_child_list on construction in
17264 stead of first use (avoids a few null checks).
17266 * MenuItem.cs: Use an already existing list of mdi children
17267 to get the correct order of children and remove the other
17270 2006-12-04 Chris Toshok <toshok@ximian.com>
17272 * PropertyGridView.cs: cached_splitter_location is only used in
17273 !DOUBLEBUFFER code.
17275 * PropertyGrid.cs: implement the ComComponentNameChanged event
17276 using Events, hoping that would fix the warning. Looks like a
17277 compiler bug instead (#80144).
17279 * PropertyManager.cs: remove unused method.
17281 2006-11-04 Everaldo Canuto <everaldo@simios.org>
17283 * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar,
17284 include parentesis to fix expression evaluation. Fixes #79634.
17286 2006-11-02 Everaldo Canuto <everaldo@simios.org>
17289 - Changes to fix behavior in Menu control, some reported in #80097
17290 and other detected during behavior refactory like a select event
17292 - Remove unneded "if's" conditions.
17293 - Created an internal to flag when popup is active in control, we need
17294 it because in .NET you can have menu active but without popup active
17295 when you active menu using popup without visible items.
17296 - Mimic win32 behavior for Select and Popup events.
17297 - Dont open popup menu when you dont have visible subitems.
17298 - Do nothing when click on disabled menu item.
17299 - Some small changes to follow the coding style guidelines.
17300 - Unselect menu only when another control gives focus. Fixes #80097.
17301 - Remove unused code.
17303 * MenuItem.cs: internal VisibleItems method to check if menu
17304 theres visible subitems, it will be usefull to fix some
17305 behavior in Menu control.
17307 2006-11-01 Everaldo Canuto <everaldo@simios.org>
17309 * Timer.cs: Tag property for 2.0 profile.
17311 2006-12-01 Chris Toshok <toshok@ximian.com>
17313 [ after removing all warning suppressions, this cleans up over 100 warnings. ]
17315 * Win32DnD.cs: comment out some unused fields.
17317 * XplatUIWin32.cs: comment out some unused pinvokes, and remove
17318 some unused properties/methods.
17320 * XplatUIX11.cs: fix MousePosition so we override the base class's
17321 property instead of conflicting with it.
17323 * PictureBox.cs: comment out some unused fields
17325 * OSXStructs.cs: make some struct fields public.
17327 * XplatUIOSX.cs: comment out some unused pinvokes, and fix
17328 MousePosition so we override the base class's property instead of
17329 conflicting with it.
17331 * X11Dnd.cs: comment out some unused fields
17333 * X11DesktopColors.cs: fix some struct field visibility to quiet
17336 * X11Dnd.cs: remove some debug code.
17338 * ThemeClearlooks.cs: comment out unused field.
17340 * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
17342 * ThemeGtk.cs: comment out some unused pinvokes.
17344 * Timer.cs: remove some unused fields.
17346 * ThemeClearlooks.cs: comment out unused field.
17348 * UpDownBase.cs: comment out unused field.
17350 * DataObject.cs: comment out unused field.
17352 * DataGridBoolColumn.cs: reomve unused field.
17354 * DataGrid.cs: remove unused field.
17356 * Cursor.cs: remove old ToBitmap code.
17358 * ControlPaint.cs: remove unused method.
17360 * ScrollBar.cs: remove unused fields.
17362 * ComboBox.cs: remove unused field, and chain up to
17363 AccessibleObject ctor.
17365 * ListBox.cs: remove unused field.
17367 * ButtonBase.cs: wrap a couple fields in NET_2_0.
17369 * GridEntry.cs: remove unused fields.
17371 * Binding.cs: remove unused fields.
17373 * AxHost.cs: remove unused method.
17375 * ContainerControl.cs: remove unused field.
17377 * ScrollableControl.cs: remove unused fields.
17379 2006-12-01 Chris Toshok <toshok@ximian.com>
17381 * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
17382 the Where/WhereString stuff. it's easy enough to CWL
17383 Environment.StackTrace.
17385 * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
17386 unused private fields.
17388 2006-12-01 Jackson Harper <jackson@ximian.com>
17390 * TextControl.cs: Do not update the view while inserting multiline
17391 text. If we update the view we might wrap lines, before entering
17392 the new lines, which causes the new line insertion calculations to
17393 be totally fubared.
17394 - Remove an old TODO
17395 - Make debug output a little nicer
17397 2006-12-01 Chris Toshok <toshok@ximian.com>
17399 * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
17401 2006-12-01 Chris Toshok <toshok@ximian.com>
17403 [ fix the majority of the CS0108 warnings we've been suppressing ]
17405 * TreeView.cs: mark BackgroundImageChanged as 'new'.
17407 * ToolBar.cs: ImeMode just passes stuff to Control. Rename Layout
17408 to "LayoutToolBar" to quiet mcs.
17410 * TabControl.cs: mark our ControlCollection class as 'new'.
17412 * TextBoxBase.cs: mark some events as 'new'.
17414 * Splitter.cs: TabStop is 'new'.
17416 * ControlBindingsCollection.cs: mark a few methods as new since
17417 they change the visibility from protected to public.
17419 * RadioButton.cs: DoubleClick -> base class, and remove unused
17422 * MonthCalendar.cs: ImeMode property -> base class, and mark many
17425 * NumericUpDown.cs: TextChanged -> base class.
17427 * CheckedListBox.cs: mark our ObjectCollection class as new to
17430 * FolderBrowserDialog.cs: make HelpRequest event new and have it
17431 muck with the base class.
17433 * StatusBar.cs: fix some mcs warnings about Update being the same
17434 name as a base class method.
17436 * RichTextBox.cs: mark some events as new, and make them do things
17437 to the base class impl.
17439 * UserControl.cs: mark TextChanged as new, and have it manipulate
17442 * UpDownBase.cs: mark some things new.
17444 * CheckBox.cs: mark DoubleClick "new", and add some text about
17445 what we need to look at.
17447 * Panel.cs: make the events "new", and manipulate the base
17448 version. these are just here for attributes.
17450 * AccessibleObject.cs: make owner private.
17452 * Control.cs: deal with AccessibleObject.owner being private.
17453 cache our own copy if we need it.
17455 * Button.cs: add "new" to the DoubleClickEvent.
17457 * ListBox.cs: no need to track our own has_focus here. let
17458 Control.has_focus do it for us. Also some other work to clear up
17459 warnings about not overriding base class methods of the same name.
17461 * ComboBox.cs: clear up some warnings about not override base
17462 class methods of the same name.
17464 2006-12-01 Chris Toshok <toshok@ximian.com>
17466 * Form.cs: flag a few things as "new" to quiet some of the mcs
17471 * PrintPreviewDialog.cs: same.
17473 * DataGridView.cs: fix a ton of corcompare warnings. not all, but
17474 now DGV isn't so horrible on the class status page. also, move
17475 all events to using System.ComponentModel.EventHandlerList. my
17478 2006-12-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
17480 * MdiWindowManager.cs:
17481 - Set form to active mdi child if shown,
17482 and update the active mdi child to the next
17483 remaining child in the z-order if the form is hidden.
17486 - Track if the form has been visible and if its
17487 visibility is beeing changed, so that the MdiClient
17488 can properly decide the ActiveMdiChild. The MdiClient
17489 cannot track this since the form can change visibility
17490 before MdiClient is created.
17493 - Don't activate anything of the parent form is changing
17495 - Rework ActiveMdiChild to only return visible mdi
17496 children and take into account several other corner
17499 2006-12-01 Chris Toshok <toshok@ximian.com>
17501 * IBindableComponent.cs: new 2.0 interface.
17503 2006-12-01 Gert Driesen <drieseng@users.sourceforge.net>
17505 * DataGrid.cs: Font for caption area is bold by default.
17507 2006-12-01 Everaldo Canuto <everaldo@simios.org>
17509 * Menu.cs: Tag property for 2.0.
17511 2006-11-01 Everaldo Canuto <everaldo@simios.org>
17513 * ThemeWin32Classic.cs: Adjust menu separator drawing.
17515 2006-12-01 Chris Toshok <toshok@ximian.com>
17517 * TreeView.cs: doh, the Begin* events should be
17518 TreeViewCancelEventHandler.
17520 2006-12-01 Chris Toshok <toshok@ximian.com>
17522 * Form.cs: Form.ControlCollection already stores off the
17523 form_owner field. don't access the base class's internal "owner"
17526 * Control.cs: make all the fields in Control.ControlCollection
17527 private. there's no need for any internal fields here.
17529 2006-12-01 Chris Toshok <toshok@ximian.com>
17531 * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
17532 OnHandleCreated. Fixes bug #80109.
17534 2006-12-01 Chris Toshok <toshok@ximian.com>
17536 * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
17537 SplitContainer.cs, Control.cs, StatusStrip.cs,
17538 DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
17539 NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
17540 DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
17541 DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
17542 Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
17543 LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
17544 MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
17545 TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
17546 PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
17547 DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
17549 do most of the work to convert our code over to use
17550 System.ComponentModel.Component.Events for
17551 adding/removing/dispatching events.
17554 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
17556 * DataGridView.cs: Fix an ArgumentNullException reported
17557 twice today in IRC.
17559 2006-11-30 Mike Kestner <mkestner@novell.com>
17561 * ComboBox.cs: fix the scrollbar mouse event forwarding in the
17562 grabbed listbox. Fixes #80036 and #80101.
17564 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
17566 * Message.cs: Changed ToString() to match MS.
17568 2006-11-30 Jackson Harper <jackson@ximian.com>
17570 * TextBoxBase.cs: You can still change the selected text on a read
17572 * TextControl.cs: Lower magic number for wrap calculations. This
17573 lets text get closer to the right (far) edge.
17575 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
17577 * Control.cs: Tweak 2.0 layout properties.
17578 * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
17579 * TextRenderer.cs: Add a new overload.
17580 * ToolStrip*: Huge amount of changes and new features.
17582 2006-11-30 Mike Kestner <mkestner@novell.com>
17584 * ComboBox.cs: fixes for LargeChange and Maximum to get the
17585 scroll range correct. Fixes #79994.
17587 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
17589 * MdiWindowManager.cs: Update main form's text when
17590 a form is closed. (fixes #80038)
17592 2006-11-30 Everaldo Canuto <everaldo@simios.org>
17595 - Fix an regression in ButtonSize.
17596 - Get ImeMode default value change to "Disable".
17597 - Get ShowTooltips default value change to true, default value is
17598 "false" but after make a test in .NET we get "true" result as default.
17600 2006-11-29 Jonathan Pobst <monkey@jpobst.com>
17602 * ToolStripDropDown.cs: Fix for SupportsTransparency change.
17604 2006-11-29 Chris Toshok <toshok@ximian.com>
17606 * XplatUIWin32.cs (GetWindowTransparency): check return value of
17607 GetLayeredWindowAttributes. if it's 0, return 1.0, as
17608 SetWindowTransparency hasn't been called.
17610 2006-11-29 Chris Toshok <toshok@ximian.com>
17612 * Form.cs (set_TransparencyKey): only call SetWindowTransparency
17614 (set_AllowTransparency): reorder things a little so that the
17615 WS_EX_LAYERED style is removed properly.
17617 2006-11-29 Chris Toshok <toshok@ximian.com>
17619 [ totally cosmetic eye-candy feature, fixes bug #80089 ]
17621 * Form.cs: only call the XplatUI transparency method (get/set) if
17622 SupportsTransparency says it's supported. Otherwise fallback to
17623 doing nothing (in the set case) or returning the instance field we
17624 cache (in the get case).
17626 * XplatUIStructs.cs: add TransparencySupport flag enum.
17628 * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
17629 change to SupportsTransparency.
17631 * XplatUIOSX.cs: stub out GetWindowTransparency, and return
17632 TransparencySupport.None from SupportsTransparency.
17634 * XplatUIX11.cs: Stub out GetWindowTransparency, and return
17635 TransparencySupport.Set from SupportsTransparency.
17637 * XplatUIWin32.cs: implement GetWindowTransparency calling
17638 GetLayeredWindowAttributes, and implement SupportsTransparency by
17639 checking whether or not both
17640 GetWindowTransparency/SetWindowTransparency are available
17641 entrypoints. We need to do this since SetWindowTransparency is
17642 available as of win2k, but GetWindowTransparency requires winxp.
17645 * XplatUI.cs: Add GetWindowTransparency, and change
17646 SupportsTransparency to allow for either/both Get/Set.
17648 2006-11-29 Chris Toshok <toshok@ximian.com>
17650 * DataGrid.cs: keep from going into an infinite loop redrawing a
17651 datagrid that has no datasource. Fixes bug #80033.
17653 2006-11-29 Chris Toshok <toshok@ximian.com>
17655 * MenuItem.cs: fix the NRE when we assign text (and therefore call
17656 Invalidate) before the mainmenu has been assigned to a control.
17658 2006-11-29 Chris Toshok <toshok@ximian.com>
17660 * DataGrid.cs: detect when we should be double the double click
17661 row/column autosize stuff, although that codepath has yet to be
17662 written. part of the work for bug #79891.
17664 2006-11-29 Chris Toshok <toshok@ximian.com>
17666 * Binding.cs (SetControl): fix unit test.
17668 2006-11-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
17670 * PageSetupDialog.cs: Validate the margins and set them in
17672 * NumericTextBox.cs: New class to mimic the behavior of the
17673 textboxes used in the printing dialogs.
17675 2006-11-29 Andreia Gaita <avidigal@novell.com>
17677 * Form.cs: Revert previous change (remove call UpdateBounds
17678 from form constructor), because it messes with the handle creation
17679 order, and that one needs lots and lots of love.
17680 * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
17681 for valid printer and throw InvalidPrinterException if document
17682 is set but printer not valid), adding a MonoTODO. Once
17683 handle creation is done properly, we can put this back in.
17685 2006-11-28 Everaldo Canuto <everaldo@simios.org>
17687 * MenuItem.cs: Create a invalidate method for menu item, to be
17688 calling from set text, it make text changes to imadiate update
17689 on screen. Fixes #80013.
17691 2006-11-28 Everaldo Canuto <everaldo@simios.org>
17693 * ToolBar.cs: Fixes and simplify toolbar button layout, it
17694 fixes bug #80070 and some other problem on toolbar buttons
17697 2006-11-28 Everaldo Canuto <everaldo@simios.org>
17699 * ThemeWin32Classic.cs: Paint toolbar toggle button background
17700 with dotted brush. Fixes #79564
17702 2006-11-28 Andreia Gaita <avidigal@novell.com>
17704 * Form.cs: Removed call to UpdateBounds on Form
17705 constructor, it was causing a call to CreateHandle
17706 before it was supposed to.
17707 * PrintControllerWithStatusDialog: Applied patch
17708 by Chris Toshok to hide controller when there are
17709 no printers available.
17710 PrintDialog.cs: initialize printer settings to
17711 null - correct DefaultValues test #5
17712 * PrintPreviewControl.cs: Move PrintController
17713 initialization to GeneratePreview
17714 * PrintPreviewDialog.cs:
17715 - Remove Preview generation from Document_set(). It is
17717 - Throw InvalidPrinterException on CreateHandle if
17718 a Document is set but there are no printers or
17719 printer is not valid.
17720 * ThemeWin32Classic: don't paint PrintPreviewControl
17721 if there is nothing to paint
17723 2006-11-28 Miguel de Icaza <miguel@novell.com>
17725 * Form.cs: Add another popular method.
17727 * TabPage.cs: ditto.
17729 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
17731 * MenuItem.cs: Fixed a warning.
17732 * InternalWindowManager: Fixed a warning.
17734 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
17737 - When cloning a menu also clone MdiList and clone the
17738 window menu items properly (as the forms and menuitems
17739 are kept in an internal hashtable, these need updating
17741 - Rewrote the window menu code, menu items are added in the
17742 order the forms were added to their parent, and they are
17743 updated every time the window menu is shown (before the
17744 list was only generated once, in the current order of the
17745 forms, and would never be updated). A checkmark is shown
17746 next to the item corresponding to the active mdi child.
17748 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
17750 * XplatUIStructs.cs:
17751 - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
17754 - Added TME_NONCLIENT to TMEFlags.
17755 - Handles WM_NCMOUSEMOVE in GetMessage to
17756 generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
17758 * MdiWindowManager:
17759 - Now merges mdi child menu to parent menu when maximized.
17760 - Recalculate NC areas of both mdi child and mdi parent.
17762 on window state and size changes.Fixes #79844 (3).
17763 - Handle WM_NCCALCSIZE to properly calculate borders.
17766 - Add/remove to the mdi containers list of mdi children
17767 in the order they are added.
17768 - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE
17769 to the maximized mdi child.
17771 * InternalWindowManager.cs:
17772 - Only execute a click on the control buttons on the mouse up,
17773 not on the mouse down. Show the state of the button
17774 (was only showing Normal state, never Pressed state). The
17775 pressed button now follows the mouse (if you click the Close
17776 button and move the mouse over the Maximize button, the
17777 Maximize button will be shown as pressed). Since Win32 does
17778 not generate WM_NCLBUTTONUP if you release the button outside
17779 of the nc area, we need to handle WM_NCMOUSELEAVE and treat
17782 * ThemeWin32Classic.cs:
17783 - Draw a missing border around mdi child forms. Fixes #79844 (2).
17786 - Added a list of forms which contains the order the forms are
17787 added to the mdi parent.
17788 - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
17789 - Handle WM_NCCALCSIZE to properly calculate the 3D border.
17790 - If the active form changes set the scrollbars to the top
17791 of the Z order, otherwise the form could hide them.
17792 - Scrollbars are now sized according to ClientSize, not
17793 to Size, and they take into account the other scrollbar
17794 to determine maximum.
17796 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
17799 * XplatUIDriver.cs:
17803 - Added RequestAdditionalWM_NCMessages for windows to
17804 opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
17805 Currently only implemented in XplatUIWin32.
17807 2006-11-27 Chris Toshok <toshok@ximian.com>
17809 * Hwnd.cs: only add the hwnd to the windows hash in
17810 set_WholeWindow and set_ClientWindow if whole_window/client_window
17811 are not IntPtr.Zero. also, remove the unused SetObjectWindow.
17813 2006-11-27 Mike Kestner <mkestner@novell.com>
17815 * ComboBox.cs: remove redundant OnDropDown call. It is called
17816 from the ComboListBox.ShowWindow code. Fixes #79969.
17818 2006-11-27 Chris Toshok <toshok@ximian.com>
17820 * Hwnd.cs: remove the setters for ExposePending and
17821 NCExposePending - noone uses them.
17823 2006-11-27 Jackson Harper <jackson@ximian.com>
17825 * TextControl.cs: new param for ReplaceSelection which determines
17826 whether we select the new selection, or set the cursor to the end
17827 of the new selection.
17828 * TextBoxBase.cs: Use new param for ReplaceSelection. When
17829 pasting, select the new text.
17830 * RichTextBox.cs: Use new param for ReplaceSelection.
17832 2006-11-27 Jackson Harper <jackson@ximian.com>
17834 * TextBoxBase.cs: Set the selection to the caret after the caret
17835 is moved, otherwise they get out of sync.
17837 2006-11-26 Everaldo Canuto <everaldo@simios.org>
17839 * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
17842 2006-11-26 Everaldo Canuto <everaldo@simios.org>
17844 * ThemeWin32Classic.cs:
17845 - Fix toolbar drop down arrow position.
17846 - Fix drop down appearance when ToolBar.Appearance is normal,
17849 2006-11-26 Gert Driesen <drieseng@users.sourceforge.net>
17851 * ProgressBar.cs: GetStyle fixes for 2.0 profile.
17852 * Control.cs: Same.
17853 * UpDownBase.cs: Same.
17854 * ButtonBase.cs: Same.
17855 * ScrollBar.cs: Same.
17856 * TrackBar.cs: Same.
17857 * PictureBox.cs: Same.
17858 * UserControl.cs: Same.
17860 * ListControl.cs: Same.
17861 * TextBoxBase.cs: Same.
17862 * ListView.cs: Same.
17863 * RichTextBox.cs: Same.
17864 * TreeView.cs: Same.
17866 2006-11-25 Jordi Mas i Hernandez <jordimash@gmail.com>
17869 - Text label for where
17870 - Text label comment was not shown
17872 2006-11-23 Everaldo Canuto <everaldo@simios.org>
17874 * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
17876 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
17878 * InternalWindowManager.cs:
17879 - Handle WM_PARENTNOTIFY to activate the form
17880 if any child control is clicked.
17881 - The form is only sizable if not minimized.
17883 * MdiWindowManager.cs:
17884 - Save the IconicBounds if the form is moved.
17885 - Rework SetWindowState, now the window bounds
17886 are stored only if the old window state is Normal.
17889 - In SetWindowStates store the old window state if
17890 the window is maximized and restore window state if
17891 the window looses focus.
17892 - Don't handle any scrollbar value changes if
17893 initializing the scroll bars. Fixes #79771.
17894 - Reworked ArrangeIconicWindows. Current algorithm
17895 tests bounds agains all other minimized windows, if
17896 any intersections create new bounds (going left to
17897 right, bottom to top) and then test again. When
17898 successful the bounds are saved and never computed
17899 again. Fixes #79774.
17901 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
17903 * InternalWindowManager.cs: Added HandleTitleBarUp.
17905 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
17907 * NumericUpDown.cs: In .NET 1.1, user entered text is still
17908 hexadecimal in ParseUserEdit.
17911 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
17913 * MdiWindowManager.cs:
17914 - Handle a click on the form's icon to show the
17915 system menu (when maximized). Fixes #79775.
17916 - Change the existing click handler for the form's
17917 icon when not maximized to show on MouseUp.
17920 * Form.cs: In OnResize only layout the mdi child's
17921 parent if it actually has a parent. Might not if
17922 the window is closing.
17925 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
17927 * MdiClient.cs: Ignore active MDI client for text of parent, if
17928 child has no text set.
17930 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
17932 * ToolBar.cs: Fixed ToString to match MS.
17934 2006-11-22 Andreia Gaita <avidigal@novell.com>
17937 - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to
17938 update inner values on set. Fixes #79966.
17939 - Override OnLostFocus to update value on NET 2. Fixes #79950.
17940 - Fix hexadecimal parsing.
17942 * UpDownBase: Override OnGotFocus and OnLostFocus to notify
17943 parent. Fixes #79957
17945 2006-11-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
17947 * Control.cs: After calling SetWindowsPos in SetBoundsCore
17948 the actual size has to be queried, since if height /
17949 width is negative Win32 changes it to 0.
17950 Fixes #79999 on Windows.
17952 * XplatUIX11.cs: Set height / width to 0 if negative
17953 in SetWindowPos. Fixes #79999 on Linux.
17955 2006-11-22 Everaldo Canuto <everaldo@simios.org>
17957 * ThemeWin32Classic.cs: Fix text redenring when button is
17960 2006-11-22 Everaldo Canuto <everaldo@simios.org>
17962 * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
17963 and later navigate by mouse. Fixes #79528.
17965 2006-11-21 Everaldo Canuto <everaldo@simios.org>
17967 * ToolBar.cs: Set default value for TabStop to false in
17968 constructor, it fixes remaining behavior of bug #79863.
17970 2006-11-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
17972 * MdiWindowManager.cs:
17973 * InternalWindowManager.cs:
17974 - Moved a few methods specific to Mdi from
17975 InternalWindowManager to MdiWindowManager.
17978 2006-11-21 Chris Toshok <toshok@ximian.com>
17980 * XplatUIOSX.cs: stub out InvalidateNC.
17982 * XplatUIWin32.cs: implement InvalidateNC using the call I found
17983 at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
17985 * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
17987 * XplatUIDriver.cs: add InvalidateNC abstract method.
17989 * XplatUI.cs: add InvalidateNC.
17991 2006-11-21 Everaldo Canuto <everaldo@simios.org>
17993 * ToolBar.cs: Invalidate complete button area when pressed status
17995 * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
17996 * ThemeWin32Classic.cs: Increase vertical and horizontal position
17997 by 1 when button is pressed.
17999 2006-11-20 Everaldo Canuto <everaldo@simios.org>
18001 * ToolButton.cs: Invalidate middle of DropDown button when
18002 ToolBar theres DropDownArrows.
18003 * ThemeWin32Classic.cs: Change position of DropDown arrow and
18004 fix DropDown drawing operations.
18006 2006-11-20 Chris Toshok <toshok@ximian.com>
18008 * NativeWindow.cs: fix the formatting of functions ('{' on the
18009 following line), and enable the thread exception dialog.
18011 * Application.cs: remove the duplicate exception catching from
18014 2006-11-20 Everaldo Canuto <everaldo@simios.org>
18016 * Toolbar.cs: Triggers button click event when click on icon
18017 of dropdown ToolBarButton. Fixes #79912.
18019 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
18022 * ThemeWin32Classic.cs:
18023 - Added a property WindowBorderFont to enable themeing
18024 of mdi child windows' Text.
18026 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
18028 * InternalWindowManager.cs:
18031 * MdiWindowManager.cs:
18032 - If mdi child is maximized, set mdi parent's
18033 text to "Parent - [Child]". Fixes #79770.
18034 - If there is any maximized mdi child windows, only the active
18035 window (and any new windows) is maximized, the rest are normal.
18036 - On a WindowState change only save mdi child's window bounds
18037 if the old window state was normal. Fixes #79774.
18038 - The scroll bars are now calculated on hopefully all
18039 necessary events. Fixed #79771 / #79844->6 / #79906.
18040 - MdiClient.SizeScrollBars() now takes into account docked
18041 controls in the parent when calculating available space.
18042 - InternalWindowManager now always repaints the entire title
18043 area. Fixes #79844->1/4/5.
18044 - Added RequestNCRecalc on mdi child windowstate changes.
18047 2006-11-20 Mike Kestner <mkestner@novell.com>
18049 * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
18050 in the MouseUp handler of the listbox and move the return handling
18051 code to FireMouseUp to avoid scrolling on ups. Fixes #79952.
18053 2006-11-20 Everaldo Canuto <everaldo@simios.org>
18055 * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855.
18057 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
18059 * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
18060 working in 1.2.x anymore. So, updated.
18062 2006-11-19 Gert Driesen <drieseng@users.sourceforge.net>
18064 * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
18065 NumberGroupSeparator of current culture instead of assuming en-US.
18068 2006-11-17 Mike Kestner <mkestner@novell.com>
18070 * Control.cs: Add the concept of implicit bounds setting so that
18071 dock/undock round trips preserve explicitly set size/locations.
18074 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
18076 * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
18077 can't handle those filters. (Fixes bug #79961)
18079 2006-11-17 Chris Toshok <toshok@ximian.com>
18081 [ fixes the exit/crashes associated with #79835. it's clearly
18082 suboptimal though, we need to figure out a better way to solve
18085 * PrintPreviewControl.cs: deal with the new invalid printer
18088 * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
18089 and return false (so CommonDialog.ShowDialog doesn't actually show
18092 * PrintDialog.cs: enable/disable the Ok button depending on
18093 whether or not the printer is valid.
18095 * CommonDialog.cs (ShowDialog): only actually show the form if
18096 RunDialog returns true.
18098 2006-11-17 Jackson Harper <jackson@ximian.com>
18100 * TextControl.cs: When soft splitting a line, mark it as a soft
18101 split line. Also carry over the current line break to the next
18104 2006-11-17 Chris Toshok <toshok@ximian.com>
18106 * XplatUIX11.cs: when scrolling a window with an invalid area, we
18107 only want to shift the part of the invalid area that overlaps the
18108 area we're scrolling. we also don't want to clear the invalid
18109 area unless the invalid area was entirely contained within the
18112 2006-11-16 Chris Toshok <toshok@ximian.com>
18114 * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
18115 also make sure to free the memory returned by XGetWindowProperty
18118 * X11Structs.cs: remove the TimerEvent stuff, it's unused.
18120 2006-11-16 Chris Toshok <toshok@ximian.com>
18122 * XplatUI.cs: add a new super secret way to get at the totally
18123 unsupported X11 backend.
18125 2006-11-16 Gert Driesen <drieseng@users.sourceforge.net>
18127 * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
18129 2006-11-16 Jackson Harper <jackson@ximian.com>
18131 * TreeView.cs: Allow more explicit setting of top node position
18132 for scrollbars. Slower algo, but more accurate.
18133 - CollapseAll should maintain the current top node.
18134 * TextBoxBase.cs: When positioning the caret, use the line, pos
18135 method, since the x, y method does not grab the correct tag, and
18136 the caret height never gets set correctly. (Maybe I should just do
18137 away with the caret having its own height, and always use the
18138 carets current tag for height).
18140 2006-11-16 Jonathan Pobst <monkey@jpobst.com
18142 [Fixes 79778, 79923]
18144 * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
18145 Parent to the FosterParent instead.
18147 2006-11-16 Jackson Harper <jackson@ximian.com>
18149 * TreeView.cs: Need to recalc the topnode when we expand or
18150 collapse. The scrolling methods can't handle this on their own,
18151 since they use differences between the last scroll position, and
18152 those difference get completely messed up since we are expanding
18153 nodes. This problem should probably be fixed in the scrolling
18154 methods, so they can figure out exactly where they are, but this
18155 will slow things down a little.
18156 * ThemeWin32Classic.cs: Special case for groupboxes with empty
18157 strings, makes nunit-gui look a lot nicer.
18159 2006-11-16 Chris Toshok <toshok@ximian.com>
18161 * XplatUIX11.cs: nasty, nasty, nasty changes required because of
18162 the broken multithreaded event handling we have in here. File
18163 this entry under "Why we should move to the new X11 backend".
18165 Any thread can make it into UpdateMessageQueue, which gets events
18166 from the X socket - some of which could belong to hwnds being
18167 managed by a different thread. We can also have multiple threads
18168 in UpdateMessageQueue at the same time, with each one reading from
18169 the X socket. This leads to many problems, with the following
18172 We can't use hwnd.Queue.Enqueue anywhere in here and must use
18175 The MotionNotify compression we do can't work across threads
18176 (without locking the entire queue, perhaps) since we call
18177 hwnd.Queue.Peek, so we just punt and don't compress motion events
18178 unless the owning thread is the one which got the X event.
18180 ConfigureNotify is another fun one, since it modifies the hwnd's
18181 bounds and then enqueues the event. We add a lock to Hwnd which
18182 is held when setting configure_pending to true (and enqueuing the
18185 There is a race wrt the wake socket. we need to make sure that
18186 only 1 thread is waiting on that socket, or else a thread could
18187 sleep waiting for data that never comes. It's difficult (but not
18188 impossible) to make happen, because it seems to require something
18189 like the following:
18191 1. Thread 1 polls on wake_receive
18193 2. poll returns saying there's data to be read on
18196 3. Thread 2 polls on wake_receive and immediately returns
18197 saying there's data to be read.
18199 4. Thread 2 reads the wakeup byte from wake_receive
18201 5. Thread 1 attempts to read the wakeup byte from
18204 6. Thread 2 exits (due to a form closing, perhaps).
18206 7. Thread 1 blocks forever.
18210 Fixing the Expose handling isn't done yet, and the races inherent
18211 in that piece of code are responsible for the drawing mistakes you
18212 see when generating expose events in a MT app (like NPlot). This
18213 one is the likely to be the hardest to bandaid, and it doesn't
18214 appear to cause anything but drawing problems. The other issues
18215 caused apps to exit or hang.
18217 * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
18218 called from a different thread than the one that should be calling
18221 * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
18223 2006-11-15 Chris Toshok <toshok@ximian.com>
18225 * Application.cs: null out the context's MainForm when we exit
18226 RunLoop. Fixes a newly checked in unit test as well as the last
18227 ODE from bug #79933.
18229 2006-11-15 Chris Toshok <toshok@ximian.com>
18231 * Form.cs (set_Owner): allow a null value so we can clear the
18233 (Dispose): set all our owned_form's Owner properties to null, and
18234 clear the owned_forms collection.
18235 (WM_CLOSE): clean up this a little bit.. still not right though.
18237 * ApplicationContext.cs: OnMainFormClosed should only call
18238 ExitThreadCore if the main form isn't recreating. Fixes unit
18241 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
18245 * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
18247 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
18251 * Hwnd.cs: Add a flag to show a window, but not activate it, to
18252 keep popup window types from stealing focus from the main form
18255 * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
18257 * MenuAPI.cs: Set above flag to true.
18259 2006-11-15 Chris Toshok <toshok@ximian.com>
18261 * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
18262 the button being released is not in wParam.
18264 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
18266 * Form.cs: Add the released button to MouseEventArgs.Button
18267 for the OnMouseUp call to the MenuTracker. Fixes menu clicking
18270 2006-11-15 Chris Toshok <toshok@ximian.com>
18272 * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
18273 GetText(). untested because it's unused in our implementation.
18274 Control.Text always caches the text, even if
18275 ControlStyles.CacheText is not set.
18279 2006-11-15 Chris Toshok <toshok@ximian.com>
18283 * Form.cs: in Close() don't do anything after we send the WM_CLOSE
18284 message. no hiding, no disposing.
18286 in the WM_CLOSE handler, hide the form if it's modal.
18288 2006-11-15 Chris Toshok <toshok@ximian.com>
18290 * XplatUIX11.cs: use AddExpose instead of sending a message.
18291 fixes textbox border drawing.
18293 2006-11-15 Chris Toshok <toshok@ximian.com>
18295 * PropertyGridView.cs: keep from crashing on mouse move/down when
18296 the property grid is empty.
18298 2006-11-14 Jackson Harper <jackson@ximian.com>
18300 * TextControl.cs: Make PageUp and PageDown more like the MS
18302 * TextBoxBase.cs: When we set the text property position the
18303 cursor at the beginning of the document.
18305 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
18307 * Form.cs: if a mdi child's WindowState has changed
18308 before it's creation, it would display wrong control
18311 2006-11-14 Alexander Olk <alex.olk@googlemail.com>
18313 * TreeView.cs: De-uglify TreeView checkbox checkmarks.
18316 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
18318 * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that
18319 the window gets to paint its borders even if the window is
18322 * Form.cs: on a WM_NCPAINT invalidate the entire menu,
18323 otherwise the old control buttons would still be painted
18324 if the window gets bigger.
18326 * PaintEventArgs.cs: add an internal method so that the clip
18327 rectangle can be changed.
18329 2006-11-13 Chris Toshok <toshok@ximian.com>
18331 [ fixes bug #79745 ]
18333 * NotifyIcon.cs: lots of cleanup.
18335 * X11Structs.cs: add an enum for XEMBED messages.
18337 * XplatUIX11.cs: reindent one of the giant switch statements, it
18338 was taking up an additional tab stop, and this file is already way
18339 too wide for my laptop's screen.
18341 Also, add handling for the XEmbed EMBEDDED_NOTIFY message. When
18342 we get it, resize the hwnd to the WMNormalHints max_width/height.
18344 2006-11-13 Jackson Harper <jackson@ximian.com>
18346 * TextBoxBase.cs: Compute the value changes for the mouse wheel
18349 2006-11-13 Chris Toshok <toshok@ximian.com>
18351 * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
18352 #79898. force a reference to the Region to stick around so the
18353 unmanaged object isn't collected (rendering our handle in the MSG
18356 2006-11-13 Chris Toshok <toshok@ximian.com>
18358 * XplatUIX11.cs: fix #79917 for window managers which support
18360 using XStoreName on the raw utf8, and we need to convert to
18361 COMPOUND_TEXT if it's non-latin1.
18363 2006-11-13 Chris Toshok <toshok@ximian.com>
18365 * Form.cs (set_DialogResult): we need to set closing to false if
18366 we're setting our result to None. fixes bug #79908.
18368 2006-11-13 Jackson Harper <jackson@ximian.com>
18370 * TextControl.cs: When formatting text, compute the adjusted tag
18371 lengths correctly, using FindTag for the end tag instead of trying
18372 to figure it out outselves.
18373 * TreeNode.cs: Use ActualItemHeight, which is the actual height of
18374 the item, ItemHeight doesn't work, because trees with large
18375 imagelists use those for their height
18376 * TreeView.cs: ActualItemHeight factors in the image height
18377 - compute left edge of checkboxes correctly
18378 - when expanding/collapsing move the bottom down one pixel, so we
18379 aren't moving part of the node
18381 2006-11-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
18383 * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
18384 stack in PaintEventStart so that it won't get disposed by the gc
18385 before reaching PaintEventEnd.
18387 2006-11-13 Jackson Harper <jackson@ximian.com>
18389 * TextBoxBase.cs: Don't select the word if we are on a line with
18391 - We don't need to position the caret on mouse up, since the mouse
18392 move handler should be doing this
18393 - When double clicking a blank line, the caret is advanced to the
18396 2006-11-13 Gert Driesen <drieseng@users.sourceforge.net>
18398 * TreeNodeCollection.cs: Avoid duplicating indexer code.
18400 2006-11-12 Gert Driesen <drieseng@users.sourceforge.net>
18402 * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
18403 Fixes part of bug #79910.
18405 2006-11-11 Alexander Olk <alex.olk@googlemail.com>
18407 * ColorDialog.cs: Fix a NRE when adding a color to custom colors
18408 (bug #79903). Some minor string updates to match ms.
18410 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
18412 * FileDialog.cs: Don't add an extension if the filename
18413 already ends with that extension.
18415 2006-11-10 Jackson Harper <jackson@ximian.com>
18417 * TreeView.cs: Use the currently highlighted node for the
18418 BeforeSelect event.
18419 * TextBoxBase.cs: There is no need to expand selection on
18421 - CanUndo means 'is there any undo operations', not 'is undo
18422 allowed on this textcontrol. Fixed ClearUndo unit test.
18424 2006-11-10 Andreia Gaita <shana.ufie@gmail.com>
18426 * Button.cs: only perform click when button is Selectable (so as
18427 not to activate default buttons when they're disabled)
18429 * Control.cs: Rewrite of the SelectNextControl and related
18430 methods. HandleClick now selects next control if the current one
18433 * Form.cs: OnActivated selects next active control only if Load
18434 has already occurred. If Load hasn't run, there's no point in
18435 selecting here, Load might change the state of controls.
18437 * FocusTest.cs: Tests marked as working again for these fixes
18439 2006-11-10 Chris Toshok <toshok@ximian.com>
18441 * XplatUIX11.cs: a couple of fixes.
18443 - use XInternAtoms with almost all the atoms we need to register,
18444 instead of many, many calls to XInternAtom. should help a bit on
18445 startup time, at the expense of making the code look a little
18448 - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
18449 isn't reparented (which seems to be a clue that we're running fon
18450 compiz) and they have an Owner form. This fixes the tool windows
18451 in paint.net when running under compiz.
18453 - when setting the opacity of a window, support both the case
18454 where the window has been reparented and also when it hasn't been.
18455 Since compiz/beryl doesn't seem to reparent windows, and these are
18456 the only window managers which support translucency, I'm not sure
18457 why we need the hwnd.reparented case at all.. but leave it in.
18458 now we get translucent windows in paint.net under compiz/beryl.
18460 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
18462 * FileDialog.cs: Always return the value for FilterIndex that
18463 was set. Internally convert it to values that make sense.
18465 2006-11-10 Everaldo Canuto <everaldo@simios.org>
18467 * ThemeWin32Classic.cs: Fix drowp down arrow borders.
18469 2006-11-10 Everaldo Canuto <everaldo@simios.org>
18471 * Toolbar.cs: Change default value of DropDownArrows to true, the
18472 signature still using false to make it compatible with MS but the
18473 initial value is true. Fixes #79855.
18475 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
18477 * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
18478 only available on Linux.
18480 2006-11-09 Everaldo Canuto <everaldo@simios.org>
18482 * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
18483 reduce number of calls to redraw method during toolbar creation.
18485 2006-11-09 Mike Kestner <mkestner@novell.com>
18487 * ListView.cs : raise SelectedIndexChanged when an item is selected
18488 programmatically via the Item.Selected property. Gert's nice
18489 ListViewSelectedIndexChanged test fixture now runs clean.
18491 2006-11-09 Mike Kestner <mkestner@novell.com>
18493 * ListView.cs : raise SelectedIndexChanged when a selected item is
18494 removed from the item collection using Remove or RemoveAt.
18496 2006-11-09 Mike Kestner <mkestner@novell.com>
18498 * ListView.cs : raise SelectedIndexChanged once per selected item
18499 for compat with MS. Fixes #79849+.
18501 2006-11-09 Chris Toshok <toshok@ximian.com>
18503 * TabControl.cs: initialize row_count to 0, and set it to 1 when
18504 we need to (if we have any tab pages). Fixes unit test.
18506 2006-11-09 Chris Toshok <toshok@ximian.com>
18508 * Label.cs (CalcPreferredWidth): if Text == "", our preferred
18509 width is 0, not 3. Fixes a unit test.
18511 2006-11-09 Mike Kestner <mkestner@novell.com>
18513 * ListView.cs : use Implicit scrollbars so that focus isn't
18514 stolen from the listview when they are clicked. Fixes #79850.
18516 2006-11-09 Chris Toshok <toshok@ximian.com>
18518 * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
18519 have a root item. Fixes #79879.
18521 2006-11-09 Alexander Olk <alex.olk@googlemail.com>
18525 - An ArgumentException is now thrown if a wrong filter
18526 is applied (matches ms). The previous filter doesn't change
18527 anymore if an exception is thrown.
18528 - Changing the FileName property also affects FileNames
18529 * ColorDialog.cs: The length of the CustomColors array is always
18530 16. It doesn't matter if we use a smaller array or null to update
18531 or change the custom colors property.
18532 * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
18533 for RootFolder if we get a undefined value.
18535 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
18537 * StatusBarPanel.cs:
18538 - Width is set to MinWidth if Width is smaller than
18539 MinWidth. Fixes #79842.
18540 - MinWidth now always overrides Width (MSDN says MinWidth
18541 is set to Width when AutoSize = None, but they do not
18543 - Style has now the the correct default value.
18545 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
18548 - The control is completely invalidated on
18549 Got/LostFocus to draw the focus rectangle correctly.
18550 - When AutoSize then height is always 45 (width for
18551 vertical controls).
18553 * ThemeWin32Classic.cs: The TrackBar thumb is now centered
18554 on the mouse when moved and it doesn't move when grabbed
18555 until the mouse moves as well. Also fixed some wrong
18556 calculations when clicking on the thumb (control thought
18557 click was outside of thumb and didn't grab it).
18558 Fixes some of the issues in #79718.
18560 2006-11-08 Everaldo Canuto <everaldo@simios.org>
18562 * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
18564 2006-11-08 Chris Toshok <toshok@ximian.com>
18566 * PropertyGridView.cs: only call ToggleValue if the item is not
18569 2006-11-08 Jackson Harper <jackson@ximian.com>
18571 * TextBoxBase.cs: The RichTextBox and textbox have very different
18572 word selection methods. Implement the textbox's simple word
18573 selection here, and let the RichTextBox override and provide it's
18575 - Don't do extra selection on mouseup
18576 * RichTextBox.cs: Use the documents word selection algorithm, I
18577 think ideally, this function will be pulled into the
18578 RichTextBox.cs code someday.
18580 2006-11-08 Chris Toshok <toshok@ximian.com>
18582 * RootGridEntry.cs: new class to represent GridItemType.Root.
18584 * CategoryGridEntry.cs: reformat, and add boilerplate.
18586 * GridEntry.cs: remove the UIParent stuff - turns out .Parent
18587 returns the UI parent anyway, and we need special handling to
18588 implement the GetTarget method in the face of it. Also, implement
18591 * PropertyGrid.cs, PropertyGridView.cs: a number of fixes. create
18592 a root grid item, and use that instead of PropertyGrid.grid_items.
18593 Also, make use of TypeConverters (and add limitted support for
18594 ICustomTypeDescriptors) when initially populating the grid.
18595 Arrays now show up more or less properly.
18597 2006-11-08 Chris Toshok <toshok@ximian.com>
18599 * Application.cs: set the modal dialog to non modal after we close
18600 it. Fixes bug #79866.
18602 2006-11-08 Jackson Harper <jackson@ximian.com>
18604 * TextControl.cs: When combining lines carry over the line end
18605 style from the end line.
18606 - Invalidate the selected area when setting it, if it is visible.
18607 * TextBoxBase.cs: Only rich text box can do full line selects.
18608 - Make sure to set the cursor position when there is a click,
18609 otherwise two clicks in separate areas could cause a large chunk
18612 2006-11-07 Everaldo Canuto <everaldo@simios.org>
18614 * Toolbar.cs: Release flat button borders when Toolbar lost focus.
18617 2006-11-07 Everaldo Canuto <everaldo@simios.org>
18619 * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
18620 time. Remove tooltips when ToolButton click events. Fixes #79856.
18622 2006-11-07 Everaldo Canuto <everaldo@simios.org>
18624 * MenuAPI.cs: Ignore right click for menu actions and fixes
18625 menu border when clicked. Fixes #79846.
18627 2006-11-07 Everaldo Canuto <everaldo@simios.org>
18629 * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
18630 MouseState after create wParam for message, this fixes mouse button
18631 equal none in mouse up events.
18633 2006-11-07 Andreia Gaita <shana.ufie@gmail.com>
18635 * Control.cs : Focus() now calls Select to set the Container's
18636 Active Control and to give it focus. To avoid infinite recursion
18637 (because ActiveControl also calls Focus at one point), a check
18638 is made in Focus with the help of a new internal variable
18641 2006-11-07 Mike Kestner <mkestner@novell.com>
18643 * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
18644 if there's a selection. Fixes #79849.
18646 2006-11-07 Gert Driesen <drieseng@users.sourceforge.net>
18648 * PropertyGrid.cs: Avoid fixed height of help description label.
18649 Fixes part of bug #79829.
18651 2006-11-07 Chris Toshok <toshok@ximian.com>
18653 * XplatUIX11.cs: fix #79790 again, by using the
18654 _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
18656 2006-11-07 Everaldo Canuto <everaldo@simios.org>
18658 * ToolBar.cs: Fix left click checking.
18660 2006-11-07 Chris Toshok <toshok@ximian.com>
18662 * ProgressBar.cs: fix a typo in ToString(). fixes a unit test.
18664 2006-11-07 Chris Toshok <toshok@ximian.com>
18666 * RelatedPropertyManager.cs: set property_name in our ctor. fixes
18667 PropertyManager unit tests.
18669 * PropertyManager.cs: make property_name internal.
18671 2006-11-07 Chris Toshok <toshok@ximian.com>
18673 * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
18674 pass a unit test. Also, don't set image_index to anything in
18675 response to setting the ImageList property.
18677 2006-11-07 Everaldo Canuto <everaldo@simios.org>
18679 * ToolBar.cs: Ignore click events when mouse button is not a
18680 left button, only accepts other button for dropdown menus.
18683 2006-11-07 Chris Toshok <toshok@ximian.com>
18685 * DataGrid.cs: make the back and parent row buttons a little less
18688 2006-11-07 Jackson Harper <jackson@ximian.com>
18690 * TextBoxBase.cs: When converting to Text don't put line breaks in
18691 for soft line breaks.
18692 * TextControl.cs: There is an initial "fake" line in the document,
18693 this is now a soft break line, so that an extra line feed doesn't
18694 get added to the end of documents.
18696 2006-11-07 Chris Toshok <toshok@ximian.com>
18700 * CurrencyManager.cs: if the list is readonly, don't bother
18701 checking if IBindingList.AllowNew is true.
18703 * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
18704 for non-DataRowView datasources.. or rather, make it not crash.
18705 (DataGridPaintRelationRow): make sure we limit the row painting to
18706 the area not covered by the row header, and make our cell width at
18707 least large enough to cover the relation area. This allows grids
18708 that have relations but no rows to render correctly.
18709 (DataGridPaintRowContents): same type of changes here.
18710 (SetDataSource): move back to always calling
18711 CalcAreasAndInvalidate. this fixes a crash/drawing problem when
18712 navigating back through relations.
18713 (HitTest): handle the case where we have no cells but have
18714 relations. Right now we generate a hit in cell 0 of whatever the
18715 row is, not sure if this is strictly correct, but it works for our
18718 * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
18719 bother doing anything.
18721 2006-11-07 Jonathan Pobst <monkey@jpobst.com>
18723 * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
18724 early version of StatusStrip. Not responsible for eaten
18725 application or firstborn children.
18727 2006-11-06 Chris Toshok <toshok@ximian.com>
18729 * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
18730 call GetTabRect with a -1 index. Fixes #79847.
18732 2006-11-06 Jackson Harper <jackson@ximian.com>
18734 * TreeNodeCollection.cs: Update scrollbars after clearing.
18736 2006-11-06 Chris Toshok <toshok@ximian.com>
18738 * NumericUpDown.cs: fix the ToString method for some unit test
18741 2006-11-06 Chris Toshok <toshok@ximian.com>
18744 - set the initial SelectedGridItem if we can.
18746 - Exclude non-mergable properties only if we're merging > 1
18747 object. Merging 1 object isn't really merging, obviously.
18749 - Handle PropertySort.NoSort just like Alphabetical, which is
18750 wrong of course, but at least gets things on the screen.
18752 * PropertyGridView.cs:
18753 - Add method "FindFirstItem" which finds the first property grid
18754 item, so we can select it by default.
18756 - make use of GridEntry.CanResetValue.
18758 - Don't call RedrawBelowItemOnExpansion here anymore, the
18759 individual GridEntry's will do that.
18761 - Remove the ITypeDescriptorContextImpl internal class.
18764 - this class needs to implement ITypeDescriptorContext, as it's
18765 what MS's PropertyDescriptorGridEntry does, which means we can
18766 remove the ITypeDescriptorContextImpl internal class from
18767 PropertyGrid.cs. This fixes the crashing portion of bug #79829.
18769 - keep a reference to our PropertyGridView, and move the call to
18770 RedrawBelowItemOnExpansion here from PGV. This means
18771 programmaticly setting Expanded actually does something visible.
18773 - add a CanResetValue() function which takes into account our
18774 possibly multiple "selected_objects" in the merged case. Shifting
18775 PropertyGridView to use this method fixes another unreported
18776 crasher found running the test for #79829.
18778 - when Top or Bounds is updated, make sure the PropertyGridTextBox
18779 is updated to reflect this.
18781 * CategoryGridEntry.cs: the ctor takes the PGV now.
18783 2006-11-06 Jackson Harper <jackson@ximian.com>
18785 * TextControl.cs: These are 1 based.
18786 * TextBoxBase.cs: When setting the selected text, don't change the
18787 selected text tags, this is done by ReplaceText, just position the
18788 cursor at the end of the new text.
18790 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
18792 * ListView.cs: Allow label edit only when, when LabelEdit is
18795 2006-11-06 Jackson Harper <jackson@ximian.com>
18797 * TextControl.cs: If a suitable wrapping position isn't found,
18798 just wrap right in the middle of a word.
18800 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
18802 * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
18805 2006-11-06 Jackson Harper <jackson@ximian.com>
18807 * TreeView.cs: Can't use the VisibleCount property when setting
18808 scrollbar heights, because this doesn't take into account whether
18809 or not the horz scrollbar just came visible.
18811 2006-11-05 Everaldo Canuto <everaldo@simios.org>
18813 * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
18814 activated. Fixes #79369, #79832.
18816 2006-11-05 Alexander Olk <alex.olk@googlemail.com>
18818 * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
18819 had to remove support for links that point to a directory. FileInfo
18820 returns no usefull information (means, the directory they point to)
18821 for such links. Replaced some empty string ("") with String.Empty.
18823 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
18825 * TreeNodeCollection.cs: To match MS, in 1.0 profile throw
18826 NullReferenceException when attempting to remove node that is not in
18827 collection. Throw NullReferenceException when null is passed to
18828 Remove. Allow first element of the collection to be removed. Fixes
18829 bug #79831. In GetEnumerator ().Current return null if positioned
18830 before the first element of the collection. In GetEnumerator ().Reset,
18831 position before first element of the collection.
18833 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
18835 * PropertyGrid.cs: To match MS, remove default title and description
18836 for panel. Fixed tooltips for Categorized and Alphabetic toolbar
18839 2006-11-04 Chris Toshok <toshok@ximian.com>
18841 * Theme.cs: add a Clamp method, just for kicks.
18843 * ThemeWin32Classic.cs: clamp all color components to [0..255].
18845 2006-11-04 Chris Toshok <toshok@ximian.com>
18847 * Form.cs: if the form isn't visible, Close() does nothing.
18849 2006-11-03 Chris Toshok <toshok@ximian.com>
18851 * Form.cs (Close): if the form is modal, don't Dispose of it, only
18853 (WndProc): don't Dispose after handling the WM_CLOSE message.
18855 * Application.cs (RunLoop): toplevels is a list of Forms, so treat
18856 them as such, instead of using casts from Control to Form. Also,
18857 don't Dispose of the modal dialog when we fall out of the loop -
18858 Close() it instead.
18862 2006-11-03 Chris Toshok <toshok@ximian.com>
18864 * Control.cs (Dispose): only go through the dispose thing if we're
18865 @disposing, and we haven't already been disposed. Fixes bug
18868 * Form.cs: no reason to call "base.Dispose()" here instead of
18871 2006-11-03 Mike Kestner <mkestner@novell.com>
18873 * ComboBox.cs : use ToString instead of casts in AddItem for
18874 sorting functionality. Fixes #79812.
18876 2006-11-03 Chris Toshok <toshok@ximian.com>
18878 * Application.cs: pave the way for actually using the thread
18879 exception dialog. it's ifdefed out at the moment.
18881 2006-11-03 Chris Toshok <toshok@ximian.com>
18883 * ThreadExceptionDialog.cs: until we get a better layout, actually
18884 hide the details textbox and label when we shouldn't see them.
18886 2006-11-03 Jackson Harper <jackson@ximian.com>
18888 * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
18889 multiline textboxes anymore. This method also determines the
18890 width/height of a textboxes canvas area.
18891 - Sorta a revert of the last patch. For multiline just position
18892 the controls, then bail. This way the scrollbar width won't be
18895 2006-11-03 Everaldo Canuto <everaldo@simios.org>
18897 * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
18898 it dont need. Fixes #79537.
18900 2006-11-02 Jackson Harper <jackson@ximian.com>
18902 * X11Dnd.cs: We always allow copy, since XDND implies Copy. Also
18903 send the status after firing the DndOver event.
18905 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
18907 * TrackBar.cs: Now orientation only switches height / width if
18908 the control's handle is created (Win32 does it like this). Also
18909 fixed a typo in ToString() for a test to pass, changed the
18910 exception thrown in set_LargeChange and set_SmallChange to
18911 match Win32 behaviour, and added TrackBar tests to the unit
18914 2006-11-02 Chris Toshok <toshok@ximian.com>
18916 * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
18917 not _NET_WM_STATE_NO_TASKBAR.
18919 2006-11-02 Jackson Harper <jackson@ximian.com>
18921 * TextControl.cs: Increment count by one, since in the update view
18924 2006-11-02 Jackson Harper <jackson@ximian.com>
18926 * TextBoxBase.cs: Use client rectangle not bounds for checking if
18927 the mouse is in the client rectangle (duh).
18929 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
18931 * TrackBar.cs: Fixed trackbar jumping around when clicking
18932 on it - the trackbar was not detecting correctly at which
18933 side of the thumb the click was done. (fixes #79718)
18935 2006-11-02 Everaldo Canuto <everaldo@simios.org>
18937 * ListBox.cs: scroll visible area when change SelectedIndex to
18938 a non visible area. Fixes #79481.
18940 2006-11-01 Jackson Harper <jackson@ximian.com>
18942 * TextControl.cs: When replacing the selection move the selection
18943 start/end/anchor to the end of the new text.
18945 2006-11-01 Jackson Harper <jackson@ximian.com>
18947 * XplatUIWin32.cs: When setting the parent change the controls
18948 visibility to it's visibility flag, not to it's old parents
18949 visibility (.Visible walks the parent chain).
18951 2006-11-01 Chris Toshok <toshok@ximian.com>
18953 * XplatUIX11.cs: revert the #79790 fix, as the simple.
18954 XSetTransientForHint fix breaks paint .net's tool windows. more
18955 work needed for that one.
18957 2006-11-01 Chris Toshok <toshok@ximian.com>
18959 * ScrollBar.cs: throw ArgumentException instead of Exception in
18960 LargeChange/SmallChange setters. fixes unit tests.
18962 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
18964 * ContainerControl.cs: reverted rev.67183 (which was itself
18965 a reversion of rev.66853... eh).
18967 * Control.cs: Fixes Reflector hang by changing Focus() call
18968 to what it was before rev.66643 (calling Select() here sets
18969 ActiveControl, which in some situations calls back Focus and
18970 eventually does a stack overflow). Temp fix.
18971 Changes to GetNextControl() to not look for children to select when
18972 parent cannot be selectable (so it looks for siblings instead)
18974 2006-10-31 Mike Kestner <mkestner@novell.com>
18976 * CheckedListBox.cs : off by one error in returned index from
18977 ObjectCollection.Add. Fixes #79758.
18979 2006-10-31 Chris Toshok <toshok@ximian.com>
18981 * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
18982 calls for the textbox/spinner, to keep from recursing to the point
18983 where we crash. Fixes #79760.
18985 2006-10-31 Chris Toshok <toshok@ximian.com>
18987 * ListControl.cs (set_SelectedValue): don't throw exceptions on
18988 null/"" value, just return. matches ms's behavior and fixes some
18991 2006-10-31 Chris Toshok <toshok@ximian.com>
18993 * Control.cs (set_Capture): make a logic a little easier to
18996 * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
18997 if it's being destroyed. A necessary fix surely, but a bandaid
18998 also, to fix the stuck capture problem in bug #78413.
19000 2006-10-31 Chris Toshok <toshok@ximian.com>
19002 * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
19003 convention of clearing hwnd.ClientRect when we set the
19004 width/height (so it'll be recalculated by Hwnd).
19006 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
19008 * ContainerControl.cs: reversed Contains check from
19009 ActiveControl due to hanging problems. This fix
19010 partly regresses #79667 (button does not have
19011 initial focus), so this might be a symptom for
19012 a larger parenting problem (set_ActiveControl
19013 is being called but the child control does
19014 not have the parent set yet?)
19016 2006-10-31 Mike Kestner <mkestner@novell.com>
19018 * MenuAPI.cs : fix keynav when menu is click activated.
19020 2006-10-31 Jonathan Pobst <monkey@jpobst.com>
19022 * ToolStrip*: Version 0.2.
19024 * MenuStrip.cs: Version 0.1.
19026 * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
19028 2006-10-30 Chris Toshok <toshok@ximian.com>
19030 [ fixes the oversized notify icon issue in bug #79745 ]
19032 * NotifyIcon.cs: scale the icon down to the size we're given by
19033 the XplatUI layer (this would be faster if we did it once instead
19034 of whenever we paint..) Also, remove the WM_NCPAINT handling,
19035 since it's never invoked.
19037 * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
19038 pixels high by default, so let's hardcode our systray icon to that
19039 size. The SYSTEM_TRAY protocol should really have a way for
19040 client apps to query for the correct icon size.. but oh well. A
19041 couple of patches to deal with the screwy client_window ==
19042 whole_window notifyicon stuff (we don't want to PerformNCCalc, for
19043 instance, and also make sure we don't XSelectInput twice).
19045 2006-10-30 Chris Toshok <toshok@ximian.com>
19047 * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
19048 recreating forms. Control recreation is the bane of my existence.
19049 Fix it in a way that keeps everyone happy.
19051 2006-10-30 Chris Toshok <toshok@ximian.com>
19053 * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
19054 just non-CHILD ones. otherwise sometimes scrollbars end up with
19055 client_windows not being resized to the proper size (ReportBuilder
19056 shows this extremely well).
19058 2006-10-30 Chris Toshok <toshok@ximian.com>
19060 * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
19061 for non-WS_EX_APPWINDOW windows. This is what keeps them from
19062 showing up in the gnome taskbar. Fixes bug #79790.
19064 2006-10-30 Chris Toshok <toshok@ximian.com>
19066 * ApplicationContext.cs: guard against a NRE.
19068 * Application.cs: null out the old MainForm for the context, so we
19069 don't try to use it again once it's disposed. Fixes bug #79783.
19071 2006-10-30 Chris Toshok <toshok@ximian.com>
19073 * DataGrid.cs (set_DataSource, set_DataMember): if we have a
19074 BindingContext, set the data source directly, otherwise do the
19075 lazy approach - the actual ListManager will be created when we get
19076 a BindingContext. Fixes bug #79700.
19078 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
19080 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
19081 XplatUIX11.cs: Remove old 2 parameter SetVisible.
19083 * Control.cs: Use the new 3 parameter SetVisible with activate = true.
19085 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
19087 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
19088 of SetVisible that allows a window to be shown, but not activated.
19089 This is needed on Windows for MenuStrip, and can probably be used
19090 with MainMenu and ComboBox to fix the focus stealing issues on
19093 * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
19095 2006-10-30 Alexander Olk <alex.olk@googlemail.com>
19097 * PictureBox.cs: Fix the output of the ToString method.
19099 2006-10-29 Chris Toshok <toshok@ximian.com>
19101 * Control.cs (get_TopLevelControl): fix bug #79781.
19103 2006-10-29 Chris Toshok <toshok@ximian.com>
19105 * ListControl.cs (set_DataSource): throw Exception here, not
19106 ArgumentException, to match MS behavior.
19108 2006-10-29 Chris Toshok <toshok@ximian.com>
19110 * Form.cs: remove the try-catch's around calls to GetWindowState.
19111 We can just check the return value.
19113 * XplatUIX11.cs: don't throw exceptions from GetWindowState.
19116 * XplatUI.cs: Add note about additional return value for
19119 2006-10-29 Chris Toshok <toshok@ximian.com>
19121 * Control.cs (CreateHandle): when we create our handle, we also
19122 create the handles of our child controls. Fixes one of the
19123 Control unit tests (CH11).
19125 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
19127 * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
19129 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
19131 * ThemeClearlooks.cs: A little speedup.
19133 2006-10-27 Chris Toshok <toshok@ximian.com>
19135 * Control.cs: implement Control.FromChildHandle in a way that
19136 matches the docs (and fixes the failed test.)
19138 2006-10-27 Chris Toshok <toshok@ximian.com>
19140 * DataGridTableStyle.cs: reproduce buggy MS behavior (with
19143 * DataGrid.cs: implement ResetForeColor such that the tests
19146 2006-10-27 Chris Toshok <toshok@ximian.com>
19148 * ToolBarButton.cs: setting text/tooltiptext to null results in it
19149 being set to "". Fixes bug #79759.
19151 2006-10-27 Jackson Harper <jackson@ximian.com>
19153 * TextControl.cs: We need to clear the entire selection area when
19154 setting the start, otherwise multiline selections are still
19157 2006-10-26 Chris Toshok <toshok@ximian.com>
19159 * PropertyGridView.cs:
19161 - ifdef all the code specific to the double
19162 buffer case, and provide some alternatives in the non-doublebuffer
19163 code, which makes heavy use of XplatUI.ScrollWindow to move things
19164 around without having to invalidate (and cause flicker). There
19165 are still some drawing problems in the non-doublebuffered case, so
19166 DOUBLEBUFFER is defined by default.
19168 - Fix the way dropdowns are handled. now we explicitly watch for
19169 the events which might cause the dropdown to close, and break out
19170 of the nested event loop there. This gets rid of all Capture
19171 code, at the expense of the Msg special casing. Seems to work,
19172 though, and fixes bug #79743.
19174 2006-10-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
19175 * Control.cs: SetIsRecreating now recreates implicitly added
19176 child controls as well. Finally fixes #79629. The flag passed to
19177 SetIsRecreating has also been removed since it wasn't used.
19179 2006-10-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
19181 * PageSetupDialog.cs: Clean some code, fix some bits,
19182 add some checks, and add a printer sub-dialog.
19184 2006-10-26 Chris Toshok <toshok@ximian.com>
19186 * PropertyGrid.cs: make set_SelectedObject call
19187 set_SelectedObjects, and move the duplicate logic to the
19188 SelectedObjects setter. Also, raise SelectedObjectsChanged.
19190 * PropertyGridView.cs: hide the textbox when we get a
19191 SelectedObjectsChanged event.
19195 2006-10-26 Chris Toshok <toshok@ximian.com>
19197 * PropertyGridView.cs: deal with the type converter not supporting
19198 GetStandardValues() or GetStandardValues() returning null, which
19199 is does in the default case. Fixes #79742.
19201 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
19203 * CheckedListBox.cs: nunit no longer crashes when selecting
19204 Project/Edit menu option
19206 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
19208 * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
19209 is no menu selected. fixes #79739
19211 2006-10-25 Chris Toshok <toshok@ximian.com>
19213 * PropertyGridView.cs: factor out the splitter invalidation code
19214 into the SplitterPercent setter, and for kicks implement the
19215 Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
19216 amount in either direction.
19218 2006-10-25 Chris Toshok <toshok@ximian.com>
19220 * PropertyGridView.cs: do some cleanup of the brush used to draw
19221 text - read only fields should be grayed out. not sure how to do
19222 this with the textbox, though. but the textbox's should also be
19223 readonly now at least. Also, hide/show the textbox when resizing
19226 * CursorConverter.cs: use System.Reflection when getting the
19227 properties of Cursors, as TypeDescriptor.GetProperties isn't
19228 returning static properties.
19230 2006-10-25 Chris Toshok <toshok@ximian.com>
19232 * PropertyGridView.cs: factor out the up/down handling, and reuse
19233 it for page up/down. also add End/Home support.
19235 2006-10-25 Chris Toshok <toshok@ximian.com>
19237 * PropertyGridView.cs:
19239 - ensure the selected grid item is visible in the scrolled area,
19242 - fix Keys.Down handling when you're on the last item in the
19245 2006-10-25 Mike Kestner <mkestner@novell.com>
19247 * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup
19248 clicks too. Fixes #79725.
19250 2006-10-24 Chris Toshok <toshok@ximian.com>
19252 * PropertyGrid.cs: use property.Converter instead of
19253 TypeDescriptor.GetConverter(property.PropertyType), so we catch
19254 TypeConverters declared on the property as well as on the
19255 PropertyType. Fixes bug #79678.
19257 2006-10-24 Alexander Olk <alex.olk@googlemail.com>
19259 * MimeIcon.cs, Mime.cs:
19260 Fallback to the default platform handler if no shared mime info
19261 stuff exists (fixes #79693).
19263 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
19264 * ContainerControl.cs: Incorrect contains check in ActiveControl
19265 from previous fix (duh).
19267 2006-10-20 Chris Toshok <toshok@ximian.com>
19269 * PropertyGridView.cs: the dropdown should be MIN(number of items
19270 in list, 15). Fixes #79551.
19272 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
19273 Fixes #79384, #79394, #79652, #79667
19276 - Modal windows are now destroyed in the proper order for windows
19278 * ContainerControl.cs:
19280 - ActiveControl setter has more conditions on when to return:
19281 - if we're reselecting the active control, but it actually
19282 didn't have focus (window hidden or some such), it runs
19283 - if the active control being selected doesn't actually
19284 exist in the container, it returns
19288 - The ShowDialog now gets the current form as the owner when
19289 invoking without parameters, and correctly activates the owner
19294 - MessageBox now catches the Escape key to exit
19296 2006-10-20 Chris Toshok <toshok@ximian.com>
19298 * PropertyGridView.cs: fix a number of issues (bug #78565, and
19299 most of bug #79676):
19301 - you can navigate around the property grid with the arrow keys.
19303 - the dropdown is sized properly when the pg has a vertical
19306 - fix the indentation for subentries, and properly select the
19309 - fix the gray bar's drawing (only draw it to the last element,
19310 not for the height of the control. Also make sure we draw that
19311 last horizontal grid line.
19313 - use the same mechanism the datagrid uses wrt the editing textbox
19314 when scrolling/resizing/etc. Namely, we hide it first, do the
19315 operation, then show it again (if it's still visible).
19317 - aggressively remove a lot of unnecessary refreshes (and also
19318 calls to Invalidate(). call more limited variants, and only redraw
19323 - when we're populating the merged collection, fill in the UI
19324 parent with either the passed in item, or the category item we
19327 - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
19329 * GridItem.cs: drop some fully qualified names.
19331 * GridEntry.cs: add a "UIParent", which is basically the parent
19334 * GridItemCollection.cs: add an IndexOf method.
19336 2006-10-20 Mike Kestner <mkestner@novell.com>
19338 * MainMenu.cs : go back to Draw in OnMenuChanged. Until we get
19339 a working win32 NC invalidation mechanism, we can't invalidate
19340 menus. [Fixes #79705]
19342 2006-10-20 Mike Kestner <mkestner@novell.com>
19344 * ListBox.cs : don't update the VScrollbar if the list is empty,
19345 just hide it. [Fixes #79692]
19347 2006-10-20 Jackson Harper <jackson@ximian.com>
19349 * RichTextBox.cs: Handle some special chars better, and don't skip
19350 the entire group when we encounter a special char that we don't
19353 2006-10-18 Chris Toshok <toshok@ximian.com>
19355 * PropertyGridView.cs: address a number of issues from bug #79676,
19356 mostly of the cosmetic variety.
19358 - The highlight rectangle for indented items not extends all the
19361 - Indented items aren't indented so much.
19363 - the dropdown is properly sized width-wise if the pg has a
19364 vertical scrollbar.
19366 2006-10-18 Chris Toshok <toshok@ximian.com>
19368 * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
19369 systray stuff is rather convoluted to begin with.
19371 systray icons are a single window for some reason (that I haven't
19372 figured out yet), and for them, client_window == whole_window.
19373 Given the way the tests are structured elsewhere to determine
19374 which paints are pending (client vs. nc), that situation will
19375 always yield PAINT, not NCPAINT. So, if we have a pending
19376 nc_expose and no pending expose, remove the hwnd from the paint
19377 queue, and also set nc_expose_pending to false, to keep us from
19378 blocking further expose's adding the hwnd to the paint queue.
19380 phew. like i said, a rather convoluted change. Fixes the
19381 notifyicon repaint issues in bug #79645.
19383 2006-10-18 Chris Toshok <toshok@ximian.com>
19385 * Form.cs: when getting the backcolor of the form, don't get
19386 base.BackColor, as this allows parents to influence the background
19387 color. This breaks mdi forms. Instead, if the background_color
19388 is empty, return the default.
19390 2006-10-18 Chris Toshok <toshok@ximian.com>
19392 * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
19393 to being private instead of internal static.
19395 * Control.cs: remove all the stupid ParentWaitingOnRecreation
19396 crap, it wasn't working for more deeply nested controls anyway,
19397 and we already have the is_recreating flag - use that instead.
19398 Before calling DestroyHandle in RecreateHandle, recurse through
19399 the control tree setting it to true. this returns the recreate
19400 code to much of its original simplicity, while now guaranteeing we
19401 actually recreate everything we're supposed to. This change gets
19402 fyireporting actually showing mdi children.
19404 2006-10-17 Chris Toshok <toshok@ximian.com>
19406 * Form.cs: remove some debug spew, and collapse some duplicate
19407 code at the end of SetClientSizeCore.
19410 - add some more debug spew here too wrt Destroy handling.
19411 - don't call hwnd.Dispose in DestroyWindow, it's effectively done
19412 in Control's handling of WM_DESTROY.
19413 - Remove the handling of zombie window DestroyNotifies from the
19414 event loop - we don't need it. Now the only DestroyNotifies we
19415 actually handle are ones generated by X.
19416 - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
19417 match gtk's (functioning) handling of this. This keep metacity
19418 from leaving droppings in the form of wm borders with no window
19419 contents all over the place.
19422 - add a bunch of debug spew wrt control recreation.
19423 - fix a bug where we weren't tracking Visible properly on
19425 - fixed the WM_PAINT double buffer handling to support re-entrant
19426 calls (yes, i know it's gross, but it's happening to us).
19428 2006-10-17 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
19429 * ThemeWin32Classic.cs: changed drawing of selected days
19430 to make them look better.
19432 2006-10-16 Chris Toshok <toshok@ximian.com>
19434 * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
19435 drawing_stack. Nuke the ClientDC/NonClientDC properties.
19437 * XplatUIX11.cs: move away from using hwnd.client_dc and
19438 hwnd.non_client_dc and on to a stack of dc's (and in window's
19439 case, PAINTSTRUCT's), so we can deal with nested Paint calls
19440 without puking or not disposing of Graphics objects.
19442 * XplatUIOSX.cs: same.
19444 * XplatUIWin32.cs: same.
19446 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
19448 * FileDialog.cs: Don't call on_directory_changed inside
19449 OnSelectedIndexChanged (it changes the SelectedIndex too).
19450 Instead move it to OnSelectionChangeCommitted.
19452 2006-10-13 Chris Toshok <toshok@ximian.com>
19454 * XplatUIX11.cs: more Destroy work. the current code does the
19455 following things, in order:
19457 1. Enumerates all handles of all controls at or below the one
19458 being destroyed, in pre-order. As it is doing this, it marks the
19459 handles as zombie and clears all references to them.
19461 2. calls XDestroyWindow on the window passed in.
19463 3. SendMessage's WM_DESTROY to all he handles in the accumulated
19466 2006-10-13 Chris Toshok <toshok@ximian.com>
19468 * XplatUIX11.cs: set hwnd.zombie to true before calling
19469 SendMessage (WM_DESTROY). this keeps us from marking the new
19470 window a zombie, and also keeps us from calling sendmessage at
19473 2006-10-13 Jackson Harper <jackson@ximian.com>
19475 * TextControl.cs: Do not show the caret and selection at the same
19476 time. Reduces ugliness by 35%.
19478 2006-10-13 Chris Toshok <toshok@ximian.com>
19480 * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
19481 zombie after we do the recursive call, so we actually do call
19482 SendMessage on the children controls.
19483 (GetMessage): if we find a pending paint event for a zombie hwnd,
19484 remove the hwnd from the paint queue, or else it will always be
19485 there (and we'll effectively loop infinitely)
19487 2006-10-13 Mike Kestner <mkestner@novell.com>
19489 * MenuItem.cs : add Selected format under keynav too.
19492 2006-10-13 Gert Driesen <drieseng@users.sourceforge.net>
19494 * PropertyGrid.cs: Fixed some NRE's and small difference between our
19495 implementation and that of MS.
19497 2006-10-13 Chris Toshok <toshok@ximian.com>
19499 * Control.cs (OnInvalidated) only futz with the invalid_region if
19500 the control is double buffered. this fixes the apparent hang in
19501 the ListView unit tests. Someone needs to make the
19502 BeginEndUpdateTest not call OnInvalidated 15004 times, though..
19504 2006-10-13 Chris Toshok <toshok@ximian.com>
19506 * PropertyGridView.cs:
19508 - do a little refactoring so that only one place calls
19509 dropdown_form.Hide, and that is CloseDropDown. make everywhere
19510 else call that. Also make it Refresh, since there are redraw bugs
19511 otherwise (we should take a look at that...)
19513 - do a little more refactoring work to share the body of code
19514 involved with the drop down. it was duplicated in the code
19515 dealing with the listbox handling and in the code dealing with the
19518 - add a Capture to the dropdown form's control once it's
19519 displayed, and add a MouseDown handler that checks to make sure
19520 the position is inside the control. If it's not, close the
19521 dropdown. This fixes #78190.
19523 - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
19524 if the value is different than the initial value.
19526 2006-10-13 Andreia Gaita <shana.ufie@gmail.com>
19528 * Control.cs: see #78650
19529 - Fixed GetNextControl for several cases:
19530 - Changed FindFlatForward to return
19531 correct sibling control when more than one
19532 control has same TabIndex as the currently
19534 - Changed FindFlatBackward to loop children
19535 from last to first and apply same logic as in
19537 - Changed FindControlForward to search for
19538 children when control is not a container
19539 but has children, or search for siblings if
19540 control is a container...
19541 - Changed FindControlBackward to continue
19542 searching for child controls when hitting
19545 - Fixed Focus method to update ActiveControl
19546 (FocusTest.FocusSetsActive failure)
19549 - Focus rectangle now refreshes when gaining
19551 - Removed grab for Tab key on IsInputKey that
19552 was keeping tab navigation from working (#78650)
19554 2006-10-13 Chris Toshok <toshok@ximian.com>
19556 * PropertyGridView.cs:
19557 - Rewrite SetPropertyValue to loop over SelectedGridItem's
19560 - Deal with GridItem.Value == null a few places.
19563 - replace the PopulateGridItemCollection with a pair of methods
19564 which compute the intersection of all the properties in the
19565 SelectedObjects array. Fixes #79615.
19567 - Throw ArgumentException from set_SelectedObjects if there's a
19570 - Add GetTarget method which can be used to traverse up the
19571 GridItem.Parent chain. It depends on the assumption that
19572 selected_objects for different GridEntries are always in the same
19573 order (a safe assumption). Use this method and loop over all the
19574 selected objects in the entry when calling RemoveValueChanged and
19577 * GridEntry.cs: Make this handle multiple selected objects.
19578 .Value returns null if not all the selected objects share the same
19581 2006-10-12 Jonathan Pobst <monkey@jpobst.com>
19582 * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
19583 ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
19584 ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
19585 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
19586 ToolStripTextBox.cs: Add accessibility, fix attributes/API and
19587 add additional functionality.
19589 2006-10-12 Mike Kestner <mkestner@novell.com>
19591 * ErrorProvider.cs : new ToolTipWindow ctor sig.
19592 * HelpProvider.cs : new ToolTipWindow ctor sig.
19593 * ToolTip.cs : remove ToolTip param from Window sig since it is
19595 * ToolBar.cs : add tooltip support. Fixes #79565.
19597 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
19599 * ComboBox.cs: move the events in set_SelectedIndex to
19600 after the call to HighlightIndex in order to avoid
19601 possible recursion and subsequent problems with the call
19602 to HighlightIndex and include a range check in
19603 set_HighlightIndex. Fixes #79588
19605 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
19607 * MonthCalendar.cs: When FirstDayOfWeek is default set firstday
19608 to ui thread's settings instead of sunday.
19609 * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
19611 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
19613 * DateTimePicker.cs
19615 * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
19616 and implement missing functionality (selecting different parts
19617 of the date and edit them individually with the keyboard).
19619 2006-10-11 Chris Toshok <toshok@ximian.com>
19621 * Control.cs (OnInvalidated): fix NRE relating to last change.
19623 2006-10-11 Chris Toshok <toshok@ximian.com>
19625 * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
19626 atoms in _NET_WM_STATE here if the window is maximized. We need
19627 to do this because we're *replacing* the existing _NET_WM_STATE
19628 property, so those atoms will be lost otherwise, and any further
19629 call to GetWindowState will return Normal for a window which is
19630 actually maximized. Fixes #79338.
19632 2006-10-11 Jackson Harper <jackson@ximian.com>
19634 * TextControl.cs: Special case for setting selection end to
19635 selection start, we basically kill the anchor.
19636 - some todo comments.
19638 2006-10-11 Chris Toshok <toshok@ximian.com>
19640 * Control.cs: switch to using an "invalid_region" to track which
19641 parts of the image buffer need updating. This is more code than
19642 the simple fix from r66532. That version just attempted to always
19643 fill the entire buffer on redraw, which turns out to be
19644 inefficient when invalidating small rectangles. This version
19645 simply adds the invalid rectangle to the invalid region. When we
19646 get any WM_PAINT message we see if it can be filled using the
19647 image buffer, and if it can't (if the paint event's clip rectangle
19648 is visible in the invalid region) we first fill the image buffer.
19649 So, the image buffer is still a cache, we just fill it lazily.
19651 * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
19652 need it any longer.
19654 2006-10-11 Chris Toshok <toshok@ximian.com>
19656 * XplatUIX11.cs (SetWindowPos): we need to update both position as
19657 well as size after calling XMoveResizeWindow. This keeps us from
19658 ignoring future SetWindowPos calls. Fixes the disappearing
19659 DateTimePicker in the ToolBarDockExample from bug #72499.
19661 2006-10-11 Chris Toshok <toshok@ximian.com>
19663 * TextBoxBase.cs: reorder things a bit when it comes to
19664 resizing-causing-recalculation. we were recalculating the
19665 document when our position was changed, which shouldn't happen.
19666 We only care about size changes. Clear up some more redundant
19667 recalculation calls while I'm at it. This makes the toolbar dock
19668 example snappy when you're just dragging toolbars around (since it
19669 causes a relayout whenever you move one.)
19671 2006-10-11 Chris Toshok <toshok@ximian.com>
19673 * ToolBarButton.cs (get_Rectangle): this only returns
19674 Rectangle.Empty if Visible == false, or Parent == null.
19675 Parent.Visible doesn't matter.
19677 2006-10-10 Chris Toshok <toshok@ximian.com>
19679 * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
19680 by .net 1.1, so switch to an internal method instead.
19682 2006-10-10 Chris Toshok <toshok@ximian.com>
19684 * Control.cs (WM_PAINT): when a control is double buffered we draw
19685 initially to the ImageBuffer and then copy from there. But when a
19686 parent control which has child controls is double buffered, the
19687 initial drawing doesn't encompass the entire ClientRectangle of
19688 the parent control, so we end up with uninitialized bits (this is
19689 easily seen by dragging the top toolbar in
19690 wf-apps/ToolBarDockExample to the right, quickly). The fix is to
19691 manually set the ClipRectangle of the paint_event (only the one we
19692 use to populate the ImageBuffer) to ClientRectangle. Fixes more
19693 of the nastiness in bug #72499.
19695 * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
19696 which we use in Control.cs's WM_PAINT handling.
19698 2006-10-10 Jackson Harper <jackson@ximian.com>
19700 * TextBoxBase.cs: Finish off the autoscrolling stuff.
19702 2006-10-10 Chris Toshok <toshok@ximian.com>
19704 * Cursor.cs: Apply a slightly different patch to the one suggested
19707 2006-10-10 Jackson Harper <jackson@ximian.com>
19709 * MenuItem.cs: Make sure to put the mdi child in the hashtable,
19710 not the parent form.
19711 * TextControl.cs: use difference in old line count vs new count to
19712 calculate how many lines were added, this takes into account soft
19713 line breaks properly.
19715 2006-10-10 Chris Toshok <toshok@ximian.com>
19717 * LinkLabel.cs: don't call MeasureCharacterRanges against a
19718 rectangle located at 0,0 and the size of the text. Use
19719 ClientRectangle instead. This fixes rendering of non-left aligned
19722 2006-10-10 Jackson Harper <jackson@ximian.com>
19724 * TextBoxBase.cs: When we set the selection start position the
19726 * TextControl.cs: Need to update the caret when we decrement it to
19728 - Make sure that the selection_visible flag gets reset to false if
19729 the selection isn't visible. Before this you could get it set to
19730 visible by changing the selection start, then changing the end to
19733 2006-10-09 Jackson Harper <jackson@ximian.com>
19735 * TreeView.cs: Don't update scrollbars when we aren't visible.
19736 * TreeNodeCollection.cs: Only need to update scrollbars if being
19737 added to an expanded visible node or the root node.
19739 2006-10-09 Chris Toshok <toshok@ximian.com>
19741 * XplatUIX11.cs (SendMessage): fix NRE.
19743 2006-10-09 Jackson Harper <jackson@ximian.com>
19745 * TextBoxBase.cs: Implement horizontal autoscrolling.
19746 * TextControl.cs: Add a movement types that allows moving forward
19747 and backwards without wrapping.
19749 2006-10-09 Mike Kestner <mkestner@novell.com>
19751 * ListViewItem.cs : layout changes for wrapped LargeIcon labels
19752 with focus "expansion" of labels. Fixes #79532 and then some.
19753 * ThemeWin32Classic.cs : add LineLimit to ListView label format
19756 2006-10-09 Jackson Harper <jackson@ximian.com>
19758 * TextBoxBase.cs: Set the default max values to MaxValue since
19759 we use the scrollbar for autoscrolling and the default value is
19760 100. If we don't do this the caret won't keep up with typing
19761 after about 18 characters.
19762 * TextControl.cs: Make sure the selection is offset by the
19763 viewport x. This fixes selection when using auto scrolling.
19765 2006-10-07 Andreia Gaita <shana.ufie@gmail.com>
19767 * Form.cs: The active control should be selected after the
19768 OnLoad so that any child control initialization that affects
19769 the selection is done. Fixes #79406
19771 2006-10-06 Chris Toshok <toshok@ximian.com>
19773 * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
19774 to have no evil effects.
19776 - Stop selecting StructureNotifyMask on non-toplevel windows.
19778 The only way children should be resized is by using the SWF api,
19779 and we already send WM_WINDOWPOSCHANGED messages in those cases.
19780 Toplevel windows can be interacted with via the window manager,
19781 and so we keep the input mask there.
19783 The other event StructureNotifyMask gives us (that we care
19784 about) is DestroyNotify. The code is already structured such
19785 that it assumes we won't be getting a DestroyNotify event for
19786 the window we pass to XDestroyWindow (which is what
19787 StructureNotifyMask is supposed to guarantee.) So, that code
19788 shouldn't be affected by this either.
19790 - Stop selecting VisibilityChangeMask altogether.
19792 We weren't doing anything with the resulting events anyway.
19794 This vastly reduces the number of X requests and events we see
19795 when resizing/laying out a large ui.
19797 2006-10-06 Chris Toshok <toshok@ximian.com>
19799 * ScrollableControl.cs (DisplayRectangle): we need to take into
19800 account the DockPadding regardless of whether or not auto_scroll
19801 == true. rework this slightly to this effect, and fix bug #79606,
19802 and part of #72499 (you can now see the drag handles and drag
19805 2006-10-06 Gert Driesen <drieseng@users.souceforge.net>
19807 * ListViewItem.cs: Collections of selected and checked items are now
19808 dynamically rebuilt. Whenever an item is (un)checked or (de)selected
19809 we mark the collection "dirty".
19810 * ListView.cs: Marked collections readonly. Modified UpdateSelection
19811 to only clear SelectedItems when a new item is selected and MultiSelect
19812 is enabled. CheckedItems and SelectedItems now subscribe to Changed
19813 event of ListViewItemCollection, and mark its list dirty whenever
19814 that event is fire. This allows us to return selected/checked items
19815 in the same order as they are in the Items collection. This matches
19818 2006-10-06 Chris Toshok <toshok@ximian.com>
19820 * NotifyIcon.cs (HandleMouseUp): only show the context menu on
19821 right mouse clicks. Fixes bug #79593.
19823 2006-10-06 Chris Toshok <toshok@ximian.com>
19825 * Splitter.cs: doh, fix splitters that don't want to cancel the
19826 movement when you drag them. Also, impose the limits on the
19827 values we send to the SplitterMovingEvent. Fixes #79598.
19829 2006-10-06 Jackson Harper <jackson@ximian.com>
19831 * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
19832 since we use this for auto scrolling also.
19834 2006-10-05 Chris Toshok <toshok@ximian.com>
19836 * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus. I'm
19837 beginning to think that most datagrid column types don't need this
19838 method. Fixes bug #79392.
19840 2006-10-05 Chris Toshok <toshok@ximian.com>
19842 * DataGrid.cs: move back to a more lazy scheme for creating the
19843 CurrencyManager, so we aren't updating it every time you set
19844 either DataSource or DataMember. Also, don't call
19845 RecreateDataGridRows if the currency manager hasn't changed.
19847 2006-10-05 Chris Toshok <toshok@ximian.com>
19849 * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
19850 emitted, SelectedIndex should already be updated. Fixes bug
19853 2006-10-05 Jonathan Pobst <monkey@jpobst.com>
19855 * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
19856 ToolStripTextBox.cs: Initial commit.
19857 * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
19859 2006-10-05 Jackson Harper <jackson@ximian.com>
19861 * TabControl.cs: We need to invalidate the tab control area when
19862 new ones are added (duh).
19864 2006-10-03 Chris Toshok <toshok@ximian.com>
19866 * Form.cs (ProcessDialogKey): if the focused control is in this
19867 form and is a button, call its PerformClick method here. Fixes
19870 2006-10-04 Jackson Harper <jackson@ximian.com>
19872 * TabPage.cs: Ignore setting of Visible, and add an internal
19873 method for setting the controls visibility. TabPage's Visible
19874 property is a little strange on MS, this seems to make us
19875 compatible, and fixes cases where people set all the tab pages to
19877 * TabControl.cs: Use the new internal setting on tab pages
19880 2006-10-03 Mike Kestner <mkestner@novell.com>
19882 * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
19884 2006-10-03 Mike Kestner <mkestner@novell.com>
19886 * ListView.cs : use is_visible instead of Visible to check if
19887 scrollbars should be placed/sized. Also some max_wrap_width
19888 love for LargeIcon view. [Fixes #79533]
19890 2006-10-03 Atsushi Enomoto <atsushi@ximian.com>
19893 Make set_TextAlign() do actually update the align. Fixed #78403.
19895 2006-10-03 Chris Toshok <toshok@ximian.com>
19897 * DataGrid.cs: fix a crash when switching datasources if the
19898 vertical scrollbar is at someplace other than Value = 0. Also,
19899 reduce the number of recalculation passes we do in SetDataSource
19902 2006-10-03 Jackson Harper <jackson@ximian.com>
19904 * TextBoxBase.cs: Move the if value the same bail check up, we
19905 don't want to empty the document if it is already empty, this
19906 seems to severly mess up the caret. TODO: I should probably fix
19907 the empty statement to update teh caret somehow.
19909 2006-10-03 Chris Toshok <toshok@ximian.com>
19911 * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
19912 incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
19913 reflection, an internal row type, properties on said type, etc.)
19914 will work with our datagrid. Fixes #79531.
19916 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
19918 * FileDialog.cs: Don't crash if a path is not accessible
19919 (System.UnauthorizedAccessException). Fixes #79569.
19920 * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
19921 a ':' too. Return unknown icon for those paths/files.
19923 2006-10-03 Sebastien Pouliot <sebastien@ximian.com>
19925 * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when
19926 GetContainerControl returns null.
19928 2006-10-02 Chris Toshok <toshok@ximian.com>
19930 * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
19931 call to XGetWindowAttributes instead of "handle". fixes an X
19932 error using notifyicon after the NotifyIconWindow to Form base
19935 2006-10-02 Chris Toshok <toshok@ximian.com>
19937 * XplatUIX11.cs (QueryPointer): new function, encapsulating the
19938 server grab and looping we need to do to get down to the most
19939 deeply nested child window.
19940 (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
19941 QueryPointer again after the WarpPointer so we can generate a
19942 proper (fake) MotionNotify event to be enqueued in the destination
19944 (GetCursorPos): call QueryPointer.
19948 2006-10-02 Jackson Harper <jackson@ximian.com>
19950 * NotifyIcon.cs: Derive the notify icon from a form, so things
19951 like FindForm work on it.
19952 - Swallow the WM_CONTEXTMENU message, since that is generated on
19953 mouse down, and context menu is a mouse up kinda guy. I believe
19954 the correct fix here is probably to make the notify icon entirely
19955 NC area, but this seems to work fine for anyone not manipulating
19958 2006-10-02 Jonathan Pobst <monkey@jpobst.com>
19960 * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
19961 ToolStripItemCollection.cs, ToolStripLabel.cs,
19962 ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
19963 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
19964 Initial implementation.
19965 * TextRenderer.cs: Provide padding to MeasureText.
19967 2006-10-02 Sebastien Pouliot <sebastien@ximian.com>
19969 * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
19970 of ButtonBaseAccessibleObject. Fix bug #79552.
19972 2006-10-02 Jackson Harper <jackson@ximian.com>
19974 * MdiWindowManager.cs: When maximizing use the containers client
19975 rect, not it's bounds, so nc area is accounted correctly.
19976 - Use the parent form's size for the menu position, since the
19977 client isn't always the full form size.
19979 2006-10-01 Chris Toshok <toshok@ximian.com>
19981 * ScrollableControl.cs: make sure neither right_edge or
19982 bottom_edge are < 0, since they're used as LargeChange for the
19983 horiz/vert scrollbars respectively. Fixes #79539.
19985 2006-10-01 Chris Toshok <toshok@ximian.com>
19987 * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
19988 the xplatuix11 code can cause us to destroy/recreate our handle.
19992 - this code can be invoked many times for the same Hwnd. Make
19993 sure we only destroy the client window once (the first time this
19994 method is called). This fixes bug #79544.
19995 - Remove the call to the improperly bound XSync. why we had two
19996 bindings to this, I will never know, but this call resulted in
19997 events being discarded from the queue(!).
19998 - correct a misunderstanding of _XEMBED_INFO - the second atom is
19999 not our current state but the state we wish to be in. So, 0 if
20000 we don't want to be mapped. Change it to 1.
20001 (SystrayRemove): The XEMBED spec makes mention of the fact that
20002 gtk doesn't support the reparent of client windows away from the
20003 embedder. Looking at gtksocket-x11.c seems to agree with this.
20004 The only avenue we have for removing systray icons is to destroy
20005 them. We don't want the handle to go away for good, though, so
20006 call InternalRecreateHandle on the NotifyIconWindow. Fixes
20009 2006-10-01 Chris Toshok <toshok@ximian.com>
20011 * Form.cs (WndProc): inline the native_enabled variable usage into
20012 the cases in which it's used. Fixes #79536.
20014 2006-09-29 Mike Kestner <mkestner@novell.com>
20016 * ListView.cs : toggle the selection state for ctrl clicks in
20017 multiselect mode. [Fixes #79417]
20019 2006-09-29 Mike Kestner <mkestner@novell.com>
20021 * ListView.cs : kill CanMultiSelect and refactor the selection
20022 code to support multiselection in the absence of mod keys. Steal
20023 arrow/home/end keys by overriding InternalPreProcessMessage to
20024 restore regressed keynav behavior.
20027 2006-09-29 Jackson Harper <jackson@ximian.com>
20029 * MdiClient.cs: Repaint the titlebars when the active window is
20032 2006-09-29 Chris Toshok <toshok@ximian.com>
20034 * Application.cs: when entering a runloop with a modal, make sure
20035 the hwnd is enabled. Fixes #79480.
20037 2006-09-29 Chris Toshok <toshok@ximian.com>
20039 * DataGrid.cs (CurrentCell): if we try to navigate to the add row
20040 when ListManager.CanAddRows == false, bump us back one.
20042 * DataGridColumnStyle.cs (ParentReadOnly): remove the
20043 listmanager.CanAddRows check. This makes ArrayLists uneditable
20044 using a datagrid, which is not right.
20045 (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
20046 is an IEditable, but call property_descriptor.SetValue regardless.
20049 2006-09-29 Chris Toshok <toshok@ximian.com>
20051 * DataGridBoolColumn.cs: we need to test equality in the face of
20052 possible null values (as is the case with the default NullValue).
20053 This patch keeps us from crashing in that case.
20055 2006-09-29 Jackson Harper <jackson@ximian.com>
20057 * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
20058 here, since it will get called for every node collection in the
20059 tree. This is now done in the treeview once the sorting is
20061 * TreeView.cs: Recalculate the visible order, and update the
20062 scrollbars after sorting, set the top nope to the root so that the
20063 recalc actually works.
20065 2006-09-29 Chris Toshok <toshok@ximian.com>
20067 * LinkLabel.cs: more handling of the default link collection in
20068 the face of LinkArea manipulation. The default link collection
20069 contains 1 element (start=0,length=-1). If the user sets LinkArea
20070 to anything and the links collection is the default, clear it.
20071 Then only add the link if its nonempty. Fixes #79518.
20073 2006-09-29 Chris Toshok <toshok@ximian.com>
20075 * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
20076 piece correctly when we hit a '\n'. Fixes #79517.
20078 2006-09-29 Chris Toshok <toshok@ximian.com>
20080 * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
20081 change the binding of gdk_init_check to take two IntPtr's, and
20082 pass IntPtr.Zero for both of them. Fixes #79520.
20084 2006-09-29 Mike Kestner <mkestner@novell.com>
20086 * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
20089 2006-09-28 Jackson Harper <jackson@ximian.com>
20091 * XplatUIX11.cs: When translating NC messages make sure we go from
20092 whole window to screen, not client window to screen.
20093 * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
20094 method doesn't exist
20095 - Skip over controls that aren't forms when arranging.
20097 2006-09-28 Jackson Harper <jackson@ximian.com>
20099 * XplatUIWin32.cs: Clip the rect to the parent window.
20100 * XplatUIStructs.cs: Add clipping modes struct.
20101 * InternalWindowManager.cs: New private method that factors title
20102 bar heights in when calculating the pos of an NC mouse message.
20103 - Use SendMessage to force a paint when the form's size is changed
20104 instead of painting the decorations immediately.
20105 - Don't let the NC button click messages get to DefWndProc,
20106 because they will attempt to handle windowing themself, and this
20107 messes up z-order (it will put them in front of the scrollbars).
20108 * XplatUIX11.cs: Make sure that we don't reset window managers if
20109 we already have one (ie the window is an MDI window).
20111 2006-09-28 Chris Toshok <toshok@ximian.com>
20113 * MainMenu.cs: fix #79405 by way of a disgusting hack. all the
20114 menu code really needs going over.
20116 2006-09-27 Chris Toshok <toshok@ximian.com>
20118 * XplatUIX11.cs (SetWMStyles): more metacity wonderment. turns
20119 out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
20120 window is maximizable. So, we need to make sure that even if we
20121 clear the border/wm frame of those functions, they're still
20122 available (basically, we remove the decoration without removing
20123 the function). Half the fix for #79338.
20125 2006-09-27 Chris Toshok <toshok@ximian.com>
20127 * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
20130 2006-09-27 Chris Toshok <toshok@ximian.com>
20132 * Splitter.cs: reorder things a bit so that we don't actually
20133 draw/move the splitter until after calling OnSplitterMoving. This
20134 lets users cancel/disallow the movement by explicitly setting
20135 event.SplitX/SplitY. Fixes #79372.
20137 2006-09-27 Jackson Harper <jackson@ximian.com>
20139 * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
20140 because it is most likely on a window being destroyed, and that
20141 will give us an X11 error.
20143 2006-09-27 Chris Toshok <toshok@ximian.com>
20145 * PropertyGridView.cs: half of the fix for #78190. Clicking on
20146 the dropdown button now toggles between showing and hiding the
20147 dropdown. Also, get rid of dropdown_form_showing and just use
20148 dropdown_form.Visible. We still don't do a grab, but I'll leave
20149 that part to someone who has handled Capture-fu before.
20151 2006-09-27 Chris Toshok <toshok@ximian.com>
20153 * DataGrid.cs: return false if alt isn't pressed when '0' is
20154 pressed. this keeps the '0' key from being swallowed, and fixes
20157 2006-09-27 Chris Toshok <toshok@ximian.com>
20159 * ComboBox.cs: use Invalidate when scrolling the dropdown list.
20160 Calling Refresh (in response to a scrollbar event) screws up the
20161 scrollbar painting. Fixes bug #78923.
20163 2006-09-27 Chris Toshok <toshok@ximian.com>
20165 * Theme.cs (SystemResPool): make the "if hashtable[key] == null
20166 then insert into hashtable" blocks threadsafe.
20168 2006-09-27 Chris Toshok <toshok@ximian.com>
20170 * MessageBox.cs (CreateParams): the styles should be |'ed with our
20171 baseclass's, since otherwise the
20172 ControlBox/MinimizeBox/MaximizeBox assignments above have no
20173 effect. This gets the close button back in messageboxes.
20175 2006-09-27 Chris Toshok <toshok@ximian.com>
20177 * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
20178 flag, not just != 0. this makes flags that are actually multiple
20179 bits (like WS_CAPTION) work. fixes bug #79508.
20181 2006-09-27 Jordi Mas i Hernandez <jordimash@gmail.com>
20183 * PageSetupDialog.cs: add support for getting and settings the
20184 paper size, source and orientation.
20186 2006-09-26 Chris Toshok <toshok@ximian.com>
20188 * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
20189 and caption == "", we need to remove the resize handles as well as
20192 * Control.cs (set_Text): turns out that setting Text on a form
20193 should change the WM styles on the window, since if ControlBox ==
20194 false, the only way to get a window border is to have a non-""
20195 Text property. check winforms/forms/text.cs for an example. so,
20196 call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
20197 update both window styles and title. This fixes a lot of dialogs
20198 (including the preferences dialog in MonoCalendar.)
20200 2006-09-26 Chris Toshok <toshok@ximian.com>
20202 * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
20203 control isn't a Form), call Win32ShowWindow to hide the window,
20204 but don't update the control Visible property. When we reparent
20205 back to a parent control, call SetVisible in order for the
20206 window's visibility to be reinstated.
20208 * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
20211 * Control.cs (ControlCollection.Remove): remove that value.Hide()
20212 call for good, since it breaks MonoCalendar (and other things I'm
20213 sure.) Also, set all_controls to null *after* the owner calls,
20214 which end up regenerating it.
20215 (ChangeParent): allow new_parent to be == null, passing
20216 IntPtr.Zero down to XplatUI.
20218 this fixes #79294 the right way.
20220 2006-09-26 Mike Kestner <mkestner@novell.com>
20222 * GridEntry.cs : internal SetParent method.
20223 * PropertyGrid.cs : attach to property changed on the proper
20224 target if we have a hierarchical grid with subobjects. Setup
20225 GridItem.Parent for hierarchical items.
20226 * PropertyGridView.cs : Set value on the correct target for
20227 hierarchical grids. [Fixes #78903]
20229 2006-09-26 Chris Toshok <toshok@ximian.com>
20231 * Control.cs (ChildNeedsRecreating): this should return true if
20232 either we're being recreated and the child is in our list, or our
20233 parent is waiting for our recreation.
20235 2006-09-26 Chris Toshok <toshok@ximian.com>
20237 * Control.cs (ControlCollection.Remove): reinstate the
20238 value.Hide() call as suggested in bug #79294.
20240 2006-09-26 Sebastien Pouliot <sebastien@ximian.com>
20242 * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
20243 coordinates (versus a relative move).
20245 2006-09-26 Chris Toshok <toshok@ximian.com>
20247 * Control.cs: rework child recreation a little bit. It turns out
20248 that we race between the DestroyNotify the WM_DESTROY message. If
20249 the parent gets its DestroyNotify before the child gets the
20250 WM_DESTROY message, the child ends up not recreating (since the
20251 parent finishes its recreation on DestroyNotify, and the child
20252 checks ParentIsRecreating.)
20254 So, instead we store off a list of all the child controls which
20255 need to be recreated when the parent control starts to recreate
20256 itself. Then, when child controls get their WM_DESTROY message we
20257 check to see if they're in the parent's pending recreation list,
20258 and if so, we recreate. This removes all dependency on ordering
20259 from the code and fixes the initial MonoCalendar upgrade dialog.
20261 2006-09-26 Jackson Harper <jackson@ximian.com>
20263 * TextControl.cs: Use the Line to get the length of the line,
20264 since soft line breaks can change the end line.
20266 2006-09-26 Chris Toshok <toshok@ximian.com>
20268 * Control.cs (ControlCollection.AddImplicit): don't add the
20269 control again if it's already in one of our lists. This keeps us
20270 from adding controls over and over again for comboboxes when their
20271 handle gets recreated (as the combobox adds implicit controls in
20272 OnHandleCreated). Fixes the X11 errors in bug #79480.
20274 2006-09-26 Jackson Harper <jackson@ximian.com>
20276 * TextControl.cs: When deleting characters make sure that any
20277 orphaned zero lengthed tags get deleted.
20278 - Fix ToString for zero lengthed tags.
20280 2006-09-25 Jackson Harper <jackson@ximian.com>
20282 * TextControl.cs: When getting a tag at the location there can be
20283 multiple tags at the same spot, these are 0-lengthed tags that
20284 appear when extra formatting has been stuck in a location. We
20285 need to pull out the last of these 0 lengthed tags.
20287 2006-09-25 Jackson Harper <jackson@ximian.com>
20289 * TextControl.cs: Fix print out in debug method.
20290 * TextBoxBase.cs: When text is set bail if we are setting to the
20293 2006-09-24 Alexander Olk <alex.olk@googlemail.com>
20295 * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
20296 It is now possible to change the selected index in a FontXXXListBox
20297 with the up and down arrow keys from the FontXXXTextBoxes.
20298 Also, send the FontXXXTextBox mouse wheel event to the corresponding
20299 FontXXXListBoxes to match ms.
20301 2006-09-22 Sebastien Pouliot <sebastien@ximian.com>
20303 * SystemInformation.cs: Return a clone of the theme's MenuFont because
20304 anyone can dispose it, anytime. All other properties returns enums,
20305 structs or basic types so they don't need such tricks.
20307 2006-09-22 Jackson Harper <jackson@ximian.com>
20314 * XplatUIDriver.cs: Update interface to add a primary selection
20315 flag, so the driver can use the primary selection buffer if
20317 * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
20319 * RichTextBox.cs: We need to supply the data object to paste now
20320 (so we can choose to supply CLIPBOARD or PRIMARY).
20321 * TextBoxBase.cs: Supply data object to paste (see above).
20322 - Middle click uses the primary selection data object.
20324 2006-09-21 Chris Toshok <toshok@ximian.com>
20326 * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
20327 of SetWMStyles. It's still a rat's nest and is largely
20328 order-dependent which I dislike immensely. This also fixes the X
20329 button disappearing from toplevel forms.
20331 2006-09-21 Mike Kestner <mkestner@novell.com>
20333 * ListBox.cs: move Jordi's click/dblclick raising code to the
20336 2006-09-21 Jordi Mas i Hernandez <jordimash@gmail.com>
20338 * ListBox.cs: Fixes 79450
20340 2006-09-21 Mike Kestner <mkestner@novell.com>
20342 * TreeView.cs: guard against disposed conditions in UpdateScrollbars
20343 to deal with people updating the TreeNodeCollection after the tree
20344 is disposed. "Fixes" 79330.
20346 2006-09-20 Jackson Harper <jackson@ximian.com>
20348 * TextControl.cs: Push the cursor record onto the undo stack
20349 before the delete action. This fixes 78651.
20351 2006-09-20 Jonathan Chambers <joncham@gmail.com>
20353 * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
20354 CreateParams. Fixes 79329.
20356 2006-09-19 Chris Toshok <toshok@ximian.com>
20358 * XplatUIX11.cs: a couple of blanket code massage passes to clean
20359 things up a bit. First, get rid of the NetAtoms array (and the NA
20360 enum), and just embed the atoms as static fields. Also, add a
20361 couple of functions (StyleSet and ExStyleSet) to clean up all the
20362 bitmask testing of styles.
20364 * X11Structs.cs: remove the NA enum, not needed anymore.
20366 2006-09-19 Chris Toshok <toshok@ximian.com>
20368 * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
20369 (mapping them to _NET_WM_WINDOW_TYPE_UTILITY). and add a little
20370 added cleanup to get MessageBox titles appearing again, which were
20371 broken by my earlier fix for caption-less/ControlBox-less windows.
20373 2006-09-18 Jonathan Pobst <monkey@jpobst.com>
20375 * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
20376 ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
20377 ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
20378 ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
20379 ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
20380 ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
20381 ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
20382 ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
20383 ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
20384 ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
20385 ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
20387 * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
20388 ToolStripButton.cs: Stubs needed for above.
20389 * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
20391 2006-09-15 Chris Toshok <toshok@ximian.com>
20394 - make the MessageQueues hashtable Synchronized.
20396 - SendMessage: if the Hwnd is owned by a different thread, use the
20397 AsyncMethod stuff to dispatch the SendMessage on the hwnd's
20398 thread. Fixes bug #79201.
20400 2006-09-15 Chris Toshok <toshok@ximian.com>
20402 * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly. If
20403 ControlBox == false, we disallow maximize/minimize/close. If the
20404 form Caption is "" we also disallow move (and get rid of the Title
20405 decoration). Unfortunately, regardless of how things are set,
20406 we're stuck with the Title and WM menu.
20408 2006-09-15 Chris Toshok <toshok@ximian.com>
20410 * Application.cs: add locking around the static message_filters
20411 ArrayList, part of #79196.
20413 2006-09-15 Chris Toshok <toshok@ximian.com>
20415 * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
20416 Form.ControlBox == false, the window has no titlebar nor resize
20417 handles. fixes bug #79368.
20419 2006-09-15 Chris Toshok <toshok@ximian.com>
20421 * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
20422 >= 0. Fixes bug #79370.
20424 2006-09-15 Jonathan Pobst <monkey@jpobst.com>
20425 * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
20427 Add properties: LayoutEngine, Margin, DefaultMargin.
20428 Add method: GetPreferredSize.
20429 Move layout logic from PerformLayout to layout engines.
20431 2006-09-13 Chris Toshok <toshok@ximian.com>
20433 * XplatUIX11.cs: more destroy work. Jackson pointed out that my
20434 fix for #79326 broke #78718, so this change addresses that.
20436 - in SendWMDestroyMessages remove the call to
20437 CleanupCachedWindows, since we might be recreating the control and
20438 need to maintain the references to right Hwnd handles. Also, set
20439 the zombie flag to true for each of the children in the hierarchy
20440 instead of calling hwnd.Dispose. This will cause GetMessage to
20441 ignore all events for the window except for DestroyNotify.
20443 - In GetMessage, ignore messages except for DestroyNotify for
20446 * Control.cs: revert the is_recreating fix from the last
20447 ChangeLog. It's definitely "right", but it breaks switching from
20448 an MDI form to a non-MDI form. Will need to revisit that.
20450 * Hwnd.cs: add a zombie flag, which means "the
20451 client_window/whole_window handles are invalid, but we're waiting
20452 for the DestroyNotify event to come in for them". Set the flag to
20453 false explicitly if setting WholeWindow/ClientWindow, and also
20456 2006-09-13 Chris Toshok <toshok@ximian.com>
20458 * XplatUIX11.cs: rework window destruction slightly.
20460 - when destroying the windows associated with a control, we don't
20461 need 2 separate XDestroyWindow calls. Just the one for the
20462 whole_window (or for client_window if whole_window is somehow
20463 IntPtr.Zero -- can this happen?) is enough.
20465 - reworked SendWMDestroyMessages slightly, so we always dispose
20466 the child control hwnd's after sending the messages.
20468 - refactored out the ActiveWindow/FocusWindow/Caret clearing from
20469 the two places it was used (one was even using hwnd.Handle and the
20470 other hwnd.client_window. ugh), adding another call in
20471 SendWMDestroyMessages. We need this new call because now the
20472 DestroyNotify events in the queue will be ignored for the child
20473 controls (as their hwnd's were disposed, and the window id's
20474 removed from the hashtable in SendWMDestroyMessages.) fun, eh?
20476 - this fixes bug #79326.
20478 2006-09-13 Chris Toshok <toshok@ximian.com>
20480 * Control.cs: don't always set is_recreating to false at the end
20481 of RecreateHandle, since sometimes we're not done (and won't be
20482 until WndProc handles the WM_DESTROY message). Also, set
20483 is_recreating to false in the WM_DESTROY handling code. Part of
20484 the fix for bug #79326.
20486 2006-09-13 Miguel de Icaza <miguel@novell.com>
20488 * X11DesktopColors.cs: Start the droppage of debugging messages.
20490 * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
20492 2006-09-13 Jonathan Pobst <monkey@jpobst.com>
20494 * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
20496 2006-09-12 Chris Toshok <toshok@ximian.com>
20498 * DataGrid.cs (get_ListManager): if the list_manager is null, try
20499 to create it using SetDataSource. Fixes bug #79151.
20501 2006-09-11 Chris Toshok <toshok@ximian.com>
20503 * XEventQueue.cs: add a DispatchIdle property.
20505 * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
20506 either the queue is null, or the queue has DispatchIdle set to
20508 (DoEvents): set queue.DispatchIdle to false around the
20509 peek/translate/dispatch message loop in this method. This keeps
20510 Application.Doevents from emitting idle events. Part of the fix
20513 2006-09-11 Chris Toshok <toshok@ximian.com>
20515 * DataGrid.cs (set_DataSource): make this work for both the
20516 winforms/datagrid test and ReportBuilder. It seems as though when
20517 we've created a ListManager (or maybe it's if we have a
20518 BindingContext?), when we set the DataSource it clears the
20519 DataMember to "". otherwise we reuse the datamember. Fixes bug
20522 2006-09-11 Chris Toshok <toshok@ximian.com>
20524 * XplatUIX11.cs: deal with queue being null, which happens in all
20525 the Clipboard functions. Fixes one of the two problems mentioned
20528 2006-09-11 Chris Toshok <toshok@ximian.com>
20530 * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
20531 button on various spots (including outside the menu) works closer
20532 to MS, and doesn't crash. Fixes #79343.
20534 2006-09-11 Gert Driesen <drieseng@users.sourceforge.net>
20536 * ListView.cs: Do not initialize item_sorter in init. To match MS,
20537 return null for ListViewItemSorter if View is SmallIcon or LargeIcon
20538 and the internal comparer is set. When a new ListViewItemSorter is set,
20539 sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
20540 was specified. No further processing is necessary if SortOrder is set
20541 to it's current value. If Sorting is modified to None, and View is
20542 neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
20543 (either custom or our internal ItemComparer) to null, on 1.0 profile
20544 only set item_sorter to null if its our internal IComparer. If Sorting
20545 is modified to Ascending or Descending, then use our internal IComparer
20546 if none is set, and if the current IComparer is our internal one then:
20547 on 2.0 profile always replace it with one for new Sorting, and on 1.0
20548 profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
20549 Enum.IsDefined to verify whether a valid View value is specified in
20550 its setter. Automatically sort listview items when listview is
20551 created. In Sort, do nothing if ListView is not yet created, or if
20552 no item_sorter is set (no Sorting was set, Sorting was explicitly set
20553 to None or ListViewItemSorter was set to null). Added Sort overload
20554 taking a bool to indicate whether the ListView should be redrawn when
20555 items are sorted (we use this in ListViewItemCollection to avoid double
20556 redraws). Modified our internal IComparer to take the sort order into
20557 account. In Add and AddRange methods of ListViewItemCollection, also
20558 call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
20559 view), but use overload with noredraw option to avoid double redraw.
20560 On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
20561 true when View is Tile, and do the same when attempting to set View to
20562 Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
20563 for selected/checked indices, as it involves overhead when sorting is
20564 done while these collections are not used all that often. Instead
20565 we'll build the indices on demand. Modified IList implementation of
20566 CheckedIndexCollection to use public methods if object is int.
20567 Modified CheckedListViewItemCollection to hide checked items if
20568 ListView.CheckBoxes is false. Removed LAMESPEC remark in
20569 ListViewItemCollection as the .NET SDK docs have been fixed. Modified
20570 IList implementation in SelectedIndexCollection to use public methods
20571 if object is int. Modified SelectedListViewItemCollection to hide
20572 selected items if listview is not yet created.
20573 * ListViewItem.cs: CheckedIndices list no longer needs to be
20574 maintained separately (see ListView changes). Also clone font, fixes
20577 2006-09-11 Mike Kestner <mkestner@novell.com>
20579 * ComboBox.cs: if we are updating the contents of the currently
20580 selected index, refresh the control or the textbox selection.
20583 2006-09-11 Mike Kestner <mkestner@novell.com>
20585 * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since
20586 the 'specified' logic has been moved there. This seems like a bug
20587 in Control.cs, since our current SetBoundsCore completely ignores
20588 the specified parameter. Peter's commit seems to indicate that is
20589 the way the MS control implementation works. [Fixes #79325]
20591 2006-09-10 Jonathan Chambers <joncham@gmail.com>
20593 * XplatUI.cs: Set default_class_name to be composed
20594 of current domain id. This allows MWF to be loaded in multiple
20597 2006-09-09 Miguel de Icaza <miguel@novell.com>
20599 * X11Keyboard.cs: If we are unable to obtain the input method, do
20600 not call CreateXic to create the input context. Should fix
20603 2006-09-08 Alexander Olk <alex.olk@googlemail.com>
20605 * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
20606 Simplified gnome support by adding more pinvokes to get the
20607 icon for a file or mime type.
20609 2006-09-08 Jackson Harper <jackson@ximian.com>
20611 * MenuAPI.cs: Deslect popup context menu items before closing the
20612 window, so that you don't see the previously selected item
20613 selected when you reopen the menu.
20614 * TextControl.cs: Update the cursor position even if we don't have
20615 focus. This fixes typing in things like the ComboBox. I'm not
20616 totally sure we should always set the visibility if we don't have
20617 focus, but couldn't find any corner cases where the cursor showed
20618 up when it shouldn't.
20620 2006-09-08 Chris Toshok <toshok@ximian.com>
20622 * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
20623 our arrays are length 256. & 0xff before indexing. Fixes the
20624 crash in bug #78077.
20626 2006-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20628 * ThemeWin32Classic.cs:
20629 * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
20630 is true. Handle that check box too.
20632 2006-09-07 Chris Toshok <toshok@ximian.com>
20634 * MenuAPI.cs: move the PerformClick call to OnMouseUp. Fixes bug
20637 2006-09-07 Chris Toshok <toshok@ximian.com>
20639 * Control.cs: in set_BackColor only do the work if
20640 background_color != value.
20642 * XplatUIX11.cs: move the clearing of invalid areas (both client
20643 and nc) to the same block of code where we set (nc_)expose_pending
20644 to false. That is, move it from PaintEventEnd to PaintEventStart,
20645 so things that cause invalidates from within OnPaint will trigger
20646 another call to OnPaint. Fixes bug #79262.
20648 2006-09-07 Alexander Olk <alex.olk@googlemail.com>
20650 * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
20651 * FileDialog.cs: Fix typo
20653 2006-09-07 Jackson Harper <jackson@ximian.com>
20655 * ThemeWin32Classic.cs: oops, forgot to commit. Draw the images
20656 for tab pages if they have any.
20658 2006-09-06 Mike Kestner <mkestner@novell.com>
20660 * Splitter.cs: use the "current" rect when finishing drag handle
20661 to avoid an artifact demonstrated by resedit.exe. [Fixes #79251]
20663 2006-09-06 Mike Kestner <mkestner@novell.com>
20665 * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
20666 support offset splitters. [Fixes #79298]
20668 2006-09-06 Alexander Olk <alex.olk@googlemail.com>
20670 * Mime.cs: Fixed a bug that could override the global mime type
20673 2006-09-05 Jackson Harper <jackson@ximian.com>
20675 * TabControl.cs: Better calculation method for setting the slider
20676 pos. Prevents crashes on really wide tabs.
20677 - Draw Image on tab pages if an image list is used.
20679 2006-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20681 * MonthCalendar.cs: When Font changes, the Size should be
20682 updated to fit the new font's space requirements.
20684 2006-09-02 Alexander Olk <alex.olk@googlemail.com>
20686 * ListBox.cs: If the items are cleared with Items.Clear set
20689 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20691 * MonthCalendar.cs: Handle arrow keys as input keys. Also
20692 fire DateChanged event instead of DateSelected event when
20693 the date was changed by keyboard interaction.
20695 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20697 * DateTimePicker.cs: Handle DateChanged for the associated
20698 month_calendar control, and set month_calendar.Font from
20699 OnFontChanged method, as well as resize the height of the
20700 control when needed. Make PreferredHeight proportional.
20702 2006-09-01 Chris Toshok <toshok@ximian.com>
20704 * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
20707 * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
20709 2006-09-01 Peter Dennis Bartok <pbartok@novell.com>
20711 * FileDialog.cs: Set ClientSize instead of window size, to allow space
20712 for decorations (Fixes #79219)
20714 2006-09-01 Mike Kestner <mkestner@novell.com>
20716 * ComboBox.cs: first stab at sorting plus some selection handling
20717 fixes to bring us more in line with MS behavior. Also switches back
20718 to index based selection. Alternative patches for index-based
20719 selection were provided by Jackson Harper, Carlos Alberto Cortez,
20720 and latency@gmx.de on bug 78848. I assume they were similar to this
20721 code I've had simmering in my tree forever.
20724 2006-09-01 Chris Toshok <toshok@ximian.com>
20726 * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
20727 when setting list position guard against ending up with a -1 index
20728 (the other part of the fix for #78812). Should probably make sure
20729 we don't need the analogous fix in the ItemDeleted case.
20732 - in SetDataSource, work around the fact that the way
20733 OnBindingContextChanged is invoked will cause us to re-enter this
20734 method. I'll remove the hack once I investigate
20735 OnBindingContextChanged.
20737 - fix the logic in set_DataSource and set_DataMember (basically
20738 what to do if the other of the two is null.)
20740 - in OnListManagerItemChanged, we need to take into account the
20741 edit row when deciding whether or not to call RecreateDataGridRows
20742 (part of the fix for #78812).
20744 2006-09-01 Jackson Harper <jackson@ximian.com>
20746 * Splitter.cs: Don't do anything if there is no control to affect
20747 (prevents us from crashing in weird tet cases).
20748 * TreeView.cs: Bounding box for the mouse movement reverting
20749 focus/selection back to previously selected node. This matches
20750 MS, and makes the tree a lot more useable.
20751 * GroupBox.cs: Instead of drawing over the lines of the groupbox,
20752 use clipping so they are not drawn. This fixes when the control
20753 is set to have a transparent background, or if it was over an
20756 2006-09-01 Alexander Olk <alex.olk@googlemail.com>
20758 * MimeIcon.cs: Improved handling for reading default icons when
20759 using gnome (2.16 made it necessary). Check and read svg icons
20760 first, then 48x48 and then 32x32 icons.
20762 2006-08-31 Chris Toshok <toshok@ximian.com>
20764 * DataGridTextBoxColumn.cs: only hide the textbox if it's still
20767 * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
20768 ProcessKeyPreview. Fixes part of #77806.
20770 * DataGrid.cs: big patch.
20772 - revert the queueing up of DataSource/DataMember if inside
20773 BeginInit/EndInit calls. That's not the way the datagrid achieves
20774 its delayed databinding. Instead, call SetDataSource in
20775 OnBindingContextChanged. This mimic's MS's behavior, and fixes
20778 - Also, it wasn't mentioned in #78811, but the test case exhibits
20779 behavior that was lacking in our datagrid implementation - Columns
20780 that have mapping names that don't exist in the datasource's
20781 properties aren't shown. Yuck. To fix this I added the bound
20782 field to the column style, and basically any calculation to figure
20783 out anything about columns uses a loop to find the bound columns.
20784 still need to investigate if I can cache an array of the bound
20785 columns or if the indices must be the same.
20787 - When setting CurrentCell, we no longer abort if the cell being
20788 edited was in the add row. This fixes the other part of #77806.
20790 - The new code also fixes #78807.
20792 * ThemeWin32Classic.cs: perpetrate the same disgusting
20793 column.bound field hack, and only render bound fields.
20795 2006-08-31 Chris Toshok <toshok@ximian.com>
20797 * DataGridColumnStyle.cs: add bound field. this field is true if
20798 the datasource has a property corresponding to the mapping name.
20800 * DataGridTableStyle.cs: set the bound field on the column styles
20801 depending on whether or not we have a column for that property.
20803 2006-08-31 Peter Dennis Bartok <pbartok@novell.com>
20805 * Splitter.cs (SetBoundsCore): Don't ignore width/height of the
20806 splitter control (fixes #79228)
20808 2006-08-31 Chris Toshok <toshok@ximian.com>
20810 * DataGridColumnStyle.cs: we need to delay the assignment of
20811 property descriptor until the last possible moment due to the lazy
20812 databinding stuff in the datagrid. Also, fix the exceptions
20813 thrown by CheckValidDataSource to match MS.
20815 2006-08-31 Jackson Harper <jackson@ximian.com>
20817 * Form.cs: When activated select the active control, if there is
20818 no active control, we select the first control.
20819 * XplatUIX11.cs: If there is no focus control when we get a
20820 FocusIn event, find the toplevel form and activate it. This
20821 occurs when you popup a window, it becomes the focus window, then
20822 you close that window, giving focus back to the main window.
20824 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20826 * MonthCalendar.cs:
20827 * ThemeWin32Classic.cs: Cache Font in bold style, as well
20828 as StringFormat with Center alignments in MonthCalendar,
20829 instead of creating new ones when drawing the control.
20830 Also, draw the month name in bold style.
20832 2006-08-30 Peter Dennis Bartok <pbartok@novell.com>
20835 - PerformLayout(): It would seem MS performs the fill even if the
20836 control is not visible (part of #79218 fix)
20837 - ResetBackColor(): Use the setter to reset the color, to allow
20838 overriders to catch the change.
20840 - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
20841 - CreateHandle(): dito (part of $79218 fix)
20842 - Don't set an icon if we have a dialog
20843 * ScrollableControl.cs:
20844 - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
20845 - ScrollIntoView(): No need to scroll if control is already visible
20846 (resolves fixme and fixes #79218)
20848 2006-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
20850 * MonthCalendar.cs: Change proportions in SingleMonthSize
20851 to match the aspect of the original control.
20853 2006-08-29 Alexander Olk <alex.olk@googlemail.com>
20855 * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
20856 get updated when they get maximized.
20858 2006-08-29 Peter Dennis Bartok <pbartok@novell.com>
20860 * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
20862 2006-08-29 Chris Toshok <toshok@ximian.com>
20864 * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
20866 2006-08-29 Jackson Harper <jackson@ximian.com>
20868 * TreeView.cs: Need to track selected node and highlighted node,
20869 they aren't always the same thing, when the mouse is down on a
20870 node it is hilighted, but not selected yet.
20871 - Do the HideSelection stuff right
20872 - Need to focus on rbutton mouse down. And redraw selection when
20873 right click is mouse upped.
20875 2006-08-29 Mike Kestner <mkestner@novell.com>
20877 * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
20878 when SubItems.Count < Columns.Count. [Fixes #79167]
20880 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
20882 * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
20884 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
20886 * XplatUIX11.cs: Preempt the roundtrip for getting the location back
20887 from X. Only send based on ConfigureNotify if we don't have the
20888 correct location in hwnd (if the window manager moved us)
20890 2006-08-28 Mike Kestner <mkestner@novell.com>
20892 * ListView.cs: remove a TODO.
20893 * ThemeWin32Classic.cs: implement HideSelection support for ListView.
20894 [Fixes ListView part of #79166]
20896 2006-08-28 Mike Kestner <mkestner@novell.com>
20898 * ListView.cs: move wheel handler to parent since it is focused
20899 instead of the item_control now. [Fixes #79177]
20901 2006-08-28 Mike Kestner <mkestner@novell.com>
20903 * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
20904 when the control is focused. [Fixes #79171]
20906 2006-08-28 Mike Kestner <mkestner@novell.com>
20908 * ListView.cs: size the item and header controls for empty and
20909 unscrollable views.
20910 * ThemeWin32Classic.cs: draw disabled backgrounds.
20913 2006-08-28 Chris Toshok <toshok@ximian.com>
20915 * Form.cs: remove unused "active_form" static field.
20917 * Hwnd.cs: lock around accesses to static windows collection.
20919 * Application.cs: lock threads in Exit ().
20921 2006-08-28 Chris Toshok <toshok@ximian.com>
20923 * NativeWindow.cs: lock around accesses to window_collection.
20925 2006-08-28 Chris Toshok <toshok@ximian.com>
20927 * Control.cs: err, fix this the right way, by locking on controls
20928 when using it. not by making it synchronized.
20930 2006-08-28 Chris Toshok <toshok@ximian.com>
20932 * Control.cs: make the static "controls" field synchronized, as it
20933 gets updated from multiple threads.
20935 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
20937 * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
20938 Prevent other threads from exiting when calling thread sets quit state.
20939 * XEventQueue.cs: Added PostQuitState property
20941 2006-08-27 Chris Toshok <toshok@ximian.com>
20943 * AsyncMethodData.cs: add a slot for the window handle.
20945 * XplatUIX11.cs (SendAsyncMethod): send the event to the right
20946 window (the destination control's window, not the foster window).
20948 * Control.cs (BeginInvokeInternal): store the window's handle in
20949 the AsyncMethodData.
20952 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
20955 - PostQuitMessage: Removed resetting S.D display handle, we might have
20956 another loop started after calling PostQuitMessage (Fixes #79119)
20957 - Created destructor to reset S.D handle
20959 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
20961 * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
20963 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
20965 * TextControl.cs (Insert): Update the caret position even if we don't
20966 have a handle yet, just don't call the driver in that case.
20967 * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
20968 to the end of the new selection text (Fixes #79184)
20970 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
20972 * Form.cs (Activate): Only activate if the handle is created)
20974 - Mark window as invisible when it's disposed
20975 - Check if window handle is created when setting window visible,
20976 instead of relying just on the is_created variable
20977 - Check if object is disposed when creating the control (Fixes #79155)
20979 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
20981 * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
20982 when allowing layout again. Otherwise we re-generate the anchoring
20983 distance to the border again and actually alter what the user wanted
20984 This is ugly, it'd be better if we used DisplayRectangle instead of
20985 ClientRectangle for Control.UpdateDistances, but that causes us to
20986 have other problems (initial anchoring positons would be wrong)
20989 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
20992 - The size and location setters shouldn't go directly to
20993 SetBoundsCore, but to SetBounds, which triggers layout on the
20994 parent, then calls SetBoundsCore. (Related to fix for #78835)
20995 - SetBounds: Moved actual location update code into this function
20996 from SetBoundsCore, to match MS. Added call to PerformLayout if
20997 we have a parent (to trigger resizing of anchored parents if the
20998 child size has changed (see testcase for #78835)
20999 * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match
21001 * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
21003 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
21005 * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
21006 System.Drawing when a toplevel window gets closed; there might
21007 be other toplevel windows belonging to the same app (Fixes #78052)
21009 2006-08-26 Alexander Olk <alex.olk@googlemail.com>
21011 * FileDialog.cs: After reading FileDialog settings from mwf_config
21012 use Desktop prefix only if a real folder doesn't exist anymore.
21013 * FontDialog.cs: Added char sets.
21014 It is now possible to select the font, size or style with the
21017 2006-08-25 Kornél Pál <kornelpal@gmail.com>
21019 * PrintPreviewDialog.cs: Use assembly name constants.
21021 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
21023 * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
21024 scrollbar from whacking it's buttons)
21026 2006-08-24 Chris Toshok <toshok@ximian.com>
21028 * ScrollableControl.cs: fix #78271. There's a lot of misc stuff
21029 in this patch (aggregating setting Left/Top/Width/Height to
21030 setting Bounds on the scrollbars), but the crux of the fix is in
21031 Recalculate, where we scroll by the remaining scroll_position if
21032 we're hiding a scrollbar. The 2*$5 reward in the comment is
21035 2006-08-24 Jackson Harper <jackson@ximian.com>
21038 * MdiWindowManager.cs: If the form is made a non-mdi window we
21039 need to remove the form closed event so that closing forms works
21042 2006-08-24 Jackson Harper <jackson@ximian.com>
21044 * Control.cs: Make IsRecreating internal so that the driver can
21046 - Temporarily remove the Hide when controls are removed, its
21047 making a whole bunch of things not work because visibility isn't
21048 getting reset elsewhere correctly
21049 * Form.cs: Need to do a full handle recreation when the mdi parent
21051 * XplatUIX11.cs: If we are recreating handles don't dispose the
21052 HWNDs. What was happening is the handles were being recreated in
21053 SendWMDestroyMessages, but then flow continued on in that method
21054 and destroyed the new handles.
21056 2006-08-23 Jackson Harper <jackson@ximian.com>
21058 * Form.cs: MdiClient is always at the back of the bus
21059 * Control.cs: When the order of items in the collection is changed
21060 we need to reset the all_controls array
21061 - do the same sorta setup thats done when adding a control when a
21062 control is set on the collection.
21064 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
21066 * TextBoxBase.cs (get_Text): Return an empty array if our document
21067 is empty (fixes #79052)
21069 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
21071 * Control.cs: We should call IsInputChar on only on WM_CHAR but not
21072 on WM_SYSCHAR messages (fixes #79053)
21074 2006-08-23 Chris Toshok <toshok@ximian.com>
21076 * DataGrid.cs: fix flickering when scrolling vertically.
21078 2006-08-23 Chris Toshok <toshok@ximian.com>
21080 * DataGrid.cs (EndEdit): only invalidate the row header when we
21083 2006-08-23 Chris Toshok <toshok@ximian.com>
21085 * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
21086 methods. fixes the flicker when scrolling around.
21088 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
21090 * FileDialog.cs: Making sure the control is created before we get a
21091 chance to use it with BeginInvoke (Fixes #79096)
21093 2006-08-23 Chris Toshok <toshok@ximian.com>
21095 * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
21096 width to use when painting the rows.
21098 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
21101 - Throw ArgumentException if a negative value is passed to SelectionLength
21102 - Update the selection end if start is moved. end needs to be always
21103 after start. (Fixes #79095)
21104 - Track selection length; MS keeps the selection length even if start
21105 is changed; reset on all other operations affection selection
21107 2006-08-22 Jackson Harper <jackson@ximian.com>
21109 * TreeView.cs: Make sure both scrollbars get displayed and sized
21110 correctly when the other bar is visible.
21111 - Use the original clip rectangle for checking if the area between
21112 the two scrollbars is visible, not the viewport adjusted clipping
21115 2006-08-22 Jackson Harper <jackson@ximian.com>
21117 * Binding.cs: We don't use IsBinding because it requires the
21118 control to be created, which really shouldn't be necessary just to
21119 set a property on the control.
21121 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21123 * ComboBox.cs: Some CB.ObjectCollection methods must throw
21124 ArgumentNullReferenceException when the argument is null.
21126 2006-08-21 Jackson Harper <jackson@ximian.com>
21128 * Timer.cs: Track the thread that the timer is started in (NOT
21129 CREATED), this way messages for it will only be triggered on its
21131 * XEventQueue.cs: Track the timers here, this makes timers per
21133 * XplatUIX11.cs: The timers are moved to the XEventQueue.
21135 2006-08-19 Chris Toshok <toshok@ximian.com>
21137 * XplatUIX11.cs: after further communication with pdb, we get the
21138 best of both worlds. SetZOrder working for un-Mapped windows, and
21139 no X errors for un-mapped windows.
21141 2006-08-19 Chris Toshok <toshok@ximian.com>
21143 * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
21144 as it was causing pdn toolbars to not have the correct stacking.
21146 2006-08-18 Mike Kestner <mkestner@novell.com>
21148 * ListView.cs : guard against negative ClientArea.Width in scrollbar
21149 calculation. Not sure why control should ever be setting a negative
21150 width though. Fixes #78931.
21152 2006-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21154 * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
21155 null items in ObjectCollection class.
21156 * ListBox.cs.: Likewise.
21158 2006-08-18 Atsushi Enomoto <atsushi@ximian.com>
21160 * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
21161 as the base method in ThemeWin32Classic should work fine.
21164 2006-08-18 Jackson Harper <jackson@ximian.com>
21166 * Binding.cs: When validating if the value entered doesn't convert
21167 properly reset to the old value.
21168 * RadioButton.cs: Don't fire click when we get focus.
21170 2006-08-18 Jackson Harper <jackson@ximian.com>
21172 * FileDialog.cs: Paint the selection on the directory combobox the
21175 2006-08-17 Jackson Harper <jackson@ximian.com>
21177 * ErrorProvider.cs: Don't allow the error control to be selected.
21178 * Control.cs: Don't send the SetFocus messages, the control
21179 activation will do this, and if we do it blindly here validation
21182 2006-08-17 Jackson Harper <jackson@ximian.com>
21185 * ContainerControl.cs: Make validation events fire in the correct
21186 order. TODO: For some reason the first validation event is not
21189 2006-08-17 Mike Kestner <mkestner@novell.com>
21191 * ComboBox.cs : some null guarding for ComboListBox.Scroll.
21193 2006-08-17 Mike Kestner <mkestner@novell.com>
21195 * ComboBox.cs : implement scroll wheel support for popped-down
21196 state. Fixes #78945.
21198 2006-08-17 Jackson Harper <jackson@ximian.com>
21200 * TreeView.cs: Specify treeview actions (old patch that didn't get
21201 committed for some reason).
21202 - Don't let the mouse wheel scroll us too far. Just want to make
21203 the bottom node visible, not scroll it all the ways to the top.
21205 2006-08-17 Jackson Harper <jackson@ximian.com>
21207 * XplatUIX11.cs: Mouse wheel events go to the focused window.
21209 2006-08-17 Mike Kestner <mkestner@novell.com>
21211 * ComboBox.cs : don't do mouseover selection in simple mode.
21213 2006-08-16 Jackson Harper <jackson@ximian.com>
21215 * Form.cs: Fire the closing events for all the mdi child windows
21216 when a window is closed. If the cancel args are set to true, the
21217 main window still gets the event fired, but it doesn't not close.
21218 * MdiWindowManager.cs: Do this closing cleanup in a Closed
21219 handler, instead of when the button is clicked, so cancelling the
21220 close works correctly.
21221 * ComboBox.cs: Send the mouse down to the scrollbar.
21223 2006-08-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21225 * ListBox.cs: When passing 'null' to SelectedItem,
21226 set SelectedIndex to -1, to unselect items. This is the
21227 observed behaviour in .Net.
21229 2006-08-16 Peter Dennis Bartok <pbartok@novell.com>
21231 * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
21232 MS flags saying there won't be any. (fixes #78800)
21233 * Control.cs (HandleClick): Made virtual
21235 2006-08-16 Atsushi Enomoto <atsushi@ximian.com>
21237 * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
21238 cultures. Fixed bug #78399.
21240 2006-08-16 Jackson Harper <jackson@ximian.com>
21242 * Form.cs: Use the MdiClients MdiChildren property to access
21243 MdiChildren instead of creating the array from the child controls.
21244 * MdiClient.cs: Maintain a separate array of the mdi children, so
21245 that insertion order is maintained when the Z-order is changed.
21247 2006-08-16 Mike Kestner <mkestner@novell.com>
21249 * ListView.cs : add an ItemComparer and default to it for sorting.
21250 Fixes #79076, but sorting needs a complete overhaul to be compat with
21253 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
21255 * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
21257 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
21259 * Hwnd.cs (Mapped): Properly traverse the tree
21261 2006-08-15 Chris Toshok <toshok@ximian.com>
21263 * Binding.cs: fix PullData/SetPropertyValue. We don't want to
21264 pass manager.Current.GetType() to ParseData. It has to be the
21265 property type. So, hold off doing the ParseData until we're in
21266 SetPropertyValue where we know the type. This fixes the crash in
21267 #78821 but the textbox is still empty.
21269 2006-08-15 Chris Toshok <toshok@ximian.com>
21272 - when we're scrolling, only call Edit() again if the
21273 current cell is still unobscured. Fixes bug #78927.
21274 - when handling mousedown on a cell, ensure the cell is visible
21275 before calling Edit.
21276 - remove the properties from DataGridRow, and remove the
21277 DataGridParentRow class altogether.
21280 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
21282 * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
21283 fire OnTextChanged by ourselves. There's no point calling base,
21284 we don't set the base value anywhere else. Fixes #78773.
21286 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21288 * ListBox.cs: Call CollectionChanged when modifying
21289 an item from Items indexer, to update the actual items
21292 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21294 * PrintDialog.cs: Small fixes for focus and a pair of checks,
21295 to match .Net behaviour.
21297 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
21299 * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
21301 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
21303 * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
21305 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
21307 * MessageBox.cs: Prevent potential NRE exception.
21308 * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
21310 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
21312 * MessageBox.cs: Calculate the owner of a messagebox, also make
21313 it topmost. Fixes #78753
21315 2006-08-14 Chris Toshok <toshok@ximian.com>
21317 * XplatUIX11.cs: A couple of fixes so that metacity will let us
21318 programmatically move windows. first, set the PPosition hint as
21319 well as the USPosition hint. Second include some code from pdb
21320 that sets the window type to NORMAL when we set the transient for
21321 hint. This is because, in the absence of a window type, metacity
21322 thinks any window with TransientFor set is a dialog, and refuses
21323 to let us move it programmatically. fascists.
21325 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
21327 * XplatUIX11.cs: When setting normal hints, take into consideration
21328 an different hints previously set so we don't delete them (fixes #78866)
21330 2006-08-12 Chris Toshok <toshok@ximian.com>
21332 * ToolBarButton.cs: make Layout return a boolean, if something to
21333 do with the button's layout changed.
21336 - add another parameter to Redraw, @force, which all existing
21338 - make the Layout function return a boolean which is true if the
21339 layout has actually changed. Redraw now uses this (and @force)
21340 to determine when to invalidate. At present the only place
21341 where @force can be false is the call from OnResize, when
21342 background_image == null. So, resizing a toolbar when the
21343 layout doesn't change results in no drawing.
21345 2006-08-12 Chris Toshok <toshok@ximian.com>
21347 * ThemeWin32Classic.cs: fix the bottom right corner painting. had
21348 the VScrollBar and HScrollbar reversed. oops.
21350 * DataGrid.cs: fix the logic that assigns sizes to the implicit
21351 scrollbars. we were assigning them twice (once in
21352 Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
21353 therefore causing two scrollbar resizes (and redraws?) to happen
21356 2006-08-12 Chris Toshok <toshok@ximian.com>
21358 * ToolBarButton.cs: redraw the entire button if the theme tells us
21361 * Theme.cs: add ToolBarInvalidateEntireButton.
21363 * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
21364 buttons, just the border.
21366 * ThemeNice.cs: redraw the entire toolbar button since we need to
21367 draw the highlight image.
21369 * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
21370 we need to redraw the entire button (not just the border).
21372 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
21374 * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
21375 for vertical bars. Fixes the mismatches shown by #78513
21377 2006-08-11 Alexander Olk <alex.olk@googlemail.com>
21379 * FileDialog.cs: If a saved/remembered path doesn't exist
21380 anymore, fall back to "Desktop".
21382 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
21384 * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
21385 parent. It's apparently legal to not have one
21387 - SetZOrder: Don't try to set Z-Order on an unmapped window
21388 - CreateWindow: 0,0 are legal coordinates for a window. don't move
21389 it unless the coordinates are negative
21391 2006-08-10 Mike Kestner <mkestner@novell.com>
21393 * ListControl.cs: allow null for DataSource. Clear DisplayMember
21394 when setting to null per msdn docs. Fixes #78854.
21396 2006-08-10 Chris Toshok <toshok@ximian.com>
21398 * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
21399 flickering by setting a clip rectangle on the Graphics when we
21400 need to redraw just a particular menuitem. Also, rename "OnClick"
21401 to "OnMouseDown" to reflect what it actually is.
21403 * Form.cs: track the OnMouseDown change.
21405 2006-08-10 Peter Dennis Bartok <pbartok@novell.com>
21407 * CommonDialog.cs: Properly inherit the CreateParams from the form
21408 and only change what we need. Fixes #78865
21410 2006-08-10 Chris Toshok <toshok@ximian.com>
21412 * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
21413 flickering in flat mode (and most of the flickering in general) by
21414 only invalidating the button border (and not the entire rectangle)
21415 when the state changes. A couple of cases still flicker:
21416 ToggleButtons, and the dropdown arrow case when the user mouse
21419 2006-08-10 Alexander Olk <alex.olk@googlemail.com>
21421 * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
21422 for german keyboards. Numlock state shouldn't affect the behaviour
21423 of the Del key. Fixes bug #78291.
21425 2006-08-10 Chris Toshok <toshok@ximian.com>
21427 * ListControl.cs: remove the items.Clear line from BindDataItems,
21428 as this is the first thing done by both subclasses in their
21429 SetItemsCore overrides. Also, add a ItemChanged handler, and when
21430 passed -1, refresh the list. This gets databinding working when
21431 the datasource is set on the list before the datasource is
21432 populated (as in wf-apps/ReportBuilder.)
21434 * ComboBox.cs: remove the argument to BindDataItems. This call
21435 should really go away, and be initiated by the ListControl code.
21437 * ListBox.cs: same.
21439 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
21441 * TextControl.cs (Document.ctor): Initialize caret so we don't crash
21442 if no data is in the document when the control is displayed
21444 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
21446 * TextBoxBase.cs: Don't try moving the caret if we don't have a window
21449 - PositionCaret: Allow positioning of caret but don't call methods
21450 requiring a handle if the window isn't created yet
21451 - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
21452 - owner_HandleCreated: Don't position the caret, just update it's
21453 location. User might have already set a different position
21455 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
21457 * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
21458 windows. Screws up the returned coordinates for child windows.
21459 Fixes #78825. I'm hoping this doesn't break something, since the
21460 code was explicitly put in 8 months ago, but no bug was attached.
21461 Menus still seem to work properly.
21463 2006-08-08 Chris Toshok <toshok@ximian.com>
21465 * DataGrid.cs: make BeginInit/EndInit actually do what they're
21466 supposed to do - delay data binding until the EndInit call. Also,
21467 make the table style collection's CollectionChangeAction.Refresh
21470 * GridTableStylesCollection.cs: raise a CollectionChangeEvent
21471 (with action = Refresh) when a consituent table's MappingName is
21474 2006-08-08 Chris Toshok <toshok@ximian.com>
21476 * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
21477 Invalidate, since changing the text can change the size of the all
21480 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
21482 * Form.cs (AddOwnedForm): Still need to add the form to our listif
21483 we don't have it yet
21485 2006-08-08 Chris Toshok <toshok@ximian.com>
21487 * PrintControllerWithStatusDialog.cs: don't .Close() the status
21488 dialog, as this causes X errors later on, since we actually
21489 destroy the window. Instead, .Hide() it.
21491 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
21493 * ComboBox.cs: Added focus reflection for popup window
21495 - Removed transient setting for non-app windows for now, not sure it
21497 - Fixed logic checking if we have captions when deciding
21498 override_redirect, WS_CAPTION is two bits and a 0 check was not
21500 - Removed the WINDOW_TYPE stuff, it was unneeded and making things
21503 - AddOwnedForm: Don't just add the form to the list, call the property
21504 to ensure the driver is informed about the ownership as well
21505 - CreateHandle: Set the TopMost status in the driver if we have an owner
21506 * XplatUI.cs: Fixed debug statement
21508 2006-08-08 Jonathan Pobst <monkey@jpobst.com>
21509 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
21510 GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
21511 ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs,
21512 TrackBarRenderer.cs: Make constructor private.
21513 * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
21514 * ProfessionalColorTable.cs: Make properties virtual.
21516 2006-08-06 Duncan Mak <duncan@novell.com>
21518 * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
21521 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
21522 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
21523 GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
21524 ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
21525 TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
21526 Initial import of new 2.0 classes.
21528 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
21529 * Application.cs: Add 2.0 VisualStyles properties.
21531 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
21532 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
21533 XplatUIX11.cs: Create property to allow access to existing private
21534 variable "themes_enabled"
21536 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21538 * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
21539 file size, as otherwise our class libraries fail using windows. Fixes
21542 2006-08-04 Jackson Harper <jackson@ximian.com>
21545 * XplatUIX11.cs: Move the toolwindow window manager creation into
21546 the X11 driver, this way on win32 we can let windows create/handle
21549 2006-08-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21551 * PrintDialog.cs: Remove some redundant checks, add some others,
21552 clean some code, and move the focus to the text boxes when the
21553 values are incorrect.
21555 2006-08-04 Alexander Olk <alex.olk@googlemail.com>
21557 * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
21559 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
21561 * NumericUpDown.cs: Setting the Minimum and Maximum is now
21562 handled correctly. Fixes bug #79001.
21564 2006-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21566 * PrintDialog.cs: The "Copies" numeric up down must have
21567 set the Minimum property to 1; only if the value is bigger
21568 than 1, activate "Collate" check box. This is the behaviour of .Net.
21569 Also modify the Document elements only if it is not null.
21571 2006-08-03 Jackson Harper <jackson@ximian.com>
21573 * TreeNodeCollection.cs: Fix copyto to use the correct nodes
21574 length. (We have a larger array then actual node count).
21576 2006-08-03 Jackson Harper <jackson@ximian.com>
21578 * ComboBox.cs: Don't show selection by default.
21579 - The SelectAll isn't needed here, since the focus code should do
21581 - DDL style lists to manual selection drawing, so when they
21582 get/lose focus they have to invalidate.
21584 2006-08-03 Peter Dennis Bartok <pbartok@novell.com>
21586 * TextBoxBase.cs: Don't always show all selections by default.
21588 2006-08-03 Jonathan Pobst <monkey@jpobst.com>
21589 * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
21590 HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
21591 Fixed various typos.
21593 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
21595 * Control.cs: Removing the controls in a ControlCollection with
21596 Clear now hides the controls as expected. Fixes bug #78804.
21598 2006-08-03 Jackson Harper <jackson@ximian.com>
21600 * Control.cs: Revert previous focus patch, it breaks reflector.
21602 2006-08-03 Jackson Harper <jackson@ximian.com>
21604 * ComboBox.cs: Cleanup selection and focus with the combobox.
21605 This also eliminates some duplicated keyboard code, since now
21606 everything is handled by the main class.
21607 - Make list selection work on mouse up instead of down, to match
21610 2006-08-02 Jackson Harper <jackson@ximian.com>
21612 * Control.cs: Setting focus needs to go through the whole
21613 selection mechanism.
21615 2006-08-02 Chris Toshok <toshok@ximian.com>
21617 * PrintPreviewDialog.cs: change MinimumSize to use
21618 base.MinimumSize so it works.
21620 2006-08-02 Peter Dennis Bartok <pbartok@novell.com>
21623 - UpdateCaret: Added sanity check in case caret isn't defined yet
21624 - Line.Delete: Now updating selection and caret markers if we're
21625 transfering a node (Properly fixes #78323)
21626 - SetSelectionEnd: Added sanity check
21627 * TextBoxBase.cs: Removed broken attempt to fix #78323
21629 2006-08-01 Chris Toshok <toshok@ximian.com>
21631 * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
21632 Close() call is handled in Form, not here.
21634 2006-08-01 Chris Toshok <toshok@ximian.com>
21636 * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
21639 * PrintPreviewDialog.cs: add scrollbars, and add an image cache
21640 for sizes < 100% zoom. The code now aggressively attempts to keep
21641 from calling document.Print (), and tries not to use the scaling
21642 g.DrawImage whenever possible (it still does if you scale to >
21643 100%, since usually that involves huge images).
21645 * PrintPreviewControl.cs: hook up the close button.
21647 2006-08-01 Jonathan Pobst <monkey@jpobst.com>
21648 * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
21649 ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
21650 ItemDragEventHandler.cs, LabelEditEventHandler.cs,
21651 LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
21652 MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
21653 PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
21654 SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
21655 Removed [Serializable] for 2.0 Event Handlers.
21657 2006-07-31 Jackson Harper <jackson@ximian.com>
21659 * TextBoxBase.cs: Make ShowSelection invalidate when changed.
21660 * TextControl.cs: Uncomment out the body of this method.
21662 2006-07-31 Alexander Olk <alex.olk@googlemail.com>
21664 * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
21667 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
21669 * TextBoxBase.cs: Added internal property ShowSelection to allow controls
21670 that embed TextBox and need selections visible even if textbox is not
21671 focused to enforce that behaviour.
21672 * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
21675 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
21678 - Added new SetSelectionStart/SetSelectionEnd overloads
21679 - Fixed viewport width assignment to be accurate
21680 - Adjusted alignment line shift calculations to allow cursor on right
21681 aligned lines to be always visible at the right border (like MS)
21683 - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
21684 - TextBoxBase_SizeChanged: recalculating canvas on size changes
21685 - CalculateScrollBars: Use ViewPort size instead of window size, to
21686 properly consider space occupied by the border and scrollbars
21688 - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll
21689 calculations; no longer leaves artifacts
21690 - CaretMoved: Adjusted window scrolling to match MS and fixed several
21691 calculation bugs (Still missing right/center align calculations)
21693 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
21695 * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
21696 use of both scroll rect and clip rect, as they do the same.
21698 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
21700 * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key
21701 in the event handler (fixes #78912)
21703 2006-07-31 Chris Toshok <toshok@ximian.com>
21705 * ThemeWin32Classic.cs: use grid.RowsCount here instead of
21706 grid.ListManager.Count, since grid.ListManager might be null.
21707 This of course begs the question "why are we drawing rows for a
21708 grid with no list manager (and therefor no rows)?" Fixes the
21709 crash in bug #78929.
21711 2006-07-31 Chris Toshok <toshok@ximian.com>
21713 * RelatedPropertyManager.cs: Don't always chain up to the parent
21714 ctor. instead, call SetDataSource if the parent's position is !=
21715 -1. Fixes the crash in #78822.
21717 2006-07-31 Chris Toshok <toshok@ximian.com>
21719 * DataGrid.cs (get_ListManager): use field instead of property
21720 accessors for datasource and datamember.
21721 (RowsCount): make internal again.
21722 (OnMouseDown): end edits before resizing columns/rows.
21723 (OnMouseUp): restart edits after resizing columns/rows.
21725 2006-07-30 Peter Dennis Bartok <pbartok@novell.com>
21727 * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
21728 This fixes the situation where the last set cursor is displayed
21729 whenever the mouse is over scrollbars.
21731 2006-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21733 * PrintDialog.cs: Fix the behaviour of PrinterSettings and
21734 Document properties, as well as initial values.
21736 2006-07-29 Peter Dennis Bartok <pbartok@novell.com>
21738 * XplatUIWin32.cs (SetBorderStyle): Setting both border
21739 and ClientEdge results in a 3-pixel border, which is
21742 2006-07-28 Jackson Harper <jackson@ximian.com>
21744 * TreeNodeCollection.cs: Fix the clear method.
21745 - Fix the Shrink also
21747 2006-07-27 Jackson Harper <jackson@ximian.com>
21749 * TreeView.cs: Make sure the visible order is computed when we
21750 attempt to size the scrollbars (for trees that mess with the
21751 scrolling when they shouldn't.
21752 - Make sure to give the scrollbars valid values.
21754 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
21756 * XplatUIX11.cs: Move motion compression code to where it
21757 has less performance impact
21759 2006-07-26 Jackson Harper <jackson@ximian.com>
21761 * UpDownBase.cs: When the control is selected make the child
21762 controls non selectable, so that a click on them won't do a
21763 focus/unfocus cycle.
21764 - Don't give focus to the text box when the spinner is selected.
21765 * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
21767 2006-07-26 Chris Toshok <toshok@ximian.com>
21769 * ThemeWin32Classic.cs: add print preview rendering. I'm not
21770 satisfied with this solution. If the bitmaps are small, we should
21771 just cache them in the PrintPreviewDialog and draw them here.
21772 Also, the layout is broken for the 2-up and 3-up cases.
21774 * Theme.cs: add PrintPReviewControlPaint.
21776 * PrintPreviewDialog.cs: first pass implementation.
21778 * PrintPreviewControl.cs: first pass implementation. No
21781 * PrintDialog.cs: only validate fields if that particular portion
21782 of the UI is enabled. Also, set the document's controller to a
21783 PrintControllerWithStatusDialog wrapping the document's print
21786 * PrintControllerWithStatusDialog.cs: if we're printing to a file,
21787 bring up a SaveFileDialog (i hope we don't want to match the
21788 behavior of the crappy windows file entry) and set the
21789 PrinterSettings.PrintFileName accordingly.
21791 2006-07-26 Jackson Harper <jackson@ximian.com>
21793 * ContainerControl.cs: Add a field that disables auto selecting
21794 the next control in a container when the container is activated.
21795 * UpDownBase.cs: Don't select the text box when the up down is
21798 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
21800 * XEventQueue.cs: Added methods for peeking (used for compression
21801 of successive events)
21802 * XplatUIX11.cs (GetMessage): We're now compressing consecutive
21803 mouse move events (fixes #78732)
21805 2006-07-25 Jackson Harper <jackson@ximian.com>
21807 * UpDownBase.cs: Use an internal class for the textbox so that we
21808 can control focus. the updown control should always have focus,
21809 if either the text area or the buttons are clicked.
21810 - Send the key messages to the textbox, since it never actually
21812 - Activate and decativate the textbox caret.
21814 2006-07-24 Jackson Harper <jackson@ximian.com>
21816 * Control.cs: Use the directed select when selecting a control,
21817 this way the container controls override will get called and the
21818 whole ActiveControl chain will get triggered. TODO: probably need
21819 to make sure this gets done everywhere instead of the old
21821 * ContainerControl.cs: Implement the directed Select method to
21822 find and activate the correct child control.
21824 2006-07-22 Mike Kestner <mkestner@novell.com>
21826 * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
21827 menu handling code so that clicks without a grab work too.
21830 2006-07-22 Alexander Olk <alex.olk@googlemail.com>
21832 * FileDialog.cs: Enable the BackButton when dirstack has one element.
21833 Added some small optimizations.
21835 2006-07-21 Matt Hargett <matt@use.net>
21837 * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
21839 2006-07-21 Peter Dennis Bartok <pbartok@novell.com>
21841 * Control.cs (GetNextControl): Fixes to make all of Jackson's unit
21842 tests pass and match MS in some strange border cases.
21844 2006-07-21 Chris Toshok <toshok@ximian.com>
21846 * ThemeWin32Classic.cs: handle drawing of the relation links and
21847 parent row buttons.
21849 * Theme.cs: change args to DataGridPaintParentRow.
21851 * DataGrid.cs: Don't use controls for the relation links and
21852 parent buttons, so we have to handle all their interactions in
21853 MouseMove, MouseDown, MouseUp, etc. Also, store a lot more stuff
21854 when we're navigating through child tables, so we can reinstate
21855 selection, expanded state, current cell, etc.
21857 2006-07-20 Chris Toshok <toshok@ximian.com>
21859 * ToolBar.cs: When we redraw a button, for whatever reason,
21860 there's no reason to redraw the entire toolbar. Also, don't call
21861 Control.Refresh from within Redraw, as it's much heavier than
21862 Invalidate (which is really what we want).
21864 2006-07-20 Chris Toshok <toshok@ximian.com>
21866 * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
21867 DataGridTextBoxColumn.cs, DataGridTextBox.cs,
21868 ThemeWin32Classic.cs, ListControl.cs: After staring at stack
21869 traces from within a debug IBindingList datasource
21870 (in mono/winforms/datagrid) for *days*, I've finally gotten things
21871 to work in a similar fashion.
21873 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21875 * ListBox.cs: Don't call Sort () when setting
21876 the Sorted property to false (avoid an unnecessary sort).
21878 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21880 * ListControl.cs: DataSource should throw an ArgumentException
21881 instead of a normal exception when the argument is not of the
21884 2006-07-20 Mike Kestner <mkestner@novell.com>
21886 * Control.cs: add InternalPreProcessMessage to allow us to steal
21887 key events before MWF gets its paws on them. Adapted from a
21889 * ToolBar.cs: add GotLostFocus handing for flat toolbars, with
21890 up/down/left/right navigation. Override the new internal control
21891 method to steal the events since they never make it to WndProc.
21892 * ToolBarButton.cs: don't worry about pushed when setting hilight
21893 since the drawing code prefers pushed to hilight. Invalidate on
21894 Hilight changes. Fixes #78547 and #78525.
21896 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
21898 * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
21899 the canvas size. Fixes #78868
21901 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
21903 * Splitter.cs: Track requested split position until first layout
21904 is performed. Fixes #78871
21906 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
21908 * Application.cs: Removed code that forces 1.x for the version
21909 number if the version started with 0. Not sure why that code was
21910 there and I couldn't find any bugs that indicated we needed it.
21913 2006-07-20 Alexander Olk <alex.olk@googlemail.com>
21915 * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
21916 ResetDefaults(), just write some output to the console until it's
21917 implemented. Fixes bug #78907 for now. Eliminated two warnings.
21919 2006-07-19 Jonathan Chambers <joncham@gmail.com>
21921 * PropertyGridView.cs: set StartPosition of drop down forms
21922 so they appear in correct initial spot. Fixes #78190.
21924 2006-07-19 Mike Kestner <mkestner@novell.com>
21926 * ThemeWin32Classic.cs: use parent background color when drawing
21927 flat toolbars. Restructure the conditionals to make sure non-flat
21928 non-Divider toolbars are filled too. Fixes #78837.
21930 2006-07-19 Mike Kestner <mkestner@novell.com>
21932 * ListBox.cs: Sort on collection changes even if the handle
21933 isn't created yet. Fixes #78813.
21935 2006-07-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
21937 * ListControl.cs: DisplayMember should never be null,
21938 and now we assign String.Empty when null is passed to it (this
21941 2006-07-17 Mike Kestner <mkestner@novell.com>
21943 * ListViewItem.cs: restructure Font and subitem Font handling
21944 to hold a specific font and refer back to owner on null.
21947 2006-07-17 Mike Kestner <mkestner@novell.com>
21949 * ToolBar.cs: bandaid for side-effect of previous patch which was
21950 discarding explicit heights for non-AutoSize toolbars. Need to
21951 extend my format tester to deal with AutoSize=false. Fixes #78864.
21953 2006-07-15 Jackson Harper <jackson@ximian.com>
21955 * LabelEditTextBox.cs:
21956 * TreeView.cs: Use a new LabelEdit class for node editing, this
21957 class automatically 'closes' itself when it gets the enter key or
21959 - Use the client rectangle when setting the trees scrollbars, so
21960 border style is taken into account.
21962 2006-07-14 Jackson Harper <jackson@ximian.com>
21965 * TreeView.cs: Make the editing work similar to MSs, firing the
21966 events correctly and ending edits correctly.
21968 2006-07-14 Mike Kestner <mkestner@novell.com>
21970 * ToolBarButton.cs:
21971 * ToolBar.cs: layout restructuring and redraw enhancements to support
21972 formatting changes gracefully, like setting TextAlign, ImageList,
21973 ButtonSize, and Appearance. Handles explicit button sizing quirks
21974 of the MS controls. Things like flat toolbars ignoring button size
21975 but becoming constant sized at the largest button's size. Normal
21976 toolbars with an image set cannot be shrunk smaller than the image,
21977 but text can be clipped/ignored.
21978 * ThemeWin32Classic.cs: don't draw text if text_rect height or width
21979 is zero. Seems like DrawString should be smart enough to not put
21980 anything on screen though. Also trim labels and ellipsize at the char
21981 boundary, not word.
21982 Fixes #78711 and #78483.
21984 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
21986 * FolderBrowserDialog.cs: Disable "New Folder" button and
21987 "New Folder" contextmenu menuitem if a folder like "My Computer"
21990 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
21992 * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
21993 * FolderBrowserDialog.cs:
21994 - Use MWFConfig to store and read size and position settings
21995 - Added code to create a new folder (button or context menu).
21996 Use TreeView labeledit to change the name of the new folder.
21998 2006-07-14 Jackson Harper <jackson@ximian.com>
22000 * TreeView.cs: Raise the OnAfterLabelEdit event correctly. Also,
22001 when the tree is scrolled we end editing.
22003 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
22005 * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
22008 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
22010 WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
22011 BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
22012 BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
22013 CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
22014 ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
22015 ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
22016 ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
22017 FormClosedEventHandler.cs, FormClosingEventArgs.cs,
22018 FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
22019 ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
22020 ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
22021 ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
22022 ListViewItemSelectionChangedEventHandler.cs,
22023 ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
22024 ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
22025 MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
22026 PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
22027 PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
22028 RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
22029 SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
22030 SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs,
22031 TabControlCancelEventHandler.cs, TabControlEventArgs.cs,
22032 TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
22033 TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
22034 ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
22035 ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
22036 TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
22037 TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
22038 TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
22039 WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
22040 WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
22041 WebBrowserNavigatingEventHandler.cs,
22042 WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
22044 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
22046 MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
22047 RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
22048 SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
22049 TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
22050 ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
22051 ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
22052 ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
22053 ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
22054 ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
22055 ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
22056 ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
22057 ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
22058 TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
22059 WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
22060 ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
22061 AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
22062 BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
22063 ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
22064 FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
22065 HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
22066 ListViewItemStates.cs, MaskFormat.cs: Added
22068 2006-07-13 Jonathan Chambers <joncham@gmail.com>
22070 * PropertyGridView.cs: Fix keyboard navigation of drop down.
22071 Patch from eno for bug 78558.
22073 2006-07-13 Jackson Harper <jackson@ximian.com>
22075 * TreeView.cs: When an edit is finished make sure that the
22076 selected node is visible.
22077 - When setting the top/bottom use the scrollbars is_visible, so
22078 everything will be set correctly even if the tree isn't visible
22081 2006-07-13 Jackson Harper <jackson@ximian.com>
22083 * ComboBox.cs: Revert the item->index part of my previous patch.
22084 * TreeView.cs: Use LostFocus instead of Leave for detecting when
22085 the edit box has lost focus (duh).
22086 - Just make the edit box not visible when we get return, that will
22087 take the focus, which will call EndEdit
22088 * TreeNode.cs When we start editing, notify the treeview.
22090 2006-07-12 Jackson Harper <jackson@ximian.com>
22092 * ComboBox.cs: Clear out old items before setting the item list.
22093 This prevents databound controls from having their items added
22095 - Switch the combobox to use indices whereever possible instead of
22096 using Item's. This allows usto navigate through lists that have
22097 more then one item with the same string value (ie a, b, b, a).
22098 - Scroll the listboxes scrollbar when a non visible item is
22100 - Allow keypress to cycle through all the possible values. For
22101 example if you have b1, b2, b3 and hold down the B key all the
22102 values will be cycled through.
22104 2006-07-12 Jackson Harper <jackson@ximian.com>
22107 * ListView.cs: Don't need to override SETFOCUS anymore, we can do
22108 this using the internal methods.
22109 * Control.cs: Add OnGotFocusInternal. A new method that allows
22110 controls to "override" OnGotFocus and change focus behavior if
22112 - Same thing for LostFocus
22113 * ComboBox.cs: Pass off focus to the text control properly.
22115 2006-07-12 Alexander Olk <alex.olk@googlemail.com>
22117 * FileDialog.cs: Added GetFoldersOnly to MWFVFS
22118 * FolderBrowserDialog.cs: Almost a complete rewrite.
22119 - Better support for Environment.Specialfolders
22120 - Added support for MWFVFS
22121 - Made setting SelectedPath work
22123 2006-07-12 Jackson Harper <jackson@ximian.com>
22125 * Control.cs: Optimze getting all the controls.
22127 2006-07-11 Jackson Harper <jackson@ximian.com>
22129 * ContainerControl.cs: Override SETFOCUS in the container control,
22130 so that it is not selected on mouse click.
22132 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
22134 * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel.
22135 Hopefully we will have a better way once all of focus is complete.
22137 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
22139 * ThemeWin32Classic.cs: Commented out some debug code and fixed
22140 a compile error with csc.
22142 2006-07-11 Jackson Harper <jackson@ximian.com>
22144 * Control.cs: When hiding a control only select the next control
22145 if the current control was focused.
22146 - Don't handle enter/leave when setting/killing focus, this is
22147 done by the container control.
22148 - Remove is_selected, it's not needed anymore.
22149 - Add utility methods for selecting a child control, and for
22150 firing the Enter/Leave events.
22151 * ContainerControl.cs: When a control is activated fire the
22152 enter/leave events.
22153 - Don't wrap when processing the tab key, so that focus can be
22154 moved outside of the container.
22155 - Use the correct active control
22157 2006-07-11 Jackson Harper <jackson@ximian.com>
22159 * ComboBox.cs: Remove some debug code that was blinding me.
22160 * UpDownBase.cs: These controls actually aren't implicit, they are
22161 visible to the user.
22163 2006-07-10 Chris Toshok <toshok@ximian.com>
22165 * DataGrid.cs: move back to the is_adding boolean field. god i
22166 hate this is_editing/is_adding/is_changing stuff.
22168 2006-07-10 Chris Toshok <toshok@ximian.com>
22170 * DataGridTableStyle.cs: just check if the property type is bool.
22171 if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
22172 Don't use CanRenderType.
22174 * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
22175 if our text == NullText. Remove CanRenderType.
22177 * DataGridBoolColumn.cs: nuke CanRenderType.
22179 * DataGrid.cs: reenable some code to end the current edit inside
22180 of set_CurrentCell. This fixes the other 1.1.16 regression.
22181 Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
22182 Also, remove the visible_row_count arg from CalcRowHeaders, since
22183 we don't need to worry about the actual height of the area.
22185 2006-07-10 Chris Toshok <toshok@ximian.com>
22187 * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
22190 * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
22191 the real sense of the IsInEditOrNavigateMode property (true =
22192 navigate, false = edit). Also, update OnKeyPress to reflect this.
22194 * DataGridTableStyle.cs (CreateColumnsForTable): even if the
22195 column style exists, we still need to set its property descriptor
22196 to match up with our list manager.
22198 2006-07-10 Chris Toshok <toshok@ximian.com>
22200 * ThemeWin32Classic.cs: implement the new row/header painting
22201 approach. The parent row painting will likely go away and
22202 replaced with label controls, but the rest seems to work ok (and
22205 * Theme.cs: change the way we draw datagrid rows. we don't draw
22206 the row headers as a block now. Instead we draw them in the
22207 normal draw-row loop. Add some calls for drawing parent rows and
22210 * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
22211 a default table style. Set the defaults from ThemeEngine.Current,
22212 not SystemColors. Fix lots of misc issues with property setters.
22214 * DataGrid.cs: move loads of style information out of this class
22215 as it's being duplicated with DataGridTableStyle. keep track of a
22216 special DataGridTableStyle for the properties we used to mirror
22217 here. Switch all the style properties to access this table style
22218 instead of instance fields of this class. Also add a internal
22219 class to represent parent rows (more needs to be stored here, like
22220 the selection state from the parent table, as well as the
22221 expansion state.) Also, for datasources with relations, do the
22222 right thing for collapse/expand, and add support for the
22223 navigation/parent row buttons.
22225 Lastly, fix the crash in the 1.1.16 build.
22227 * GridTableStylesCollection.cs: make the explicit interface
22228 implementations call the class's methods as opposed to duplicating
22231 * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
22232 0 so the text doesn't jump around when we move the cursor.
22234 2006-07-10 Jackson Harper <jackson@ximian.com>
22237 * ListBox.cs: Match MS's ToString (this makes debugging focus
22238 stuff infinitely easier).
22240 2006-07-10 Jackson Harper <jackson@ximian.com>
22242 * Control.cs (SelectNextControl): When checking the control's
22243 parent use this instead of ctrl.parent so that null can be passed
22244 to SelectNextControl. (I have unit tests for this).
22245 - Remove unused var.
22247 2006-07-10 Chris Toshok <toshok@ximian.com>
22249 * CurrencyManager.cs: correct one regression, the removal of the
22250 finalType field. Also, add a MonoTODO on CanAddRows, implement
22251 Refresh() correctly, and fix some event emission in
22252 ListChangedHandler.
22254 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
22256 * FileDialog.cs: Don't use brackets for new folders if they exist
22257 under *nix. Instead use -(number of existing folders +1).
22259 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
22262 - Fixed really nasty bug #78771
22263 - Don't block the whole GUI when reading directories with a lot of
22264 entries. Use an other thread instead and call BeginInvoke to
22265 update the ListView in MWFFileView
22267 2006-07-07 Chris Toshok <toshok@ximian.com>
22269 * Control.cs (Dispose): release any Capture when disposing.
22271 2006-07-07 Chris Toshok <toshok@ximian.com>
22273 * LinkLabel.cs (Select): if we chain up to the parent, set
22274 focused_index to -1 so we'll search for the first available link
22275 the next time the user tabs into us. Also, if the direction is
22276 backward and focused_index == -1, start the search from the last
22279 2006-07-07 Chris Toshok <toshok@ximian.com>
22281 * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
22282 is beyond the end of the text, don't do anything.
22283 (CreateLinkPieces): set our ControlStyles.Selectable based on
22284 whether or not we have any links.
22285 (Link.Invalidate): use a loop instead of foreach.
22286 (Link.set_Start): null out owner.sorted_links so it'll be
22287 recreated by CreateLinkPieces.
22289 2006-07-06 Chris Toshok <toshok@ximian.com>
22291 * LinkLabel.cs: revert the SetStyle change.
22293 2006-07-06 Chris Toshok <toshok@ximian.com>
22295 * LinkLabel.cs (.ctor): SetStyle Selectable to true.
22296 (OnEnableChanged): s/Refresh/Invalidate
22297 (OnGotFocus): if we have a focused index already, refocus it (so
22298 if we mouse out/in to the window it'll focus the right link).
22299 (OnKeyDown): move the tab handling out of here.
22300 (OnLostFocus): don't set focused_index to -1, so we can refocus it
22301 when we lose focus.
22302 (OnMouseDown): don't Capture here - Control handles it. Also,
22303 focus the active link.
22304 (OnMouseUp): don't deal with Capture.
22305 (OnPaintBackgroundInternal): remove.
22306 (OnTextAlignChanged): CreateLinkPieces before calling the
22307 superclass's method.
22308 (OnTextChanged): call CreateLinkPieces before calling superclass's
22310 (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
22312 (Select): implement this, moving the selection between different
22313 links, and call parent.SelectNextControl if we don't have another
22314 link to focus in the given direction.
22315 (CreateLinkPieces): call Invalidate instead of Refresh.
22317 2006-07-06 Chris Toshok <toshok@ximian.com>
22319 * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
22320 new LinkLabel internals.
22322 * LinkLabel.cs: fairly major rewrite. get rid of all the loops
22323 over pieces looking for active/focused/etc links. also, deal with
22324 runs of text (and links) with embedded \n's in them, and use
22325 MeasureCharacterRanges instead of MeasureString to figure out the
22326 regions text occupies. Lastly, do the usual s/Refresh/Invalidate
22329 2006-07-04 Jackson Harper <jackson@ximian.com>
22331 * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
22332 XKB or key auto repeat, do it manually. Without key auto repeat,
22333 when a key is held down we get key press, key release, key press,
22334 key release, ... with auto repeat we get key press, key press, key
22335 press ..., and then a release when the key is actually released.
22337 2006-07-03 Jackson Harper <jackson@ximian.com>
22340 * ThemeWin32Classic.cs: Tabs do not obey normal background color
22341 rules, they are always control color regardless of the background
22344 2006-07-02 Alexander Olk <alex.olk@googlemail.com>
22346 * FileDialog.cs: Added internal class MWFConfig.
22347 Removed Registry support and replaced it with support for the new
22348 MWFConfig class. See MWFConfig comments for more information.
22350 2006-06-30 Alexander Olk <alex.olk@googlemail.com>
22352 * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
22353 rectangle. Added some patches from eno from bug #78490 and fixed
22354 the arrow position for small up and down CPDrawScrollButtons.
22356 2006-06-30 Jackson Harper <jackson@ximian.com>
22358 * InternalWindowManager.cs: Remove some debug code.
22359 * Form.cs: When an MdiParent is set to null, the window is
22360 "detatched" and becomes a normal window.
22361 * MdiClient.cs: Don't bring the new child form to the front until
22362 it is activated (setting it as active does this), this makes the
22363 previously active forms titlebar get redrawn as inactive.
22365 2006-06-29 Peter Dennis Bartok <pbartok@novell.com>
22367 * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
22368 with later controls
22370 2006-06-29 Mike Kestner <mkestner@novell.com>
22372 * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
22373 arrow in keynav state. Fixes #78682.
22375 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
22377 * PrintDialog.cs: Reorder, relayout, remove extra code, set tab
22378 order (fixes #78393)
22380 2006-06-28 Jonathan Pobst <monkey@ipobst.com>
22382 * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs,
22383 ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
22384 ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
22385 FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
22386 GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
22387 ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs,
22388 PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
22389 Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
22390 TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
22391 ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
22392 enumerations (FlagsAttribute, SerializableAttribute, added/removed
22395 2006-06-28 Mike Kestner <mkestner@novell.com>
22397 * ComboBox.cs: implement scroll wheel support. Fixes #78360.
22399 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
22402 PropertyGridTextBox.cs : explicitly set BackColor to differentiate
22403 item lines from other area (It also makes BackColor consistent and
22404 compatible with .NET). Fixed bug #78564.
22406 2006-06-28 Jonathan Chambers <jonathan.chambers@ansys.com>
22408 * PropertyGrid.cs: refresh toolbar when PropertySort is set.
22409 Patch from Eno for #78555.
22411 2006-06-27 Chris Toshok <toshok@ximian.com>
22413 * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
22415 * DataGridColumnStyle.cs: same.
22417 * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
22419 * DataGridDrawingLogic.cs: nuke.
22421 2006-06-27 Chris Toshok <toshok@ximian.com>
22423 * DataGridTableStyle.cs: clean up the constructors, and build the
22424 list of child relations for this table. I have no idea if this is
22425 where we should be doing it (it probably isn't), but since we're
22426 already iterating over the properties..
22428 * DataGrid.cs: add row resizing. for now we add a DataGridRow
22429 struct and array for keeping track of row information, similar to
22430 what's shown in a hack on
22431 http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
22433 * Theme.cs: be consistent about the naming of DataGrid methods,
22434 prefering ColumnWidths and RowHeights over columnsWidths and
22437 * ThemeWin32Classic.cs: same, and also add support for variable
22438 sized rows (and the +/- expansion icons for related rows).
22440 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
22442 * TextBoxBase.cs: Applied Eno's patch from #78660
22444 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
22446 * Form.cs (ScaleCore): We don't want to scale our form if it's
22447 state is minimized or maximized, but we still need to scale our
22448 child windows. Also, added try/finally block to ensure layout
22449 gets reset (Fixes #78697)
22451 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
22453 * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
22455 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
22457 * Form.cs: Fixed c+p error and added check to resize form if minimum
22458 size is bigger than current size (Fixes #78709)
22460 2006-06-26 Peter Dennis Bartok <pbartok@novell.com>
22462 * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
22464 2006-06-26 Mike Kestner <mkestner@novell.com>
22466 * ComboBox.cs: only do Keypress handling in the combo when there
22467 are items in the collection. Fixes #78710.
22469 2006-06-26 Chris Toshok <toshok@ximian.com>
22471 * Binding.cs: make this work bi-directionally. also, clear up
22472 other mixups between Push/Pull Data (e.g. we're supposed to pull
22473 data when validating).
22475 * BindingManagerBase.cs: trim some fully qualified collection
22478 * PropertyManager.cs (get_IsSuspended): oops, fix this check.
22480 2006-06-23 Chris Toshok <toshok@ximian.com>
22482 * PropertyManager.cs: It appears (according to the unit tests)
22483 that PropertyManager doesn't use
22484 PropertyDescriptor.AddValueChanged to track propery value changes
22485 in its datasource, but uses the same scheme as Binding, where it
22486 looks for a <Property>Changed event and binds to it.
22488 Also, according to the docs, IsSuspended always returns false for
22489 a property manager with a non-null datasource.
22491 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
22493 * Form.cs: (ShowDialog): If we're returning a forced cancel we still
22494 need to update the actual DialogResult. (Fixes #78613)
22496 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
22498 * Form.cs (ShowDialog): Release any captures before running the
22499 new message pump (fixes #78680)
22501 2006-06-22 Mike Kestner <mkestner@novell.com>
22503 * ListView.cs: Layout column widths properly in details mode even
22504 if HeaderStyle.None is set. Fixes #78691.
22506 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
22508 * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
22510 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
22512 * Control.cs (ContainsFocus): Using new driver method to get focused
22513 window, instead of trying to use internal tracking var, which can
22514 recursion issues (Fixes #78685)
22515 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
22516 XplatUIWin32.cs: Added GetFocus method to return focused window
22518 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22520 * ColorDialog.cs: when the mouse button is pressed inside the color
22521 matrix, don't let the cursor move out of it until the button is
22522 released, which is the behavior on windows. Changed 'colours' by
22523 'colors' to use the same word consistently.
22525 2006-06-21 Chris Toshok <toshok@ximian.com>
22527 * DataGrid.cs: add in some basic navigation stuff (navigating to a
22528 child relation and back, using a stack). Also, remove
22529 GetDataSource and the code that calls it - it's not needed. Also,
22530 track CurrencyManager.ListName's removal.
22532 2006-06-21 Chris Toshok <toshok@ximian.com>
22534 * CurrencyManager.cs: push some of the original type checking from
22535 BindingContext.CreateBindingManager to here, and remove some of
22536 the finalType stuff. Need more tests to make sure I've got the
22537 ListName part right, and we might need more in SetDataSource.
22539 * PropertyManager.cs: add a ctor that takes just the datasource,
22540 and no property name. Make SetDataSource work with a null
22541 property_name, and make Current return the data_source if the
22542 property descriptor is null. this makes 'string foo = "hi";
22543 BindingContext[foo].Current' return "hi" as it should.
22545 * RelatedCurrencyManager.cs: make this code more generic - there's
22546 no reason the parent manager has to be CurrencyManager, and
22547 there's no reason to pass the DataRelation. It suffices to use a
22548 BindingManagerBase and PropetyDescriptor.
22550 * RelatedPropertyManager.cs: make a similar change here.
22552 * BindingContext.cs: make CreateBindingManager the beautiful, tiny
22553 flower I knew it could be.
22555 2006-06-20 Chris Toshok <toshok@ximian.com>
22557 * PropertyManager.cs: the PropertyChangedHandler is invoked when
22558 data in the source has changed and we need to update the control,
22559 so s/PullData/PushData.
22561 * CurrencyManager.cs: Refresh is meant to update the control from
22562 data in the datasource. So, s/PullData/PushData.
22564 * BindingContext.cs: add more ugliness (we weren't handling the
22565 case where data_source = DataTable and data_member = column_name).
22567 * Binding.cs: fix PushData/PullData mixup. Both are interpreted
22568 from the perspective of the datasource. PullData pulls from the
22569 control, PushData pushes to the control.
22571 2006-06-20 Chris Toshok <toshok@ximian.com>
22573 * BindingContext.cs: rewrite the CreateBindingManager code to
22574 handle navigation paths more or less properly. This could
22575 definitely stand some more work, in particular to push the
22576 recursion up to the toplevel. But that relies on fixes in other
22577 places (System.Data comes to mind).
22579 Also, move to a flat hashtable (and encode the twolevel nature of
22580 the dictionary into the hash key). This lets us implement the
22581 IEnumerable.GetEnumerator method.
22583 * RelatedCurrencyManager.cs: new class. Update our view based on
22584 our relation and our parent CurrencyManager's position.
22586 * CurrencyManager.cs: split out some logic from the ctor into
22587 SetView, so it can be called from the new RelatedCurrencyManager
22590 * RelatedPropertyManager.cs: new class. Update our datasource
22591 based on the position of our parent CurrencyManager.
22593 * PropertyManager.cs: split out some logic from the ctor into
22594 SetDataSource, so it can be called from the new RelatedDataSource
22595 subclass. Also, make the Current getter return the value
22596 of the PropertyDescriptor, not the data_source.
22598 * Binding.cs: no need to duplicate the string splitting code here.
22600 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
22603 - set_Enabled: OnEnabledChanged is not called if the inherited state
22604 of the control is not altered, even though we might be changing the
22605 internal state of the control (#78458)
22606 - set_Enabled: (Re)Moved the enabling/disabling of the window to
22607 OnEnabledChanged, to allow easy altering of any child window state
22608 - OnEnabledChanged: Added code to enable/disable driver window state
22609 - OnParentEnabledChanged: Instead of firing the event, call
22610 OnEnabledChanged, which will fire the event and also a) set driver
22611 window state and pass the enabled state to any grandchildren (#78458)
22613 2006-06-19 Jackson Harper <jackson@ximian.com>
22615 * InternalWindowManager.cs: We don't set the cursor explicitly
22616 thats done via the response to NCHITTESTs.
22617 - Don't need to adjust for titlebar heights anymore, the
22618 coordinates are coming in the correct coordinates now (see peters
22622 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
22624 * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
22625 being translated relative to whole window, instead of client window.
22626 That caused broken offsets on mouseclick (and caused gas for our
22627 InternalWindowManager)
22629 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
22632 - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
22633 - Undo(): Added replay of cursor move on DeleteChars action; added
22634 calling Undo() again if a recorded cursor move is invalid (to
22635 ensure that some action is performed on Undo)
22636 * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
22638 2006-06-16 Jackson Harper <jackson@ximian.com>
22640 * MdiClient.cs: Instead of just sizing maximized windows when
22641 there is a resize we also have to adjust the Y of minimized
22642 windows, so they stay pinned to the bottom of the mdi container.
22643 - Eliminate separate tracking of the active control, we can just
22644 get this from the controls collection.
22645 - Paint the decorations for the newly activated titlebar so we get
22647 * InternalWindowManager.cs:
22648 * ThemeWin32Classic.cs: Minimized windows get all three buttons
22649 even if they are a tool window.
22651 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
22653 * TextControl.cs (Undo): Handle non-existent cursor locations in the
22654 undo buffer, these can happen when text was deleted and the cursor
22655 was recorded first. Since we will also have a recorded cursor
22656 after the delete this is not an issue. (Fixes #78651)
22658 2006-06-14 Peter Dennis Bartok <pbartok@novell.com>
22660 * AccessibleObject.cs: Remove dependence on Control.is_selected;
22661 instead properly track control states internally (allows us to
22662 remove is_selected from Control)
22664 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22666 * ImageListStreamer.cs: correctly generate the 1bpp mask for images
22667 whose width is not a multiple of 8.
22669 2006-06-13 Jackson Harper <jackson@ximian.com>
22671 * MdiClient.cs: Only maximize the next child if the current one
22674 2006-06-13 Chris Toshok <toshok@ximian.com>
22676 * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
22677 modified. Also, guard against grid or grid_drawing being null in
22680 * DataGrid.cs: Reformat tons of getters/setters. In the
22681 DataMember setter, just call SetNewDataSource instead of
22682 duplicating some of its functionality. In SetNewDataSource, don't
22683 check ListManager for null, since the property getter creates the
22686 * DataGridTableStyle.cs: don't set TableStyle or call
22687 SetDataGridInternal on the column here, it's done in
22688 GridColumnStylesCollection.Add.
22690 * GridColumnStylesCollection.cs: fix all the explicit interface
22691 implementations to just call our methods. Nuke AddInternal() and
22692 move the body of it to Add(). Also, add a call to
22693 column.SetDataGridInternal to Add().
22695 * DataGridTextBoxColumn.cs (.ctors): call this() instead of
22696 base()+duplicate code. Also, use the Format property instead of
22697 format to generate an Invalidate ala MS. Lastly, create the
22698 textbox here, unconditionally.
22699 (set_Format): call Invalidate.
22700 (get_TextBox): no need to call EnsureTextBox.
22701 (Commit): remove the message box.
22702 (Edit) remove the call to EnsureTextBox.
22703 (EndEdit): call HideEditBox instead of ReleaseHostedControl.
22704 (EnterNullValue): no need to check textbox for null.
22705 (HideEditBox): no need to check textbox for null.
22706 (SetDataGridInColumn): add the textbox to the grid's controls.
22707 (EnsureTextBox): nuke.
22709 2006-06-13 Jackson Harper <jackson@ximian.com>
22711 * MdiWindowManager.cs: Hook up to the maximized menus paint event
22712 and redraw the buttons when needed. Unhook when the window is
22714 * MainMenu.cs: Add an internal Paint event, the mdi window manager
22715 needs this so that it can redraw its buttons when the menu is
22717 * InternalWindowManager.cs:
22718 * Form.cs: The method order has changed for DrawMaximizedButtons,
22719 so that it can be a PaintEventHandler.
22721 2006-06-13 Jackson Harper <jackson@ximian.com>
22723 * MdiClient.cs: When we close a maximized mdi window, the next mdi
22724 window is activated and maximized, even if it wasn't before.
22725 - When a new window is activated repaint the decorations of the
22726 old one, so that it no longer has the Active "look" (the blue
22728 * InternalWindowManager.cs: Open up CreateButtons to base classes
22729 so they can recreate the buttons on state changes.
22730 - If a window is maximized give it all three buttons
22731 * MdiWindowManager.cs: Create the titlebar buttons when the state
22732 is changed, this is needed because a toolwindow will not have all
22733 three buttons until it is maximized.
22735 2006-06-13 Atsushi Enomoto <atsushi@ximian.com>
22737 * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
22740 2006-06-12 Jackson Harper <jackson@ximian.com>
22742 * KeysConverter.cs: Make sure we handle the Ctrl special case
22743 if its the only key.
22745 2006-06-12 Jackson Harper <jackson@ximian.com>
22747 * Theme.cs: Add a method to get the size of a managed window
22749 * InternalWindowManager.cs: Remove the ButtonSize property, this
22750 should be retrieved from the theme.
22751 * MdiWindowManager.cs: Get the button size from the theme
22752 * ThemeWin32Classic.cs: Make the method to get the managed window
22753 titlebar button size public.
22754 - Handle the different button sizes of maximized toolwindows
22755 (should match any maximized window).
22756 - Get the titlebar height from the theme, not the WM (which gets
22757 it from the theme).
22759 2006-06-12 Jackson Harper <jackson@ximian.com>
22761 * InternalWindowManager.cs: Handle NC Double Clicks, passing the
22762 event down to the mdi window manager.
22763 - Expose some extra stuff to base classes
22764 - Make sure to end the Capture on an NC Mouse up, so that we can
22765 get double clicks properly, and the sizing doens't stick.
22766 - When doing PointToClient contain it in the workable desktop
22767 area, this prevents windows from changing size when the cursor is
22768 pulled outside of the working area while sizing.
22769 * MdiWindowManager.cs: When we get a double click maximize the
22771 - Reset the cursor after handling mode changes.
22773 2006-06-12 Peter Dennis Bartok <pbartok@novell.com>
22775 * XplatUIX11.cs (WorkingArea): Read the actual workarea for the
22776 current desktop, instead of just assuming a 0, 0 origin. This
22777 is needed for our internal window manager, to know the top
22778 margin of the desktop
22780 2006-06-12 Chris Toshok <toshok@ximian.com>
22782 * DataGrid.cs (set_CurrentCell): concede focus as we move around.
22783 we need this to get rid of the selected background in the bool
22785 (CancelEditing): move the ConcedeFocus call to above the Abort
22786 call. Also, set is_changing to false and invalidate the row
22787 header if we were changing before.
22788 (ProcessKeyPreviewInternal): remove, since noone outside this
22789 class calls it anymore. Roll the code into ProcessKeyPreview.
22790 (EndEdit): remove the internal version.
22791 (InvalidateCurrentRowHeader): make private.
22793 * DataGridBoolColumn.cs: simplify this class a bunch. remove the
22794 Keys.Escape handling (and with it the last call to
22795 DataGrid.EndEdit from outside the class.)
22798 2006-06-12 Chris Toshok <toshok@ximian.com>
22800 * DataGridTextBox.cs (.ctor): isedit defaults to false.
22801 (OnKeyPress): set isedit to true.
22802 (ProcessKeyMessage): remove Keys.Enter handling from here. it's
22803 already handled by the grid.
22805 * DataGrid.cs (set_CurrentCell): more work here. it's still not
22807 (set_DataSource): SetDataSource always returns true, so stop
22808 putting it in an if statement.
22809 (EndEdit): get rid of some {}'s
22810 (ProcessGridKey): return true in case Keys.Escape.
22811 (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
22812 (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
22813 PositionChanged, stopped connecting to CurrentChanged.
22814 (GetDataSource): simplify this a bunch.
22815 (SetDataSource): change return type from bool to void.
22816 (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
22817 to this, and make sure we don't set ListManager.Position inside
22819 (OnListManagerItemChanged): if we're passed an actual index,
22822 * CurrencyManager.cs (set_Position): don't call PullData here.
22824 2006-06-09 Jackson Harper <jackson@ximian.com>
22826 * TreeNode.cs: Recalculate the visible order before doing the
22827 Expand/Collapse Below calls, because those calls generate an
22829 - Reduce calls to the TreeView property, which is mildly expensive
22830 by using a local var.
22831 * Form.cs: Layout the MDI child windows when creating the parent
22833 - Don't use the internal constructor anymore
22834 * MdiClient.cs: use the parent form width/height (if available)
22835 when laying out the child windows, we do this because the
22836 mdiclient isn't docked yet when the initial layout is done.
22837 - Don't need an internal constructor anymore.
22839 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22841 * FileDialog.cs: handle access errors when trying to create a folder
22842 or changing to a directory. No need to initialize out parameters.
22844 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
22846 * FileDialog.cs: Append a number when creating a new folder if the
22847 folder already exists (use parenthesis instead of square brackets)
22849 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
22852 - Disabled registry support for windows and added better registry
22853 error checking for other systems (need to investigate why it
22854 works perfectly on my system)
22855 - If a folder already exist show an error MessageBox instead of
22856 trying to create an indexed name.
22857 - Fixed a non intentional typo.
22859 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22861 * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
22863 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
22865 * FileDialog.cs: When creating a new folder don't crash if the
22866 folder already exists.
22868 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
22870 * FileDialog.cs: Allmost a complete rewrite.
22871 - added a "virtual" file system that handles the differences
22872 between unix and windows file systems (especially the directory
22873 structure). Moved most of the directory and file handling code
22875 Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
22876 UnixFileSystem and FSEntry.
22877 - Recently used folder/directory, size, location and used file names
22878 (file name ComboBox) are now stored in the registry and get read
22879 before the dialog shows up (fixes part 6 of bug #78446).
22880 - Creation of new folders/directories is now possible (context menu
22881 or ToolBar). Added TextEntryDialog for this that fills in the gap
22882 until ListView.LabelEdit works.
22883 - Fixed cursor handling (bug #78527) and focus handling for
22885 - Various "Search in" ComboBox enhancements. The content of the
22886 dropdown listbox now almost matches ms.
22887 - Changed the behaviour when the user switches to SpecialFolder
22888 Recent to show the ListView in View.Details.
22889 - Beside using the ToolBar to change the View property of the
22890 file ListView it is now possible to use the context menu too.
22892 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
22894 * ComboBox.cs: Don't create a new ObjectCollection when an item
22895 gets inserted. Just insert the item in the existing object_items
22898 2006-06-08 Jackson Harper <jackson@ximian.com>
22900 * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
22901 that the treeview and root node checks are done also, this fixes a
22902 regression i caused in the unit tests.
22904 2006-06-07 Wade Berrier <wberrier@novell.com>
22906 * RichTextBox.cs: More ISO8859-1 -> unicode
22908 2006-06-07 Mike Kestner <mkestner@novell.com>
22910 * ComboBox.cs : use items to hold highlight/selection so that
22911 collection insertions don't require synchronization.
22913 2006-06-07 Jackson Harper <jackson@ximian.com>
22915 * InternalWindowManager.cs: Simplify (and FIX) the window sizing
22916 routine. We now always keep the sized edge at the cursor instead
22917 of computing movement and adjusting rects. There is one buglet
22918 with this method though when the cursor is moved over area that
22919 the window can not expand too (such as the toolbars on the desktop).
22921 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22923 * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
22924 here. Fixes crash on startup in AlbumSurfer.
22926 2006-06-07 Peter Dennis Bartok <pbartok@novell.com>
22928 * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
22931 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22933 * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
22934 statement to avoid calling XNextEvent which will block if another thread
22935 took the event that we were expecting. Fixes bug #78605.
22937 2006-06-07 Mike Kestner <mkestner@novell.com>
22939 * ListView.cs : isolated checkbox clicking from the selection logic.
22940 Toggle check state on item doubleclicks. Really fixes #78454 part2.
22942 2006-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
22944 * Form.cs: Check that the value passed to Form.DialogResult
22945 is a valid enum value.
22947 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22949 * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
22950 Computer'. Clicking it in the network view goes to 'My Computer'.
22951 Added CIFS filesystem type. Display the mount point of filesystems.
22952 Avoid duplicate mount points (happens for me with CIFS);
22954 2006-06-06 Jackson Harper <jackson@ximian.com>
22956 * InternalWindowManager.cs: Draw the maximized windows buttons
22959 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22961 * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
22962 all other dialogs. Fixes bug #78585.
22964 2006-06-06 Mike Kestner <mkestner@novell.com>
22966 * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
22967 Only invalidate checkbox on checkstate changes to avoid flicker.
22968 * ListBox.cs : avoid unselect/select when clicking selected item.
22969 avoid reselection flicker for already multiselected items.
22972 2006-06-06 Jackson Harper <jackson@ximian.com>
22974 * MdiWindowManager.cs: When the window is closed do an NCRecalc on
22975 the parent form so that the menu is removed if needed.
22977 2006-06-06 Mike Kestner <mkestner@novell.com>
22979 * ListBox.cs : add ScrollWindow call to UpdateTopItem. fix
22980 Prev/Next/PrevPage/NextPage/Home/End index calculation. Fixes #78559.
22982 2006-06-06 Mike Kestner <mkestner@novell.com>
22984 * CheckedListBox.cs : rebuild check collection on Add. Fixes #78426.
22987 2006-06-06 Jackson Harper <jackson@ximian.com>
22989 * Control.cs: Use the property (instead of the field) to get the
22990 default cursor so it is instantiated correctly.
22991 * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
22992 resizes so we need to manually repaint the window decorations here.
22993 - Set the titlebar button locations as soon as they are created,
22994 otherwise they are not set correctly on win32.
22996 2006-06-06 Chris Toshok <toshok@ximian.com>
22998 * CurrencyManager.cs (set_Position): call PullData before
23000 (AddNew): after calling IBindingList.AddNew, update our
23001 listposition, and call OnCurrentChanged/OnPositionChanged (without
23003 (OnCurrentChanged): remove the call to PullData from here.
23004 (OnItemChanged): remove the call to PushData from here.
23005 (OnPositionChanged): change the test from == null to != null to
23006 match the other methods.
23007 (ListChangedHandler): the grossest part of the patch. Implement
23008 this such that it passes the unit tests in CurrencyManagerTest and
23009 the output more or less matches that of MS's implementation.
23011 2006-06-06 Mike Kestner <mkestner@novell.com>
23013 * ListView.cs : only update check state on single click.
23014 * ThemeWin32Classic.cs : fix focus drawing for details view without
23015 fullrowselect. Fixes #78454.
23016 * XplatUIX11.cs : fix for double click emission.
23018 2006-06-05 Jonathan Chambers <jonathan.chambers@ansys.com>
23020 * PropertyGridView.cs : Applied Atsushi's patch to fix
23021 font dialog bug (#78197).
23023 2006-06-05 Jackson Harper <jackson@ximian.com>
23025 * TreeNode.cs: Compute the next node for expanding/collapsing
23026 correctly. We now factor in nodes without a NextNode
23027 correctly. (Fixes somes cases in nunit-gui).
23028 * InternalWindowManager.cs: Set the bounds when updating the
23029 virtual position of a tool window.
23031 2006-06-05 Chris Toshok <toshok@ximian.com>
23033 * DataGrid.cs: rename cached_currencymgr to list_manager.
23034 (set_CurrentCell): move SetCurrentCell code here, and clean it up
23036 (CurrentRow, CurrentColumn): single accessors so we can make the
23037 cursor movement code a lot easier to understand.
23038 (CurrentRowIndex): implement this in terms of CurrentRow.
23039 (BeginEdit): clean this up a bit.
23040 (CancelEditing): sort out the is_editing/is_changing/is_adding
23042 (EndEdit): minor changes.
23043 (OnKeyDown): add a comment about a (most likely) unnecessary
23045 (OnMouseDown): cancel editing when we click on a row header. And
23046 use the CurrentRow setter, not CurrentCell.
23047 (ProcessDialogKey): directly call ProcessGridKey.
23048 (UpdateSelectionAfterCursorMove): factor out this common block of
23049 code (it's used everywhere that we move the cursor by updating row
23051 (ProcessGridKey): pretty substantial overhaul. Use the
23052 CurrentRow/CurrentColumn properties to make the code a lot more
23053 readable. Only use the CurrentCell property when we have to
23054 modify both row and column at once. Tab behavior is still broken,
23055 and Delete is untested.
23056 (Select): if we have no selected rows, set selection_start to
23058 (EditCurrentCell): rename EditCell this. It was only ever invoked
23059 with CurrentCell as the arg, so drop the arg and rename it.
23061 * DataGridColumnStyle.cs: clean up the constructors a little, and
23062 drop CommonConstructor().
23064 * DataGridTextBox.cs (.ctor): set accepts_return to true so we
23065 actually get notified when the user hits it.
23066 (ProcessKeyMessage): *substantially* simplify this method.
23067 There's no reason (that I can see) for the textbox to be making
23068 calls into the datagrid at all. Remove all of them but the ones
23069 for Enter handling. those will take some more work.
23071 * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
23072 calling HideEditBox.
23073 (HideEditBox): if we have an active textbox, render it invisible
23074 without causing a re-layout of the datagrid.
23076 2006-06-05 Mike Kestner <mkestner@novell.com>
23078 * ListView.cs : fix NRE crasher when focuseditem is cleared by
23079 collection changes by resetting it to Items[0]. Fixes #78587.
23081 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23083 * MessageBox.cs: if the height of the text is larger than the icon_size,
23084 use that. Fixes bug #78575.
23086 2006-06-05 Jackson Harper <jackson@ximian.com>
23088 * TreeView.cs: Fix line drawing when scrolling. To do this each
23089 node is basically responsible for drawing its entire horizontal
23090 area. When drawing a node it draws its parent node lines if
23092 - Adjust the clip area to the viewport rectangle
23093 - Fix Left/Right key handling to match MS. (It expand/collapses
23094 and moves to parents/first child but does not move selection to
23096 - Fix SetTop to work with new bound calculation code
23097 - When scrollbars are no longer needed we need to reset scrolling
23098 vars and recalculate the visible order so the redraw is correct
23099 * TreeNode.cs: We can't expand/collapse nodes with no children.
23101 2006-06-03 John Luke <john.luke@gmail.com>
23103 * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
23104 so the colors work without dev packages
23106 2006-06-02 Peter Dennis Bartok <pbartok@novell.com>
23109 - Select: Implemented to just use activate. Seems to match MS
23110 behaviour closest. Documented to only do actual control walking
23111 based on it's parameters if in a container control so I moved
23113 - Removed selection check logic from our internal Select() method
23114 * ContainerControl.cs:
23115 - Select: Moved selection logic from Control here, since MS documents
23116 that containers obey the bool arguments. No longer calling base
23118 2006-06-02 Jackson Harper <jackson@ximian.com>
23120 * TreeView.cs: If the selected node isn't changed when we get
23121 focus update the previously selected node so that we see the
23124 2006-06-02 Mike Kestner <mkestner@novell.com>
23126 * ComboBox.cs: restructure grab and general mouse event handling.
23127 Make the composite control raise mouse events like it was a single
23128 control for leaves/enters/motion/up/down events. fix dropdown list
23129 coordinate mangling and refactor it into the scrollbar subclass to
23130 reduce code duplication. Fixes #78282 #78361 and #78457.
23132 2006-06-02 Mike Kestner <mkestner@novell.com>
23134 * ScrollBar.cs: remove Capture setting/clearing, as it happens
23135 automatically in the Control.WndProc.
23137 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23139 * FileDialog.cs: fix crash when running SharpChess, which sets the
23140 FilterIndex to 2 with only one Filter.
23142 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23144 * ToolBar.cs: add SizeSpecified property.
23145 * ToolBarButton.cs: when the ButtonSize is calculated by the container,
23146 try to figure out our real size, otherwise fallback to what the
23149 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
23151 * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
23152 * Control.cs (WndProc): MS always calls the DefWndProc to pass
23155 2006-06-01 Mike Kestner <mkestner@novell.com>
23157 * ListView.cs: revamp the focus management in ListView. It still
23158 causes churn of LostFocus/GotFocus emissions on clicks, but it's
23159 better than not handling focus at all. Will revisit when pdb feels
23160 the general focus handling is solid. Fixes #78526.
23162 2006-06-01 Jackson Harper <jackson@ximian.com>
23164 * TreeView.cs: Set the default border style in the constructor.
23165 - Move painting to use OnPaintInternal instead of capturing
23166 WM_PAINT, this is the correct way of doing things
23167 - UpdateBelow shouldn't invalidate the scrollbar area
23168 - Cap the top on update below in case the node was above the top
23169 of the viewport rectangle.
23170 - ExpandBelow and Collapse below need to obey Begin/End Update.
23171 * TreeNode.cs: Make is_expanded internal so the treenode
23172 collection can change it without firing the whole event chain.
23173 * TreeNodeCollection.cs: When clearing all the child nodes make
23174 sure to recalc the visible order.
23175 - Improve algo for remove the top node
23177 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
23179 * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
23180 SendMessage directly calling window procedures, which in turn might
23183 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
23185 * Control.cs: Don't handle WM_SETFOCUS if the same window already
23186 has focus (works around X11 sending a FocusIn after our SetFocus)
23187 * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
23189 2006-06-01 Alexander Olk <alex.olk@googlemail.com>
23191 * Mime.cs: Fix for the NET_2_0 build.
23192 NameValueCollection needs StringComparer now.
23194 2006-05-31 Chris Toshok <toshok@ximian.com>
23196 * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
23197 return (via an out parameter) the starting X of the column.
23198 (UpdateVisibleColumn): track change to FromPixelToColumn.
23199 (HitTest): add a ColumnResize case here.
23200 (DrawResizeLine): new function, probably poorly named.
23202 * DataGrid.cs (.ctor): get rid of cached_currencymgr_events. We
23203 only need to keep one reference.
23204 (set_ListManager): same.
23205 (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
23206 Also, add support for HitTestType.ColumnResize.
23207 (OnMouseMove): add column resize behavior here, and change the
23208 cursor to the correct one as we move around the datagrid.
23209 (OnMouseUp): terminate the column resize if we're resizing.
23210 (ProcessGridKey): from the MS docs, Alt-0 enters the null value
23211 for the current cell.
23212 (ConnectListManagerEvents): use cached_currencymgr.
23213 (DisconnectListManagerEvents): fill this in, using
23214 cached_currencymgr.
23215 (SetCurrentCell): remove cached_currencymgr_events handling.
23216 (SetDataMember): only call DisconnectListManagerEvents if
23217 cached_currencymgr is != null.
23218 (SetDataSource): same.
23219 (OnListManagerCurrentChanged): cached_currencymgr_events ->
23220 cached_currencymgr.
23222 2006-05-31 Jackson Harper <jackson@ximian.com>
23224 * BindingManagerBase.cs: Remove somedebug code that creeped into
23226 * TreeNode.cs: We get the indent level dynamically right now, so
23227 don't track it as a member.
23228 * TreeNodeCollection.cs: Make sure all nodes added to the list
23229 have parents, treeviews/topnodes setup properly.
23230 - Don't attempt to track indent level.
23232 2006-05-30 Jackson Harper <jackson@ximian.com>
23234 * BindingContext.cs: Create the currency manager tables here.
23235 This allows us to more easily create null tables (when bad data
23236 members are used), and more easily create related currency
23238 * CurrencyManager.cs: All the table creation stuff is done by the
23239 binding context now.
23240 - Current should throw an exception if listposition is -1.
23241 - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
23244 2006-05-30 Mike Kestner <mkestner@novell.com>
23246 * ListView.cs: allow reexpansion of zero-width column headers.
23249 2006-05-28 Chris Toshok <toshok@ximian.com>
23251 * CurrencyManager.cs (get_Current): after the late binding
23252 listposition = -1 fix, we need to guard against it here and return
23253 null, otherwise we raise an exception (which is swallowed
23254 elsewhere, and breaks datagrid databinding.)
23256 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
23258 * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
23259 than WM_SYSKEY, don't throw if get something unexpected (#78507)
23261 2006-05-26 Jackson Harper <jackson@ximian.com>
23264 * ThemeWin32Classic.cs: For color comparisons just use the ARGB
23265 values, it's faster and it's all we care about (we don't care if
23266 the names aren't equal).
23267 * KeyboardLayouts.cs: Eliminate some dead code.
23269 * X11Keyboard.cs: Lazy init keyboard detection.
23270 - Cleanup access modifiers a little.
23272 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
23274 * XplatUIX11.cs: Once again, attempting to get layout just right.
23276 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
23278 * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
23279 the sizes of each link section, that will result in sizes that
23280 match DrawString's layout (Fixes #78391)
23282 2006-05-27 Alexander Olk <alex.olk@googlemail.com>
23284 * FileDialog.cs: If AddExtension property is true autocomplete the
23285 extensions in SaveFileDialog correctly. Fixes bug #78453.
23286 Set MyNetwork and MyComputer to "C:\" for windows. This should
23287 fix part 8 of bug #78446 for now.
23289 2006-05-26 Chris Toshok <toshok@ximian.com>
23291 * DataGrid.cs (ColumnStartedEditing): fill these in. for now just
23292 invalidate the current row header if we need to, but presumably
23293 we'll invalidate the row corrsponding to the bounds or
23295 (GridHScrolled): switch back to this method, as it's part of the
23296 public api. *sigh*.
23297 (GridVScrolled): same.
23298 (OnMouseWheel): hack up something that more or less works. Call
23299 GridHScrolled/GridVScrolled directly, instead of duplicating much
23300 of their code here.
23301 (EnsureCellVisibility): reinstate a bunch of this code, since we
23302 can't just set the scrollbar Value and expect to do all the work
23303 in the ValueChanged handler. Also, Call Update() after scrolling
23304 in one direction so the other XplatX11.ScrollWindow call has the
23305 proper stuff in the proper places.
23306 (EditCell): set is_editing to true before calling .Edit.
23308 * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
23309 don't bother comparing first.
23310 (OnKeyPress): call grid.ColumnStartedEditing before calling
23311 base.OnKeyPress. this will set is_changing and invalidate the row
23312 header if necessary.
23313 (ProcessKeyMessage): for WM_CHAR messages, call
23314 ProcessKeyEventArgs directly. swallow anything other than WM_CHAR
23317 * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
23318 it's done in the DataGrid.
23319 (NextState): call grid.ColumnStartedEditing, which takes care of
23320 invalidating the row header (and setting is_changing).
23322 * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
23323 here. it's done in the DataGrid.
23325 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23327 * Control.cs: allow changing the cursor when the mouse position is
23328 out of bounds but Capture is set.
23329 * LinkLabel.cs: handle the case when the mouse button is pressed on the
23330 linklabel but released somewhere else.
23332 2006-05-25 Jackson Harper <jackson@ximian.com>
23334 * TreeView.cs: When we get focus if there is no selected node make
23336 - Remove some uneeded setup code from Draw.
23337 * TreeNodeCollection.cs: If the tree doesn't have a top node when
23338 a new node is inserted make the new node the top.
23340 * Timer.cs: Use Utc time so that no local time zone stuff needs to
23341 be used (should be faster).
23343 2006-05-25 Chris Toshok <toshok@ximian.com>
23345 * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
23346 problem with the last commit.
23348 2006-05-25 Chris Toshok <toshok@ximian.com>
23350 * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
23351 need the invalidate call here, while scrolling right-to-left via
23352 the left arrow key (i.e. moving the editing cell while scrolling).
23354 * DataGrid.cs (.ctor): remove the initialization of
23355 ctrl_pressed/shift_pressed. We no longer track them using key
23356 up/down handlers, but by using Control.ModifierKeys. Also, switch
23357 to using ValueChanged handlers on the scrollbars instead of
23358 Scrolled event handlers. This simplifies a bunch of the scrolling
23360 (GridHValueChanged): rename from GridHScrolled, and change it to
23361 work with the new event args.
23362 (GridVValueChanged): same.
23363 (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
23364 (OnMouseWheel): actually scroll the datagrid. Don't change the
23366 (ProcessGridKey): correct all the keyboard navigation stuff I
23367 could find. Ctrl up/down/left/right/home/end work now.
23368 (EnsureCellVisibility): correct method name spelling. Also,
23369 simplify this a touch by not explicitly calling the
23370 ScrollToRow/ScrollToColumnInPixels methods. We just set the
23372 (OnKeyUpDG): no need for this method now.
23374 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23376 * LinkLabel.cs: display the OverrideCursor when hovering the label.
23379 2006-05-25 Chris Toshok <toshok@ximian.com>
23381 * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
23384 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
23386 * Application.cs: Moved setting of is_modal and closing to before
23387 we create the control, to allow the event handlers called as a
23388 result of creation affect closing. Also removed Gonzalo's previous
23389 change to setting DialogResult, the behaviour has been moved to
23392 - ShowDialog(): Removed explicit creation of the form, let RunLoop
23394 - ShowDialog(): If no dialog result is set, we need to return Cancel
23395 - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
23396 the close is cancelled
23398 2006-05-25 Jackson Harper <jackson@ximian.com>
23400 * StatusBar.cs: We only need to update the sizes of the other
23401 panels when we have auto size contents. Also we are only updating
23402 the contents of the panel, not the borders, so compensate for the
23403 border width (TODO: get this width from the theme somehow).
23404 * TreeView.cs: Scrollable is true by default
23405 - Use invalidate instead of refresh where needed
23406 - Factor the scrollable value into scrollbar updating
23407 - Update the scrollbars if the Scrollable property is altered
23408 - Update the selected node if its ImageIndex is changed
23409 - Handle null nodes in UpdateNode (mainly so we don't have to
23410 check if selected is null when updating it
23411 - Fix VisibleCount to use the ViewportRectangle so that scrollbars
23412 are factored into the visible count
23413 - Use VisibleCount for clarity in the code
23414 - When the font is changed we need to recurse through all the
23415 nodes and invalidate their sizes
23417 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23419 * Application.cs: set the DialogResult to fixed when the main form is
23420 hidden or destroyed while being modal.
23422 2006-05-25 Miguel de Icaza <miguel@novell.com>
23424 * Theme.cs: Use Tangoified messagebox icons.
23426 (GetSizedResourceImage): Also cope with width = 0 and do not
23427 trigger a warning in that case (0 means "give me your icon from
23428 the resouce, no special size needed).
23430 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
23432 * Application.cs: Leave runloop if the the main modal form is
23433 hidden (fixes #78484)
23435 2006-05-25 Atsushi Enomoto <atsushi@ximian.com>
23437 * BindingContext.cs : reject null datasource in Contains() and
23439 * CurrencyManager.cs : check data_member validity when data_source
23440 is dataset. When it is late binding, the initial position is -1.
23442 2006-05-24 Jackson Harper <jackson@ximian.com>
23444 * TreeNodeCollection.cs: Dont't recalculate the visible order on
23445 inserted nodes that aren't visible. This changes the
23446 max_visible_order which confuses scrollbar settings.
23447 - Use the enumerator to get the prev node instead of duplicating
23449 * TreeView.cs: Use new method for setting scrollbar values
23450 - Don't set the bounds every time the scrollbar is updated
23451 - When updating below the root node use an invalidate instead of a
23452 refresh to prevent the child controls (scrollbars) from being
23453 refreshed. (UpdateBelow still needs to be reworked anyways).
23454 - Reenable SetBottom now that visible orders are set correctly,
23455 added some debug code incase we ever get bad values there again.
23456 - Set the scrollbar max to 2 less then the max value, this
23457 compensates for the max value being one above the node count, and
23458 for scrollbars adding one extra "notch".
23459 - When drawing image nodes if there is an imagelist we draw the
23460 first image in the list if the supplied image index is out of the
23461 image list's bounds.
23463 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
23465 * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when
23466 we receive a size change from the WM (Fixes #78503)
23468 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
23470 * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip
23471 rectangle (Fixes #78501)
23473 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
23476 - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button
23478 - Fixed MouseMove to no longer switch pressed state unless the left
23479 mouse button is pressed. Atsushi provided the original patch (#78485)
23481 2006-05-24 Jackson Harper <jackson@ximian.com>
23483 * ScrollBar.cs: New internal methods that allow us to change a
23484 couple values on the scrollbar (the most common case is maximum
23485 and large change) without getting multiple invalidates.
23487 2006-05-24 Chris Toshok <toshok@ximian.com>
23489 * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
23490 (Edit): save off the original state in oldState, and set
23491 grid.is_editing to true.
23492 (OnKeyDown): abort editing if escape is pressed. also, call
23493 NextState if space is pressed.
23494 (OnMouseDown): call NextState.
23495 (NextState): factor out shared code from OnKeyDown and OnMouseDown
23496 here. Also, only invalidate the row header once (on the initial
23497 is_changing switch) to save on redraws.
23499 2006-05-24 Chris Toshok <toshok@ximian.com>
23501 * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
23502 if the value in the cell is different than it was before. This
23503 keeps us from triggering a layout when we move around a datarid
23504 with a highlighted cell.
23505 (Edit): suspend layout when creating/positining the text box, and
23506 resume passing false so we don't ever actually re-layout.
23507 (ReleaseHostedControl): same.
23508 (EnsureTextBox): reformat slightly, and set WordWrap to false.
23510 * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
23511 control-key sequences should go to the datagrid - remove that
23512 lock. Also, modify the conditions under which we move between
23513 cells when moving the cursor within a cell, and remove the "this"
23514 and "base" from field accesses. We weren't even consistent, given
23515 they all were in the base class.
23517 2006-05-24 Atsushi Enomoto <atsushi@ximian.com>
23519 * Binding.cs : (.ctor)
23520 An obvious NRE fix for BindingTest.CtorNullTest().
23522 2006-05-23 Chris Toshok <toshok@ximian.com>
23524 * TextBoxBase.cs (get_Text): don't add a trailing newline, add
23525 them between lines. This fixes some quirks editing cells in the
23528 2006-05-23 Jackson Harper <jackson@ximian.com>
23530 * TreeView.cs: Use begin/end update when doing expand/collapse all
23531 so that we don't get flicker on the scrollbar.
23533 2006-05-23 Jackson Harper <jackson@ximian.com>
23535 * TreeNode.cs: Bounds are computed 'on the fly' now. This allows
23536 treenode calculations to be independant of the painting code. To
23537 do this nodes track a visible order which is calculated by the
23539 - Call new methods for expanding/collapsing nodes. These methods
23540 use scrollwindow so we don't have to update everything below the
23542 * TreeView.cs: Refactored drawing and scrolling code. We don't
23543 need to update nodes when drawing anymore or calculate scrollbar
23545 - Added new methods for expanding/collapsing nodes. These methods
23546 use ScrollWindow so as to not have to redraw all the nodes below.
23547 * TreeNodeCollection.cs: Recalc visible order and scrollbars when
23548 we add/remove nodes or sort.
23549 - Handle removing the selected and the top node properly.
23551 2006-05-23 Chris Toshok <toshok@ximian.com>
23553 * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
23554 maybe this should actually happen in the datagrid code?
23555 (EndEdit): no need to invalidate anything, given that
23556 ReleaseHostedControl causes the datagrid to relayout, which
23557 invalidates everything anyway.
23559 * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
23560 in SetCurrentCell).
23561 (set_SelectionBackColor): call InvalidateSelection instead of
23563 (set_SelectionForeColor): same.
23564 (BeginEdit): Flesh this out a bit.
23565 (CancelEditing): only do any of this if we're editing/adding.
23567 (OnMouseDown): there's no need to cancel editing here, it's done
23569 (SetCurrentCell): only invalidate the current row header if it's a
23570 different row than the new one.
23571 (ShiftSelection): fix this to work like MS does.
23572 (ResetSelection): factor out the invalidation of selected_rows to
23573 InvalidateSelection.
23574 (SetDataSource): cancel any editing that's going on.
23576 * DataGridColumnStyle.cs
23577 (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
23578 call the non-interface version.
23580 * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
23581 header rectangle with the clip rectangle so we don't redraw the
23582 entire header for just a small area. Gets rid of the last flicker
23583 when horizontally scrolling.
23584 (DataGridPaintRow): same.
23586 2006-05-23 Mike Kestner <mkestner@novell.com>
23588 * ListViewItem.cs: remove size for line hack from LargeIcon layout.
23589 * ThemeWin32Classic.cs: don't draw line. it's really the top of a
23590 poorly placed checkbox on the MS control. Fixes Alex's unfiled
23591 Critical bug report.
23593 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
23595 * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
23596 and this fixes #78493
23598 2006-05-23 Miguel de Icaza <miguel@novell.com>
23600 * Theme.cs (GetSizedResourceImage): Scale images if the proper
23603 * FileDialog.cs: Do not change the background for the side bar as
23604 it wont work nicely with the theme, and also reduces the artifacts
23605 in rendering the icons (which I want to fix too).
23607 * MimeIcon.cs (ResourceImageLoader): Load images from assembly
23608 resources, not resgen resources.
23610 (PlatformDefaultHandler): Pull images using the new API.
23612 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
23614 * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
23615 a reference to the hwnd and will not remove it unless there are
23616 no pending exposures (fixes #78341)
23617 * XplatUI.cs: Improved debug
23619 2006-05-23 Atsushi Enomoto <atsushi@ximian.com>
23621 * MenuAPI.cs : don't handle OnClick event when it was not the left
23622 button. Fixed bug #78487.
23624 2006-05-23 Mike Kestner <mkestner@novell.com>
23626 * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
23627 prefer submenus to the top menu for item lookup, to avoid popping down
23630 2006-05-23 Alexander Olk <alex.olk@googlemail.com>
23632 * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
23633 Graphics.FillRectangle as the visual results are really bad (even
23634 on win). We now draw perfect arrows (and perfect shadows when the
23635 scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
23636 Pen.DashPattern to draw the dots of each line.
23638 2006-05-22 Alexander Olk <alex.olk@googlemail.com>
23640 * FileDialog.cs: Update the filename combobox when navigating through
23641 the ListView with the cursor keys. Fixes part 7 of bug #78446.
23643 2006-05-22 Mike Kestner <mkestner@novell.com>
23645 * ListView.cs: raise SelectedIndexChanged on keyboard selection.
23648 2006-05-22 Mike Kestner <mkestner@novell.com>
23650 * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
23651 requests. Fix a misspelled parameter and a copy paste exception error
23654 2006-05-22 Peter Dennis Bartok <pbartok@novell.com>
23656 * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
23657 to get the same width/height (5/13) on X11 as the default font has on
23658 win32. This means that our DefaultFont emSize is smaller than the
23659 the MS SWF equivalent (even thought the width/height stays the same)
23661 2006-05-20 Jackson Harper <jackson@ximian.com>
23664 * MdiWindowManager.cs:
23665 * InternalWindowManager.cs: Make sure to use the border width from
23668 2006-05-20 Jordi Mas i Hernandez <jordimash@gmail.com>
23670 * PrintDialog.cs: Implements printer details
23672 2006-05-19 Alexander Olk <alex.olk@googlemail.com>
23674 * FileDialog.cs: Added focus handling for PopupButtonPanel.
23675 Fixes part 1 and 2 of bug #78446
23677 2006-05-19 Peter Dennis Bartok <pbartok@novell.com>
23679 * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
23680 instead of sticking to the first ever calculated value
23682 2006-05-19 Mike Kestner <mkestner@novell.com>
23684 * ComboBox.cs: fix mouse motion selection to use MousePosition and
23685 PointToClient, since Capture is set. Fixes #78344.
23687 2006-05-19 Mike Kestner <mkestner@novell.com>
23689 * ListView.cs: match MS behavior in Details view where items are not
23690 drawn if Columns.Count == 0.
23691 * ThemeWin32Classic.cs: only highlight ListView selection if focused.
23692 Use a separate pen to draw the check, since changing the width affects
23693 the box as well. Fixes #78454.
23695 2006-05-18 Miguel de Icaza <miguel@novell.com>
23697 * ListView.cs: ArgumentOutOfRangeException, single versions of the
23698 exception should throw the name of the invalid argument.
23700 * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
23701 there are no files listed.
23703 2006-05-18 Jackson Harper <jackson@ximian.com>
23705 * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
23708 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
23710 * Control.cs: Brought back our old UpdateZOrder method as a private
23711 function and switched our calls from UpdateZOrder to the new one.
23712 This fixes the Paint.Net canvas disappearing bug.
23714 2006-05-18 Jackson Harper <jackson@ximian.com>
23717 * ThemeWin32Classic.cs:
23718 * InternalWindowManager.cs: Move the drawing into the theme,
23719 expose everything the theme should need from the window manager.
23721 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
23723 * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value
23724 from the call to NativeWindow to avoid walking up the parent chain
23725 further than needed (speeds up setting cursors and avoids setting
23726 the wrong cursor if a parent has another cursor defined)
23727 * Cursor.cs: When loading an icon as cursor, MS uses the center of
23728 the icon as hotspot, not what's contained as hotspot in the icon
23729 file. This fixes the perceived drawing offset seen with Paint.Net
23731 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
23734 - Store the calculated rectangle in Hwnd object and use it when
23735 setting the client size
23736 - Force Toolwindows to always be type Dock, to ensure they're on top
23738 2006-05-18 Mike Kestner <mkestner@novell.com>
23740 * ComboBox.cs: first pass at ComboBox rework. Layout is more
23741 consistent with MS positioning. IntegralHeight, ItemHeight, Sizing.
23742 Correctly initialize textcontrol and ListBox on DropDownStyle changes.
23743 Substantial refactoring to remove confusing nested classes. Coding
23744 standard and Get+Set->property refactorings. Shift to index based
23745 highlighting in ComboListBox instead of constantly using IndexOf and
23746 Items[]. Add invalidations on resize for DropDownList to fix ugliness
23747 in FileDialog growth. Draw borders manually since Simple mode needs
23748 to look like two independent controls. Make listbox border
23749 conditional to DropDownStyle. Improved OwnerDraw support.
23751 2006-05-18 Sebastien Pouliot <sebastien@ximian.com>
23753 * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor.
23754 Don't set the disposed graphics to null, so we can throw the "right"
23755 exception if the graphics is reused later (added a flag to avoid
23756 double disposing). Some behaviours are different under 2.0 and are
23757 filled under bug #78448.
23759 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
23761 * Control.cs: When double-buffering is enabled, we need to reset
23762 our graphics context between paint calls. Otherwise, any
23763 transformations and other alterations on the context will
23764 become cumulative (#77734)
23766 2006-05-18 Mike Kestner <mkestner@novell.com>
23768 * ListView.cs: do focused item selection like MS on clicks.
23769 Rework focus handling for ItemControl so LostFocus invalidates as
23771 * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
23772 the ListView ItemControl has focus.
23774 2006-05-17 Peter Dennis Bartok <pbartok@novell.com>
23776 * XplatUIX11.cs: If client_window ends up being width or height zero
23777 due to border settings, move it off window inside whole_window (#78433)
23779 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
23781 * Mime.cs: Shrink the mime file cache correctly.
23783 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
23785 * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
23787 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
23789 * XplatUIX11.cs (AddExpose): More sanity checks
23791 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
23794 - AddExpose: Don't add expose ranges outside the size of our
23796 - Cast opacity values to Int32 to avoid crashes with certain
23798 - Added disabled code paths that protect against illegal cross-
23799 thread painting (Developers.exe)
23801 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
23803 * ProgressBar.cs: Invalidate the control when it's resized
23804 since block size is based on control size. (#78388)
23806 2006-05-16 Miguel de Icaza <miguel@novell.com>
23808 * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
23809 of setting the incoming argument to the "reset" value, we set the
23810 this.datamember to string.empty (before we were invalidating the
23815 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
23817 * Form.cs: Only apply transparency settings after the form
23818 is created. (Fixes #77800)
23820 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
23822 * ApplicationContext.cs: Grab the HandleDestroyed event so
23823 we know when to fire OnMainFormClosed
23825 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
23827 * Application.cs: Introduced sub-class to allow tracking of
23828 threads and centralized triggering of the event mess for
23829 ThreadExit, AppExit, etc.. (#76156)
23831 2006-05-16 Alexander Olk <alex.olk@googlemail.com>
23834 - Do not return a null icon index value for a mime subclass.
23835 Instead try the main mime type class too.
23836 - Seems that some newer distributions don't have a link to some
23837 gnome default icons anymore. So check the default gnome dir too.
23840 2006-05-16 Jackson Harper <jackson@ximian.com>
23842 * MdiClient.cs: Don't paint the parent background image if we have
23843 our own background image.
23845 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
23848 - PerformLayout: Do not shrink space filled by DockStyle.Fill
23849 controls, all filled controls are supposed to overlap (#78080)
23850 - UpdateZOrder is supposed to update the control's z-order in the
23851 parent's z-order chain. Fixed to behave like that
23852 - BringToFront: Removed obsolete code
23853 - SendToBack: Simplyfied
23854 - SetChildIndex: Trigger layout calculations when Z-order changes
23855 since layout is done by z-order
23857 2006-05-16 Chris Toshok <toshok@ximian.com>
23859 [ fixes bug #78410 ]
23860 * DataGrid.cs (set_AlternatingBackColor): use
23861 grid_drawing.InvalidateCells instead of Refresh().
23862 (set_BackColor): call grid_drawing.InvalidateCells.
23863 (set_BackgroundColor): use Invalidate instead of Refresh.
23865 * DataGridDrawingLogic.cs (InvalidateCells): new function, just
23866 invalidate the cell area.
23868 2006-05-15 Chris Toshok <toshok@ximian.com>
23870 [ fixes bug #78011 ]
23871 * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
23872 on to DataGridPaintRow.
23873 (DataGridPaintRow): take a clip argument, and only draw the cells
23874 which intersect it. same with the not_usedarea.
23876 * Theme.cs (DataGridPaintRow) add @clip parameter.
23878 * DataGrid.cs (ScrollToColumnInPixels): simplify, use
23879 XplatUI.ScrollWindow.
23880 (ScrollToRow): same.
23882 * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
23883 with last column which was causing a gray swath to appear with the
23884 XplatUI.ScrollWindow code.
23886 2006-05-15 Chris Toshok <toshok@ximian.com>
23888 * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
23889 use XplatUI.ScrollWindow.
23890 (VerticalScrollEvent): use XplatUI.ScrollWindow.
23892 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
23894 * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
23896 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
23898 * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
23899 file since there are no equivalent X11 cursors
23901 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
23903 * MonthCalendar.cs : DateTimePicker should reflect selected date
23904 on mouse*up*, not mouse*down*. Fixed originally reported part of
23907 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
23909 * TabControl.cs : When argument index is equal or more than tab
23910 count, just ignore. Fixed bug #78395.
23912 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
23914 * Control.cs: Dispose all child controls when control is diposed (#78394)
23916 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
23918 * ColorDialog.cs: Finally it is possible to select the color with
23921 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
23923 * PrintDialog.cs: Fix typo
23925 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
23927 * PrintDialog.cs: PrintDialog is not resizable
23928 * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
23929 color. Made some ToolBar drawing methods protected virtual.
23931 2006-05-13 Jordi Mas i Hernandez <jordimash@gmail.com>
23933 * PrintDialog.cs: Implementation of the PrintDialog
23935 2006-05-12 Chris Toshok <toshok@ximian.com>
23937 * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
23938 thumb, instead use MoveThumb. This has the side effect of making
23939 most of the other thumb moving machinery use MoveThumb as well.
23940 (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
23941 need to actually invalidate the rectangle where the new thumb will
23943 (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
23944 We force an Update() after, so it's not as fast as it could be,
23945 but at least there's zero flicker and no droppings.
23946 (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
23947 (UpdateThumbPos): add another argument (dirty), which says whether
23948 or not to calculate/add dirty regions which we later invalidate.
23949 For cases where we know we're going to use MoveThumb, we pass
23950 false for this. Otherwise, pass true.
23952 2006-05-12 Jackson Harper <jackson@ximian.com>
23954 * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
23957 2006-05-12 Peter Dennis Bartok <pbartok@novell.com>
23959 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
23960 and GetClipRegion methods and UserClipWontExposeParent property.
23961 * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
23962 overriding UserClipWontExposeParent property, setting to false, since
23963 Win32 handles the required expose messages to draw our clipped parent
23965 * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
23966 PaintEventStart to set the user clip region if set.
23968 - Now internally tracking the Region for the control since we need to
23969 store it if the handle is not yet created and only set it when it
23970 becomes created. Before setting the region forced handle creation
23971 - Added code to draw the parents underneath a user-clipped region
23972 * Hwnd.cs: Added UserClip property
23974 2006-05-12 Chris Toshok <toshok@ximian.com>
23976 * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
23977 (set_Maximum): same.
23978 (set_Minimum): same.
23979 (set_SmallChange): same.
23980 (OnMouseUpSB): remove the call to refresh when releasing the
23981 thumb. We shouldn't need it.
23983 2006-05-12 Miguel de Icaza <miguel@novell.com>
23985 * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
23986 AutoSize set to None, we do not need to relayout everything, we
23987 just need to invalidate the current region.
23989 (Draw): Do not draw the entire ClientArea, just redraw the
23990 clip area being passed.
23992 * MdiClient.cs: Make MdiClient constructor with the Form argument
23995 2006-05-12 Jackson Harper <jackson@ximian.com>
23997 * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
23998 parents background image, but strangely not their own.
23999 - (DrawStatusBarPanel): Take into account horizontal alignment
24000 when drawing the strings and icons.
24002 2006-05-12 Mike Kestner <mkestner@novell.com>
24004 * ListBox.cs: avoid invalidations for focus when the collection is
24007 2006-05-12 Chris Toshok <toshok@ximian.com>
24009 * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
24010 invalidate the entire thumb area. Call InvalidateDirty which
24011 limits the redraw to the thumb itself and surrounding pixels.
24013 * XplatUIX11.cs (ScrollWindow): optimize copying.
24015 2006-05-12 Chris Toshok <toshok@ximian.com>
24017 * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
24018 Figure out the positioning/layout in a single pass instead of
24019 multiple recursive invocations. Speeds up the initial display of
24020 the data grid. Also, make many things private that were
24021 originally public but unused outside this class.
24023 2006-05-11 Jackson Harper <jackson@ximian.com>
24025 * MdiClient.cs: Improved layout code.
24027 2006-05-11 Jonathan Chambers <jonathan.chambers@ansys.com>
24029 * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
24030 not SelectedObject.
24032 2006-05-11 Chris Toshok <toshok@ximian.com>
24034 * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
24035 union of that will always be {0,0,width,height}.
24037 2006-05-11 Jackson Harper <jackson@ximian.com>
24039 * Form.cs: Match MS's DefaultSize for forms (they must have
24040 changed the size in sp2).
24042 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
24044 * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
24046 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
24048 * TextControl.cs : Fixed bug #78109. This incorrect position
24049 comparison caused crash on automatic line split.
24050 * TextBoxBase.cs : reduce duplicate code.
24052 2006-05-10 Jackson Harper <jackson@ximian.com>
24054 * MdiClient.cs: Active form is only sent to the back when using
24055 the Next form functionality, when a form is clicked the current
24056 active shouldn't be sent to the back.
24057 - Layout the mdi windows when the container is first made visible.
24058 * Form.cs: Give the MdiClient a ref to the containing form when we
24061 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
24063 * LinkLabel.cs : link_font could be uninitialized, so populate one
24064 before actual use. Fixed bug #78340.
24066 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
24068 * XplatUIX11.cs : clipboard format native value is IntPtr.
24071 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
24074 - Instead of showing context menus directly we send WM_CONTEXTMENU,
24075 which is passed up the parent chain by DefWndProc
24076 - We now handle WM_CONTEXTMENU to display any menu, or pass it
24077 to DefWndProc (#77956)
24078 * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
24080 2006-05-10 Jackson Harper <jackson@ximian.com>
24082 * MdiClient.cs: We need to remove the controls from the mdi
24083 collection, when we close the window.
24084 * MdiWindowManager.cs: Special handling of closing mdi windows.
24085 * InternalWindowManager.cs: Make the close method virtual so the
24086 mdi window manager can handle it specially.
24088 2006-05-10 Jordi Mas i Hernandez <jordimash@gmail.com>
24091 - Recalculate grid when the data source has changed
24092 - Matches styles provided by user from all data sources types
24093 * DataGridTableStyle.cs: For columns that provided by the user set the
24094 with the preferred value is there was unassigned.
24095 * CurrencyManager.cs: throw OnItemChanged event
24097 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
24099 * PictureBox.cs: Don't animate until handle is created. Start animation
24100 when handle is created.
24102 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
24104 * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
24106 * XEventQueue.cs: We don't need to provide the extra info
24108 2006-05-10 Jackson Harper <jackson@ximian.com>
24110 * MdiClient.cs: If the mdi clients parent form has a background
24111 image set, we draw that background image for the mdi area's
24114 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
24116 * TextBoxBase.cs: Set IBeam cursor (#78347)
24118 2006-05-10 Mike Kestner <mkestner@novell.com>
24120 * ToolBar.cs: fix some text padding issues with ButtonSize
24121 calculation. Update the default size to match MS documentation.
24122 * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
24123 button size. Fixes #78296.
24125 2006-05-10 Mike Kestner <mkestner@novell.com>
24127 * ListBox.cs: use is_visible for scrollbar positioning in case the
24128 control isn't on screen yet. Fix off by one with Right vs Width
24129 usage. Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
24131 2006-05-10 Jackson Harper <jackson@ximian.com>
24133 * X11Dnd.cs: Drop to a control with another control on top of it.
24134 * ToolBar.cs: Work on a copy of the buttons list, so that it can
24135 be modified in click handlers. TODO: Look for similar problems in
24138 2006-05-09 Jackson Harper <jackson@ximian.com>
24140 * Form.cs: Window managers need the old window state when setting
24142 * InternalWindowManager.cs: Allow the base mdi window manager to
24143 handle more of the MDI only stuff (like maximize buttons).
24144 * MdiWindowManager.cs: Fix some snafus in changing the window
24145 state. Add all the menu functionality, for both popup and
24147 * MdiClient.cs: When a new form is selected the currently
24148 activated form is sent to the back, this matches MS.
24149 - Implement a new method to activate the next mdi child window.
24151 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
24154 - Added new InternalCapture method to allow controls to prevent
24155 the capture behaviour on the click handlers
24156 - Switched to use InternalCapture
24158 - Using InternalCapture to prevent mouse captures from being released
24159 on mouse button release (Fixes #78100)
24160 * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
24161 returns Form borders if a caption is present. (Fixes #78310)
24163 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
24165 * TreeNode.cs: Changed serialization .ctor to not require every field
24166 to be present. (#78265)
24167 * OwnerDrawPropertyBag.cs: Added serialization .ctor
24169 2006-05-05 Alexander Olk <alex.olk@googlemail.com>
24171 * MimeIcon.cs: for is faster than foreach for strings.
24173 2006-05-05 Mike Kestner <mkestner@novell.com>
24175 * CheckedListBox.cs: update check handling code to not use selected.
24176 * ListBox.cs: rewrite of mouse selection handling to correspond to MS
24177 behavior for visual feedback, motion response, shift/ctrl handling,
24178 and properly deal with all 4 selection modes. Updates to bounds
24179 handling logic. Add scroll wheel support. [Fixes #77842]
24181 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
24184 - Moved adding of Implicit controls into .ctor. That way, subsequent
24185 creation of the controls will not cause them to think they are
24186 toplevel windows (fixes #78200 header problem)
24187 - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
24188 - Switched visibility setting of header control to use internal field
24189 to avoid triggering handle creation
24190 - Now checking if handle is created before causing a refresh when items
24191 are added (This makes us now match handle creation time with MS)
24192 * Splitter.cs: Removed loading of private splitter cursor, switched to
24193 Cursors version now that that is loading the right ones
24194 * Cursors.cs: Load proper splitter cursors from resources
24195 * Cursor.cs: Added second method of loading resource cursors for the
24196 VS.Net users amongst us
24198 2006-05-05 Mike Kestner <mkestner@novell.com>
24200 * ListView.cs: give header_control a minimum size based on the
24203 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
24205 * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
24206 window seems to do that with metacity, so set that type. (#78120)
24208 2006-05-05 Mike Kestner <mkestner@novell.com>
24210 * ListViewItem.cs: fix Details mode checkbox layout bug.
24211 * ThemeWin32Classic.cs: draw a ListView column header for unused space
24212 at the end of the header, if it exists. [Fixes for #78200]
24214 2006-05-04 Jackson Harper <jackson@ximian.com>
24216 * MdiClient.cs: Add a helper property to get the container form.
24217 * MdiWindowManager.cs: We have to make sure to use the menu origin
24218 when drawing the icons and buttons, this fixes maximized window
24219 icons/buttons on win32.
24220 * InternalWindowManager.cs: Reset the restore captions when a
24221 window goes from Maximized to Minimized and vice versa. Move the
24222 DrawMaximizedButtons into the MdiWindowManager source, tool
24223 windows can't be maximized. NOTE: This could use a little
24224 refactoring if time ever permits.
24226 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
24228 * TextBox.cs: Add MWFCategoryAttributes
24229 * TextBoxBase.cs: Add MWFCategoryAttributes
24230 * Form.cs: Add MWFCategoryAttributes
24232 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
24234 * Control.cs: Add MWFCategoryAttributes
24235 * ScrollableControl.cs: Add MWFCategoryAttributes
24237 2006-05-03 Alexander Olk <alex.olk@googlemail.com>
24239 * ThemeWin32Classic.cs: Draw the ToolBar top border only if
24240 Divider is true. Fix a little glitch in PropertyToolBar
24243 2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
24246 - Dispose: Call base.Dispose, this causes the disposed event
24247 to be fired (and probably other, more important stuff)
24248 - SetVisibleCore: Set is_visible to true after creating the
24249 window so that the window still gets created invisible (if
24250 WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
24251 to generate a WM_ACTIVE message
24252 * Form.cs: Call Dispose when we want to destroy the window, instead of
24253 just destroying the handle (Dispose will do that for us)
24255 - RootWindow also needs a queue, so we can properly process the
24256 property change events from RootWindow (like Activate)
24257 - Generatic synthetic WM_ACTIVE message when the active window is
24260 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
24262 * LinkLabel.cs: Trigger a recalc of our label dimensions when
24265 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
24267 * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
24268 for determining width and height (image might not be assigned if
24269 we're drawing an imagelist)
24271 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
24273 * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
24274 * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
24276 * Theme.cs: No longer returns hardcoded menu height, instead calls
24278 * Form.cs (OnLoad): Scaling happens before triggering Load events
24281 2006-05-01 Mike Kestner <mkestner@novell.com>
24283 * MenuItem.cs: fix NRE for text == null. Fixes #78250.
24285 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
24287 * TextBoxBase.cs: Removed Fixme
24288 * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
24290 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
24293 - ScrollWindow: We were passing hwnd.ClientRectangle which returns
24294 the rectangle relative to the parent, considering borders. We
24295 don't really want that.
24296 - ScrollWindow: Fixed warning to be more understandable
24297 * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
24298 scrollbars and scroll only the visible area
24299 * RichTextBox.cs: Removed debug output
24301 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
24303 * NumericUpDown.cs (Text): Just use base
24304 * UpDownBase.cs: Ensure txtView is created before using it
24306 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
24308 * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
24309 casting to IntPtr to avoid 64bit overflow errors
24311 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
24314 - AllowDrop: Don't force handle creation.
24315 - CreateHandle: Added call to tell driver if we're allowed to drop
24317 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
24319 * FileDialog.cs: Remember the last directory not only for the
24320 current instance but also for new FileDialog instances.
24322 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
24324 * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
24325 broke sending async messages
24327 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
24330 - ScrollWindow: Fixed method. We finally generate expose events again
24331 for scrolled areas. This was causing 'garbage' when scrolling
24332 textbox and other controls that used ScrollWindow
24333 - Switched from using the regular queue for paint events to the MS
24334 model of 'generating' paint events when the queue is empty.
24335 We use the new XQueueEvent.Paint subclass to store which windows
24337 - AddExpose now takes the x/y/width/height of the exposed area
24338 and inserts the window into the paint queue if not already there
24339 - InvalidateWholeWindow: Switched to use new AddExpose method
24340 - UpdateMessageQueue: Added which queue to monitor for paint events
24341 - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
24342 the unlikely case nothing above handles it. We reset the expose
24343 pending states to get them off the queue.
24344 - GetMessage: Now pulls a paint event if no other events are in the
24346 - Invalidate: Switched to new AddExpose method
24347 - PeekMessage: Updated to understand pending paint events
24348 - UpdateWindow: Fixed logic bug. We were only updating if the window
24349 didn't need updating. Also switched to sending WM_PAINT directly,
24351 * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
24352 and random access Remove(). The random access is needed to handle
24353 UpdateWindow() where a WM_PAINT is sent directly without accessing
24355 * ScrollBar.cs: Added Update() calls to cause immediate updates to
24356 allow for better feedback when scrolling. Scrollbars are small and
24357 the immediate update should make it 'feel' more responsive without
24358 slowing things down. ScrollBar still needs it's invaliate logic
24359 updated to not always invalidate the whole bar on certain changes.
24361 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24364 (BackColor): if the control does not support a transparent background,
24365 return the default backcolor when the parent backcolor is transparent.
24367 2006-04-28 Peter Dennis Bartok <pbartok@novell.com>
24369 * Application.cs: Updated to new StartLoop/GetMessage API
24370 * RichTextBox.cs: Provide some output on RTF parsing errors
24371 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
24372 new queue_id argument to GetMessage and PeekMessage to allow faster
24373 handling of per-thread queues in drivers.
24374 * Hwnd.cs: Added Queue tracking and property
24375 * MenuAPI.cs: Updated to new StartLoop/GetMessage API
24376 * XEventQueue.cs: Added thread trackingA
24377 * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
24379 - Implemented new per-thread queue
24380 - GetMessage: Fixed return/break behaviour on several cases. We were
24381 returning stale messages in some cases, instead of just processing
24384 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
24386 * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
24388 2006-04-27 Peter Dennis Bartok <pbartok@novell.com>
24390 * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
24391 fixed off-by-one comparisons between Width/Height and Right/Bottom.
24393 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
24395 * PropertyGridView.cs: Fix drop down width.
24397 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
24399 * ThemeWin32Classic.cs: Peter thinks that three additional lines are
24400 a mess in DrawToolBar, so I removed one of them.
24402 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
24404 * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
24405 needed (clip). Otherwise we get artifacts.
24407 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
24409 * FixedSizeTextBox.cs: Added constructor to allow specifying which
24411 * UpDownBase.cs: Set the spinner control to be fixed height vertical,
24412 and switched FixedSizeTextBox to only be fixed vertical (#78116)
24413 * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
24414 if it matches the scale base font (avoids unneeded scaling)
24416 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
24418 * X11DesktopColors.cs: One gtk_init_check should be enough
24420 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
24422 * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
24425 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
24428 - Generate OnTextChanged for Backspace even if we're only deleting
24429 the current selection
24430 - When setting the Text property, only select all text if the
24431 control does not have focus when it is being set. Otherwise
24432 just place the cursor at the beginning of the control
24434 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
24436 * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
24437 Added a little helper to draw PropertyGrid ToolBar with a different
24438 border and a different BackColor.
24439 * PropertyGrid.cs: Some background parts didn't get painted with the
24440 correct background color. Added a class that helps us to draw the
24441 correct border for PropertyGridView and a class that helps us to
24442 draw ToolBars with a different backcolor
24443 * PropertyGridView.cs: Draw PlusMinus with the correct colors.
24445 2006-04-25 Jonathan Chambers <jonathan.chambers@ansys.com>
24447 * PropertyGrid.cs: Bug 78196, font size, and splitter location.
24448 * PropertyGridView.cs: Bug 78196, font size, and splitter location.
24450 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
24452 * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
24453 into the palette entries. Also, since we're working on a copy
24454 we needed to copy the palette back onto the bitmap.
24455 * Cursor.cs: Same fix as XplatUIWin32.cs.
24457 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
24459 * ImageListStreamer.cs: Need to read the var (or we're off)
24461 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
24463 * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs,
24464 XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
24465 TextBoxBase.cs: Unused var fixes
24466 * AxHost.cs: Small 2.0 fix
24467 * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms
24468 as it seems that is what at least Metacity expects. This will make
24469 icons show up on 64bit platforms. We still have some 64bit size
24470 issues, though, since the startup app window size still won't match.
24472 2006-04-25 Mike Kestner <mkestner@novell.com>
24474 * *.cs: cleanup newly reported exception var unused warnings.
24476 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
24478 * ThemeWin32Classic.cs: Button image alignment now matches exactly
24481 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
24483 * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
24484 image. The image position is always the same, no matter if the
24485 button is pressed or not.
24487 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
24489 * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
24490 selection and set the correct filename for SaveFileDialog.
24491 Patch by Emery Conrad.
24493 2006-04-24 Mike Kestner <mkestner@novell.com>
24495 * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
24496 check for item.X outside the ClientRect instead of item.Y. Fixes
24499 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24501 * ImageListStreamer.cs: some images store a wrong grow factor, so don't
24502 trust that value blindly and do some sanity check. Fixes bug #77814.
24504 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24506 * ImageListStreamer.cs: save the mask as a 1bpp image.
24508 2006-04-21 Mike Kestner <mkestner@novell.com>
24510 * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
24511 pass Checked and Indeterminate to the Theme Engine. Improve
24512 encapsulation with ListBox.
24513 * ListBox.cs: Keep a StringFormat instead of calculating it every item
24514 draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
24515 nested types. Move all CheckState functionality to CheckedListBox.
24516 Make IntegralHeight work like MS. Rewrite of Layout engine. Fix
24517 OwnerDrawVariable layout/rendering. Fix multicolumn rendering. Fix
24518 ScrollAlwaysVisible handling. Refactor "selected" collections to use a
24519 single base list. Fix scrollbar sizing and placement to mirror MS.
24520 * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
24522 * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
24523 for CheckedListBox by using new DrawItemState info. Center the
24524 checkboxes on the items. Use new StringFormat property.
24526 2006-04-18 Jackson Harper <jackson@ximian.com>
24528 * Form.cs: MdiChildren don't do default locations the same way as
24529 regular forms. This prevents a crash when trying to position the
24532 2006-04-17 Jonathan Chambers <jonathan.chambers@ansys.com>
24534 * PropertyGridTextBox.cs: Formatting, copyright
24535 * PropertiesTab.cs: Formatting
24536 * PropertyGrid.cs: Formatting
24537 * PropertyGridView.cs: Formatting, fix drop down, enabled double
24538 click toggling of values
24540 2006-04-17 Peter Dennis Bartok <pbartok@novell.com>
24542 * KeyPressEventArgs: Added 2.0 only setter for KeyChar
24543 * Control.cs (.ctor): verify_thread_handle is static, don't reset
24544 every time a control is created
24545 * Application.cs: Removed obsolete EnableRTLMirroring method
24547 2006-04-18 Gert Driesen <drieseng@users.sourceforge.net>
24549 * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
24550 SelectedIndex to -1. Fixes bug #78121.
24552 2006-04-17 Jackson Harper <jackson@ximian.com>
24554 * Binding.cs: Handle null values for Current and BindingContext.
24555 This occurs when binding is a little delayed.
24556 * CurrencyManager.cs: return null for Current when there are no
24558 - Hookup to the listchanged event on the DataView and update
24559 bindings when the list is changed. This fixes late binding of
24562 2006-04-17 Jackson Harper <jackson@ximian.com>
24565 * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
24568 2006-04-15 Alexander Olk <alex.olk@googlemail.com>
24570 * ThemeWin32Classic.cs: Draw disabled combo button in the correct
24572 * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
24573 with the correct ButtonState
24575 2006-04-14 Peter Dennis Bartok <pbartok@novell.com>
24577 * XplatUIX11.cs: Improved distinguishing between window types to
24578 tell the WM a type closer to what the app wants (Fixes #78107)
24580 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
24582 * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
24585 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
24587 * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
24588 drawing code to reflect the size grip changes
24590 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24592 * ImageListStreamer.cs: fix handling of the mask that follows the main
24593 bitmap when deserializing and serialize it properly. The generated mask
24594 should better be a 1bpp image, but I'll do that later.
24596 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
24598 * FileDialog.cs: Show something in the DirComboBox on *nix if the
24599 path doesn't fit into some of our Current.Places
24601 2006-04-13 Jackson Harper <jackson@ximian.com>
24603 * ComboBox.cs: Use borders instead of drawing our own decorations,
24604 try to obey correct rules for heights.
24607 * ThemeClearLooks.cs:
24608 * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
24609 this is now handled by borders.
24610 - Remove unused DrawListBoxDecorationSize method.
24612 2006-04-13 Mike Kestner <mkestner@novell.com>
24614 * MenuAPI.cs: null guarding for the disbled click check fixes crash
24617 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
24619 * ThemeWin32Classic.cs:
24620 - Fixed CPDrawStringDisabled
24621 - Corrected drawing of disabled menu items
24622 - Fixed drawing of disabled radio buttons (bug #78095)
24623 - Draw check in a disabled CheckBox with color ControlDark
24625 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
24627 * Form.cs: Use the provided width when calculating the menu size;
24628 when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
24629 and ClientSize.Width won't be updated yet
24630 * Application.cs: Use Visible instead of Show() to make form visible,
24631 this way we create the handle later and menusize is considered
24633 2006-04-12 Mike Kestner <mkestner@novell.com>
24635 * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
24638 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
24640 * TextBox.cs: Implemented context menu
24642 2006-04-12 Mike Kestner <mkestner@novell.com>
24644 * ListView.cs: implement box selection. fixes #77838.
24645 * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
24647 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
24649 * XplatUIX11.cs: Added setting of window type when transient window
24650 is created (metacity would move it otherwise)
24651 * X11Structs.cs: Added WINDOW_TYPE atoms
24652 * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
24653 background (the control is Opaque but still wants transparent
24656 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
24658 * Control.cs: Added OnPaintBackgroundInternal to allow controls
24659 that set Opaque but don't mean it (like all ButtonBase-derived
24660 controls) to still draw their background
24661 * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
24664 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
24666 * Control.cs (PaintControlBackground): Set the graphics object
24667 on our PaintEvent to null to prevent it from being disposed
24668 when the PaintEvent gets disposed
24670 2006-04-12 Alexander Olk <alex.olk@googlemail.com>
24672 * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
24673 * ThemeNice.cs, ThemeClearlooks.cs: fix typo
24675 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
24678 - Added transparency check to BackColor property. Transparent
24679 backgrounds are only allowed if the control styles permit it
24680 - Added recursive painting of parent control background and
24681 foreground if a control with a transparent backcolor is drawn
24682 (Thanks to Tim Ringenback for providing his 'hack' as a base
24683 for this patch) Fixes #77985 and #78026.
24684 - Added Opaque style check before calling OnPaintBackground, no
24685 need to draw the background if the control is opaque
24686 - Removed ControlAccessibleObject owner variable (inherited from
24687 base, no need to define again)
24688 - Added some documentation links explaining the drawing events
24691 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
24693 * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
24694 that the affected control is the located at the left border of our
24695 parent (Fixes #77936)
24697 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
24699 * TextBoxBase.cs: When rendering disabled or readonly controls,
24700 draw the background with 'Control' instead of 'Window' color as
24701 long as the user hasn't specifically set a color
24703 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
24705 * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
24706 since that won't be updated if the user types text (only if it's
24707 programatically set)
24709 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
24711 * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
24712 layout changes do to app-triggered resizes will have the proper
24713 display rectangle for layout
24715 2006-04-11 Alexander Olk <alex.olk@googlemail.com>
24717 * ThemeWin32Classic.cs:
24718 - Make use of the SystemBrushes and SystemPens wherever possible
24719 - Corrected some highlight colors
24720 - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
24722 * Theme.cs: Added Empty field to CPColor struct
24724 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
24726 * ScrollabeControl.cs: We need to consider whether or not a scrollbar
24727 is displayed when calculating the display rectangle. Thanks to Mike
24728 for teaching me the err of my ways.
24730 2006-04-10 Peter Dennis Bartok <pbartok@novell.com>
24732 * ScrollableControl.cs:
24733 - Rewrote DisplayRectangle code, now returning the proper x/y coords
24734 (instead of 0,0) and we now return the real width/height instead of
24735 just the clientrectangle, adjusted for padding. The rectangle is
24736 now cached and created by the new CalculateDisplayRectangle method.
24737 - Created new CalculateDisplayRectange method, which basically does
24738 what get_DisplayRectangle() did originally, but now using the
24739 right edge instead of DisplayRectangle to determine the size of
24741 - get_Canvas(): Fixed it to properly calculate canvas for
24742 right/bottom controls which seem to be placed to the right/bottom
24743 of any controls that have a fixed location
24744 - Removed TODO that's taken care of
24745 - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
24746 and SetDisplayRectLocation according to new MSDN2 docs
24747 - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
24748 event when that is called, this is added for compatibility
24749 - ScrollControlIntoView(): Implemented.
24750 - Switched scrollbars to be implicit, they shouldn't be selectable
24751 * ContainerControl: Now that ScrollControlIntoView is implemented, we
24752 call it when the active control is set/changed
24753 * ScrollBar.cs: Added support for generating Win32 scrollbar messages
24754 * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
24755 implicit_control variable (used for native Win32 message generation)
24756 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new
24757 HorizontalScrollBarHeight and VerticalScrollBarWidth properties
24758 * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
24759 * XplatUIStructs.cs: Added ScrollBarCommands enum
24761 2006-04-10 Jackson Harper <jackson@ximian.com>
24764 * CheckedListBox.cs:
24771 * PrintPreviewControl.cs:
24777 * UpDownBase.cs: Fixup base event overrides.
24779 2006-04-06 Mike Kestner <mkestner@novell.com>
24781 * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
24782 all user-initiated value changes to min <= value <= max-thumbsz+1.
24783 (set_Value): check for vert/horiz when calculating new thumb position.
24784 (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
24786 (OnMouseMoveSB): refactor the thumb dragging code and refine
24787 invalidation logic to reduce flicker.
24788 (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
24789 (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
24790 (UpdateThumbPosition): small code readability cleanup
24792 2006-04-10 Alexander Olk <alex.olk@googlemail.com>
24794 * ThemeNice.cs: Small UI polishing. Draw borders a little bit
24797 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
24799 * ThemeNice.cs: Use a better graphics effect when a button is pressed
24801 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
24803 * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
24804 * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
24805 This dramatically reduces the number of Pen.Dispose calls.
24806 Where possible call ResPool methods only once instead of calling it
24807 over and over again (for example for the same color).
24809 2006-04-06 Mike Kestner <mkestner@novell.com>
24811 * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
24812 Also remove an unused private field on the collection. Fixes #77972.
24814 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
24816 * ThemeNice.cs: Added ToolBar drawing code
24818 2006-04-06 Mike Kestner <mkestner@novell.com>
24820 * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
24821 I'm assuming that means we need to look up the toplevel for the
24822 provided control. Fixes the crash trace in #77911 but exposes another
24823 crash in some strange reflection usage in NDocGui.
24825 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
24827 * ThemeNice.cs: Gave it a little silver touch and added Images
24829 * FontDialog.cs: FontDialog is not resizable
24830 * FileDialg.cs: Added SizeGripStyle.Show
24832 2006-04-05 Jackson Harper <jackson@ximian.com>
24834 * KeyboardLayouts.cs: Remove warning.
24836 2006-04-05 Jackson Harper <jackson@ximian.com>
24838 * Control.cs: Enable OnPaintInternal so we can use it for drawing
24839 all of our controls instead of Paint +=.
24854 * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
24855 use OnPaintInternal. Remove Width/Height and Visible checks in
24856 paint handler, this is done at a higher level now.
24857 * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
24858 * PaintEventArgs.cs: Add a handled flag so controls that don't
24859 want anymore painting after OnPaintInternal can make sure OnPaint
24862 2006-04-05 Mike Kestner <mkestner@novell.com>
24864 * Form.cs: fix the menu WndProc hacks to respect the native enabled
24865 state of the form, so that we don't process events when Modal dialogs
24866 are up. Fixes #77922.
24868 2006-04-05 Alexander Olk <alex.olk@googlemail.com>
24870 * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
24873 2006-04-05 Mike Kestner <mkestner@novell.com>
24875 * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
24877 2006-04-05 Mike Kestner <mkestner@novell.com>
24879 * ListView.cs (HeaderMouseMove): null guarding for the over column
24880 when setting up the drag_to_index. Fixes #78015.
24882 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
24884 * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
24885 in the taskbar. Transient windows seem to accomplish that.
24887 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
24890 - Re-enabled CreateParams.X/Y code for FormStartPosition
24891 - Added code for manual placement when creating the Control
24892 - Incomplete patch to treat MDI forms differently when
24893 setting the ClientSizeCore. (Still need to figure out handling
24896 - When we're explicitly setting the X/Y position of a non-Child
24897 window, let the WM know. Metacity really wants this.
24899 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
24901 * ThemeNice.cs: Added CPDrawButton
24903 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
24905 * ThemeNice.cs: Changed the color for focused buttons and activated
24906 the arrows for small scroll buttons.
24908 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
24910 * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
24911 anymore. Changed some method modifiers to protected (virtual)
24912 * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
24914 * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
24915 Updated drawing of menus, buttons and progressbars; added
24918 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24920 * ImageListStreamer.cs: implemented serialization/deserialization
24923 2006-04-03 Alexander Olk <alex.olk@googlemail.com>
24925 * ThemeWin32Classic.cs:
24926 - Removed all the DrawFrameControl stuff; CPDrawButton,
24927 CPDrawCheckBox and CPDrawRadioButton are now handled directly
24929 - Updated and corrected the drawing code of CPDrawButton,
24930 CPDrawCheckBox and CPDrawRadioButton to better match ms
24931 - Updated theme checkbox and radiobutton code to use the CP*
24934 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
24936 * XplatUIX11.cs: Enable clipping again now that the libgdiplus
24939 2006-03-31 Jackson Harper <jackson@ximian.com>
24941 * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
24943 * UpDownBase.cs: Don't CreateGraphics manually, use a
24944 Refresh. Ideally we would invalidate the correct areas here.
24946 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
24949 - We now track the mapping state of windows. If a window (or
24950 one of it's parents) is not mapped we no longer permit
24951 WM_PAINT messages to be generated since we'd otherwise get
24952 lots of BadMatch X errors. Jackson did all the work figuring
24954 - Destroying the caret if the window it's contained in is
24955 destroyed. Can't use regular DestroyCaret method since it
24956 might fall into a drawing function (trying to remove the
24957 caret) and with that generate new BadMatch errors. Again,
24958 Jackson tracked this down.
24959 - Changed DestroyChildWindows to SendWMDestroyMessages, we now
24960 make sure we send the messages to all windows. (The old code
24961 would send the WM_DESTROY to the window, and then all child
24962 windows would be 'gone' because the WM_DESTROY handle lookup
24963 would no longer find the destroyed window)
24964 * Hwnd.cs: Added Mapping property to track mapping state of hwnd
24965 * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
24967 2006-03-31 Jackson Harper <jackson@ximian.com>
24969 * ScrollableControl.cs: Dont recalc if we are not visible.
24971 2006-03-31 Mike Kestner <mkestner@novell.com>
24973 * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
24974 the visibility branch.
24976 2006-03-31 Jackson Harper <jackson@ximian.com>
24978 * ScrollBar.cs: Cap values when incrementing/decrementing.
24980 2006-03-31 Mike Kestner <mkestner@novell.com>
24982 * MenuAPI.cs: setup menu.tracker for popup/context menus.
24983 * ToolTip.cs: guard against timer expirations with no active control.
24984 Not sure why it happened.
24986 2006-03-31 Mike Kestner <mkestner@novell.com>
24988 * ThemeWin32Classic.cs: add some horizontal padding space for the tip
24990 * ToolTip.cs: Position the tooltip based on where the cursor is at
24991 popup time, not at MouseEnter time. Add a Down state so that we don't
24992 redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
24993 positioning offset. Lookup DisplaySize at positioning time, since it
24994 can theoretically change during invocation.
24995 * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
24996 * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
24998 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
25000 * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
25001 Fixes behaviour when the Text property of the box is String.Empty
25003 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
25005 * XplatUIX11.cs: Only send mouseleave for our client windows, not
25006 for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
25009 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
25011 * FileDialog.cs: Visual enhancement for the popup buttons in
25014 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
25016 * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
25019 2006-03-30 Alexander Olk <alex.olk@googlemail.com>
25021 * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
25022 highlighted menu items to match ms
25024 2006-03-30 Peter Dennis Bartok <pbartok@novell.com>
25026 * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
25028 2006-03-30 Mike Kestner <mkestner@novell.com>
25030 * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
25031 * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
25032 go active to account for HotLight to Selected transition.
25033 * MenuItem.cs: add internal Selected prop. Fill out the Status
25034 property by calculating it from item info. Add HotLight,
25035 NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
25037 2006-03-30 Mike Kestner <mkestner@novell.com>
25039 * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
25041 2006-03-29 Jackson Harper <jackson@ximian.com>
25043 * Form.cs: Implement TODO.
25045 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
25047 * PrintPreviewDialog.cs: Implemented missing methods and events; still
25048 missing proper dialog setup in the constructor
25050 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
25052 * ProgressBar.cs: Added 2.0 Style property that apps seem to use
25054 - Implemented CheckForIllegalCrossThreadCalls, removed TODO
25055 - Fixed ResetBindings and removed TODO
25056 - Added check for cross-thread calls to get_Handle()
25057 - Added Marshaller attribute for set_Font to satisfy class status
25058 * FontDialog.cs: Removed TODOs that seemed implemented
25059 * UpDownBase.cs: Removed unneeded TODO and Fixme
25060 * MessageBox.cs: Implemented support for Default button and removed TODO
25061 * FileDialog.cs: Removed obsolete TODO
25062 * DomainUpDown.cs: Removed obsolete TODO
25063 * ButtonBase.cs: Removed obsolete TODO
25064 * XplatUIWin32.cs: Removed obsolete TODO
25066 - Removed obsolete TODO
25067 - Calling CheckAcceptButton when the acceptbutton is changed to allow
25068 internal status updates
25069 - Making sure the active control is selected when the control is created
25070 * CurrencyManager.cs: Removed obsolete TODO
25072 2006-03-29 Mike Kestner <mkestner@novell.com>
25074 * *.cs: fix remaining corcompare issues for 1.1 API with the exception
25075 of PrintPreviewDialog and RichTextBox.
25077 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
25079 * Theme.cs: Added a little helper to SystemResPool to get the Dark,
25080 DarkDark, Light and LightLight colors for a specific color
25081 * ThemeWin32Classic.cs:
25082 - Use Button drawing code to draw RadioButtons and CheckBoxes with
25083 Appearance = Button
25084 - Make use of the new ResPool helper CPColor
25085 - Draw ProgressBar and StatusBar with correct 3D borders
25087 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
25089 * ColorDialog.cs: Return selected color. Fixes bug #77940.
25091 2006-03-28 Mike Kestner <mkestner@novell.com>
25093 * ListView.cs: fix Icon layout to plan for scrollbar widths when
25094 calculating col/row counts.
25096 2006-03-28 Mike Kestner <mkestner@novell.com>
25102 switch to explicit interface method implementation for some methods
25103 corcompare identifies as inconsistent with MS.
25105 2006-03-28 Mike Kestner <mkestner@novell.com>
25109 add a few missing methods from the class status output.
25111 2006-03-28 Alexander Olk <alex.olk@googlemail.com>
25113 * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
25116 2006-03-28 Mike Kestner <mkestner@novell.com>
25118 * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
25120 2006-03-27 Mike Kestner <mkestner@novell.com>
25122 * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
25123 the Hilight state to adapt to Alex's CPDrawBorder3D changes.
25125 2006-03-27 Alexander Olk <alex.olk@googlemail.com>
25127 * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
25129 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
25131 * ThemeWin32Classic.cs:
25132 - GroupBox: Inserted a little gap between the text and the lines
25134 - Made the code in CPDrawBorder3D more readable
25135 - Corrected the drawing location of the up and down arrows in
25138 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
25140 * ControlPaint.cs: Corrected line widths in DrawBorder for
25141 ButtonBorderStyle Inset and Outset
25143 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
25145 * ThemeWin32Classic.cs:
25146 - Rewrote the totally broken CPDrawBorder3D method. That was
25147 one of the main problems for the terrific ThemeWin32Classic
25149 - Updated and corrected Button drawing
25150 - Correct the dimensions of the SizeGrip to match ms ones
25151 - Removed a small drawing glitch in DrawComboBoxEditDecorations
25152 * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
25153 Border3DStyle.Sunken to match ms.
25155 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
25157 * ThemeWin32Classic.cs: First small part of the "de-uglify
25158 ThemeWin32Classic" effort, SizeGrip
25160 2006-03-24 Jackson Harper <jackson@ximian.com>
25162 * XplatUIX11.cs: Give a max idle time of one second, this matches
25163 MS and forces an Idle event every second when there are no other
25164 events in the queue.
25166 2006-03-24 Mike Kestner <mkestner@novell.com>
25168 * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
25169 * ListView.Item.cs: fix layout issues with null image lists and images
25170 smaller than checkbox size.
25171 * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
25172 mode like MS does. It's weird, but consistent. ;-)
25175 2006-03-24 Mike Kestner <mkestner@novell.com>
25177 * ListView.cs: Scroll wheel support for the item control. Fixes
25180 2006-03-23 Jackson Harper <jackson@ximian.com>
25182 * ScrollableControl.cs: Special case negative sized areas, not
25184 * MonthCalendar.cs: Save the rect of the clicked date so we can
25185 use it for invalidation.
25186 - Try to cut down on the number of invalidates
25187 - Invalidate the rect the mouse is over and was over when moving
25188 the mouse, so we get the focus box following the cursor.
25190 2006-03-23 Mike Kestner <mkestner@novell.com>
25192 * ThemeWin32Classic.cs: fix FullRowSelect selection background and
25193 focus rectangle drawing. Fixes #77835.
25195 2006-03-23 Mike Kestner <mkestner@novell.com>
25197 * XplatUIX11.cs: rework the fix for #77828 by changing the order of
25198 the if and else if and reverting back to the original == check on the
25201 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
25203 * FontDialog.cs: Update the example panel if the selected index of
25204 the fontListBox changes.
25206 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
25208 * FileDialog.cs: Make FileDialog remember which directory it was in
25209 last in the same execution.
25211 2006-03-22 Mike Kestner <mkestner@novell.com>
25213 * FileDialog.cs: make the DropDownMenu on the toolbar display
25214 RadioChecks since they are mutually exclusive and that's what MS does.
25216 2006-03-22 Mike Kestner <mkestner@novell.com>
25218 * Theme.cs: add Color param to CPDrawMenuGlyph.
25219 * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
25220 checks and radio marks and arrows are visible on highlighted items.
25221 * ControlPaint.cs: update to use new Theme signature.
25223 2006-03-22 Mike Kestner <mkestner@novell.com>
25225 * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
25226 is active. Fixes #77870.
25228 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
25230 * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
25231 to be focused/selected after startup
25233 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
25236 - Corrected behaviour of Color, AllowFullOpen, FullOpen,
25237 CustomColors and ShowHelp properties
25238 - Some internal rewrites to get better results when using the
25241 2006-03-22 Mike Kestner <mkestner@novell.com>
25243 * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
25244 HoverSelection. Fixes #77836.
25246 2006-03-22 Mike Kestner <mkestner@novell.com>
25248 * FileDialog.cs: bugfixes for the toolbar. Use PushButtons instead of
25249 ToggleButtons. (De)Sensitize the Back button around a stack count of
25250 1, not 0. Update ButtonSize based on a pixel count of the win32
25251 control. Adjust the toolbar size/location for new button size.
25253 2006-03-22 Jackson Harper <jackson@ximian.com>
25255 * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
25257 * ScrollBar.cs: When doing increments and decrements we need to
25258 set the Value property so that ValueChanged gets raised. A
25259 possible optimization here would be to make an internal SetValue
25260 that doesn't invalidate immediately.
25261 * ToolTip.cs: Tooltips get added to their container (when
25262 supplied) so they get disposed when the container is disposed.
25263 - Don't create tooltips for String.Empty. This prevents all these
25264 little 2-3 pixel windows from showing up when running nunit-gui
25265 and driving me mad.
25266 * Form.cs: Don't set topmost when setting the owner if the handles
25267 haven't been created yet. The topmost set will happen when the
25268 handles are created.
25270 2006-03-22 Peter Dennis Bartok <pbartok@novell.com>
25273 - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
25274 - SetVisible: Sending WINDOWPOSCHANGED for all controls when made
25275 visible (to allow them to recalculate their sizes)
25277 2006-03-21 Mike Kestner <mkestner@novell.com>
25279 * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
25280 methods. Removed a ton of redundant code. Still not really happy with
25281 the border rendering, but I think that's mainly because of the
25282 ControlDarkDark being black instead of a dark grey. Depending on how
25283 close we want to be, we might want to revisit those color choices.
25284 Among the new features added during the refactor were DropDownArrow
25285 pressed rendering, Disabled image rendering. Proper flat appearance
25286 boundary rendering. Removed the Divider and Wrapping dividers since I
25287 can't figure out any combination of themes and conditions to make the
25288 MS control draw a horizontal line on a toolbar despite what the
25289 Divider property docs indicate.
25290 * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
25291 conditions and incorrect layout. Updated to coding standard.
25292 * ToolBarButton.cs: refactored layout and positioning code from
25293 ToolBar to here. Invalidate wherever possible instead of forcing
25294 redraws of the whole toolbar.
25295 (Known remaining issues: explicit ButtonSize smaller than provided
25298 2006-03-21 Mike Kestner <mkestner@novell.com>
25300 * ContextMenu.cs (Show): use the position parameter instead of just
25301 showing at the MousePosition.
25303 2006-03-21 Jackson Harper <jackson@ximian.com>
25305 * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
25306 control handle this.
25307 * TreeNodeCollection.cs: If we are clearing the root node we need
25308 to reset top_node so calcs can still happen.
25309 * ThemeWin32Classic.cs: This is a Flags so we need to check
25312 2006-03-21 Jackson Harper <jackson@ximian.com>
25314 * DataGrid.cs: Create columns when the binding context has been
25316 * X11Structs.cs: Keysyms are uints.
25317 - Add size to fix build.
25319 2006-03-21 Peter Dennis Bartok <pbartok@novell.com>
25321 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
25323 - Added ResetMouseHover method to allow controls to retrigger
25324 hovering if they need it more than once
25325 - Implemented MouseHoverTime and MouseHoverSize properties
25326 * Timer.cs: Start() must reset the interval
25327 * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
25330 2006-03-21 Jackson Harper <jackson@ximian.com>
25332 * X11Keyboard.cs: improved layout detection. Move the nonchar
25333 tables into this file.
25334 * KeyboardLayouts.cs: Move the tables into resource files.
25336 2006-03-21 Mike Kestner <mkestner@novell.com>
25338 * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
25340 2006-03-21 Alexander Olk <alex.olk@googlemail.com>
25342 * Mime.cs: Various speed optimizations. Looking up mime types
25343 is now 2 times faster than before
25345 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
25347 * CreateParams.cs: Added internal menu field
25349 - Switched call order for UpdateBounds; now we always call
25350 the one that also takes ClientSize, and we're calculating the
25351 client size via driver method in the others. The previous
25352 method of tracking client size by difference wasn't working
25353 for forms where even the starting client size wouldn't match
25354 the overall form size (due to borders) (Part of fix for #77729)
25355 - CreateParams(): Do not use parent.Handle unless the handle is
25356 already created. Causes havoc with Nexxia and throws off our
25357 creation of controls
25359 - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
25360 - Switched handling of ConfigureNotify over to new PerformNCCalc
25361 method (consolidates code)
25362 - Changed RequestNCRecalc to use new PerformNCCalc method
25363 - Added calls to RequestNCRecalc when menus and borders are changed
25364 to allow app to set NC size. (Part of fix for #77729) This matches
25365 when MS send a WM_NCRECALC on Win32 windows.
25366 - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
25367 (Part of fix for #77729). This matches what MS does, they also
25368 send that message when the form is made visible.
25369 - XException.GetMessage: Improved usability of X errors by including
25370 a translation of the window into Hwnd and Control class
25371 - Improved debug info for window creation, reparenting and destruction
25372 - Created helper method WindowIsMapped() [Currently not used]
25373 * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
25375 - CreateParams: Now setting our menu on the new internal menu field
25376 - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
25377 avoid calculating the same property twice
25379 - Improved usability of ToString() for debugging purposes
25380 - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
25381 determine the height of the menu, instead of just the font. This
25382 required to also create a graphics context and to keep a bmp
25383 around (for performance reasons)
25385 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
25387 * MenuAPI.cs: Added OnMouseUp method
25389 - Now remembering the requested client size, avoids size errors
25390 - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
25391 instead of base if the menu is active. This is required due to
25392 control now capturing and releasing on down/up and it would
25393 prematurely release our menu capture
25395 2006-03-17 Jackson Harper <jackson@ximian.com>
25397 * KeyboardLayouts.cs: Add the czech layouts.
25399 2006-03-16 Jackson Harper <jackson@ximian.com>
25401 * Control.cs: Use the viewport space when sizing not the controls
25402 client size, so things like ScrollableControl that effect the
25403 viewport size (when scrollbars are added) are computed correctly.
25404 * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
25406 - Handle creating BindingManagers for null data sources.
25407 * DataGrid.cs: Bind the cached_currencymgr_events to the real data
25408 source, otherwise when rows are added they are added to the 'fake'
25409 datasource and we will crash when trying to set the position in
25411 - Use Implicit scrollbars on the datagrid so they arent
25414 2006-03-16 Jackson Harper <jackson@ximian.com>
25417 * InternalWindowManager.cs:
25418 * MdiWindowManager.cs:
25419 * X11Keyboard.cs: I really want Mike to love me again (fix
25420 compiler warnings).
25422 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
25425 - OnMouseDown: Switch to editing mode when clicking on the cell
25426 even if we're clicking on the cell that's currently
25428 - ProcessGridKey: Left/Right now wrap like MS.Net does
25429 - ProcessGridKey: Tab now knows to add a new row when tab is
25430 pressed in the cell of the last column of the
25432 - ProcessGridKey: Enter now adds another row if pressed in the last
25433 row and selectes the new row, same column cell
25434 - ProcessGridKey: Home/End navigate columns, not rows, like
25435 originally implemented
25436 - Broke ProcessKeyPreview code out into an extra Internal method
25437 so it can be called from the edit code
25438 * DataGridTextBox.cs (ProcessKeyMessage):
25439 - Switched to accept Tab keypresses
25440 - Added F2 handling to allow jumping to the end of the edited cell
25441 - Added logic to allow moving caret left/right inside edited cell
25442 and making the edited cell jump when the caret hits cell borders
25443 - Tab and Enter are now passed to the datagrid after being handled
25445 - Removed capture code now that Control handles it
25446 - set_SelectionStart now ensures caret is visible
25448 2006-03-16 Jackson Harper <jackson@ximian.com>
25450 * TrackBar.cs: Debackwards the increment/decrement for handling
25451 mouse clicks on the bar with vertical trackbars.
25452 * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
25453 bottom to match MS.
25455 2006-03-16 Mike Kestner <mkestner@novell.com>
25457 * ListView.cs: make shift/ctrl keyboard and mouse selection
25458 consistent with the MS control. Fix a bug in
25459 SelectedListViewItemCollection.Clear that was pissing me off for the
25460 better part of a day because the collection was being altered
25461 underneath us as we walked the list.
25463 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
25465 * Control.cs: Not sure how we could miss this so long, but it seems
25466 that MS.Net has Capture set all the way from before calling
25467 OnMouseDown through sending the mouse events until after
25468 OnMouseUp. This will fix DataGrid's selection being set to end
25469 at the location of the MouseUp.
25471 2006-03-15 Jackson Harper <jackson@ximian.com>
25473 * BindingContext.cs: Check the binding after its added so that it
25474 can initialize the binding managers and hookup to events.
25475 * Binding.cs: Data members seem to sometimes include rows/cols in
25476 the format Row.Column we now take this into account.
25477 - Hookup to the position changed event so we can update the
25478 control when the position has changed in the data set.
25479 * CurrencyManager.cs: Take into account the row/col naming
25480 convention when creating dataset tables.
25481 * BindingContext.cs: Using a newer better way of storing
25482 datasource/datamember pairs. Hopefully this better matches MS for
25483 looking up binding managers.
25486 2006-03-15 Jackson Harper <jackson@ximian.com>
25488 * BindingContext.cs: The currency manager needs the data member
25489 name, if the member is a data set we use the name to find the
25491 * CurrencyManager.cs: When creating the list prefer an IList over
25493 - Attempt to create a DataTable from a DataSet (TODO: might need
25494 some better error checking here, although MS doesn't seem to have much)
25495 - If we have a DataTable create a view and use it as our list.
25497 2006-03-15 Mike Kestner <mkestner@novell.com>
25499 * ListView.cs: keep a matrix of the icon mode layout to facilitate
25500 keyboard navigation. Support Up/Down/Left/Right selection correctly
25501 for all 4 View modes.
25502 * ListViewItem.cs: add internal row/col fields for icon layouts.
25504 2006-03-15 Jackson Harper <jackson@ximian.com>
25506 * TabControl.cs: Redraw the tabs when we resize so their newly
25507 calculated sizes are drawn on screen.
25508 * X11Keyboard.cs: Begginnings of XIM support. We also now support
25509 composite characters.
25510 * XplatUIX11.cs: Keyboard driver needs to know about focus changes
25511 - filter events so that composite characters can be created
25513 * X11Structs.cs: Add XIMProperties enum.
25515 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
25517 * Control.cs (BringToFront, SendToBack): Don't use window or handle
25518 unless it's created
25520 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
25522 * Control.cs (PerformLayout): We don't need to consider visiblity
25523 for anchoring, only for docking. This fixes 'whacky' alignment
25524 in listbox and other controls that use implicit scrollbars after
25525 the previous PerformLayout patch
25526 * ListBox.cs: Switched to use implicit scrollbars
25528 2006-03-14 Mike Kestner <mkestner@novell.com>
25532 - chain up the "new event" overrides to base and use
25533 OnEvent to raise them. Part of fix for bug #76509.
25535 2006-03-14 Alexander Olk <alex.olk@googlemail.com>
25537 * FileDialog.cs: Do not select an item in the parent directory
25540 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
25542 * Control.cs (PerformLayout): It would seem that we considered
25543 invisible windows for our layout. Not quite the right thing
25544 to do. Now we don't any longer, thereby fixing bug #76889.
25546 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
25548 * Control.cs (CanFocus): I goofed. A control can have focus
25549 even though it's not selectable. Made it match MS docs.
25551 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
25553 * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
25554 center by default (fixes #76895)
25555 * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced
25556 all uses of Border3DSides.All with the explicit ORd together
25557 Left|Right|Top|Bottom because I assume that nobody was aware
25558 that All also implies a center fill. Most places I checked had
25559 a fill right above.
25560 * ProgressBarStyle.cs: Added
25562 2006-03-13 Mike Kestner <mkestner@novell.com>
25564 * ListView.cs: fix breakage in drag shadow header positioning
25565 from Peter's csc compilation fix.
25567 2006-03-13 Mike Kestner <mkestner@novell.com>
25569 * ListView.cs: fix NRE produced by backspacing twice in a focused
25572 2006-03-13 Mike Kestner <mkestner@novell.com>
25574 * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
25576 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
25578 * Hwnd.cs: Added fixed_size field to track windows whose size cannot
25580 * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
25581 the allowed size before making programmatic size changes
25583 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
25585 * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are
25586 set, metacity is broken and will still use the emty sizes in
25587 the struct. (Fix for #77089)
25589 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
25591 * XplatUIStructs.cs: Split WindowStyles into WindowStyles and
25592 WindowExStyles and marked both enums as Flags
25593 * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
25594 NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
25595 to match WindowStyles split
25597 - SetWMStyles: Added cehck to not apply WM attributes to Child windows
25598 - Updated to match WindowStyles split
25600 - Fixed FosterParent creation, was using ExStyle on the Style field
25601 (This should help with Popup focus issues)
25602 - Updated to match WindowStyles split
25604 2006-03-13 Jackson Harper <jackson@ximian.com>
25606 * MdiWindowManager.cs: Use the system menu height. Fixes some
25607 strange sizing issues.
25609 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
25611 * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
25613 - Scroll to caret after inserting text (#77672)
25614 - Make scroll range one pixel higher, fixes off-by-one error (and
25615 makes underlines visible on the last line)
25617 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
25619 * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
25620 the keyboard state from being stuck with keys in 'pressed' state when
25621 focus is switched away via keyboard
25622 * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
25623 reset the keyboard if no X11 KeyUp events are expected to come
25624 * X11Structs.cs: Switched type of Visible to bool to match driver
25626 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
25629 - Switched caret to be just 1 pixel wide, matches MS and looks less
25631 - Moved caret display 1 pixel down from the top of the control
25633 - InsertCharAtCharet: Update the selection start if moving the caret
25634 (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
25635 - No longer always creating the caret when the caret methods are
25636 called. Only the actual ShowCaret/HideCaret will do that now
25637 - Only setting caret visible if the owner control has focus
25638 - UpdateView: Added invalidation-shortcut logic for center and right
25639 aligned text. Previously we'd update all according to the left
25640 logic which caused drawing errors. Also fixed height of invalidated
25641 areas, now properly invalidating the whole area (was off-by-one)
25642 - owner_HandleCreated: Always generate the document when the
25643 handle is created; this ensures that
25645 - Fixed situation where caret would disappear under the right
25646 window border, also improved scrolling behaviour on left-
25648 - Fixed right-aligned textboxes to have a border to the
25649 right instead of the caret being under the right border
25651 - Switched from 'nested' to simple visible/not visible tracking
25652 for caret (part of fix for #77671)
25653 - No longer passing through translated FocusIn/FocusOut messages
25654 since we were notifying too often and the wrong windows. Instead
25655 we just notify our focussed window of receiving or loosing focus
25656 * XplatUIWin32.cs: Switched from 'nested' show/hide
25657 counting for caret to simple visible yes/no behaviour (part of
25660 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
25662 * Mime.cs: Remove debug code...
25664 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
25666 * MimeGenerated.cs: Removed
25667 * Mime.cs: Mime now reads the mime data (magic, globs, aliases
25668 and subclasses) from /usr/(local/)share/mime and
25669 $HOME/.local/share/mime.
25671 2006-03-10 Jackson Harper <jackson@ximian.com>
25673 * MdiWindowManager.cs: Recalc the NC area when a window is
25674 maximized/restored so that the menu area is drawn on forms that
25677 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
25679 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
25680 XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
25681 us to force a WM_NCCALCRESIZE message being sent. This is needed
25682 for MDI maximizing.
25684 2006-03-10 Jackson Harper <jackson@ximian.com>
25686 * Form.cs: We need to use the ActiveMenu when calculating menu
25688 - Fix nullref when the window manager hasn't been created yet.
25689 * Control.cs: Fix nullref when we try to bring a control to the
25690 front that has no parent.
25691 * MdiWindowManager.cs: Use the MaximizedMenu for calculating
25693 - Add a dummy item to the maximized menu so it always has the
25694 correct height. Otherwise when there are no menus we don't get our
25698 2006-03-10 Jackson Harper <jackson@ximian.com>
25700 * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
25702 * Form.cs: Make the window_state internal so the window managers
25704 - When an MDI child is maximized let its window manager create the
25705 main menu (so it can add its icon).
25706 - Notify the window managers of state changes
25707 - Let the window manager paint its buttons and handle button
25708 clicks on the menu when it is maximized.
25709 * InternalWindowManager.cs: Move the prev_bounds into the mdi
25710 window manager, since tool windows don't use it, only mdi windows.
25711 - Tell the main form that we don't want it to handle NCPAINT
25712 itself to avoid extra painting.
25713 - Handle clicks on a maximized windows menu.
25714 - Handle window state changes
25715 - Handle minimize/maximize clicks correctly by setting the window state.
25716 * MdiWindowManager.cs: Add an icon menu that (the menu you get
25717 when clicking on the forms icon).
25718 - New method to create a forms maximized menu. This is its normal
25720 - Handle window state changes.
25721 - Handle sizing of maximized windows. Maximized windows are just
25722 drawn bigger then the parent visible area. All controls are still
25723 there, they are just outside the visible area (this matches windows).
25724 * MdiClient.cs: No scrollbars when a child window is maximized.
25725 - Let the children windows figure out how big they should be when
25726 sizing maximized windows.
25727 - Implement a version of ArrangeIconicWindows somewhat similar to
25728 Windows version. There are some little differences, but I don't
25729 think any app will rely on the layout of minimized mdi windows.
25731 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
25733 * Padding.cs: Several fixes to allow compiling with csc 2.0
25735 2006-03-09 Jackson Harper <jackson@ximian.com>
25738 * MenuItem.cs: Cheap hack so we can add items to the list without
25739 the events being raised. This allows adding mdi items during
25740 drawing. TODO: Should probably find a better time to add the items.
25742 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
25744 * ThemeWin32Classic.cs:
25745 - CheckBox_DrawText: Added logic to not wrap if not enough space
25746 is available (Fix for bug #77727)
25747 - RadioButton_DrawText: Added logic not to wrap if not enough
25748 space is available (Fix for bug #77727). Also removed some
25749 duplicate code, DrawString always drawing the regular text
25750 before hitting the if statement.
25752 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
25754 * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
25756 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
25758 * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
25759 * ContainerControl.cs: Partial implementation of some 2.0 scaling
25760 methods. Moved the new 2.0 properties into alphabetical order with
25761 other properties and added MonoTODO tags
25763 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
25765 * AutoScaleMode.cs: Added. Fix build.
25767 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
25769 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
25770 XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
25771 and was requiring premature handle creation for calls from above
25772 * Form.cs, Control.cs: Removed handle arguments from calls to
25773 CalculateClientRect()
25775 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
25777 * ListView.cs (HeaderMouseMove): Fix csc compilation.
25778 drag_column.column_rect is MarshalByRef and can't be used that way
25780 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
25782 * AxHost.cs: Added deserialization constructor for
25783 AxHost+State (fixes 77743)
25785 2006-03-09 Mike Kestner <mkestner@novell.com>
25788 - Added column drag reordering for details view.
25789 - fixed behavior when mouse is dragged off column and
25790 AllowColumnReorder is false.
25791 * ColumnHeader.cs: clone the format too in Clone.
25792 * Theme.cs: add DrawListViewHeaderDragDetails method.
25793 * ThemeWin32Classic.cs:
25794 - impl new method for drawing drag column shadows and targets.
25795 - support column offset for details mode in DrawListViewItem.
25797 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
25799 * TextControl.cs: Reset the char_count when the document is cleared
25800 (Fixes bug reported on mono-winforms mailing list)
25802 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
25804 * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
25805 of calling base we simply process the key ourselves, since both
25806 DefWindowProc and the handled method would set m.Result.
25809 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
25811 * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
25812 method also moves the window; instead implemented a copy of
25813 Control.ScaleCore (Part of fix for #77456)
25815 - Created new CreateGraphicsInternal method to allow providing
25816 a graphics context when no handle is created without triggering
25817 handle creation. (Part of fix for #77456)
25818 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
25820 - Switched Constructor to require TextBoxBase instead of Control (to
25821 allow uncast access to CreateGraphicsInternal)
25822 - Safeguarded use of owner.Handle property. No longer accessing it
25823 unless the handle is already created.
25824 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
25825 - Now triggering a recalc when owning control becomes visible
25826 * TextBox.cs, RichTextBox.cs: Switched to use new internal
25827 TextBoxBase.CreateGraphicsInternal() method to avoid triggering
25828 premature handle creation (Part of fix for #77456)
25830 - We now only destroy our double-buffering buffers when the
25831 control is resized or disposed, but not when visibility
25832 changes. (The code even re-created them twice every time)
25833 - Now requiring a redraw of the buffer on visibility changes
25834 (fixes bug 77654 part 2)
25835 - Not passing OnParentVisibleChanged up unless the control
25837 - CanFocus: Fixed to match MS documentation
25838 - Focus: Fixed to return actual focus state and to check if
25839 setting focus is legal before setting it
25841 2006-03-08 Peter Dennis Bartok <pbartok@novell.com>
25843 * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
25844 when to draw focus rectangle by looking at parent focus and
25845 selected state instead. This fixes TabPages on Linux sometimes
25846 having none or multiple focus rectangles.
25847 * XplatUIX11.cs (SetFocus):
25848 - Don't set the focus if the same window already has focus
25849 - Use SendMessage instead of PostMessage (like it's Win32
25850 equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
25851 to match MS behaviour
25852 * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
25853 are not selectable.
25855 2006-03-07 Jackson Harper <jackson@ximian.com>
25857 * PictureBox.cs: Revert line I accidently committed last week.
25859 2006-03-07 Peter Dennis Bartok <pbartok@novell.com>
25862 - Added new IsRecreating and ParentIsRecreating properties to
25863 allow testing if RecreateHandle has been called on ourselves
25864 or one of our parents
25865 - WndProc(WM_DESTROY): If our control handle is being recreated
25866 we immediately need to create the handle when receiving the
25867 destroy, that way our child windows find a valid parent handle
25868 when they themselves are being recreated upon WM_DESTROY receipt
25869 (fix for bug #77654 part 1)
25871 - DestroyWindow: WM_DESTROY must be sent to our own window before
25872 notifying any child windows. MS documents that child windows
25873 are still valid when WM_DESTROY is received. (Control now relies on
25875 - Added some fine-grain debug options
25877 2006-03-06 Jackson Harper <jackson@ximian.com>
25879 * MdiClient.cs: Redid scrolling logic a bit to create a virtual
25880 box and base calculations off this.
25881 * MdiChildContext.cs:
25882 * MdiWindowManager.cs: Don't need to ensure scrollbars here
25885 2006-03-06 Peter Dennis Bartok <pbartok@novell.com>
25887 * Splitter.cs: In situations where the affected control is added
25888 to the parent's control list after the splitter, we would not
25889 populate affected. Now we try populating it on mousedown, if
25890 it's not already set, and force it to be re-set whenever our
25893 2006-03-03 Matt Hargett <matt@use.net>
25895 * Control.cs: implement Control.Padding
25896 * Padding.cs: -Padding.All returns -1 when constructing with the
25897 implicit default ctor
25898 -Padding.ToString() matches MS.NET
25899 * ContainerControl.cs: implement
25900 ContainerControl.AutoScaleDimensions
25901 * ListControl.cs: implement ListControl.FormattingEnabled
25902 * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
25904 * TabPage.cs: Implement UseVisualStyleBackColor.
25905 * PictureBox.cs: Implement PictureBox.InitialImage.
25907 2006-03-03 Mike Kestner <mkestner@novell.com>
25909 * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
25910 event declarations to proxy to base event.
25911 * ListViewItem.cs: update to use ItemControl.
25912 * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
25913 * ThemeWin32Classic.cs: update to new ListView theme API and fix
25914 column header label rendering for 0 width columns.
25916 2006-03-03 Peter Dennis Bartok <pbartok@novell.com>
25918 * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
25919 that causes the control to be created. Fixes #77476.
25921 2006-03-02 Jackson Harper <jackson@ximian.com>
25923 * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
25926 2006-03-02 Peter Dennis Bartok <pbartok@novell.com>
25928 * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
25929 passed in for the EventArgs (fixes #77690)
25931 2006-03-01 Jackson Harper <jackson@ximian.com>
25933 * ScrollBar.cs: Refresh afterbeing resized.
25935 2006-02-28 Mike Kestner <mkestner@novell.com>
25937 * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
25938 Clean up a tracker compile warning.
25939 * MenuItem.cs: add internal PerformPopup method.
25942 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
25944 * TextBoxBase.cs (set_Text): Recalculate the document (causing an
25945 implicit expose) when the text is set to null
25947 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
25949 * RichTextBox.cs (FlushText): When newline is true, we always
25950 need to split the line, even if no text is on it and we may
25951 never eat newlines. (Fixes #77669)
25953 2006-02-28 Mike Kestner <mkestner@novell.com>
25955 * ListView.cs: Add UpdateSelection internal method. Remove SelectItem
25956 and set Selected instead.
25957 * ListViewItem.cs: Call owner.UpdateSelection to manipulate the
25960 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
25962 * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
25964 2006-02-28 Alexander Olk <alex.olk@googlemail.com>
25967 - Got rid of the panel. All controls are now directly added to
25969 - It is now possible to set a font with the Font property
25970 - MinSize and MaxSize property do now what they should
25971 - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
25972 - Searching and selecting a font with the font textbox works now,
25973 the same applies to the style and size textbox
25974 - Draw the correct 3D border in the example panel
25975 - Fixed a little mem leak (unused fonts didn't get disposed)
25976 - Many other internal updates/rewrites...
25979 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
25982 - InsertRTFFromStream: Added 'number of characters inserted' argument
25983 - set_SelectedRTF: Now using the number of characters to calculate
25984 the new location for the selection and cursor (x/y cannot be used
25985 due to potentially already wrapped text)
25987 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
25989 * TextControl.cs: Added property and implemented means to allow
25990 disabling recalculation of a document (can be used to speed up
25991 multiple inserts and is needed to make RTF inserts predictable, see
25993 * RichTextBox.cs: Using the new NoRecalc property of Document to
25994 keep x/y insert locations predictable. Also makes it faster inserting
25995 large chunks of RTF
25997 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
25999 * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
26000 it's easier for a child control to handle the other messages without
26001 having to duplicate the special functionality
26003 - WndProc: Removed calling base handler for WM_KEYDOWN and added
26004 code to handle processing the key ourselves, in order to get
26005 access to the result of KeyEventArgs.Handled. We now only call
26006 ProcessKey if they key hasn't been handled already. Fixes #77526.
26007 - set_Text: If null or empty string is given, just clear the
26008 document. Fixes part of #77526
26010 2006-02-27 Jackson Harper <jackson@ximian.com>
26012 * SizeGrip.cs: Paint the background color before painting the grip
26013 so things look right.
26014 * MdiClient.cs: Add the sizegrip when both scrollbars are used.
26016 2006-02-27 Mike Kestner <mkestner@novell.com>
26019 - Restructure layout and invalidation model to remove a ton of
26020 flicker from the control and speed up performance in general.
26021 - Add manual column resize, flickers like crazy, but I already have
26022 some ideas on how I'll fix that. (#76822)
26023 - Merge the three Icon-based views into a single layout method.
26024 - Move item selection interaction logic from the item since
26025 interaction with the collections is more appropriate to the view.
26026 - Deselection on non-item clicks.
26028 - Encapsulate most of the layout. Add some internal props to trigger
26029 layout. Move to a model where Items invalidate themselves instead
26030 of just invalidating the whole control every time something changes.
26031 - Invalidate on Text/Caption changes.
26032 - switch to an offset based layout model to avoid having to absolute
26033 position every element on item moves.
26034 - correct checkbox layout to conform to MS layout.
26035 * ThemeWin32Classic.cs:
26036 - refactor some column header drawing code.
26037 - fix string justification for column headers (#76821)
26038 - make SmallIcon labels top justified for compat with MS impl.
26039 * ThemeClearlooks.cs:
26040 - adjust to new ListViewItem internal checkbox bounds api.
26042 2006-02-27 Jackson Harper <jackson@ximian.com>
26044 * Control.cs: Change where implicit controls fall in the zorder.
26045 They are now on top of all children.
26046 - Synced AddImplicit code with Add
26047 - Removed unused enumerator.
26048 * SizeGrip.cs: Remove the TODO as its been TODONE.
26050 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
26052 * TextControl.cs(Insert): Combine the last lines unless the insertion
26053 string ends with \n\n, otherwise we leave one line too many (Fixes
26054 something I noticed with the testapp for #77526; the bug itself was
26055 already fixed in the previous checkin)
26057 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
26060 - SelectionColor and SelectionFont methods no longer set absolute
26061 styles. Instead, the keep font or color respectively (This
26062 resolves a long-standing FIXME in the code)
26063 - When flushing RTF text, the insert code now considers text trailing
26064 behind the insertion point (Fixes the bug where when replacing
26065 the selected text via SelectedRTF the remainder of the line behind
26066 the selection would stay on the first insertion line)
26068 - AppendText now updates the selection points after inserting text
26069 - AppendText now ensures that the last tag (sometimes 0-length) of
26070 the document is used for the style information (Fixes part of
26073 - Created new FontDefiniton class to allow describing partial style
26075 - StreamLine() now takes a lines argument, to allow it to decide
26076 whether an encountered zero-length tag is the last in the document
26077 (which must be kept to not loose the font/color contained in it,
26079 - Created Combine() and Split() methods for Marker structs, to
26080 support marker updates due to reformatted documents (soft line
26082 - Implemented Document.CaretTag setter
26083 - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
26084 of the last line (Not the cause, but also exposed by bug #77220)
26085 - Added LineTag argument to InsertString method, to allow callers
26086 to force a certain tag to be used (required to force use of the
26087 trailing zero-length tag of a document)
26088 - Now updating markers in Combine(), to avoid stale tag markers
26089 - Added some method descriptions to aid maintenance
26090 - Implemented new FormatText concept, allowing additive/subtractive
26091 formatting by only specifying the components that are to be
26092 changed. This was needed for resolving the RTB.SelectedColor/
26093 RTB.SelectedFont fixmes
26094 - Added Break() support method to allow breaking up linetags (used
26095 for partial formatting)
26096 - Added GenerateTextFormat() method. It is used for partial
26097 formatting and allows to generate a full font/color from given
26098 attributes and an existing tag.
26100 2006-02-26 Jackson Harper <jackson@ximian.com>
26102 * XplatUIX11.cs: Use the correct caption height.
26103 - Translate hittest coordinates to screen coords to match MS.
26104 * XplatUIWin32.cs: When we create MDI windows we need to reset
26105 some of the style flags, so we get a nice blank window, and can
26106 draw all the decorations ourselves.
26107 - Set a clipping rectangle on the non client paint event, the
26108 window manager drawing code needs one.
26109 * Form.cs: The window manager needs to know when the window state
26111 * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
26112 don't need to factor in border and title sizes in these
26113 methods. TODO: Remove the args and fix the call points.
26114 * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
26116 - Let the driver set the cursors.
26117 - Improve active window handling
26118 - Correct sizes for title bars and buttons.
26119 - Match MS drawing better
26120 * MdiWindowManager.cs: We don't need to handle border style
26121 updates specially anymore.
26122 - Check for scrollbars when windows are done moving
26123 - Handle Active properly.
26124 * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
26125 correctly. I am spewing the exception though, so we don't hide the
26128 2006-02-26 Pedro Martinez Julia <pedromj@gmail.com>
26130 * DataGridViewRowPostPaintEventArgs.cs,
26131 DataGridViewCellPaintingEventArgs.cs,
26132 DataGridViewRowCollection.cs,
26133 DataGridViewRowPrePaintEventArgs.cs,
26134 DataGridViewCell.cs: Clear a few warnings and implement a few
26135 exceptions that should be thrown.
26137 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
26139 * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
26140 'inheriting' our parent's (non-default) cursor. (Part of
26141 the fix for #77479)
26143 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
26145 * XplatUIX11.cs: Fixed cast to make csc happy
26147 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
26149 * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
26150 it's for the client area (part of fix for #77479 and needed
26151 for MDI window cursor handling)
26153 - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
26154 the appropriate default cursors and also passing the message
26155 up the parent chain
26156 - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
26157 for non-client areas
26159 2006-02-15 Jackson Harper <jackson@ximian.com>
26161 * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
26162 is a real MDI window
26164 2006-02-14 Alexander Olk <alex.olk@googlemail.com>
26166 * X11DesktopColors.cs: Instead of checking the desktop session
26167 string for "KDE" check if it starts with "KDE"
26169 2006-02-10 Jackson Harper <jackson@ximian.com>
26171 * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
26174 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
26176 * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
26179 - Got rid of the panel. All controls are now directly added to
26181 - Changed to mono coding style
26183 2006-02-10 Jackson Harper <jackson@ximian.com>
26185 * InternalWindowManager.cs: We don't need the set visibility to
26186 false hack anymore now that peter has written beautiful shutdown
26189 2006-02-10 Peter Dennis Bartok <pbartok@novell.com>
26191 * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
26192 where already explicitly destroyed
26194 2006-02-10 Jackson Harper <jackson@ximian.com>
26196 * MdiClient.cs: Handle the case where windows are too high or to
26197 the left and we need scrollbars.
26199 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
26201 * MimeIcon.cs: Added some icons
26204 - Got rid of the panel. All controls are now directly added to
26206 - Changed to mono coding style
26207 - On Linux "My Computer" and "My Network" will now show some
26208 more usefull information. A new class, MasterMount, gathers
26209 this information from /proc/mount. Updated MWFFileView to make
26210 use of this information
26211 - Fixed a bug that caused FileDialog to crash when
26212 ".recently_used" file had a zero size
26213 - FilterIndex does now what it should
26215 * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
26218 2006-02-09 Jackson Harper <jackson@ximian.com>
26220 * ComboBox.cs: Don't touch if null.
26222 2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
26224 * Cursor.cs: 64bit safeness fix
26225 * XplatUIX11.cs: Removed several unneeded and one moronic cast.
26227 2006-02-09 Jackson Harper <jackson@ximian.com>
26229 * Form.cs: If a form is made into an MDI form update the styles so
26230 all the props can get set correctly.
26231 - Kill the mdi_container when we dont need it anymore.
26232 * InternalWindowManager.cs: Add missing NOT
26234 2006-02-08 Jackson Harper <jackson@ximian.com>
26236 * InternalWindowManager.cs: Respek clipping when drawing MDi
26239 2006-02-08 Jackson Harper <jackson@ximian.com>
26241 * Hwnd.cs: Add bits to track non client expose events.
26242 * XplatUIX11.cs: Track non client expose events on the hwnd. This
26243 gives us a proper invalid rect and will allow for some nice
26244 optimizations with NC client drawing
26245 - MDI windows are children windows, so move their style handling
26246 into the child window block.
26247 * InternalWindowManager.cs: Remove a state reset that was
26248 getting invoked at the wrong time. Fixes managed windows getting
26249 into a 'stuck' captured state.
26251 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
26253 * TextControl.cs (Document.ctor): Now initializing
26254 selection_anchor. Fixes #77493
26256 2006-02-07 Jackson Harper <jackson@ximian.com>
26258 * TrackBar.cs: The increment/decrements were backwards.
26260 2006-02-07 Mike Kestner <mkestner@novell.com>
26262 * Theme*.cs : remove ThemeEngine.Current usage as it just points back
26263 to the instance itself.
26265 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
26267 * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
26268 on ulongs and pointers, the size differs between 32bit and 64bit
26271 2006-02-07 Mike Kestner <mkestner@novell.com>
26273 * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
26274 for 64 bit platforms to work around a metacity bug.
26276 2006-02-07 Jackson Harper <jackson@ximian.com>
26278 * TrackBar.cs: Process the input keys we need, and hookup to
26279 KeyDown instead of using WndProc, so we get key messages.
26281 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
26283 * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
26285 * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
26286 we need to translate the XdndVersion atoms array before sending it
26288 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
26291 - The preceeding 64bit fixes had a bug: ChangeProperty expects the
26292 number of bits for the property, not the number of bytes. The
26293 change to provide IntPtr.Size broke 32bit. (64bit was also wrong
26294 but would not crash since it specified 8 bits instead of 4 bits)
26295 - More 64bit fixes: Switched all atoms from int to IntPtr (they are
26296 defined as XID -> long in the C headers)
26297 - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms
26298 references since those are now IntPtr to begin with
26299 - Switched all Atom.XXX 'int' casts to IntPtr casts
26300 - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
26301 - Fixed XInternAtom signature for 64bit, now returns an IntPtr
26302 - Added XChangeActivePointerGrab DllImport (for X11DnD)
26304 - Changed 'int' type for Atoms in XEvent structures to IntPtr
26305 - Changed atom in HoverStruct to be IntPtr
26307 - Removed local DllImports, switched code to use those from XplatUIX11
26308 - Removed/fixed casts related to the switch of Atom to be a IntPtr
26310 2006-02-06 Mike Kestner <mkestner@novell.com>
26312 * XplatUIX11.cs : many more 64 bit pinvoke changes. I've audited all the
26313 method signatures in the import region. There may still be some
26314 lingering struct marshaling issues, as I didn't drill down into those.
26317 2006-02-06 Jackson Harper <jackson@ximian.com>
26319 * ComboBox.cs: Dont manually set the top_item, this is computed
26320 when the scrollbar position is set.
26322 2006-02-06 Mike Kestner <mkestner@novell.com>
26324 * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
26325 startup crashes on amd64. There's other fixes needed. All pinvoke
26326 usage of Atom needs to be mapped to IntPtr for example. And there are
26327 likely other int/long issues to be addressed.
26329 2006-02-04 Alexander Olk <alex.olk@googlemail.com>
26331 * FileDialog.cs: One more...
26333 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
26335 * FileDialog.cs: Next try
26337 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
26339 * FileDialog.cs: First part of fix for #77464
26341 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
26343 * ButtonBase.cs, ContainerControl.cs, Forms.cs,
26344 ThemeWin32Classic.cs: Fix for #77458. Correct handling of
26345 AcceptButton border drawing.
26347 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
26349 * Form.cs: Moved positioning of form after auto scaling is applied,
26350 otherwise it would possibly use wrong form size.
26352 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
26354 * Control.cs (RecreateHandle): No need to re-create any child
26355 controls, the child windows will get destroyed automatically by
26356 the windowing system or driver, and re-created when the handle
26357 is being accessed the first time. Fixes #77456
26358 * Form.cs: No longer setting the form to closing if the handle is
26359 being recreated. This seems like the right thing to do, don't
26360 have a bug or testcase for this, though.
26362 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
26364 * FileDialog.cs: Suspend/Resume layouting when changing sizes of
26365 controls to avoid unwanted side effects
26367 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
26370 - ScaleCore needs to scale the bounds, not the ClientSize of the
26371 control. Fixes #77416.
26372 - DefaultSize is 0,0 for control
26374 - DefaultSize is 100, 20
26375 - SetBoundsCore: Now enforcing the height, no matter if the provided
26376 height is more or less than the preferred one, as long as AutoSize
26378 * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
26380 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
26383 - ResumeLayout: Fixed logic when to call PerformLayout, we may not
26384 call unless both performLayout is true *and* we have a pending
26386 - ResumeLayout: MS does not completely nest Suspend and Resume,
26387 they bottom out at 0, fixed our code to match that.
26388 - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
26389 SetBoundsCore, we were updating even when we shouldn't. This fixes
26390 swf-anchors mis-anchoring when resizing the app fast and lots.
26391 - UpdateDistances: Now only setting the left and top distance if
26392 we have a parent and are not suspended, this is based on
26393 a suggestion by Don Edvaldson in bug #77355.
26394 - OnVisibleChanged: Fixed logic when to create the control. We may
26395 not create the control if we have no parent or if it's not visible;
26396 switched to using Visible property instead of is_visible field
26397 since the property also considers parent states. This fixes a bug
26398 when starting Paint.Net
26400 2006-02-02 Jackson Harper <jackson@ximian.com>
26402 * Form.cs: If the forms handle hasn't been created yet don't call
26403 into xplatui to make it top most, just set the topmost flag on the
26404 form in CreateParams
26405 * XplatUIX11.cs: Handle WS_EX_TOPMOST.
26407 2006-02-01 Jackson Harper <jackson@ximian.com>
26409 * ScrollableControl.cs: Refactored the Recalculate method a
26410 little, this wasn't handling all the variants of bottom and right
26411 bars needed to be added and added/removed based on their
26412 counterparts being added/removed (which changes the drawable
26413 size). Also we special case client widths and heights of 0 and
26414 don't add the scrollbar for those.
26416 2006-02-01 Peter Dennis Bartok <pbartok@novell.com>
26419 - Added method to get AbsoluteGeometry(); currently unused, but might
26420 be used in the future, if we try again to figure out toplevel
26421 coordinates with some more crappy window managers
26422 - Added FrameExtents() method to retrieve the WM set decoration size
26423 - Tried to fix up AddConfigureNotify and handling of ReparentNotify
26424 to deal with at least KDE, FVWM and metacity (Fixes #77092)
26426 - Added whacky_wm tracking var for metacity
26427 - Added logic to have default menu height if the actual menu height
26428 has not yet been calculated (part of fix for #77426)
26429 * Form.cs: Keep track whether client size has been set and re-set
26430 it if a menu is added/removed afterwards (Fixes #77426)
26432 2006-01-31 Jackson Harper <jackson@ximian.com>
26434 * Control.cs: When a new Site is set on the component attempt to
26435 pull the AmbientProperties from it.
26437 2006-01-31 Peter Dennis Bartok <pbartok@novell.com>
26439 * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
26440 in the background of the owning form. Fixes #77332
26442 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
26444 * MimeIcon.cs: Fix for #77409
26446 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
26448 * XplatUIX11GTK.cs: Initial import
26450 2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
26452 * FixedSizeTextBox: fixes class signature
26454 2006-01-30 Jackson Harper <jackson@ximian.com>
26456 * FixedSizeTextBox.cs: New internal class that represents a
26457 textBox that will not be scaled.
26460 * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
26463 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
26465 * XplatUIX11.cs: Retrieve default screen number instead of
26466 assuming 0. Attempted fix for #77318
26468 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
26471 - GetWindowPos: When a window is parented by FosterParent, use
26472 the desktop instead of FosterParent as the base to get coordinates
26473 - CreateWindow: Don't make FosterParent the parent window for Popups
26474 if we don't want a taskbar entry, Popups automatically don't get one
26475 * Hwnd.cs: Need to call remove to actually remove the key from the
26478 2006-01-30 Mike Kestner <mkestner@novell.com>
26480 * MenuAPI.cs: adjust MainMenu item popup location to y=0.
26482 2006-01-30 Jackson Harper <jackson@ximian.com>
26485 * TreeNode.cs: Raise events no matter how the treenode is
26486 checked. Patch by Don Edvalson.
26488 2006-01-30 Jackson Harper <jackson@ximian.com>
26490 * TreeNode.cs: Signature fix.
26492 2006-01-29 Alexander Olk <alex.olk@googlemail.com>
26494 * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
26496 2006-01-20 Mike Kestner <mkestner@novell.com>
26498 * Form.cs: Add ActiveTracker property to do Captures and perform mouse
26499 event forwarding when menus are active.
26500 * MenuAPI.cs: kill the GrabControl hack. Use Form.ActiveTracker.
26501 Most of the patch is pdb's with a little rework.
26503 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
26505 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs:
26506 Removed GetMenuDC and ReleaseMenuDC methods; replaced
26507 by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
26508 * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
26509 * InternalWindowManager.cs: Added use of PaintEventStart/End to
26510 handling of WM_NCPAINT message, now passing the PaintEventArgs to
26511 the PaintWindowDecorations method
26512 * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
26513 * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
26514 * MenuAPI.cs: Made tracker window invisible
26516 - Removed GetMenuDC and ReleaseMenuDC methods
26517 - Implemented the client=false path for PaintEventStart and
26520 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
26522 * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
26523 * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
26526 - MaximizeBox, MinimizeBox: Recreate the handle when setting
26528 - CreateParams: Reworked the styles to match MS look'n'feel,
26529 removed automatic setting of MinimizeBox, MaximizeBox, etc. via
26530 the WS_OVERLAPPEDWINDOW style. This fixes #76823.
26532 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
26534 * XplatUIX11.cs(GetWindowState): Now throwing an exception when the
26535 window is not mapped, since otherwise every form that's being
26536 created is considered minimized, which is wrong.
26537 * Form.cs: Catching the exception and returning our internal value
26540 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
26542 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
26543 SetWindowMinMax() to have means to tell the driver about the minimum,
26544 maximum and maximized state window sizes. (Part of the fix for #76485)
26546 - Implemented tracking of minimum and maximum window size, now calling
26547 new SetWindowMinMax() driver method to tell the driver (Part of the
26549 - Finished handling of WM_GETMINMAXINFO method, now setting all values
26550 (Completes fix for #76485)
26551 - Calling new SetWindowMinMax driver method when the handle for a
26552 form is created, to make sure the driver knows about it even if
26553 the values have been set before the window was created
26554 - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
26555 to avoid messing up our anchoring calculations (partial fix
26557 * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
26559 - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
26560 - Improved GetWindowState() to detect 'Minimized' state on Metacity
26561 (and presumably other freedesktop.org compliant WMs). Left the
26562 assumption unmapped=minimized, needed for SetVisible to work.
26563 - Now setting the window state when creating windows
26564 - Fixed SetVisible to consider/set the window state when mapping
26565 a Form. We cannot set the state before it's mapped, and we cannot
26566 use Form.WindowState once it's mapped (since it would ask the
26567 driver and get 'normal'. Therefore, we grab the state before
26568 mapping, map, and then set state.
26569 - Implmemented SetWindowMinMax method; Metacity does not seem to
26570 honor the ZoomHints, though.
26572 - Removed MINMAXINFO (moved to XplatUIStructs)
26573 - Added SetWindowMinMax stub (on Win32 the only way to set that
26574 information is in response to the WM_GETMINMAXINFO message, which
26575 is handled in Form.cs)
26576 - Added logic to SetVisible to set the proper window state when a
26577 form is made visible (fixes #75720)
26579 2006-01-26 Jackson Harper <jackson@ximian.com>
26581 * Control.cs (BeginInvoke): Automagically handle EventHandlers the
26582 same way we handle them with Invoke.
26584 2006-01-25 Peter Dennis Bartok <pbartok@novell.com>
26587 - Added tracking of window state so CreateParams can return
26588 the appropriate style
26589 - Moved setting of WS_CAPTION style in CreateParams to allow
26590 styles without caption
26591 * DataGridTextBoxColumn.cs: We are now also creating the TextBox
26592 control if the TextBox property is accessed. Fixes #77345
26594 - get_Created: now uses is_disposed and is_created to determine
26595 return value (suggested by Jackson)
26596 - CreateHandle: No longer exits if the handle is being recreated
26597 - RecreateHandle: If the handle is not yet created call the
26598 appropriate method to create either control or handle. If the
26599 control is already created CreateHandle will simply exit instead
26600 of just creating the handle
26601 * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
26602 now SendMessage WM_DESTROY directly to the control when DestroyWindow
26605 - When DestroyWindow is called, instead of waiting for the
26606 DestroyNotification from X11, we directly post it to the WndProc
26607 and immediately dispose the hwnd object.
26608 Same applies to DestroyChildWindows, and this obsoletes the
26609 expose_pending tracking. Contrary to Win32 behaviour we destroy our
26610 child windows before our own, to avoid X11 errors.
26611 - Removed the direct sending of WM_PAINT on UpdateWindow
26613 - Reworked DoEvents and GetMessage to allow access to internal queue
26614 even when trying non-blocking access to the queue. Fixes #77335.
26615 Based on a patch suggestion by Don Edvalson. The new private
26616 GetMessage can now also be used as a backend for a PeekMessage
26618 * XplatUI.cs: Improved debug output for CreateWindow
26620 2006-01-25 Jackson Harper <jackson@ximian.com>
26622 * Help.cs: Allow param to be null. Patch by Don Edvalson.
26624 2006-01-24 Jackson Harper <jackson@ximian.com>
26626 * ComboBox.cs: Clamp the max value set for the vertical scrollbar
26627 when we have a MaxDropItems lower then the selected index.
26629 2006-01-24 Jackson Harper <jackson@ximian.com>
26631 * Control.cs: Don't allow selection of non visible controls, allow
26632 selection of controls without parents.
26634 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
26636 * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
26637 * DataGridDrawingLogic.cs: Add editing row only when is necessary
26639 2006-01-23 Jackson Harper <jackson@ximian.com>
26641 * UpDownBase.cs: Make the textbox handle all the selection and
26642 tabbing. This fixes tabing to updown controls.
26644 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
26646 * TextBoxBase.cs: fixes exception thown the object was null
26648 2006-01-23 Jackson Harper <jackson@ximian.com>
26650 * ButtonBase.cs: Just use the base CreateParams. They set
26651 visibility and enabled correctly.
26654 * MonthCalendar.cs: Lets let the base set as much of the
26655 createparams as possible so we don't have duplicate code all over
26658 2006-01-22 Alexander Olk <alex.olk@googlemail.com>
26660 * ThemeGtk.cs: Added TrackBar and some experimental code to
26661 get double buffering back
26663 2006-01-21 Jordi Mas i Hernandez <jordimash@gmail.com>
26665 * DataGrid.cs: Allows row number set internally higher than the last
26666 when creating a new row. Restores the editing functionality.
26668 2006-01-20 Mike Kestner <mkestner@novell.com>
26670 * MimeIcon.cs: delay Image creation until the icons are accessed
26671 instead of creating 190 scaled images on GnomeHandler startup.
26673 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
26675 * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
26676 first call base before processing the event. Fixes #77279
26678 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
26680 * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
26681 that the stride for the GDI bitmap would match the stride of
26684 2006-01-19 Alexander Olk <alex.olk@googlemail.com>
26686 * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
26688 2006-01-19 Jackson Harper <jackson@ximian.com>
26690 * ComboBox.cs: Hookup the text controls keydown event so we get
26691 those when the text control has the focus.
26693 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
26695 * Label.cs: Now using the base events instead of defining new ones;
26696 this allows us to just call the base properties without having to
26697 duplicate all base property logic
26699 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
26701 * Label.cs: A label by default is not a tabstop (Fixes one of our
26702 failing nunit tests)
26704 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
26706 * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
26707 * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
26709 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
26711 * Cursor.cs: Reimplemented creating cursor bitmaps without using
26712 the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
26715 - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream)
26716 constructor creates images that can't be saved. Part of the fix
26718 - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
26719 - SetWindowState: Switched ShowWindow flags (part of an upcoming
26720 bug fix for handling window state in forms properly)
26722 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
26724 * ThemeGtk.cs: Simplify ScrollBar drawing
26726 2006-01-18 Jackson Harper <jackson@ximian.com>
26728 * Splitter.cs: Set the default dock style for the splitter control
26729 in the constructor.
26731 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
26733 * ThemeGtk.cs: Corrected StateType and ShadowType for
26736 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
26738 * Control.cs: Make use of Theme.DoubleBufferingSupported
26740 - Added drawing for flat style buttons
26741 - Added ScrollBar drawing
26743 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
26745 * ThemeClearlooks.cs: Removed some unneeded code.
26746 * ThemeGtk.cs: First part of ThemeGtk enhancements.
26748 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
26750 * LinkLabel.cs: We need to update the hover drawing when
26751 leaving the control as well.
26753 2006-01-18 Jordi Mas i Hernandez <jordimash@gmail.com>
26755 * DataGrid.cs: Clicking on non empty areas in the columns
26756 area was giving an exception
26758 2006-01-17 Jackson Harper <jackson@ximian.com>
26760 * ThemeWin32Classic.cs:
26761 * ListView.cs: Do not draw/clip the headers when the header style
26764 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
26766 * DataGrid.cs: Fixes 77260
26768 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
26770 * DataGrid.cs: Clicking on a column on a empty grid was giving
26773 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
26775 * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
26776 or any keypress will crash the grid.
26778 2006-01-17 Mike Kestner <mkestner@novell.com>
26780 * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
26781 * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for
26782 invisible/previously-visible items.
26785 2006-01-17 Alexander Olk <alex.olk@googlemail.com>
26787 * ThemeClearlooks.cs:
26788 - Added CL_Draw_Button method; now other theme controls that are
26789 not derived from button or do not have a button can draw buttons
26791 - Updated ComboBox drawing
26792 - Beautified RadioButton drawing
26793 - Corrected drawing of bottom and left tabs
26794 - Beautified DateTimePicker and MonthCalendar
26795 - Added CPDrawButton and CPDrawRadioButton
26797 2006-01-16 Jackson Harper <jackson@ximian.com>
26799 * ComboBox.cs: Set the initial value of the scrollbar to the
26800 current index. Reduce the numbers of refreshs and IndexOfs called.
26802 2006-01-14 Alexander Olk <alex.olk@googlemail.com>
26804 * FileDialog.cs: When the file listview is focused hitting the
26805 backspace key moves the fileview to the parent directory
26807 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
26810 - Added RecreateHandle call when changing taskbar visibility to
26811 trigger reparenting in Win32 driver (Fixes #75719)
26812 - If a window has minimize or maximize buttons, it cannot have
26815 - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
26816 the toplevel form with FosterParent (A toolwindow not on the
26817 taskbar) (Fixes #75719)
26818 - Made FosterParent a toolwindow
26820 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
26822 * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
26824 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
26826 * ToolTip.cs: If SetToolTip is called from a control and the mouse
26827 is currently over that control, make sure that tooltip_window.Text
26830 2006-01-13 Mike Kestner <mkestner@novell.com>
26832 * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
26834 2006-01-13 Jackson Harper <jackson@ximian.com>
26836 * TreeView.cs: On MS GetNodeAt never actually factors in the X
26837 value passed. Also redraw the selected node when we recieve
26838 focus, so tabbing between trees works correctly.
26840 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
26842 * MimeIcon.cs: GnomeHandler: older gnome versions don't have
26843 ~/.gconf/%gconf-tree.xml, so use
26844 .gconf/desktop/gnome/interface/%gconf.xml
26846 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
26848 * TextControl.cs: Draw text in gray if control is disabled
26850 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
26852 * TreeView.cs: Draw the focus rectangle outside the highlight, to
26853 make sure it's always visible. Fixes #76680.
26855 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
26857 * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
26859 2006-01-13 Jonathan Chambers <jonathan.chambers@ansys.com>
26861 * PageSetupDialog.cs: Added.
26862 * PrintDialog.cs: Attributes.
26863 * PrintPreviewControl.cs: Updates.
26864 * PrintPreviewDialog.cs: Updates.
26866 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
26868 * Control.cs: Undid my selection check fix, since it's not needed
26870 - Now considering the presence of hscroll/vscroll when sizing
26871 vscroll/hscroll respectively. Fixed bug #77077
26872 - Added Left/Up/Down/Right to IsInputKey list to prevent
26873 ContainerControl from stealing them. This fixes what I broke
26874 with my last checkin.
26876 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
26878 * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
26879 I finally understand how the property can be set without a setter :-)
26881 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
26884 - Switched RunLoop to use static Message.Create to create a
26886 - Added PreProcessMessage call in runloop for keyboard events; this
26887 is part of the fix for #77219, I overlooked this originally in the
26888 MSDN doc for PreProcessMessage
26890 - Removed call to PreProcessMessage from handling of keyboard
26891 messages; it's supposed to be done in the message pump
26892 - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
26893 per MSDN documentation.
26894 - IsInputChar: All chars are input chars by default; removed the
26895 parent calling chain, MS does not document that
26896 - PreProcessMessage: If IsInputChar is true, we want to return false
26897 to allow dispatching of the message
26898 - When selecting the next control, now also check that we're not
26899 selecting ourselves again and therefore return a false positive.
26901 - Tried to match return values for IsInputKey and ProcessDialogKey
26902 to what MS returns; moved processing of our special keys outside
26903 ProcessDialogKey since MS does not seem to return true on those.
26904 - Moved code that previously was in ProcessDialogKey into new private
26905 ProcessKey method, which gets called upon receipt of WM_KEYDOWN
26906 - Reworked handling of WM_CHAR to not have to duplicate code from
26907 Control.cs anymore, instead we simply call down to base.
26909 2006-01-12 Jackson Harper <jackson@ximian.com>
26911 * ComboBox.cs: We always need to refresh the text area when
26912 EndUpdate is called. Fixes the combobox in the file dialog.
26913 * Control.cs: Don't create the creator_thread until the controls
26914 handle is created. Also in InvokeRequired we check if the
26915 creator_thread is null. This gives the effect of InvokeRequired
26916 returning true if the controls handle is not created yet, and
26919 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
26922 - Added StartLoop() driver method. This is used to allow drivers to
26923 prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
26924 loop for a particular thread
26925 - Added EndLoop() driver method. This is called once the message
26926 pump for the thread is shut down
26927 - Added SupportsTransparency method to allow the driver to indicate
26928 opacity support for windows
26930 - Removed TODO attribute, completed AllowTransparency property
26931 - Added documented logic to Opacity
26932 * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
26933 ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
26934 versions of CompatibleTextRendering
26935 * X11Structs.cs: Added opacity atom to our atom enumeration
26936 * Hwnd.cs: Added opacity tracking (we need to track since the opacity
26937 of a form might be set before it's reparented by the WM, and we need
26938 the opacity value without calling up to Form)
26939 * XplatUIDriver.cs: Added StartLoop(), EndLoop() and
26940 SupportsTransparency() driver methods
26941 * Application.cs: Now calling StartLoop and EndLoop driver methods
26943 - Added opacity atom registration
26944 - Added StartLoop()/EndLoop() methods. They're empty right now but
26945 will need to get implemented when we switch to a per-thread queue
26946 - Implemented SupportsTransparency() method
26947 - Implemented SetWindowTransparency() method
26948 - Added support for setting the opacity value when a window is
26949 reparented (since the opacity needs to be set on the WM frame)
26950 * XplatUIOSX.cs, XplatUIWin32.cs:
26951 - Added SupportsTransparency(), StartLoop() and EndLoop() methods
26953 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
26955 * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
26957 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
26959 * FileDialog.cs: Added ToolTip for MWFFileView
26960 * MimeIcon.cs: Rewrote GnomeHandler.
26961 - Get currently used gnome icon theme from
26962 ($HOME)/.gconf/%gconf-tree.xml
26963 - Make use of inherited icon themes
26964 - Support SVG icon themes like Tango via librsvg
26966 2006-01-12 Miguel de Icaza <miguel@novell.com>
26968 Revert's Jackson's revert which broke 2.0 builds. Fix both
26971 * Application.cs: Move the use_compatible_text_rendering outside
26972 the NET_2_0 define. If we ever need to use the
26973 use_compatible_text_rendering on the individual controls they will
26974 access the variable from the common shared code paths.
26976 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
26979 - Added more granular debug options
26980 - Added method to print both window text and id
26981 - Switched debug output to use new Window() debug method
26982 - Added IsEnabled() driver method
26983 - Added EnableWindow() driver method
26985 - Removed end_modal; no longer needed, new loop handles termination
26986 via 'closing' variable
26987 - If form is modal, setting DialogResult will now initiate loop
26988 termination via 'closing' variable
26989 - Added support for is_enabled/WS_DISABLED to CreateParams
26990 - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
26992 - Removed code that's now in RunLoop from ShowDialog()
26993 - Added various documented sanity checks to ShowDialog()
26994 - Added handling of WM_DESTROY message; we set 'closing' on getting
26995 the message to indicate the message pump to terminate
26996 - Added handling of new internal WM_CLOSE_INTERNAL message - it's
26997 send by the Application.ExitThread method. (We send the message
26998 to destroy the window after all other events have been
26999 processed through the queue, instead of destroying the handle
27001 - Moved code from Close() method to WM_CLOSE handler; added logic
27002 to only send close-related events if the form is not displayed
27004 * Splitter.cs (..ctor): Fixed typo in resource name
27006 - DrawBackgroundImage: Explicitly selecting the wrap mode for the
27008 - set_Cursor: Now only setting calling into XplatUI if the handle for
27009 the control is already created; this avoids implict handle creation
27010 or crashes if it's not created
27011 - set_Enabled: Now setting the enabled state via the new driver method
27012 instead of just tracking it
27013 - CreateParams: Added logic to set WS_DISABLED based on enabled state
27014 - CreateControl: Reordered event firing and method calls to more
27015 closely fire events in the order MS does. Now setting the
27016 enabled state in the driver when creating the control.
27017 - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
27019 * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
27020 MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED
27021 * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
27023 - Added tracking of window enabled state (get_Enabled/set_Enabled)
27024 - Added EnabledHwnd property to easily allow a driver to find the
27025 handle of the first enabled window in the parent chain (this is
27026 used by drivers to pass up input events of disabled windows)
27027 * XplatUIDriver.cs: Added IsEnabled() method
27029 - Removed crude and obsolete exiting tracking variable
27030 - Removed internal ModalRun(); replaced by RunLoop()
27031 - Implemented private CloseForms() method to allow closing all
27032 windows owned by a particular (or all) threads
27033 - Exit() now properly closes all windows without forcing the message
27035 - Removed obsolete InternalExit() method
27036 - Changed Run() methods to use new RunLoop() message pump
27037 - Implemented new RunLoop() method for both modal and non-modal forms
27039 - get_CreateParams: Added setting of WS_DISABLED
27040 - Simplified ShowDialog(); now all the work is done in RunLoop(),
27041 invoked via Form.ShowDialog()
27042 * NativeWindow.cs: We don't remove the window from the collection when
27043 the handle is destroyed; there might still be messages for it in the
27044 queue (mainly the resulting WM_DESTROY); instead it will be removed
27045 when Control calls InvalidateHandle in the WM_DESTROY handler
27047 - CreateWindow: Added logic to handle the WS_DISABLED window style
27048 - EnableWindow: Implemented based on Hwnd.Enabled
27049 - GetMessage: Reset PostQuitState so the method can be called again
27050 - Implemented support for disabled windows (passing messages to the
27051 first enabled parent) in handling all input messages
27052 - Added optimizations for handling Expose events
27053 - Implemeted new driver method IsEnabled()
27054 - Now always resetting paint pending tracking vars when we start paint
27055 - Re-implemented UpdateWindow via just sending a WM_PAINT message
27056 * XplatUIOSX.cs: Added IsEnabled method stub
27057 * XplatUIWin32.cs: Implemented new IsEnabled() method
27059 2006-01-11 Jackson Harper <jackson@ximian.com>
27061 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
27062 LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
27063 variables a little.
27064 * ColorDialog.cs: Clear out the old form before adding the new
27067 2006-01-11 Jackson Harper <jackson@ximian.com>
27069 * X11Dnd.cs: Make sure to add all the text formats when adding
27070 strings to the data object.
27071 * TreeNodeCollection.cs: When adding to a sorted tree we need to
27072 do some redrawing too. Also change the UpdateNode to an
27073 UpdateBelow so the newly added node gets painted.
27075 2006-01-11 Miguel de Icaza <miguel@novell.com>
27077 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
27078 LinkLabel.cs, PropertyGrid.cs: Implement the
27079 UseCompatibleTextRendering property for 2.x
27081 * Application.cs (SetCompatibleTextRenderingDefault): Add.
27083 2006-01-11 Jackson Harper <jackson@ximian.com>
27085 * TreeView.cs: Use the property for setting the selected node so
27086 the correct events get raised.
27087 * TreeNode.cs: Update the tree when the fore/back colours of a
27090 2006-01-10 Jackson Harper <jackson@ximian.com>
27092 * TreeView.cs: Allow setting SelectedNode to null.
27094 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
27096 * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
27098 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
27100 * PrintControllerWithStatusDialog.cs: Update page number in dialog.
27102 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
27104 * PrintDialog.cs: Added attributes and set default property values.
27106 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
27108 * PrintControllerWithStatusDialog.cs:
27109 Added PrintControllerWithStatusDialog.
27111 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
27113 * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
27114 XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
27116 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
27118 * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
27120 2006-01-09 Jonathan Chambers <jonathan.chambers@ansys.com>
27122 * ComboBox.cs: Added KeyDown event handler for processing arrow keys
27123 and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
27125 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
27127 * MimeIcon.cs: Added internal class SVGUtil.
27129 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
27131 * FileDialog.cs: Don't crash if there are two files with the
27132 same name but different locations.
27134 2006-01-08 John BouAntoun <jba-mono@optusnet.com.au>
27136 * MonthCalendar.cs: Fixed annoying rendering bug when selecting
27137 dates across multiple month grids. Used to not highlight entire
27138 month, but does now.
27140 2006-01-06 Jackson Harper <jackson@ximian.com>
27142 * MonthCalendar.cs: Removed DoEvents call to prevent a running
27143 message loop. Change timer intervals to numbers that seem more
27146 2006-01-06 John BouAntoun <jba-mono@optusnet.com.au>
27148 * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
27149 object for location info since screen object is now implemented.
27151 2006-01-05 Jackson Harper <jackson@ximian.com>
27153 * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
27154 * AsyncMethodResult.cs: We no longer use a WeakReference for the
27155 AsyncMethodResult, this is because we ALWAYS want the
27156 ManualResetEvent to get set.
27157 * Control.cs: When disposing use an async invoke to call shutdown
27158 code, so that thigns don't block on the finalizer thread. Also
27159 check if we even have a message loop before trying to send
27160 messages, if we don't then don't bother sending messages.
27161 - No more weak references for async methods
27162 * XplatUIDriver.cs: No more weak references for async methods.
27164 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
27166 * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
27167 returns two FontFamily with the same name
27169 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
27171 * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of
27172 drawing disabled text. Instead using the ColorGrayText color
27174 2006-01-04 Jackson Harper <jackson@ximian.com>
27176 * TreeNode.cs: redraw the node when its image index is changed.
27178 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
27180 * RichTextBox.cs: Same fix as last, just for SelectionColor. This
27181 time I checked there are no others like it.
27183 2006-01-04 Jackson Harper <jackson@ximian.com>
27185 * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
27186 this gives the behavoir I was looking for.
27187 * Control.cs: Special case Invoking EventHandlers, this matches MS
27188 and fixes part of bug #76326.
27190 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
27192 * ThemeClearlooks.cs, FileDialog.cs:
27193 - Reflect the latest Theme class changes
27194 - Remove Mono.Unix.Syscall.time in FileDialg and replace it
27197 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
27199 * Theme.cs: Cache UI resource images and resize them if needed
27201 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
27203 * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
27204 is called. This fixes the crash in Nexxia when setting the font
27205 attributes in the chat. [However, RTF needs a look-over to make sure
27206 that all SelectionXXX methods handle the special case that selection
27207 is empty and therefore the change must be applied to all text starting
27208 at the cursor/selection start]
27210 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
27212 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
27213 XplatUIOSX.cs: Added SendMessage and PostMessage methods
27214 * X11Keyboard.cs: Switched to new way of calling PostMessage
27216 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
27218 * Theme.cs: Added theme interface for images to allow the theme to
27219 control what images are used for things like FileDialog, MessageBox
27221 * MessageBox.cs: Now uses the new Theme icon/image interfaces
27223 2006-01-03 Alexander Olk <alex.olk@googlemail.com>
27226 - Removed some dead code
27227 - Opening a recently used file does work now
27228 - Small UI enhancements
27231 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
27233 * FileDialog.cs: Forgot too add __MonoCS__
27235 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
27237 * FileDialog.cs: We are able to read recently used files now let's
27238 go on and write them.
27240 2006-01-01 Alexander Olk <alex.olk@googlemail.com>
27242 * FileDialog.cs: Breathe some life into "last open"/"recently used"
27244 * MimeIcon.cs: Do a check for the top level media type also
27246 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
27248 * ThemeClearlooks.cs:
27249 - Added CPDrawStringDisabled
27250 - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
27251 some chars if the text doesn't fit into text_rect
27252 - DrawListViewItem: If View = View.LargeIcon center the image;
27253 rewrote the drawing of ListViewItem.Text if View =
27256 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
27258 * MimeIcon.cs: Use default KDE icon theme if there is no
27259 "48x48" directory for the current icon theme, fixes #77114
27260 * Mime.cs: Disable not working and actually not used code.
27261 * ThemeWin32Classic.cs:
27262 - Replace "new SolidBrush" in GetControlBackBrush and
27263 GetControlForeBrush with ResPool.GetSolidBrush
27264 - Changed DrawListViewItem from private to protected virtual
27266 - Added form.MaximizeBox = true
27267 - Don't throw an exception if there is a broken symbolic link
27269 2005-12-23 Jackson Harper <jackson@ximian.com>
27271 * TabControl.cs: Give the panels focus, keyboard navigation is
27272 fixed so this works correctly now.
27273 - We need these key events also.
27274 * ToolBar.cs: Remove some of the poor mans double buffering.
27276 2005-12-24 Alexander Olk <alex.olk@googlemail.com>
27278 * ComboBox.cs: The internal TextBox now returns the focus.
27280 2005-12-23 Jackson Harper <jackson@ximian.com>
27282 * ThemeWin32Classic.cs: Draw the text for all tab appearances.
27284 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
27286 * Control.cs: Removed debug code
27287 * XplatUIX11.cs: Changed DestroyChildWindows to also consider
27290 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
27292 * Control.cs: When creating the control, update the Z-order after
27293 all it's children are created, too. (Fixes nexxia not showing
27296 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
27298 * Control.cs: Do not update the anchoring distances if layout is
27299 suspended, instead do it once layout is resumed
27301 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
27304 - After many hours of debugging, for both Jackson and
27305 myself, it turns out that it helps to set the parent of a control
27306 if you want to actually see it onscreen. In the spirit of that
27307 discovery, we're now setting the parent of the control and
27308 it's children when the control's handle is created. This fix
27309 will make Lutz Roeder's Reflector run happily.
27310 - now just creating the handle instead of the whole control when
27311 getting a graphics context for the control.
27313 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
27315 * ScrollableControl.cs: When calculating the canvas, don't consider
27316 the scrollbar widths. Instead, predict if horizontal scrollbar
27317 will affect canvas when deciding on vertical display and vice versa.
27319 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
27321 * RichTextBox.cs: Set default RTF font for documents that don't
27322 have a font table (Fixes #77076)
27324 2005-12-22 Jackson Harper <jackson@ximian.com>
27326 * TextBoxBase.cs: It's difficult to do, but you can have an empty
27327 clipboard. This prevents a NullRef in that case.
27328 * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
27329 clipboard. PRIMARY is for the currently selected text only. (We
27330 should implement PRIMARY at some point.
27332 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
27334 * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
27335 a Unicode function with a structure that was defined in Ansi way.
27338 2005-12-21 Jackson Harper <jackson@ximian.com>
27340 * StatusBar.cs: Statusbar handles its fore/back colours on it's
27341 on. Because thats how it rolls. (and this avoids it using ambient
27343 * ThemeWin32Classic.cs: Use the proper back color for filling.
27344 * Menu.cs: Use the system menu bar color for drawing menu
27345 bars. Using the window back color will bring ambient colours into
27348 2005-12-21 Alexander Olk <alex.olk@googlemail.com>
27350 * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
27351 Bitmaps were created and not disposed.
27353 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
27355 * Control.cs (CreateControl): Don't do anything if the control is
27356 already created, otherwise we'd fire the OnCreated event more than
27359 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
27361 * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
27362 will always match. Instead return -1. Fixes #76464.
27364 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
27366 * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
27367 neither the beginning nor the end of the line (Fixes bug #76479)
27369 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
27372 - ControlNativeWindow.ControlFromHandle(): Now handling situation
27373 where handle is invalid
27374 - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
27375 instead of slower linear search
27376 * NativeWindow.cs: Don't remove the window from the hashtable until
27377 after the driver has destroyed it (since the driver might use
27378 Control.FromHandle to lookup the control object
27379 * Hwnd.cs: Added DestroyPending property to track if a window is
27380 already destroyed as far as the driver is concerned and only hasn't
27381 yet notified the control
27383 - Activate(): Check if the window is still valid before using the
27385 - Implemented DestroyChildWindow() method to mark child windows as
27386 destroyed when a window is destroyed. This prevents situations
27387 where we might call an X method based on queued events for a
27388 window that already has been destroyed but we haven't yet pulled
27389 the destroy method from the queue.
27390 - Added a call to the new DestroyChildWindow() method to the drivers
27391 DestroyWindow code. Also now marking the destroyed window itself
27394 2005-12-20 Jackson Harper <jackson@ximian.com>
27397 * StatusBarPanel.cs: Don't calculate panel sizes on draw
27398 anymore. Just do them when needed, also track the rects of panels
27399 so that we can optimize refreshing more in the future.
27401 2005-12-20 Alexander Olk <alex.olk@googlemail.com>
27403 * ColorDialog.cs: Fixed focus drawing in small color controls
27405 2005-12-19 Jackson Harper <jackson@ximian.com>
27407 * InternalWindowManager.cs:
27408 * MdiWindowManager.cs: Cleanup some coordinate system changes so
27409 moving windows works properly.
27411 2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
27414 - Removed call to InitLayout() from SetBoundsCore(); doc says
27415 it's only called when a control is added to a container
27416 - Split InitLayout logic, moved to separate UpdateDistances() method
27417 since we need to perform those calculations more often than just
27418 when adding the control to a container. (Needed to fix #77022)
27419 - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
27420 - Reduced the OnBindingContextChanged events count, don't send them
27421 unless the control is created, we still aren't totally matching
27422 MS, but I can't quite figure out some of their rules
27424 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
27426 * ThemeClearlooks.cs: Corrected distance between ProgressBar
27429 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
27431 * ThemeClearlooks.cs:
27432 - Updated ProgressBar drawing
27433 - Corrected drawing of ScrollBars and scroll buttons
27434 - Some temporary fixes for minor pixel artefacts
27436 2005-12-18 Peter Dennis Bartok <pbartok@novell.com>
27439 - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
27440 cause events to be sent in the same order as MS does.
27441 - Added ChangeParent() method to trigger various OnXXXChanged events
27442 that need to be fired when a parent changes (This is a reworking
27443 of the patch from r54254, with the X11 errors fixed)
27444 - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
27445 since on MS we get OnLayoutChanged events when calling Clear()
27446 - Changed Enabled property to consider parent state as well, if a
27447 parent is not enabled, the control will not be either
27448 - Changed Parent property to simply call Controls.Add() since that
27449 now does all the work required, this way we avoid code duplication
27450 - Threw in a few OnBindingsContextChanged calls to try and match
27451 when MS sends them. We seem to send a few too many, though.
27452 - Added call to CreateControl when adding the control to a parent.
27453 We were never calling CreateControl. Still needs some work, in
27454 some places we treat HandleCreated and ControlCreated as equal,
27456 - Removed obsolete commented out code from UpdateZOrder()
27458 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
27460 * ThemeClearlooks.cs: Updated TrackBar drawing.
27462 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
27464 * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
27466 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
27468 * FileDialog.cs: Add the Help button and the open readonly
27469 checkbox only if needed
27471 2005-12-16 Jackson Harper <jackson@ximian.com>
27473 * Control.cs: Make sure we have an active menu before trying to
27474 process commands on it. Prevents menu-less forms from crashing
27475 when Alt is pressed.
27476 * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
27478 * RichTextBox.cs: Expand statement to help out gmcs and fix the
27481 2005-12-16 Jackson Harper <jackson@ximian.com>
27483 * InternalWindowManager.cs: Don't translate tool windows screen
27484 coordinates. This fixes windows 'bouncing' around when being moved.
27486 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
27489 - MaxLength now treats 2^31-1 equal to unlimited length (this is
27490 not quite MS compatible, MS uses that number only for single line
27491 and 2^32-1 for multi-line, but I figure it won't hurt keeping
27493 - Now enforcing the MaxLength limit when entering characters
27494 - Added argument to internal Paste() method to track if it's called
27495 from programatically or via keyboard, since keyboard driven pastes
27496 need to enforce max-length
27497 - Added logic to Paste to only paste as many chars as MaxLength
27499 * RichTextBox.cs: Updated to use new obey argument for internal Paste()
27501 - Added Length property to return number of characters in document
27502 - Added private CharCount property which only tracks actual chars
27503 in the document (no linefeeds) and fires event when CharCount
27505 - Added tracking of character count to all methods that alter it
27506 - Added LengthChanged event to allow applications to subscribe
27507 to any changes to the document
27509 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
27512 - Removed local password_char field (moved to TextBoxBase)
27513 - Now setting the document's password var when password is
27516 - Added password_char field (needed here so MultiLine can
27518 - Added logic to MultiLine property setter to set the document's
27519 variable when password display is allowed
27520 - Removed debug code and made some debug code conditional
27522 - Added RecalculatePasswordLine() method to handle special password
27524 - Added PasswordChar property, also added related tracking vars
27525 - Draw() method now uses local text var for grabbing text to draw,
27526 this var is set to line.text unless we're doing password display,
27527 then it is set to the pre-generated all-password-chars line
27528 - Added calling RecalculatePasswordLine() method for password lines
27530 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
27533 - Added Reparented property to allow tracking of Window Manager
27534 reparenting actions (which affect X/Y calculations of toplevel
27536 - Made ToString() print window handles in hex
27538 - AddConfigureNotify(): Now uses reparented state off Hwnd to
27539 determine if X/Y needs offsetting
27540 - AddConfigureNotify(): Fixed offset calculations
27541 - Now adds ReparentNotify messages into the queue
27542 - Now processes ReparentNotify messages and causes a
27543 WM_WINDOWPOSCHANGED message to be sent upstream if a window
27544 is reparented (as most likely it's X/Y coordinates are changed
27547 2005-12-14 Jackson Harper <jackson@ximian.com>
27549 * XplatUIX11.cs: Tool windows still need to respek focus.
27551 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
27553 * Control.cs: Undid 54254 (causing XConfigure errors) so we can
27554 have a working release
27556 2005-12-13 Jackson Harper <jackson@ximian.com>
27558 * Form.cs: Update styles after setting the border style regardless
27559 of whether or not the window is using a window manager.
27561 2005-12-13 Jackson Harper <jackson@ximian.com>
27563 * Form.cs: We now hook into an internal window manager instead of just an
27564 MDI subsystem, this is so we can have properly behaving tool windows.
27565 * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
27566 * InternalWindowManager.cs: New internal class that acts as a
27567 window manager for tool windows and as a base for mdi windows.
27568 * MdiWindowManager.cs: New class that acts as a window manager for
27571 2005-12-12 Jackson Harper <jackson@ximian.com>
27573 * Control.cs: Updates so we match behavoir for for implicit
27574 controls. Fixes explosions in MDI.
27576 2005-12-12 Jackson Harper <jackson@ximian.com>
27578 * Control.cs: Implement Invalidate (Region).
27580 2005-12-12 Peter Dennis Bartok <pbartok@novell.com>
27583 - Changed handling of Controls.Add/Controls.Remove to fire (almost)
27584 the same events as MS does. MS fires events for each property
27585 except, for unknown reasons, Cursor, when the control is reparented.
27586 I can't seem to totally match add/remove since MS also fires some
27587 VisibleChanged events, which makes no sense. Consolidated the
27588 parenting code into a separate method so it can be called from
27589 both Add and Remove. set_Parent no longer needs any special logic
27590 as it calls the parent's add method which implicitly fires
27592 - Removed some obsolete code and debug output
27593 - Enabled state is inherited from parents, if this is enabled
27595 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
27597 * Form.cs: Removed commented out code
27599 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
27602 - Added internal version of Invoke, with additional argument
27603 indicating if we're calling it from a Dispose() handler. That
27604 way we can avoid BeginInvoke throwing an exception if we're
27605 calling for an already destroyed window.
27606 - Added a dispose argument to BeginInvokeInternal, and made the
27607 check if a valid window handle chain exists conditional on
27608 it not being a dispose call
27609 - Removed code in DestroyHandle to destroy our children. Since we
27610 now handle the WM_DESTROY message we will catch all our children
27612 - Now calling OnHandleDestroyed from our new WM_DESTROY handler
27614 - Added a field to track the application context of the form.
27615 - No need to set closing variable as response to WM_CLOSE, instead
27616 we destroy the window. We also call PostQuitMessage if the form
27617 has an application context (which makes it the main app form,
27618 which, when closed terminates the app)
27620 - Dropped Exit() method, it's naming was confusing
27621 - Added PostQuitMessage() which causes GetMessage to return false
27622 once the message queue is empty
27623 * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added
27625 * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
27626 no longer a valid XplatUI method, but left it in since it's used
27627 internally. Added empty PostQuitMessage() method.
27628 * MenuAPI.cs: Replaced call to Exit() with call to
27629 PostQuitMessage, even though this is probably no longer needed.
27630 * Hwnd.cs: Added 'pretty' ToString() to support debugging.
27631 * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
27633 - Replaced call to XplatUI.Exit() with PostQuitMessage()
27634 - Removed old debug code that would call XplatUI for exception
27635 display, enabled standard exception handling (Still not enabled
27636 though, until NativeWindow's ExternalExceptionHandler define
27639 - Added internal method to allow control to update NativeWindow
27640 after a window has been destroyed
27641 - Added handling of already destroyed windows when calling i
27643 - Added removal of handle from list on ReleaseHandle
27645 - Dropped GetMessageResult var and related code
27646 - Added PostQuitState to field to track if PostQuitMessage has been
27648 - Dropped Exit() method
27649 - Added PostQuitMessage() method
27650 - GetMessage now will return false if PostQuitState is set and no
27651 more messages are in the queue.
27652 - Expose handler will no longer generate WM_PAINT messages if we are
27653 in PostQuitState since it's very likely any windows have already
27654 been destroyed, and since Hwnd won't get updated until we have
27655 processed the DestroyNotify we'd be causing X errors.
27657 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
27659 * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
27660 Thanks to Mike for pointing out the err of my ways.
27662 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
27664 * Control.cs(PreProcessMessage): Moved menu handling back, but
27665 after all other key handling, to match MS (who handles Menu in
27667 * Menu.cs (WndProc): Removed my brainfart
27669 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
27671 * Control.cs(PreProcessMessage): Removed special menu handling
27672 * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
27674 2005-12-07 Mike Kestner <mkestner@novell.com>
27676 * Control.cs : special case SYSKEYUP so that we can adjust keynav
27677 state according in tracker.
27678 * Menu.cs : promote tracker field to base class and provide a tracker
27679 lookup capability. Add/Remove shortcuts dynamically if the top menu
27680 has a tracker. Unparent items that are removed from the collection.
27681 * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
27682 * Theme*.cs: add always_show_hotkeys field to support configurability
27683 of mnemonic display. win32 doesn't show mnemonics until Alt is
27686 2005-12-07 Jackson Harper <jackson@ximian.com>
27688 * MdiChildContext.cs: Use Control.ResetCursor.
27689 * Control.cs: ResetCursor needs to set the property so that the
27690 correct XplatUI call gets made.
27692 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
27694 * Control.cs: More fixes to make our key events match MS. We
27695 were not setting the modifier state on KeyData, and we were
27696 not generating any events when Alt was pressed with a key
27697 since handling of WM_SYSxxx was missing for the OnKey methods.
27699 2005-12-07 Jackson Harper <jackson@ximian.com>
27701 * MdiChildContext.cs: reenable the sizing code.
27702 - When the mouse leaves a window reset its cursor.
27704 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
27706 * ThemeClearlooks.cs: Reflect latest Hwnd changes
27708 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
27710 * Hwnd.cs: Now using the theme 3d bordersize to calculate
27711 widths of Fixed3D borders
27713 2005-12-07 Jackson Harper <jackson@ximian.com>
27715 * MdiClient.cs: Fix warnings. Earn Mike's love.
27717 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
27719 * ThemeClearlooks.cs:
27720 - Adjusted mouse over button color
27721 - Added first parts of CheckBox drawing
27722 - Added correct color for selected text background
27723 - Fixed ComboBox drawing
27724 - Added CPDrawBorder3D and CPDrawBorder
27726 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
27728 * XplatUIX11.cs: Added call to XBell for AudibleAlert
27730 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
27732 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
27733 XplatUIOSX.cs: Added AudibleAlert() method to have a means to
27734 alert users via sound. We could add an enum arg with different
27735 types of alerts in the future
27737 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
27739 * Control.cs: Fix behaviour problems pointed out by Mike
27741 2005-12-05 Mike Kestner <mkestner@novell.com>
27743 * StatusBarPanel.cs: add Invalidate method and hook it into all the
27744 prop setters. Calls parent.Refresh for now, but could be maybe be
27745 optimized with an internal method on StatusBar at some point.
27748 2005-12-05 Peter Dennis Bartok <pbartok@novell.com>
27750 * RichTextBox.cs: Implemented get_SelectionColor
27752 2005-12-05 Alexander Olk <alex.olk@googlemail.com>
27754 * ThemeClearlooks.cs:
27755 - Removed dead code
27756 - Draw black button border only if button is Form.AcceptButton
27757 - Draw correct button color for pressed RadioButton if the mouse
27758 has entered the button
27759 - Updated ProgressBar drawing!
27760 - Updated CPDrawSizeGrip drawing
27761 - Updated StatusBarPanel drawing
27763 2005-12-05 Mike Kestner <mkestner@novell.com>
27765 * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
27766 * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
27768 2005-12-04 Alexander Olk <alex.olk@googlemail.com>
27770 * ThemeClearlooks.cs: Initial check-in, activate with
27771 export MONO_THEME=clearlooks
27772 * ThemeEngine.cs: Added ThemeClearlooks
27774 2005-12-03 Mike Kestner <mkestner@novell.com>
27776 * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
27779 2005-12-02 Jackson Harper <jackson@ximian.com>
27781 * Form.cs: If the child form has no menu the default main menu is
27782 used as the active menu.
27784 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
27786 * ListBox.cs: Check if any items exist before trying to resolve
27787 coordinates into items
27789 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
27791 * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
27792 as the second color for the background hatch
27794 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
27796 * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
27797 * RichTextBox.cs: FormatText position arguments are 1-based, now making
27798 sure that what we pass to FormatText is always 1-based. Fixes #76885
27800 2005-11-29 Miguel de Icaza <miguel@novell.com>
27802 * NumericUpDown.cs (EndInit): When we are done initializing,
27803 reflect any updates on the UI.
27805 2005-12-02 Jackson Harper <jackson@ximian.com>
27807 * ImplicitHScrollBar.cs:
27808 * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
27809 their container controls.
27810 * TreeView.cs: Use the new implicit scrollbars.
27812 2005-12-02 Jackson Harper <jackson@ximian.com>
27814 * TreeView.cs: Make top_node internal so the TreeNodeCollections
27816 * TreeNodeCollection.cs: If we remove the topnode we need to
27817 update topnode to the next node in line.
27818 - When clearing nodes go through the same process as removing
27819 them, so they get depareneted and checked if they are top node.
27821 2005-12-01 Jackson Harper <jackson@ximian.com>
27823 * TreeView.cs: When imagelists are used the image area is
27824 selectable as well as the text.
27825 - If there are no selected nodes select the first one.
27826 * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
27827 so don't do it more then we need to.
27829 2005-12-01 Jackson Harper <jackson@ximian.com>
27831 * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
27832 that arrows can be scaled.
27834 2005-12-01 Jackson Harper <jackson@ximian.com>
27836 * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
27837 fail. Patch by Dieter Bremes
27839 2005-11-30 Jackson Harper <jackson@ximian.com>
27841 * Form.cs: Property is 2.0 only
27842 * PrintDialog.cs: Signature fix.
27844 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
27847 - No longer artificially moves text 2 pixels down (now that we have
27848 borders this is no longer needed)
27849 - Added calcs for left, hanging and right indent
27851 2005-11-23 Mike Kestner <mkestner@novell.com>
27853 * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
27855 2005-11-30 Jackson Harper <jackson@ximian.com>
27857 * MdiChildContext.cs: Set the cloned menus forms, as these don't
27858 get cloned as part of CloneMenu ().
27859 * Menu.cs: Make sure the parent of the items get set correctly
27860 when they are added. And the owners are notified of the changes.
27861 * Form.cs: Create an ActiveMenu property, so that when MDI is used
27862 we can change the menu being displayed/handled by the form without
27863 changing the menu assosciated with the form.
27864 - Don't let Mdi children draw/handle menus.
27866 2005-11-30 Jackson Harper <jackson@ximian.com>
27868 * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
27869 a MenuChanged event. Just to make the API a little more
27872 * MenuItem.cs: Use the new OnMenuChanged
27873 * MdiChildContext.cs: Handle menu merging.
27874 * Form.cs: Implement MergedMenu.
27876 2005-11-30 Jackson Harper <jackson@ximian.com>
27878 * Menu.cs: We were misusing Add. Add goes behind the specified
27879 index according to the docs, and does not replace the specified
27880 index. So I added an Insert method.
27882 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
27884 * TextBoxBase.cs: Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
27885 Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
27887 * RichTextBox.cs: Added calls to base for DnD events
27889 2005-11-28 Peter Dennis Bartok <pbartok@novell.com>
27892 - Fixed drag-selection related crash; style fixes
27893 - Implemented undo class
27894 o Implemented method to capture document state for specified
27895 range in document tree
27896 o Implemented method to restore captured document state
27897 o Implemented cursor tracking
27898 o Implemented basic undo stack
27899 - Added undo cursor tracking to methods altering cursor location
27900 - Added undo tracking to selection deletion (still missing
27901 other text-altering hookups)
27903 - Added SelectionLength property
27904 - Implemented CanPaste()
27905 - Implemented Paste()
27906 - Added missing protected methods
27907 - Fixed RTF->Document conversion; now uses font index 0 and color
27908 index 0 as the default font for the parsed text
27909 - Fixed RTF<->Document font size translation
27910 - Fixed RTF generation, now properly handles cross-tag boundaries
27911 for single line selection
27912 - No longer always appends blank line to generated RTF
27914 - Added missing attributes
27915 - Hooked up undo-related methods
27917 - Implemented Copy()
27918 - Implemented Paste()
27919 - Implemented Cut()
27920 - Fixed caret mis-behaviour on backspace across line-boundaries
27922 2005-11-29 Jackson Harper <jackson@ximian.com>
27924 * MdiClient.cs: Add a method for activating mdi children. Very
27925 basic right now. I imagine someday it might need more girth.
27926 * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
27927 children windows names are added to the menu item.
27928 * ThemeWin32Classic.cs: Draw the arrow if the item is an
27929 mdilist. This happens regardless of whether or not there are any
27930 mdi windows to see in the list, and according to my tests happens
27931 before the items are even added. Also happens if there isn't even
27932 an mdi client to get windows from.
27934 2005-11-29 Alexander Olk <alex.olk@googlemail.com>
27936 * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
27937 * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
27939 2005-11-29 Jordi Mas i Hernandez <jordimash@gmail.com>
27941 * DataGridTableStyle.cs:
27942 - Create always the styles for the missing columns even if they are
27943 provided by the user (not default table style)
27946 - Fixes SetDataBinding (always re-attach source)
27947 - Fixes SetNewDataSource (only clear styles if they are not for
27949 - Expands OnTableStylesCollectionChanged to handle style refresh
27950 and remove properly
27952 2005-11-29 Jackson Harper <jackson@ximian.com>
27954 * FileDialog.cs: Implement missing bits, remove some dead
27956 * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
27957 creation of the panel so that the options set on the dialog are
27958 seen when the panel is created.
27959 * TreeView.cs: raise a click when items are clicked.
27961 2005-11-29 Jackson Harper <jackson@ximian.com>
27963 * MdiClient.cs: Pass some signature methods through to base.
27965 2005-11-28 Jackson Harper <jackson@ximian.com>
27967 * ListView.cs: Raise the click event when items are clicked.
27969 2005-11-28 Jackson Harper <jackson@ximian.com>
27971 * MdiClient.cs: Make this algorithm even more beautiful. And fix
27974 2005-11-27 Alexander Olk <alex.olk@googlemail.com>
27976 * ThemeNice.cs: - Removed 1 pixel bitmaps
27977 - Use SmoothingMode.AntiAlias where it makes sense
27978 (ScrollButton arrow for example)
27979 - Enhanced Button focus drawing
27980 - Fixed ComboBox drawing (no artefacts anymore, focus
27981 rectangle is back again, reduced size of ComboButton, etc.)
27982 - Fixed RadioButton focus drawing for Appearence.Button
27983 - Slight ScrollButton redesign
27984 - Some LinearGradientBrush size fixes
27985 - GroupBoxes have now rounded edges
27986 - Fixed StatusBar drawing
27988 2005-11-25 Alexander Olk <alex.olk@googlemail.com>
27990 * ThemeNice.cs: - Remove dead code
27991 - use correct background colors for menus, etc.
27992 - Fake pixel drawing with 1 pixel bitmaps
27994 2005-11-24 Jackson Harper <jackson@ximian.com>
27996 * MdiClient.cs: Size the scrollbars when resizing the window.
27997 - Resize the maximized windows when the client is resized
27998 * Form.cs: Make the child context available
28000 2005-11-23 Jackson Harper <jackson@ximian.com>
28002 * MdiChildContext.cs: Don't size windows if they are maximized.
28004 2005-11-23 Mike Kestner <mkestner@novell.com>
28006 * ContextMenu.cs: use MenuTracker.
28007 * Control.cs: remove menu handle usage.
28008 * Form.cs: remove menu handle usage.
28009 * Hwnd.cs: remove menu handle usage.
28010 * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
28011 motion and clicks to the new Tracker handlers.
28012 * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
28014 * MenuAPI.cs: refactored to combine popup and menubar event handling.
28015 Killed the MENU and MENUITEM data types and associated collections
28016 since we now keep the info on Menu and MenuItem. Expanded TRACKER into
28017 MenuTracker class that exposes the leftovers from the old MenuAPI
28018 static methods. Restructured Capture handling so that only one grab is
28019 done for the entire menu hierarchy instead of handing off grabs to
28020 submenus. Tracker now has an invisible control to Capture when active.
28021 * MenuItem.cs: add sizing accessors, kill Create
28023 * Theme.cs: remove menu handle and MENU(ITEM) usage.
28024 * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
28025 MENU(ITEM). remove menu handle usage, use Menu directly.
28026 * XplatUIDriver.cs: remove menu handle usage.
28027 * XplatUIOSX.cs: remove menu handle usage.
28028 * XplatUIWin32.cs: remove menu handle usage.
28029 * XplatUIX11.cs: remove menu handle usage.
28031 2005-11-22 Jackson Harper <jackson@ximian.com>
28033 * Hwnd.cs: Don't compute the menu size for
28034 DefaultClientRectangle.
28035 - Reenable menu sizes being computed for GetClienRectangle.
28036 * Form.cs: Remove comment of trechery
28038 2005-11-22 Jackson Harper <jackson@ximian.com>
28040 * Hwnd.cs: The adjustments for the menu bar are made when it is
28041 attached to the form.
28043 2005-11-19 Jackson Harper <jackson@ximian.com>
28045 * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
28046 (just like on windows).
28048 2005-11-19 Jackson Harper <jackson@ximian.com>
28050 * MdiChildContext.cs: Handle all the buttons ourselves. We can't
28051 use real buttons anymore because they are in non client area. The
28052 one TODO here is that I need to somehow invalidate a section of
28053 the non client area.
28055 2005-11-18 Jackson Harper <jackson@ximian.com>
28057 * Control.cs: Put the enum check back in now that MDI doesnt have
28058 to use this to set border styles.
28059 * Form.cs: Only set mdi child windows borders if the handle has
28061 * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
28062 this directly on to the driver.
28063 - Get the move start position before adjusting for the titlebar
28064 height, this fixes the windows "skipping" when they are first
28067 2005-11-18 Jackson Harper <jackson@ximian.com>
28069 * XplatUIX11.cs: Just compute the mdi borders separately as they
28070 don't totally match up with normal form borders.
28072 2005-11-18 Jackson Harper <jackson@ximian.com>
28074 * Control.cs: Set WS_ styles for borders, so that the driver does
28075 not have to retrieve the control instance to figure out what kind
28076 of borders it should have.
28077 * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
28078 driver can know its an mdi child easily.
28079 * XplatUIX11.cs: Get the border styles and whether the window is
28080 MDI from the Styles and ExStyles params instead of having to get a
28081 control. This prevents a chicken and egg problem.
28083 2005-11-18 Jackson Harper <jackson@ximian.com>
28085 * MdiClient.cs: Fix typo so scrollbars show up correctly.
28087 2005-11-18 Jackson Harper <jackson@ximian.com>
28089 * MdiClient.cs: Calculate when to add and remove scrollbars
28091 * MdiChildContext.cs: Adjust the y position to take the titlebar
28093 - No height for FormBorderStyle.None
28095 2005-11-18 Jackson Harper <jackson@ximian.com>
28097 * Control.cs: Allow non enum values to be used for
28098 InternalBorderStyle. MDI does this to set a special border style.
28099 - New utility methods for converting points to/from client coords
28100 - Add the newly created control to the Controls collection before
28101 updating its style. This way UpdateStyle can walk the control
28102 heirarchy to find the control if needed.
28103 so I don't need to create a new Point object all the time.
28104 * Form.cs: Let MDI windows handle their border styles.
28105 - Set styles on MDI windows so the correct title style is derived.
28106 * MdiChildContext.cs: Move all the painting and window handling
28107 into the non client area.
28108 - Use correct sizing and put correct buttons on frames based on
28109 the FormBorderStyle.
28110 - Notify the mdi client about scrolling
28111 - Need to handle the buttons ourselves now, because they are all
28112 in non client areas and we can't add controls there.
28113 * MdiClient.cs: Halfway to scrolling, this implementation is
28114 somewhat broken though, we need to check to make sure other
28115 windows aren't causing scrolling before removing the bars. Also
28116 the bars need to be drawn on top, maybe I can switch implicit
28117 controls to be on top.
28118 * Hwnd.cs: caption_height and tool_caption_height are now
28119 properties of an hwnd, this way they can be set by the driver
28120 based on the type of window they are. In X11 the window manager
28121 handles the decorations so caption_height is zero unless its an
28123 - Add 3 pixel borders for MDI windows (0xFFFF).
28124 - Get rid of some code duplication, have DefaultClientRectanle
28125 just call GetClientRectangle.
28126 * XplatUIX11.cs: Pass caption_height and tool_caption_height to
28128 - Set border styles differently for mdi windows.
28129 * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
28132 2005-11-15 Mike Kestner <mkestner@novell.com>
28134 * Menu.cs: when adding an item to the collection, if item is already
28135 parented, remove it from the parent.
28137 2005-11-13 Alexander Olk <alex.olk@googlemail.com>
28139 * X11DesktopColors.cs: Added KDE support
28141 2005-11-11 Peter Dennis Bartok <pbartok@novell.com>
28144 - Clipboard methods now can translate Rtf format
28145 - No longer removes clipboard contents whenever a new format is added
28146 to allow placing multiple formats on the clipboard
28147 * Clipboard.cs: Clipboard now supports getting a IDataObject and
28148 will place all formats contained in it onto the clipboard. Also
28149 now cleans the clipboard before placing a new object onto it
28151 - Implemented set_Rtf
28152 - Implemented set_SelectedRtf
28153 - Created InsertRTFFromStream() method to allow single code base
28154 for all properties and methods that insert RTF into document
28155 - Removed debug output
28157 - Fixed Delete(int) to fix up line numbers
28158 - Fixed ReplaceSelection to combine start and end line
28159 - Fixed serious DeleteChars bug that would leave the document tree
28161 - Improved DumpTree with several logic checks to detect broken
28163 - Removed debug lines
28164 - Fixed Caret.WordForward/WordBack moving code, now always also
28165 updates caret.tag (fixes crash when word-selecting across tag
28166 boundaries via keyboard)
28167 - Added Insert() method for inserting multiline text into documents
28168 - Fixed DeleteChars() calculation errors that would cause a broken
28169 tag chain with multiple tag lines
28170 - DeleteChars() no longer crashes on multi-tag lines if not all tags
28171 - Split() no longer moves caret if split is at caret location
28172 - ReplaceSelection() now updates the cursor and re-displays it
28173 - ReplaceSelection() now uses new Insert() method to avoid code
28175 - FormatText() can now handle formatting partial lines
28177 - Append now uses new TextControl.Insert() method (this avoids
28179 - Implemented Ctrl-X (Cut) (
28180 - Implemented Ctrl-C (Copy)
28181 - Implemented Ctrl-V (Paste) (Still some bugs related to screen
28182 regeneration when pasting text; roundtripping Copy&Paste within
28183 edit control still fails due to some calculation bugs in GenerateRTF)
28184 - The Delete key will now remove the current selection if it is visible
28185 * TextBox.cs: Removed debug lines
28186 * XplatUI.cs: Trigger initialization of DataFormats (which requires the
28187 driver to be initialized and can't therefore be done via a static ctor)
28189 2005-11-10 Peter Dennis Bartok <pbartok@novell.com>
28191 * TextControl.cs: Added backend code for finding char arrays and strings
28193 - Added mouse wheel scroll support
28194 - Added support for VScroll and HScroll events
28196 - Implemented all seven Find() variants
28197 - Implemented GetCharFromPosition()
28198 - Implemented GetCharIndexFromPosition()
28199 - Implemented GetLineFromIndex()
28200 - Implemented GetPositionFromCharIndex();
28201 - Implemented SaveFile for PlainText and UnicodeText
28202 - Fixed set_Font, now setting a new font applies that font to
28204 - Implemented generic Document to RTF converter
28205 - Implemented SaveFile for RichText format (still missing unicode
28206 conversion for non-ansi chars)
28207 - Implemented get_Rtf
28208 - Implemented get_SelectedRtf
28210 2005-11-09 Peter Dennis Bartok <pbartok@novell.com>
28212 * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
28213 to allow any captures to be released before triggering OnClick. This
28214 way a click handler may capture the mouse without interference.
28215 * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
28216 This way we send them even though X may not allow a grab (if the window
28217 isn't visible, for example)
28219 2005-11-08 Pedro Martinez Julia <pedromj@gmail.com>
28221 * DataGridViewRowEventArgs.cs: DataGridView implementation
28222 * DataGridViewElement.cs: DataGridView implementation
28223 * DataGridViewComboBoxCell.cs: DataGridView implementation
28224 * DataGridViewDataErrorContexts.cs: DataGridView implementation
28225 * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
28226 * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
28227 * ImageLayout.cs: DataGridView implementation
28228 * DataGridViewComboBoxColumn.cs: DataGridView implementation
28229 * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
28230 * DataGridViewSelectionMode.cs: DataGridView implementation
28231 * IDataGridViewEditingControl.cs: DataGridView implementation
28232 * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
28233 * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
28234 * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
28235 * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
28236 * DataGridViewColumnSortMode.cs: DataGridView implementation
28237 * DataGridView.cs: DataGridView implementation
28238 * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
28239 * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
28240 * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
28241 * Padding.cs: DataGridView implementation
28242 * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
28243 * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
28244 * DataGridViewRowEventHandler.cs: DataGridView implementation
28245 * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
28246 * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
28247 * DataGridViewButtonCell.cs: DataGridView implementation
28248 * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
28249 * DataGridViewEditMode.cs: DataGridView implementation
28250 * DataGridViewCellValueEventArgs.cs: DataGridView implementation
28251 * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
28252 * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
28253 * DataGridViewCheckBoxColumn.cs: DataGridView implementation
28254 * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
28255 * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
28256 * DataGridViewCellEventHandler.cs: DataGridView implementation
28257 * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
28258 * DataGridViewCellStyleConverter.cs: DataGridView implementation
28259 * DataGridViewSelectedRowCollection.cs: DataGridView implementation
28260 * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
28261 * DataGridViewColumnEventArgs.cs: DataGridView implementation
28262 * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
28263 * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
28264 * QuestionEventArgs.cs: DataGridView implementation
28265 * IDataGridViewEditingCell.cs: DataGridView implementation
28266 * DataGridViewTriState.cs: DataGridView implementation
28267 * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
28268 * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
28269 * DataGridViewColumnCollection.cs: DataGridView implementation
28270 * DataGridViewCellValueEventHandler.cs: DataGridView implementation
28271 * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
28272 * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
28273 * DataGridViewColumn.cs: DataGridView implementation
28274 * DataGridViewCellBorderStyle.cs: DataGridView implementation
28275 * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
28276 * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
28277 * DataGridViewRow.cs: DataGridView implementation
28278 * DataGridViewImageCellLayout.cs: DataGridView implementation
28279 * DataGridViewImageCell.cs: DataGridView implementation
28280 * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
28281 * DataGridViewCheckBoxCell.cs: DataGridView implementation
28282 * DataGridViewHeaderCell.cs: DataGridView implementation
28283 * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
28284 * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
28285 * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
28286 * DataGridViewTextBoxColumn.cs: DataGridView implementation
28287 * QuestionEventHandler.cs: DataGridView implementation
28288 * DataGridViewCellStyleScopes.cs: DataGridView implementation
28289 * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
28290 * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
28291 * DataGridViewCell.cs: DataGridView implementation
28292 * DataGridViewCellEventArgs.cs: DataGridView implementation
28293 * DataGridViewClipboardCopyMode.cs: DataGridView implementation
28294 * DataGridViewCellStyle.cs: DataGridView implementation
28295 * DataGridViewColumnHeaderCell.cs: DataGridView implementation
28296 * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
28297 * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
28298 * TextFormatFlags.cs: DataGridView implementation
28299 * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
28300 * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
28301 * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
28302 * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
28303 * DataGridViewButtonColumn.cs: DataGridView implementation
28304 * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
28305 * HandledMouseEventArgs.cs: DataGridView implementation
28306 * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
28307 * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
28308 * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
28309 * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
28310 * DataGridViewRowCollection.cs: DataGridView implementation
28311 * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
28312 * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
28313 * DataGridViewHitTestType.cs: DataGridView implementation
28314 * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
28315 * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
28316 * DataGridViewColumnEventHandler.cs: DataGridView implementation
28317 * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
28318 * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
28319 * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
28320 * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
28321 * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
28322 * DataGridViewContentAlignment.cs: DataGridView implementation
28323 * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
28324 * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
28325 * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
28326 * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
28327 * DataGridViewPaintParts.cs: DataGridView implementation
28328 * DataGridViewCellCollection.cs: DataGridView implementation
28329 * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
28330 * DataGridViewImageColumn.cs: DataGridView implementation
28331 * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
28332 * DataGridViewElementStates.cs: DataGridView implementation
28333 * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
28334 * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
28335 * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
28336 * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
28337 * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
28338 * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
28339 * DataGridViewRowHeaderCell.cs: DataGridView implementation
28340 * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
28341 * DataGridViewTextBoxCell.cs: DataGridView implementation
28342 * DataGridViewBand.cs: DataGridView implementation
28343 * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
28344 * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
28345 * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
28346 * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
28347 * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
28348 * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
28349 * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
28350 * DataGridViewSelectedCellCollection.cs: DataGridView implementation
28351 * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
28352 * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
28353 * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
28355 2005-11-08 Peter Dennis Bartok <pbartok@novell.com>
28357 * ThemeWin32Classic.cs:
28358 - Draw the outside focus rectangle around buttons
28359 - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
28360 doesn't use end caps for every dash of a line anymore. This
28361 workaround ignores the forecolor.
28363 2005-11-08 Kornél Pál <kornelpal@hotmail.com>
28365 * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
28368 2005-11-07 Jackson Harper <jackson@ximian.com>
28370 * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
28372 2005-11-07 Jackson Harper <jackson@ximian.com>
28374 * ScrollableControl.cs: Calculate the maximum and change vars
28375 (more) correctly so that scrollbars appear as a sensible size.
28377 2005-11-04 Jackson Harper <jackson@ximian.com>
28379 * TreeNodeCollection.cs: Refresh when nodes are cleared from the
28381 * TreeView.cs: When the tree is sorted null out the top_node so
28382 that it is recalculated.
28383 - Use dotted lines instead of dashed lines to match MS better.
28385 2005-11-04 Jordi Mas i Hernandez <jordimash@gmail.com>
28388 - Implements key search for items. Useful when browsing files with FileDialog
28389 - When changing view mode or when clear the items reset scrollbar positions
28391 2005-11-04 Jackson Harper <jackson@ximian.com>
28393 * CurrencyManager.cs: Implement the MetaDataChanged event, the
28394 Reset method, and the CheckEmpty. CheckEmpty is just a total guess
28395 as to what the method may do as there is no real way of creating a
28396 derived CurrencyManager and calling the method.
28398 2005-11-03 Jackson Harper <jackson@ximian.com>
28400 * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
28401 * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
28402 method which seems to just be used internally to refresh the tabs.
28404 2005-11-03 Jackson Harper <jackson@ximian.com>
28406 * TabControl.cs: Implement the remove method. Fix some broken
28409 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
28411 * DateTimePicker.cs:
28412 - Added missing DateTimePickerAccessibleObject class
28413 - Added missing events
28414 - Added OnFontChanged method
28415 * Form.cs: Added missing attributes
28416 * TreeView.cs: Added missing attributes
28418 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
28420 * GridItemCollection.cs: Fix signatures
28422 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
28424 * XplatUI.cs: Updated build rev/date
28425 * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs,
28426 DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
28427 * Application.cs: Trigger context-specific ExitThread events
28429 2005-11-03 Jackson Harper <jackson@ximian.com>
28433 * GridTableStylesCollection.cs:
28438 * MonthCalendar.cs: Signature fixes
28440 2005-11-03 Jackson Harper <jackson@ximian.com>
28442 * TreeNodeCollection.cs: Remove should not be virtual.
28443 * TreeView.cs: Implement the last of the missing methods.
28445 2005-11-03 Jackson Harper <jackson@ximian.com>
28447 * TreeNodeConverter.cs: Implement to get off my class-status back.
28449 2005-11-03 Jackson Harper <jackson@ximian.com>
28451 * TreeView.cs: Hookup the bits for drag and drop.
28452 * TreeNode.cs: Don't cache the tree_view or index anymore, now
28453 that nodes can be moved from tree to tree easily this just causes
28454 all sorts of problems.
28455 * TreeNodeCollection: Don't need to give treenodes an index and
28456 treeview anymore when they are added, these are computed on the
28457 fly. Also make sure to remove a node before its added.
28459 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
28462 - Added CaretSelection enum
28463 - Added comparison methods to Marker struct, makes selection code
28465 - Added SelectionStart and SelectionEnd as 'moveable' location for
28466 the CaretDirection enum and handler
28467 - Added selection_prev variable to track optimized invalidation for
28468 word and line selection
28469 - Added SelectionVisible property (returns true if there is a valid
28471 - Switched CaretHasFocus to only display the caret if there is no
28473 - Avoiding StringBuilder.ToString to retrieve a single char, instead
28474 using the direct character index; should be much faster
28475 - Added various conditional debug statements
28476 - Fixed invalidation calculation for selection ranges
28477 - Added ExpandSelection() method to support word and line selection
28478 - Switched SetSelectionToCaret to use new Marker compare overloads
28479 - Added central IsWordSeparator() method to determine word
28480 separators/whitespace and FindWordSeparator() to streamline common
28481 usage of IsWordSeparator()
28483 - Removed unneeded grabbed variable, it was just mirroring
28485 - No longer firing OnTextChanged event when Text setter is called,
28486 since the base will fire the event for us
28487 - Added handling of Ctrl-Up/Down selection
28488 - Added handling of Shift-Cursorkey selection
28489 - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
28491 - Added handling of Shift and Ctrl-Shift-Home/End selection
28492 - Removed some debug output
28493 - Added handling for single/double/tripple-click to place caret/
28494 select word/select line respectively (Fixes bug #76031)
28495 - Added support for drag expansion of word/line selection
28496 * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
28499 2005-11-02 Jackson Harper <jackson@ximian.com>
28501 * X11Dnd.cs: If the drag is going to and from a MWF window just
28502 copy the data instead of sending it out through the X Selection
28505 2005-11-02 Jackson Harper <jackson@ximian.com>
28508 * XplatUIX11.cs: When in a drag we don't want motion notify
28509 messages to get passed on to the other controls. This prevents
28510 mouse move messages from showing up in the drag source.
28512 2005-11-02 Jackson Harper <jackson@ximian.com>
28514 * X11Dnd.cs: Remove unneeded call to XAllowEvents. Make sure that
28515 the correct button is release to end a drag.
28516 * XplatUIX11.cs: Make the button state internal so the drag system
28517 can access it. Dragging needs to know about all button releases,
28518 not just left button.
28520 2005-11-02 Miguel de Icaza <miguel@novell.com>
28522 * Form.cs (Icon): If the icon is null, reset the icon to the
28525 * Cursor.cs: When writing the AND-mask bitmap do not include the
28526 number of colors, but hardcode those to two (black and white),
28527 fixes the loading of color cursors (Paint Dot Net).
28529 * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
28530 turn off autoscaling.
28532 * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
28534 2005-11-02 Jackson Harper <jackson@ximian.com>
28536 * X11Dnd.cs: Make sure to send a status message if the pointer
28537 enters a control that can not accept a drop, otherwise the cursor
28538 isn't updated correctly. Also tried to compress the lines of code
28541 2005-11-02 Jackson Harper <jackson@ximian.com>
28543 * X11Dnd.cs: Change cursors based on drag action. Also attempt to
28544 set actions correctly. This isn't perfect as XDND and win32 have
28545 some differences on how you allow actions. I'll clear this up by
28546 adding a path for drag from MWF to MWF windows.
28547 * XplatUIX11.cs: Hook into the dnd system.
28549 2005-11-02 Jordi Mas i Hernandez <jmas@softcatala.org>
28551 * ListView.cs: Fixes scroll bar visibility. Hide them if they were
28552 previously shown but they are no longer need it. Very obvious when
28553 browsing files with FileDialog.
28555 2005-11-01 Peter Dennis Bartok <pbartok@novell.com>
28557 * Control.cs: We always need to call OnPaintBackground. We pretty much
28558 ignore AllPaintingInWmPaint and always do the painting there, whether
28559 it's set or not, since we always ignore the WM_ERASEBKGND message
28560 (which we don't generate on X11). This fixes #76616.
28561 * Panel.cs: Removed unneeded background painting. This happens properly
28562 in Control.cs already
28564 2005-10-31 Mike Kestner <mkestner@novell.com>
28566 * Menu.cs: Add items to collection before setting their index.
28567 * MenuItem.cs : add range checking with ArgumentException like MS.
28570 2005-10-31 Jackson Harper <jackson@ximian.com>
28572 * ListBox.cs: Invalidate if the area is visible at all not just
28573 contained in the visible rect. Fixes unselection of semi visible
28576 2005-10-31 Jackson Harper <jackson@ximian.com>
28578 * Control.cs: Consistently name the dnd methods. Make them
28579 internal so we can override them to match some MS behavoir
28581 * Win32DnD.cs: Use the new consistent names.
28583 2005-10-31 Jackson Harper <jackson@ximian.com>
28585 * TreeView.cs: Don't draw the selected node when we lose focus.
28587 2005-10-31 Jackson Harper <jackson@ximian.com>
28589 * X11Dnd.cs: We still need to reset the state even though a full
28590 reset isn't being done, otherwise status's still get sent all over
28593 2005-10-31 Jackson Harper <jackson@ximian.com>
28595 * Control.cs: Make the dnd_aware flag internal so the dnd
28596 subsystem can check it. Catch exceptions thrown in dnd handlers to
28598 * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
28599 * X11Dnd.cs: Handle null data in the converters. Set the XDND
28600 version when sending a XdndEnter. Use the control/hwnd dnd_aware
28601 flags to reduce the number of dnd enters/status's sent.
28603 2005-10-31 Jackson Harper <jackson@ximian.com>
28605 * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
28607 2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com>
28609 * PictureBox.cs: Fixes 76512
28611 2005-10-28 Jackson Harper <jackson@ximian.com>
28613 * X11Dnd.cs: Early implementation to support winforms being a drag
28614 source for data on X11. Also restructured the converters so they
28615 can go both ways now.
28616 * XplatUIX11.cs: Tie ins to the the Dnd stuff.
28618 2005-10-27 Peter Dennis Bartok <pbartok@novell.com>
28620 * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
28623 2005-10-27 Jackson Harper <jackson@ximian.com>
28625 * TreeNode.cs: Implement serialization so my DnD examples will work.
28627 2005-10-24 Kornél Pál <kornelpal@hotmail.com>
28629 * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
28630 TreeView.cs: Don't dispose objects that are not owned.
28632 2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
28634 * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
28635 should retrieve the current cursor and report that, but XplatUI
28636 doesn't (yet) have an interface for that (and I'm not sure I even
28638 * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
28639 until any message loop processing is done (and the WM_SETCURSOR
28640 replaces the cursor to the proper one)
28642 - Fixed override behaviour, we can't set the cursor globally on X11,
28643 just for our windows.
28644 - Invalidating the System.Drawing X11 display handle when we are
28646 * Control.cs: Fix to make csc happy
28648 2005-10-23 Peter Dennis Bartok <pbartok@novell.com>
28651 - get_Text: Add last line (without trailing newline) to returned
28652 value (Fixes 76212)
28653 - get_TextLength: Count last line in returned length
28654 - ToString: Call Text property instead of duplicating code
28656 2005-10-23 Kornél Pál <kornelpal@hotmail.com>
28658 * ImageList.cs: Dispose ImageAttributes objects.
28660 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
28662 * ImageList.cs: Use attribute constructors with less arguments where
28665 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
28667 * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
28668 Use typeof instead of strings when assembly is referenced. Added
28669 some more comments.
28671 2005-10-21 Jackson Harper <jackson@ximian.com>
28673 * ListView.cs: Raise a double click event. Also tried to somewhat
28674 fix when the selectedindexchanged event is raised. Its still
28677 2005-10-21 Jackson Harper <jackson@ximian.com>
28679 * TreeView.cs: New method to invalidate the plus minus area of a
28680 node without invalidating the whole node (maybe this can be used
28681 in some more places).
28682 * TreeNodeCollection.cs: When adding to an empty node we need to
28683 invalidate its plus minus area so the little block shows up.
28685 2005-10-21 Jackson Harper <jackson@ximian.com>
28687 * TreeView.cs: Make sure that when we invalidate a node the bounds
28688 are big enough to cover the selected box and the focus
28689 rectangle. Use a different colour for the lines connecting nodes
28690 so they show up with all themes.
28692 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
28694 * NativeWindow.cs: Don't call anything that could call into the driver,
28695 we might be on a different thread.
28697 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
28699 * Control.cs(Dispose): Since Dispose might run on a different thread,
28700 make sure that we call methods that could call into the driver via
28701 invoke, to avoid thread issues
28703 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
28705 * XplatUI.cs: Removed finalizer
28706 * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
28707 not allowing to be called on the finalizer thread.
28709 2005-10-21 Kornél Pál <kornelpal@hotmail.com>
28712 - Reverted r51889 and r51891.
28713 - Added ImageListItem class that stores unmodified image items and image
28714 properties required to create list images until handle is created.
28715 - Added AddItem and moved image creation logic to AddItemInternal.
28716 - Added CreateHandle method that creates images based on unmodified items.
28717 - Added DestroyHandle that changes state to store unmodified items.
28718 - Add and AddStrip methods no more create handle.
28719 - ReduceColorDepth has no return value.
28720 - Dispose destroys handle.
28721 - Modified other methods to reflect the above changes.
28722 - Implemented key support.
28723 - Added profile 2.0 members and attributes.
28724 - Added private Reset and ShouldSerialize methods that provide the same
28725 behavior as MS.NET but the Visual Studio .NET designer seems to ignore
28726 them as they are private.
28727 - Added some more comments about implementation details.
28729 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
28731 * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
28733 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
28735 * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
28737 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
28739 * DataGridDrawingLogic.cs: Fixes column hit calcultation
28740 * DataGridColumnStyle.cs: Remove debug message
28742 2005-10-20 Jackson Harper <jackson@ximian.com>
28744 * TreeView.cs: We can always get input keys regardless of whether
28745 or not editing is enabled. They are used for navigation.
28747 2005-10-20 Jackson Harper <jackson@ximian.com>
28749 * TreeNode.cs: Use the viewport rect for determining if a node
28750 needs to be moved for visibility. Don't use Begin/End edit. This
28751 calls a full refresh when its done.
28752 * TreeView.cs: New SetBottom works correctly. Make the viewport
28753 rect property internal so the treenodes can see it. When clicking
28754 on a node we need to ensure that its visible because it might just
28755 be partly visible when clicked.
28757 2005-10-20 Jackson Harper <jackson@ximian.com>
28759 * TreeNodeCollection.cs: Remove debug code.
28761 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
28763 * Datagrid.cs: Implements column sorting in Datagrid
28764 * DataGridColumnStyle.cs: Implements column sorting in Datagrid
28766 2005-10-20 Jackson Harper <jackson@ximian.com>
28768 * TreeNodeCollection.cs: Remove items properly. Update the correct
28769 area after removing them.
28771 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
28773 * Datagrid.cs: Should not call base.OnPaintBackground
28775 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
28777 * XplatUIX11.cs (GetMessage):
28778 - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
28779 window instead of client window
28780 - Now properly calculates NC_xBUTTONUP message coordinates
28781 - ScreenToMenu now properly calculates it's coordinates of whole
28782 window, since menus are in the whole window, not in the client
28784 - Added WholeToScreen coordinate translation method
28786 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
28788 * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
28789 want to return a message, loop back to the beginning of the function
28790 and grab the next real message to process instead.
28792 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
28794 * Splitter.cs: Properly set limits if no filler control is used
28796 2005-10-19 Jackson Harper <jackson@ximian.com>
28798 * ColorDialog.cs: Don't show the help button if it is not enabled
28799 instead of disabling it (this is what MS does). Don't create the
28800 panel until the dialog is run, otherwise the vars (such as
28801 ShowHelp) are not set yet.
28803 2005-10-19 Jackson Harper <jackson@ximian.com>
28805 * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
28806 are reduced when adding nodes.
28808 * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
28811 2005-10-19 Jackson Harper <jackson@ximian.com>
28813 * FolderBrowserDialog.cs: End editing our treeview so the window
28814 actually gets refreshed.
28816 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
28818 * Control.cs: Fixed logic flip on when to call OnPaintBackground.
28819 Obsoleted handling of WM_ERASEBKGND, now always draws our background
28822 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
28824 * MenuAPI.cs: Returns after Hidding window
28825 * XplatUIX11.cs: Added TODO found while debugging menu issues
28827 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
28829 * XplatUIX11.cs: Do not re-map the whole window when it's size
28830 becomes non-zero unless it's supposed to be actually visible
28832 2005-10-18 Jackson Harper <jackson@ximian.com>
28834 * TreeView.cs: We don't need to keep a count anymore.
28835 * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
28836 use the Grow method.
28838 2005-10-18 Jackson Harper <jackson@ximian.com>
28840 * TreeNodeCollection.cs: Insert is not supported on arrays, so
28841 implement it manually here.
28843 2005-10-18 Jackson Harper <jackson@ximian.com>
28845 * ImageList.cs: Dont kill the list when the colour depth is
28846 changed, just change the colour depth of all the images.
28847 - Same goes for setting the image size. Just resize them all
28848 instead of killing the list softly.
28850 2005-10-18 Jackson Harper <jackson@ximian.com>
28852 * Control.cs: Don't invalidate empty rectangles.
28854 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
28857 - Adds checked item to the Checked/Item lists (where empty before)
28858 - Do not add items to the Selected lists if they are already present
28860 - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
28861 - When deleting items make sure that we delete them for the Selected
28862 and Checked list also.
28864 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
28866 * Label.cs: Dispose objects no longer used
28867 * ThemeWin32Classic.cs: Dispose objects no longer used
28869 2005-10-18 Jackson Harper <jackson@ximian.com>
28871 * TabControl.cs: Don't refresh the whole control when the tabs are
28872 scrolled, we just need to refresh the tab area.
28874 2005-10-17 Jackson Harper <jackson@ximian.com>
28876 * XplatUIX11.cs: Compress code a little bit. Only calculate the
28877 after handle when we need it.
28879 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
28881 * Control.cs: When the parent size changes, recalculate anchor
28882 positions. Partial fix for #76462
28884 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
28886 * ThemeWin32Classic.cs: Make sure the picturebox has it's background
28887 drawn. Fixes #76462
28889 2005-10-17 Jackson Harper <jackson@ximian.com>
28891 * MonthCalendar.cs: Don't create the numeric up down until our
28892 handle is created. Otherwise our handle is created in the
28893 constructor and we don't know if we are a WS_CHILD or WS_POPUP
28896 2005-10-17 Jackson Harper <jackson@ximian.com>
28898 * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
28901 2005-10-17 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
28902 * TreeNode.cs : small logical fix (was using local var instead of field)
28904 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
28906 * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
28908 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
28910 * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
28912 2005-10-16 Peter Dennis Bartok <pbartok@novell.com>
28915 - Re-implemented anchoring code. My first version was really broken.
28916 This fixes bug #76033. Unlike the previous implementation we will
28917 no longer have round errors since all numbers are calculated from
28918 scratch every time. Removed various anchor-related obsolete vars.
28919 - InitLayout no longer causes layout event firing and layout to be
28922 2005-10-16 Jackson Harper <jackson@ximian.com>
28924 * Hwnd.cs: Compute invalid area correctly (fixes my last commit
28927 2005-10-16 Jackson Harper <jackson@ximian.com>
28929 * TabControl.cs: Remove debug code.
28931 2005-10-16 Jackson Harper <jackson@ximian.com>
28933 * XEventQueue.cs: Increase the default queue size (very simple
28934 apps needed to grow the queue).
28935 * Hwnd.cs: No finalizer so we don't need to suppress
28936 finalization. Compute the invalid area manually so a new rectangle
28937 does not newto be created.
28938 * ScrollableControl.cs: Don't set any params (otherwise visibility
28939 isn't set correctly).
28940 * MdiChildContext.cs: New constructor takes the mdi parent so it
28941 doesn't have to be computed and avoids a crash on windows. Draw
28942 the window icon properly, and allow the text to be seen.
28943 * Form.cs: Use new MdiChildContext constructor. Make sure the
28944 child context isn't null in wndproc.
28945 * TabControl.cs: Don't set focus, this is muddling keyboard
28946 behavoir. Expand the tab rows when a window size increase will
28947 allow extra tabs to be seen. Don't allow tabs smaller than the
28948 width of a window to be scrolled out of view.
28950 * TreeView.cs: Use measure string to calculate a nodes width, the
28951 width is cached and only updated when the text or the font is
28952 changed. Don't check for expand/collapse clicks on the first level
28953 nodes if root lines are disabled.
28955 2005-10-16 Ritvik Mayank <mritvik@novell.com>
28957 * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
28959 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
28961 * DataGridBoolColumn.cs: fixes warning
28963 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
28965 * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
28966 to match more to match more precisely the MS Net behavior
28968 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
28970 * Hwnd.cs: Added field to track if window is mapped
28972 - Unmap windows if they become 0-size, re-map when
28973 they are >0 again; fixes #76035
28974 - Re-set our error handler after initializing X11Desktop
28975 to override any error handlers Gtk or whatever was called
28978 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
28980 * CheckedListBox.cs: Removed unused vars
28981 * ListView.cs: Fixed signatures
28982 * RichTextBox.cs: Removed unused vars
28983 * TextBoxBase.cs: Removed unused vars
28984 * XplatUIWin32.cs: Removed unused vars
28985 * XplatUIX11.cs: Removed unused vars
28986 * XplatUI.cs: Updated version and date to latest published
28988 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
28990 * Cursor.cs: Added private .ctor to work around a bug in
28991 resourceset (Thanks to Geoff Norton for the help on this)
28992 * SplitterEventArgs.cs: Made fields accessible so we don't
28993 waste boatloads of objects and can reuse the same one
28995 * XplatUIWin32.cs(DrawReversibleLine): Now also considers
28996 any captions and borders when generating screen coordinates
28997 * Splitter.cs: Reimplemented control, now fully complete, uses
28998 rubberband drawing, supports and obeys all properties, has
29001 2005-10-13 Miguel de Icaza <miguel@novell.com>
29003 * Form.cs (Form): Setup default values for autoscale and
29004 autoscale_base_size; Make these instance variables, not static
29007 (OnLoad): on the first load, adjust the size of the form.
29009 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
29011 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added
29012 width argument to DrawReversibleRectangle()
29013 * XplatUIWin32.cs, XplatUIX11.cs:
29014 - Implemented width for DrawReversibleRectangle()
29015 - Added logic to DrawReversibleRectangle that recognizes a zero
29016 width or height and only draws a line in that situation
29018 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
29020 * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
29021 * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
29022 * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
29023 method (it uses our FosterParent window to get a graphics context)
29025 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
29027 * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground
29028 and SetWindowBackground methods
29030 - Setting proper ControlStyles
29031 - We no longer call XplatUI.SetWindowBackground and XplatUI.
29032 EraseWindowBackground, instead we draw the window background
29033 ourselves in PaintControlBackground. This behaviour is
29034 required to match MS, where, when OnPaintBackground is not
29035 called, the background is not drawn.
29036 - Removed unneeded Refresh() in set_Text
29037 * Hwnd.cs: Dropped the ErasePending support. No longer needed
29039 - Created DeriveStyles method to translate from CreateParams to
29040 FormBorderStyle and TitleStyle, also handles BorderStyle (which
29041 matches FormBorderStyle enum values)
29042 - Consolidated SetHwndStyles and CalculateWindowRect border/title
29043 style calculations into single DeriveStyles method
29044 - Fixed CreateWindow to (finally) use Gravity. This prevents X11
29045 from redrawing the whole window on any resize or expose.
29046 - Fixed CreateWindow usage of SetWindowValuemask. Before not
29047 all styles were applied to our whole/client window appropriately
29048 - Removed EraseWindowBackground() and SetWindowBackground() methods
29049 - Removed handling of WM_ERASEBKGND message from DefWndProc, we
29050 no longer clear/redraw the background through X
29051 - Removed handling of erase_pending bit, we have no use for it (or
29054 - Removed generation and handling of WM_ERASEBKGND message
29055 - Removed EraseWindowBackground() and SetWindowBackground() methods
29056 - Removed handling of hwnd.ErasePending flag
29058 - Removed EraseWindowBackground() and SetWindowBackground() methods
29059 - We no longer call EraseWindowBackground on PaintEventStart, we
29060 ignore the fErase flag, erasing is handled in Control in the
29062 * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
29063 LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
29064 TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs,
29065 CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs,
29066 DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs,
29067 TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
29068 DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
29070 2005-10-12 Jonathan Chambers <jonathan.chambers@ansys.com>
29072 * PropertyGrids.cs: Get sub properties
29073 * PropertyGridView.cs: Fix drawing code
29075 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
29077 * ListBox.cs: Fixes 76383
29079 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
29081 * DataGridTextBoxColumn.cs: Sets location and size before attachment
29082 * ThemeWin32Classic.cs: Fixes border drawing and calculations
29083 * DataGridDrawingLogic.cs: Fixes border drawing and calculations
29086 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
29088 * ComboBox.cs: Fixes border drawing
29090 2005-10-10 Miguel de Icaza <miguel@novell.com>
29092 * MimeIcon.cs: Ignore errors if the file can not be read.
29094 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
29096 * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
29097 - Fixed border calculations
29098 - Fixed horizontal scrolling in single column listboxes
29099 - Fixed drawing issues
29101 2005-10-10 Peter Dennis Bartok <pbartok@novell.com>
29103 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to
29104 FormBorderStyle enum
29105 * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added
29106 code to determine FormBorderStyles from CreateParams
29108 - Fixed bug where we'd set the wrong window styles if we were
29109 not creating an MDI window
29110 - Added call to XplatUI.SetBorderStyle when form borders are set
29111 * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
29113 - Removed obsolete edge style
29114 - Switched from BorderStyle to FormBorderStyle
29116 2005-10-10 Jackson Harper <jackson@ximian.com>
29118 * Form.cs: Use the property to get the window handle instead of
29119 accessing it directly. Prevents a null reference exception.
29121 2005-10-10 Jackson Harper <jackson@ximian.com>
29123 * TreeView.cs: Don't adjust the rect given to DrawString now that
29124 our libgdiplus draws correctly.
29126 2005-10-08 Jackson Harper <jackson@ximian.com>
29128 * TreeView.cs: Don't try to find the clicked on node if there are
29129 no nodes in the tree.
29131 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
29137 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
29139 * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
29140 ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
29142 Use ResPool for brushes and dispose System.Drawing objects that
29143 are not used anymore.
29145 2005-10-07 Jackson Harper <jackson@ximian.com>
29147 * MdiChildContext.cs: Use the new borders instead of drawing them
29150 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
29152 * Calling UpdateBounds after changing the window's BorderStyle
29153 since the style can change the ClientSize
29155 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
29157 * Control.cs: Made PaintControlBackground virtual
29158 * Panel.cs: Overriding PaintControlBackground instead of using paint
29159 event; paint event method was interfering with 'real' users of the
29162 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
29164 * ThemeWin32Classic.cs: remove border drawing since it is handled
29165 by the base control class now and was causing double border drawing.
29167 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
29169 * Panel.cs: Redraw our background on paint. Not a pretty solution,
29170 but it does seem to match MS behaviour. This fixes bug #75324
29172 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
29174 * XplatUIX11.cs: A better DrawReversibleRectangle version, however
29175 somewhat hackish looking
29177 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
29180 - We now accept Enter even if AcceptEnter is false, if the containing
29181 form does not have an AcceptButton configured (fixes bug #76355)
29182 - Calculations are now fixed to no longer use Width/Height, but
29183 ClientSize.Width/Height, since we now support borders (this was
29184 a result of fixing borders and therefore bug #76166)
29185 - We no longer show the horizontal scrollbar if TextBox.WordWrap is
29186 true (fixes bug #76354)
29188 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
29191 - Defaulting BorderStyle and setting it in XplatUI when our window
29193 - Added enum check to InternalBorderStyle setter
29195 - Added drawing of window borders
29196 - Now properly calculates WM decorations offset for toplevel
29197 windows (fixes bug #74763)
29199 - Implemented BorderStyles for windows (we're letting win32 draw
29201 - Fixed the signature for SetWindowLong
29202 * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
29203 ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for
29205 * UpDownBase.cs: Remove drawing of borders, this is handled by
29206 the driver, outside the client area
29207 * ListView.cs: Removed bogus border calculations. The control should
29208 be oblivious to borders, since those are not part of the client
29210 * X11DesktopColors.cs: Commented out (currently) unneeded variables
29211 * ThemeWin32Classic.cs: Removed border calculations from ListView
29214 2005-10-06 Jackson Harper <jackson@ximian.com>
29216 * MdiChildContext.cs: Clear out the old virtual position remove
29217 all the unneeded calls to CreateGraphics.
29219 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
29221 * TextControl.cs: Use proper color for highlighted text; fixes #76350
29223 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
29226 - Added loading and setting of our new default icon
29227 - Only set icon if window is already created
29229 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
29232 - Do not explicitly set the foreground and background colors, to
29233 allow inheriting from parents (fixes #76302)
29234 - Use Control's InternalBorderStyle property to deal with borders
29236 2005-10-06 Jackson Harper <jackson@ximian.com>
29238 * MdiChildContext.cs: Use the new xplatui function to draw a
29241 2005-10-06 Jackson Harper <jackson@ximian.com>
29243 * Form.cs: Add the parent before creating the child context cause
29244 we need the parent when setting up the child.
29246 2005-10-06 Jackson Harper <jackson@ximian.com>
29248 * FolderBrowserDialog.cs: redo the tree population code so a
29249 second thread isn't used. Should be a lot faster and more stable
29252 2005-10-05 Jackson Harper <jackson@ximian.com>
29254 * TreeView.cs: There are no expand/collapse boxes if the node has
29257 2005-10-05 Jackson Harper <jackson@ximian.com>
29259 * X11DesktopColors.cs: Get menu colours for the gtk theme.
29261 2005-10-05 Alexander Olk <alex.olk@googlemail.com>
29263 * FileDialog.cs: Fix InitialDirectory
29265 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
29268 - Fixes changing between styles
29269 - Fixes simple mode
29270 - Fixes last item crashing when navigating with keyboard
29272 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
29274 * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
29276 2005-10-05 Jackson Harper <jackson@ximian.com>
29278 * TreeView.cs: If updating the root node do a full refresh.
29279 * TreeNode.cs: The root node should be expanded by default. Also
29280 added a utility prop to tell if we are the root node.
29281 * TreeNodeCollection.cs: Only refresh if the node we are being
29282 added to is expanded. Also added a comment on a potential
29285 2005-10-04 Peter Dennis Bartok <pbartok@novell.com>
29287 * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize()
29288 in dispose method. Fixes #76330
29290 2005-10-04 Jordi Mas i Hernandez <jordi@ximian.com>
29292 * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
29294 - Implements vertical and horizontal scrolling using XplatUI
29295 - Fixes keyboard navagation
29296 - Fixes EnsureVisible
29298 - Handles and draws focus properly
29301 2005-10-04 Kornél Pál <kornelpal@hotmail.com>
29303 * ImageList.cs: Use upper case initials for internal fields. ImageStream:
29304 Create handle. NET_2_0: Destroy handle when value is null.
29306 2005-10-03 Jackson Harper <jackson@ximian.com>
29308 * ScrollBar.cs: My last scrollbar patch was broken. This is a
29309 revert and a new patch to prevent the thumb from refreshing so
29312 2005-10-02 Jackson Harper <jackson@ximian.com>
29314 * ScrollBar.cs: Don't update position if it hasn't actually
29315 changed. This occurs when you hold down the increment/decrement
29316 buttons and the thumb gets to the max/min.
29318 2005-10-01 Jackson Harper <jackson@ximian.com>
29321 * MdiChildContext.cs:
29322 * MdiClient.cs: Implement ActiveMdiChild in Form.
29324 2005-10-01 Jordi Mas i Hernandez <jordi@ximian.com>
29326 * ComboBox.cs: Include ComboBoxEdit flag for the edit item
29328 2005-10-01 Peter Dennis Bartok <pbartok@novell.com>
29330 * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
29333 2005-09-30 Jackson Harper <jackson@ximian.com>
29335 * ListBox.cs: Don't do a full refresh unless some data has
29338 2005-09-30 Jackson Harper <jackson@ximian.com>
29340 * TreeView.cs: Make sure that the checkboxes size is factored in
29341 even when not visible.
29343 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
29345 * FileDialog.cs: Fix Jordi's build break
29347 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
29350 - Use standard the Windows colours for the combobox as espected
29351 - Dispose objects that use resouces when no longer need them
29353 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
29355 * X11DesktopColors.cs: Initial incomplete implementation
29356 * XplatUIX11.cs: Added call to initialize X11DesktopColors
29358 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
29361 - Switched Theme color names to match the names defined in
29362 System.Drawing.KnownColors. Life's hard enough, no need to make
29364 - Added setters to all theme color properties so themes can set
29365 their color schemes. The setters also propagate the color changes
29366 to System.Drawing.KnownColors via reflection
29367 * ControlPaint.cs, Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
29368 ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
29369 DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
29370 use the new, more logical theme color names
29371 * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
29373 * ThemeWin32Classic.cs:
29374 - Removed code to set the old classic Windows colors. Instead it
29375 now relies on the colors returned by System.Drawing.KnownColors
29376 which will be either modern static colors (Unix) or colors
29377 read from the user's configuration (Win32)
29378 - Updated to use the new, more logical theme color names
29379 - Switched DataGrid drawing code to use only Theme colors instead of
29380 a mix of System.Drawing.KnownColors and Theme colors
29381 - DrawFrameControl(): Removed code that fills the button area, the
29382 fill would overwrite any previous fill done by a control. This
29384 - Added DrawReversibleRectangle() stub
29385 * ScrollableControl.cs: Set visible state to false when scrollbars
29386 are removed (pdn fix)
29387 * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added
29388 DrawReversibleRectangle() method to allow drawing primitive
29390 * XplatUIX11.cs: Implemented DrawReversibleRectangle()
29392 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
29394 * ImageList.cs: Add(Icon): Create handle.
29396 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
29399 * ThemeWin32Classic.cs:
29400 - Fixes detail mode
29402 - Issues with drawing
29404 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
29406 * ImageList.cs: Moved RecreateHandle back to ImageList as event
29407 source has to be the ImageList.
29409 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
29411 * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
29413 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
29415 * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
29417 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
29419 * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
29421 2005-09-29 Jonathan Chambers <jonathan.chambers@ansys.com>
29422 * GridItem.cs: Fixed TODOs
29423 * GridItemCollection.cs: Added ICollection interface
29425 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
29427 * ImageList.cs: Resize icons when needed.
29429 2005-09-29 Jordi Mas i Hernandez <jordi@ximian.com>
29432 - Fixes GetBounds and returns on screen rects
29434 - Fixes vertical and horzintal scrolling of items
29435 * ThemeWin32Classic.cs:
29438 2005-09-29 Raja R Harinath <harinath@gmail.com>
29440 * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
29442 2005-09-29 Kornél Pál <kornelpal@hotmail.com>
29444 * ImageList.cs: Added comments about handle creation. Moved Handle,
29445 HandleCreated and OnRecreateHandle implementations to ImageCollection.
29446 Handle is created in Add methods.
29448 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
29450 * DataGridDrawingLogic.cs:
29451 - Takes rows into account on Colum calculations
29452 - Returns the column when clickig
29454 - Fixes default HitTestInfo values
29455 - Fixes HitTestInfo.ToString
29456 - Fixes ResetBackColor
29458 2005-09-28 Jackson Harper <jackson@ximian.com>
29460 * MdiChildContext.cs: Obey rules for fixed sized windows (no
29461 sizing or cursor changes). Also added some temp code to draw the
29462 titlebars text (Makes dev a little easier).
29464 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
29466 * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
29468 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
29470 * ListBox.cs: Fixes bug 76253
29472 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
29474 * ImageList.cs: Added comments about the current implementation. Added
29475 ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
29476 Format32bppArgb to preserve transparency and can use Graphics.FromImage
29477 while using the specified ColorDepth. ReduceColorDepth uses unsafe code
29478 with Bitmap.LockBits for better performance. Revised the whole file to
29479 match MS.NET behaviour and provide better performance. Non-public
29480 interface members are calling public members even when they throw
29481 NotSupportedException for better maintainability. Moved ColorDepth,
29482 ImageSize, ImageStream and TransparentColor implementations to
29483 ImageCollection for better performance as these properties are not used
29485 * ImageListStreamer.cs: Added a new internal constructor that takes an
29486 ImageList.ImageCollection and serializes Images based on
29487 ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
29488 match ImageList property name.
29490 2005-09-28 Kazuki Oikawa <kazuki@panicode.com>
29492 * ListBox.cs: Fixes IndexFromPoint for last item
29494 2005-09-27 Jackson Harper <jackson@ximian.com>
29496 * Form.cs: Set the position of new mdi children correctly.
29498 2005-09-27 Jackson Harper <jackson@ximian.com>
29500 * MdiClient.cs: New mdi children need to be added to the back of
29501 the controls collection so the zorder is set correctly. Also add a
29502 count of all the child windows that have been created.
29504 2005-09-27 Jackson Harper <jackson@ximian.com>
29506 * Form.cs (CreateParams): Setup MDI forms correctly.
29508 2005-09-27 Jackson Harper <jackson@ximian.com>
29510 * MdiChildContext.cs:
29511 * MonthCalendar.cs:
29517 * ScrollableControl.cs:
29518 * ComboBox.cs: Add implicit controls using the new implict control
29519 functionality in ControlCollection. Also try to block multiple
29520 control add in a suspend/resume layout to save some cycles.
29522 2005-09-27 Jackson Harper <jackson@ximian.com>
29524 * Control.cs: Add functionality to the controls collection to add
29525 'implicit controls' these are controls that are created by the
29526 containing control but should not be exposed to the user. Such as
29527 scrollbars in the treeview.
29528 * Form.cs: The list var of the ControlsCollection is no longer
29529 available because of the potential of implicit controls getting
29530 ignored by someone accessing the list directly.
29532 2005-09-26 Peter Dennis Bartok <pbartok@novell.com>
29534 * Control.cs: Fixed SetChildIndex; it no longer causes a child to
29535 loose it's parent. (Fixed bug introduced in r49103 when we added
29536 setting the child parent to null on Remove)
29538 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
29540 * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
29541 * Splitter.cs: Added missing attributes for BorderStyle property.
29542 * TextBoxBase.cs: Marked Calculate* methods internal.
29543 * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
29546 2005-09-26 Jordi Mas i Hernandez <jordi@ximian.com>
29548 * ListBox.cs: Fixes navigation to the last item in multicolumn lists
29550 2005-09-25 Jackson Harper <jackson@ximian.com>
29552 * TreeView.cs: Update the node bounds correctly regardless of
29553 whether the node is visible.
29555 2005-09-25 Jackson Harper <jackson@ximian.com>
29557 * ImageList.cs: Don't dispose the image after it is added to the
29558 image list. Only reformat images that need to be resized.
29560 2005-09-25 Jackson Harper <jackson@ximian.com>
29562 * ImageList.cs: Don't set the format when changing the image.
29564 2005-09-25 Jackson Harper <jackson@ximian.com>
29566 * TreeView.cs: We can't just assume the node has a font. Use the
29567 treeviews font if no node font is available.
29569 2005-09-25 Jackson Harper <jackson@ximian.com>
29571 * TreeView.cs: Allow the scrollbars to be reset with negative
29573 - Don't add scrollbars to negative sized windows.
29575 2005-09-23 Jackson Harper <jackson@ximian.com>
29577 * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
29578 old Mono.Posix. Also remove some stray code that shouldn't have
29581 2005-09-23 Jackson Harper <jackson@ximian.com>
29583 * TreeView.cs: Attempt at proper sizing of the horizontal
29584 scrollbar. Also don't resize the scrollbars unless they are
29587 2005-09-23 Jackson Harper <jackson@ximian.com>
29589 * TreeView.cs: We don't need to expand the invalid area when the
29590 selection changes, as this is all drawn in the node's bounding
29591 box. The area needs to be expanded (previous typo was contracting
29592 it) when the focus rect moves.
29594 2005-09-23 Jackson Harper <jackson@ximian.com>
29596 * TreeView.cs: Display the selection box under the correct
29597 circumstances. We were rendering white text with no selection box
29600 2005-09-23 Peter Dennis Bartok <pbartok@novell.com>
29602 * TextControl.cs(Split): Now updates selection start/end if it points
29603 into a line that's being split. Fixes a FIXME and bug #75258
29605 2005-09-23 Jackson Harper <jackson@ximian.com>
29608 * ListControl.cs: Don't use the path when retrieving binding
29609 managers from the binding context. My bat sense tells me that the
29610 path is only used on insertion.
29612 2005-09-22 Jackson Harper <jackson@ximian.com>
29614 * Splitter.cs: Set the cursor an easier way. (Thanks peter).
29616 2005-09-22 Jackson Harper <jackson@ximian.com>
29618 * Splitter.cs: There are special cursors used for splitting.
29619 * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
29621 2005-09-22 Jackson Harper <jackson@ximian.com>
29623 * Splitter.cs: Change the cursor appropriately when the splitter
29624 is moused over, so the user actually knows there is a splitter
29627 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
29629 * Label.cs : Fix ToString method to give same output as MS.NET
29631 2005-09-22 Jackson Harper <jackson@ximian.com>
29633 * TreeView.cs: Create the scrollbars when the handle is created
29634 and add them right away, just make them invisble. Also account for
29635 the window being shrunk vertically to the point that the vert
29636 scrollbar needs to be added.
29637 - Remove some 0.5 adjustments to get around anti aliasing issues.
29639 2005-09-22 Jordi Mas i Hernandez <jordi@ximian.com>
29641 * MainMenu.cs: Fixes default value
29642 * MenuItem.cs: Fixes default value
29644 2005-09-22 Kazuki Oikawa <kazuki@panicode.com>
29646 * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
29648 2005-09-21 Jackson Harper <jackson@ximian.com>
29650 * Control.cs: Don't try to set the border style on the window if
29651 it hasn't been created. When the window is created the border
29652 style will be used.
29654 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
29656 * Control.cs (Update): Don't call XplatUI if we don't have a
29659 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
29661 * ContainerControl.cs: Instead of throwing an exception, print
29662 a one-time warning about Validate not being implemented
29663 * XplatUIWin32.cs: Removed debug output
29665 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
29667 * Control.cs: Only set XplatUI background if we expect the windowing
29668 system to handle the background. This stops controls that draw their
29669 own background from flickering
29671 * XplatUIX11.cs: Support custom visuals and colormaps for window
29672 creation. This allows, amongst other things, using MWF X11 windows
29675 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
29677 * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
29678 CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
29679 GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
29680 SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
29681 TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
29682 IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
29683 KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
29684 RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
29685 ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
29686 ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
29687 GridColumnStylesCollection.cs,
29688 IDataGridColumnStyleEditingNotificationService.cs,
29689 PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
29690 MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
29691 GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs,
29692 TreeNodeCollection.cs, AmbientProperties.cs,
29693 RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
29694 DataObject.cs, ErrorProvider.cs, Splitter.cs,
29695 DataGridLineStyle.cs, Shortcut.cs, Control.cs,
29696 FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
29697 BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
29698 IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
29699 FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
29700 IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
29701 NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
29702 PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
29703 SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
29704 FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
29705 DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
29706 ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
29707 RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
29708 MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
29709 ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
29710 CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
29711 MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
29712 NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
29713 ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
29714 SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
29715 Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
29716 RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
29717 DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
29718 ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
29719 PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
29720 DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
29721 ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
29722 AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
29723 RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
29724 CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
29725 SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
29726 Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
29727 SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
29728 ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
29729 TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
29731 2005-09-21 Jackson Harper <jackson@ximian.com>
29733 * TreeNode.cs: Call Before/After Expand not Collapse when
29736 2005-09-20 Jackson Harper <jackson@ximian.com>
29738 * XplatUIX11.cs: Use the more hand looking hand (in most themes).
29740 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
29744 - Fixes proper storing of subitems
29745 - Fixes not updated items
29747 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
29749 * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
29750 things if our window handle isn't created yet. Also disabled
29751 debug for TextBoxBase
29753 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
29755 * MenuAPI.cs: Remove filtering of events to allow menu usage
29757 2005-09-20 Miguel de Icaza <miguel@novell.com>
29759 * Cursor.cs: Allow null to be passed to Cursor.Current.
29761 2005-09-20 Alexander Olk <alex.olk@googlemail.com>
29763 * ThemeWin32Classic.cs:
29764 - Change some private methods/fields to protected virtual so that
29765 they can be accessed and overriden in derived classes
29766 - First refactoring of some methods. Derived themes now don't
29767 need to duplicate the complete code from ThemeWin32Classic
29769 - Added nice StatusBar
29770 - Derive from ThemeWin32Classic and not Theme
29771 - Removed duplicate ThemeWin32Classic code
29773 2005-09-20 Miguel de Icaza <miguel@novell.com>
29775 * Control.cs (ControlCollection.Add): If the value null is passed
29776 the control is ignored.
29778 Optimize this loop.
29780 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
29782 * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
29783 PostQuitMessage state.
29784 * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
29786 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
29788 * Application.cs: Our constructor will never get called, move
29789 initialization to fields; fixes bug #75933
29791 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
29794 - Allow files to be selected properly using file name
29796 - Add ability to change diretory (absolute / relative)
29797 using file name combo box.
29799 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
29802 - Fixes Multicolumn listboxes item wrong calculations
29803 - Allows to click when only one item is in the listbox
29804 - Fixes crash when no items using keyboard navigation
29806 2005-09-16 Alexander Olk <alex.olk@googlemail.com>
29808 * ComboBox.cs: Reverted almost everything from the latest patch which
29811 2005-09-16 Kazuki Oikawa <kazuki@panicode.com>
29814 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
29816 - When DropDownStyle is Simple, it does not show scrollbar
29817 to the last item of the list.
29818 - When DropDownStyle is Simple, it crashed when the list was
29819 scrolled down with the down cursor key.
29820 - Fixed a bug that when DropDownStyle is DropDownList, the
29821 selected item was not shown.
29822 - The position of the selected item was not preserved when
29823 the next dropdown happened.
29824 * ThemeWin32Classic.cs:
29825 - Items were wrapped at the right end.
29826 * CheckedListBox.cs:
29829 - Items should be fully shown.
29830 - When resizing and vertical scrollbar disappeared, the item
29831 of index 0 should be on the top of the list.
29832 - GetItemRectangle should consider the size of ver. scrollbar
29834 - SizingGrip area should not be allocated when it is not
29836 - Now it reflects MinWidth of the containing panel and
29837 fixed a crash that happens when its width becomes so small.
29839 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
29841 * CheckedListBox.cs: Fixes bug 76028
29842 * ListBox.cs: Fixes bug 76028
29844 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
29846 * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
29847 * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
29849 2005-09-12 Jordi Mas i Hernandez <jordi@ximian.com>
29851 * XplatUIX11.cs: fixes System.NullReferenceException in some situations
29853 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
29855 * IRootGridEntry.cs: Changed namespace to PropertyGridInternal
29857 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
29859 * IRootGridEntry.cs: Added
29860 * PropertyGridCommands.cs: Added
29861 * PropertiesTab.cs: Added missing methods and property
29862 * PropertyGridView.cs: Made class internal
29863 * PropertyGridTextBox.cs: Made class internal
29865 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
29867 * MimeIcon.cs: Try to check some other environment variables
29868 if "DESKTOP_SESSION" returns "default"
29870 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
29872 * ThemeNice.cs: Corrected background colors (e.g. menus)
29873 * ColorDialog.cs: Use correct background colors for controls
29875 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
29877 * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
29879 2005-09-08 Peter Dennis Bartok <pbartok@novell.com>
29881 * RichTextBox.cs: Added initial implementation
29882 * lang.cs: Removed. Was accidentally checked in long time ago
29883 * TODO: Removed. Contents were obsolete
29885 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
29887 * PropertiesTab.cs : Added
29889 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
29891 * PropertyGrid.cs : Update
29892 * PropertyGridView.cs : Update
29893 * System.Windows.Forms.resx : Added images and strings
29895 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
29897 * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
29899 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
29901 * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
29902 a busy loop right after the Ungrab the X11 display is otherwise
29905 2005-09-06 Jordi Mas i Hernandez <jordi@ximian.com>
29907 * ThemeWin32Classic.cs: Optimise the use of clipping
29909 2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com>
29911 * DataGrid.cs: fixes recursion bug
29913 2005-09-03 Alexander Olk <alex.olk@googlemail.com>
29916 - Draw RadioButton and CheckBox Buttons with DrawButtonBase
29919 2005-09-02 Alexander Olk <alex.olk@googlemail.com>
29921 * ThemeNice.cs: Draw nice ProgressBars
29923 2005-09-01 Miguel de Icaza <miguel@novell.com>
29925 * VScrollBar.cs: Another buglet found by Aaron's tool.
29927 * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
29930 2005-08-30 Alexander Olk <alex.olk@googlemail.com>
29933 - Added nicer menu drawing
29937 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
29939 * CreateParams.cs (ToString): Made output match MS
29940 * Control.cs (Text): Don't set Text or Focus via XplatUI unless
29941 handle is already created (to avoid forcing window creation)
29942 * XplatUIX11.cs: Set window text to caption after creating window,
29943 in case Text was set before window was created
29944 * Form.cs: Use this.Text instead of a static string as caption
29946 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
29948 * NotifyIcon.cs: Don't set the window to visible; this screws
29949 up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
29950 OnPaint without a bitmap)
29951 * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't
29952 happen very often anyway; we could add the check to the WM_PAINT
29953 event generation code
29955 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
29957 * NotifyIcon.cs: Fill the icon area with a background color, to
29958 avoid 'residue' when transparent icons are drawn
29960 - Handle whole_window == client_window when destroying windows
29961 - SystrayAdd(): Set client_window to whole_window value to
29962 get mouse and other events passed to NotifyIcon
29964 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
29966 * Form.cs: Set proper default for Opacity property
29968 - ShowSystray(): Don't bother creating telling the OS
29969 about the systray item if no icon is provided
29970 - Now handles WM_NCPAINT message to deal with whole/client window
29972 - Create window as visible to not get caught by Expose optimization
29973 * Hwnd.cs: Removed debug message
29974 * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
29975 StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched
29976 PaintEventStart/End to use new client argument
29978 - Commented out debug messages
29979 - Switched PaintEventStart/End to use new client argument
29980 * XplatUI.cs: Added client window bool to PaintEventStart()/
29981 PaintEventEnd() calls, to support drawing in non-client areas
29982 * XplatUIDriver.cs:
29983 - Added client window bool to PaintEventStart()/PaintEventEnd()
29984 calls, to support drawing in non-client areas
29985 - Added conditional compile to allow using MWF BeginInvoke
29988 - Added some conditional debug output
29989 - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
29990 whole/client window split
29991 - Implemented handling of client argument to PaintEventStart()/End()
29993 - Throw exception if BeginInvoke() is called and the window handle
29994 or one of the window's parent handles is not created
29995 - Added conditional compile to allow using MWF BeginInvoke on
29997 - get_Parent(): Only sets parent if handle is created. This avoids
29998 forcing window handle creation when parent is set.
29999 - Now fires Layout and Parent changed events in proper order
30000 - Switched to use Handle instead of window.Handle for Z-Order setting,
30001 the get_Parent() patch above causes us to possibly get null for 'window'
30002 - Implemented handling of client argument to PaintEventStart()/End()
30003 - Now reports back to windows that WM_SETCURSOR was handled (to avoid
30005 - Now sends a Refresh() to all child windows when Refresh() is called
30007 2005-08-29 Peter Dennis Bartok <pbartok@novell.com>
30009 * Form.cs: Added (non-functional) Opacity property
30010 * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
30012 2005-08-29 Alexander Olk <xenomorph2@onlinehome.de>
30013 * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
30014 use export MONO_THEME=nice to activate it.
30015 Currently supported controls:
30019 - TabControl (TabAlignment.Top only, other will follow)
30020 * ThemeEngine.cs: Add theme nice
30021 * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
30024 2005-08-25 Jonathan Chambers <jonathan.chambers@ansys.com>
30026 * Splitter.cs: Resize docked control and its neighbor.
30028 2005-08-24 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
30029 -- Making Windows with Menus layout correctly --
30030 * Form.cs : The first leg of the fix
30031 Menu setter - adjust Client Size as needed to make space for the menu
30032 SetClientSizeCore - doesn't call base version to be able to pass the
30033 menu handle to XplatUI.CalculateWindowRect
30034 * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
30035 * XplatUIX11.cs: The critical second leg of the fix
30036 GetWindowPos needs to use a recalculated client_rect
30037 so that resizing the window doesn't break layout of child controls.
30038 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
30039 Lots of \t\n killed
30041 2005-08-23 Peter Dennis Bartok <pbartok@novell.com>
30043 * Label.cs: Now properly recalculates width and height on Font and Text
30044 changes if AutoSize is set
30046 2005-08-19 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
30047 * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
30049 2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
30051 * ImageList.cs: Makes ToString method compatible with MS
30053 2005-08-18 Jordi Mas i Hernandez <jordi@ximian.com>
30055 * MenuAPI.cs: fixes bug 75716
30057 2005-08-11 Umadevi S <sumadevi@novell.com>
30058 * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
30060 2005-08-11 Umadevi S <sumadevi@novell.com>
30061 * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
30063 2005-08-10 Umadevi S <sumadevi@novell.com>
30064 * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
30066 2005-08-07 Jordi Mas i Hernandez <jordi@ximian.com>
30068 * Menu.cs: fixes bug 75700
30069 * MenuAPI.cs: fixes navigation issues
30071 2005-08-09 Umadevi S <sumadevi@novell.com>
30072 * CheckedListBox.cs - simple fix for GetItemChecked.
30074 2005-08-08 Jordi Mas i Hernandez <jordi@ximian.com>
30076 * ComboBox.cs: Serveral fixes
30077 * ListBox.cs: Serveral fixes
30079 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
30081 * ComboBox.cs: Fixes FindString methods and GetItemHeight
30082 * ListBox.cs: Fixes FindString methods
30084 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
30086 * DataGrid.cs: fixes bugs exposed by new tests
30088 2005-08-04 Peter Dennis Bartok <pbartok@novell.com>
30090 * Mime.cs: Compile Mono assembly references only if compiling
30091 with Mono (Allows to build with VS.Net again)
30093 2005-07-28 Marek Safar <marek.safar@seznam.cz>
30095 * Control.cs (PaintControlBackground): Draw background image
30097 (CheckForIllegalCrossThreadCalls): Stubbed.
30099 * Form.cs (OnCreateControl): Center when should be centered.
30101 * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
30103 2005-07-19 Jordi Mas i Hernandez <jordi@ximian.com>
30105 * Binding.cs: Binding to properties should be case unsensitive
30107 2005-07-18 vlindos@nucleusys.com
30109 * DataGrid.cs: fixes setmember order
30111 2005-07-07 Alexander Olk <xenomorph2@onlinehome.de>
30113 * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
30114 * FileDialog.cs: FileDialog is now resizable and uses the new
30117 2005-07-06 Jordi Mas i Hernandez <jordi@ximian.com>
30119 * DataGridTextBoxColumn.cs: default value
30120 * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
30121 * GridTableStylesCollection.cs: fixes checking MappingName
30122 * DataGridDrawingLogic.cs: fixes drawing logic issues
30123 * DataSourceHelper.cs: rewritten to make compatible with more data sources
30124 * DataGrid.cs: fixes
30126 2005-07-06 Alexander Olk <xenomorph2@onlinehome.de>
30128 * MimeGenerated.cs: Use case sensitive comparer for
30129 NameValueCollections
30131 2005-07-01 Jordi Mas i Hernandez <jordi@ximian.com>
30133 * DataGridTextBoxColumn.cs: bug fixes, code refactoring
30134 * ThemeWin32Classic.cs: bug fixes, code refactoring
30135 * DataGridDrawingLogic.cs: bug fixes, code refactoring
30136 * DataGrid.cs: bug fixes, code refactoring
30137 * DataGridTextBox.cs: bug fixes, code refactoring
30138 * DataGridColumnStyle.cs: bug fixes, code refactoring
30139 * Theme.cs: bug fixes, code refactoring
30141 2005-07-01 Peter Bartok <pbartok@novell.com>
30143 * TextControl.cs: Quick fix for the reported crash on ColorDialog
30144 and other text box usage
30146 2005-07-01 Jackson Harper <jackson@ximian.com>
30148 * TabControl.cs: Make sure the bottom of the tab covers the pages
30151 2005-06-30 Peter Bartok <pbartok@novell.com>
30153 * Form.cs (ShowDialog): Assign owner of the dialog
30154 * TextBoxBase.cs: Always refresh caret size when deleting, caret
30155 might have been moved to a tag with different height
30157 2005-06-30 Jackson Harper <jackson@ximian.com>
30159 * Form.cs: Don't create an infinite loop when setting focus
30160 * MenuItem.cs: Don't dirty the parents if we don't have any
30162 2005-06-29 Ben Maurer <bmaurer@ximian.com>
30164 * LibSupport.cs: Rename
30166 2005-06-29 Peter Bartok <pbartok@novell.com>
30168 * TextBoxBase.cs: Re-align caret after deleting a character
30170 - DeleteChars(): Ensure that tag covers the provided position
30171 - StreamLine(): Drop reference for dropped tag
30173 2005-06-29 Peter Bartok <pbartok@novell.com>
30176 - Selections now work properly, anchoring at the initial location
30177 and properly extending in either direction (SetSelectionToCaret(),
30178 SetSelectionStart() and SetSelectionEnd())
30179 - No longer redraws the whole control on selection change, now
30180 calculates delta between previous and new selection and only
30181 invalidates/redraws that area
30182 - Fixed FindPos() math off-by-one errors
30183 - Changed DeleteChars() to verify the provided tag covers the
30184 provided position, selections may have a tag that doesn't cover
30185 the position if the selection is at a tag border
30186 - Fixed off-by-one errors in DeleteChars()
30187 - Added missing streamlining check in DeleteChars() to remove
30189 - Implemented Invalidate() method, now properly calculates exposures
30190 between two given lines/positions
30191 - Implemented SetSelection()
30192 - Obsoleted and removed FixupSelection()
30193 - Improved RecalculateDocument() logic, removing code duplication
30195 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
30197 * LibSupport.cs: changes to match different input/output arguments.
30199 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
30201 * LibSupport.cs: added libsupport.so init routine.
30203 2005-06-29 Jordi Mas i Hernandez <jordi@ximian.com>
30205 * ControlBindingsCollection.cs
30206 - Throws an exception on null datasource when adding
30207 - Checks for duplicated bindings when adding
30209 2005-06-28 Jackson Harper <jackson@ximian.com>
30211 * TreeView.cs (OnKeyDown): Support left and right properly
30212 (navigates as well as expanding and collapsing.
30213 - Add support for Multiply, this expands all the selected nodes
30215 - Fix some tabbing.
30217 2005-06-28 Jackson Harper <jackson@ximian.com>
30219 * TreeView.cs: Implement keyboard navigation, currently supports,
30220 LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
30221 support for toggling checkboxes with the space bar.
30223 2005-06-28 Jackson Harper <jackson@ximian.com>
30225 * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
30228 2005-06-28 Jackson Harper <jackson@ximian.com>
30230 * TreeView.cs: Add missing event.
30232 2005-06-27 Peter Bartok <pbartok@novell.com>
30235 - Made line ending size configurable (now allows for counting
30236 lineendings as \n or \r\n)
30237 - Added margin to viewport to keep caret visible on right side
30238 - Fixed translation routines for line/pos to documentpos to consider
30239 cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
30240 - Fixed some line-endings to be unix style
30241 - Fixed Document.FormatText to perform it's calculations 1-based
30242 - Added descriptions for a few methods that might otherwise get
30244 - Added NOTE section with some basic conventions to remember at
30245 the top of the file
30246 - Major fixup for RichTextBox selection drawing:
30247 * Fixed crashes when multiple tags on a single line were selected
30248 * fixed selection box drawing not overlaying text
30249 * fixed bogus offset calculation for tags not starting at index 1
30250 * Switched behaviour from using multiple Substrings of a
30251 StringBuilder.ToString() to using multiple
30252 StringBuilder.ToString(start, length) statements, hoping this is
30253 faster (kept original version commented out in the code, in case
30254 original version was faster)
30255 * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if
30257 * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
30260 2005-06-27 Jackson Harper <jackson@ximian.com>
30262 * TabControl.cs: Move to the left and right with the arrow
30263 keys. These keys don't cycle beyond first and last like
30264 tab. Refresh all the tabs when scrolling them to the left or
30267 2005-06-27 Jackson Harper <jackson@ximian.com>
30270 - ToString: Added method
30271 - CreateParams: Remove TODO and comment
30272 - OnKeyDown: Cycle through bounds properly.
30273 - SelectedIndex: Scroll to the right or left if we need to
30274 display the newly selected tab.
30276 2005-06-23 Jackson Harper <jackson@ximian.com>
30278 * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
30281 2005-06-23 Jackson Harper <jackson@ximian.com>
30283 * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
30284 CTRL-SHIFT-TAB, and HOME, END are there any others?
30286 2005-06-23 Jackson Harper <jackson@ximian.com>
30288 * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
30290 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
30292 * DataGridTextBoxColumn.cs: fixes and enhancements
30293 * ThemeWin32Classic.cs: fixes and enhancements
30294 * DataGridBoolColumn.cs: fixes and enhancements
30295 * DataGridDrawingLogic.cs: fixes and enhancements
30296 * CurrencyManager.cs: fixes and enhancements
30297 * DataGrid.cs: fixes and enhancements
30298 * DataGridColumnStyle.cs: fixes and enhancements
30300 2005-06-22 Jackson Harper <jackson@ximian.com>
30302 * TabControl.cs: Add some missing methods that just call into the
30303 base. Make the TabPageCollection's IList interface behave in the
30304 same manner as the MS implementation.
30306 2005-06-22 Peter Bartok <pbartok@novell.com>
30308 * TextControl.cs: Added sanity check
30310 - Fixed wrapping behaviour, don't set wrap on single line controls
30311 (this fixes the breakage of colordialog introduced in an earlier
30313 - Added rudimentary support for autoscrolling right-aligned controls
30314 (still needs fixing, also, center alignment scroll is missing)
30316 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
30318 * ScrollBar.cs: Fixes thumbpos on Maximum values
30320 2005-06-21 Jonathan Chambers <jonathan.chambers@ansys.com>
30322 * PropertyGridView.cs: Pass context information to UITypeEditors
30324 2005-06-21 Peter Bartok <pbartok@novell.com>
30327 - Now calling PositionCaret with absolute space coordinates
30328 - Enabled vertical scrolling
30329 - Better tracking of scrollbar changes, tied into WidthChange
30331 - Improved cursor tracking
30332 - Removed debug output
30334 - PositionCaret coordinates are now works in absolute space, not
30336 - Improved tracking of document size
30337 - Added events for width and height changes
30339 2005-06-21 Peter Bartok <pbartok@novell.com>
30341 * Form.cs: Set focus to active control when form is activated
30343 - Added word-wrap functionality to RecalculateLine()
30344 - Added some short function descriptions for VS.Net to aid in
30345 writing dependent controls
30346 - Added Caret property, returning the current coords of the caret
30347 - Added ViewPortWidth and ViewPortHeight properties
30348 - Added Wrap property
30349 - Added CaretMoved event
30350 - Removed some old debug code
30351 - Split() can now create soft splits
30352 - Added PreviousTag()/NextTag() to allow walking "tag-lists"
30353 - Added method to format existing text
30354 - Fixed size/alignment calculations to use viewport
30355 - RecalculateDocument now can handle changing line-numbers while
30359 - Added some wrap logic, we don't wrap if alignment is not left
30360 - Added casts for scrollbar var, base class switched types to
30361 also support RichTextBoxA
30362 - Implemented handling of scrollbar visibility flags
30365 - Switched scrollbars type to RichTextBoxScrollBars to support
30367 - Added tracking of canvas width/height
30368 - Switched scrollbars to be not selectable (to keep focus on text)
30369 - Added central CalculateDocument() method to handle all redraw
30371 - Added ReadOnly support
30372 - Added WordWrap support
30373 - Fixed handling of Enter key (we now treat it as a DialogKey)
30374 - Fixed caret positioning when h or v scroll is not zero
30375 - Fixed placing/generation of vertical scrollbar
30376 - Added CalculateScrollBars() method to allow updating scrollbar
30377 limits and visibility
30378 - Fixed handling of horizontal scroll
30379 - Added handling of vertical scroll
30380 - Implemented auto-'jump' when caret moves to close to a left or
30381 right border and there is text to be scrolled into view (currently
30382 there's the potential for a stack overflow, until a bug in
30383 scrollbar is fixed)
30385 2005-06-21 Geoff Norton <gnorton@customerdna.com>
30387 * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
30389 2005-06-19 Alexander Olk <xenomorph2@onlinehome.de>
30393 - return application/x-zerosize for files with size zero
30394 (if no extension pattern matches).
30395 - check matches collection for strings too.
30396 - return only the first mime type if the name value
30397 collection has more than one mime type.
30399 2005-06-18 Jonathan Chambers <jonathan.chambers@ansys.com>
30401 * PropertyGrid.cs: Cleaned up some TODOs
30402 * PropertyGridView.cs: Added support for UITypeEditors
30404 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
30406 * DataGrid.cs: clears cached value
30408 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
30410 * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
30411 * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
30412 * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
30413 * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
30415 2005-06-16 Jordi Mas i Hernandez <jordi@ximian.com>
30417 * ThemeWin32Classic.cs: fixes colour
30419 2005-06-15 Peter Bartok <pbartok@novell.com>
30421 * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
30422 * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
30423 * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
30424 * Control.cs: Added some MWFCategory and MWFDescription attributes
30425 * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
30427 2005-06-15 Alexander Olk <xenomorph2@onlinehome.de>
30429 * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
30432 2005-06-14 Jordi Mas i Hernandez <jordi@ximian.com>
30434 * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
30435 * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
30436 * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
30437 * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
30438 * DataGrid.cs: default datagrid settings for Default Styles, fixes
30439 * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
30441 2005-06-13 Jackson Harper <jackson@ximian.com>
30443 * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
30444 isn't printed when the user enables dropping. (X11 does accept
30447 2005-06-13 Jackson Harper <jackson@ximian.com>
30449 * TreeView.cs: Remove some TODOS.
30451 2005-06-13 Jackson Harper <jackson@ximian.com>
30453 * Form.cs: Hook into the mdi framework.
30454 * MdiClient.cs: Use the base control collections add method so
30455 parents get setup correctly. Set the default back colour and dock
30457 * MdiChildContext.cs: New class, this bad actor handles an
30458 instance of an MDI window. Right now there is only basic
30459 support. You can drag, close, and resize windows. Minimize and
30460 Maximize are partially implemented.
30462 2005-06-13 Jackson Harper <jackson@ximian.com>
30464 * XplatUIX11.cs: Mash numbers together properly, otherwise we get
30465 freaky when both vals are negative. NOTE: There are probably other
30466 places in XplatUIX11 that this needs to be done.
30468 2005-06-13 Jordi Mas i Hernandez <jordi@ximian.com>
30470 * DataGrid.cs: implement missing methods, move KeyboardNavigation
30471 * DataGridColumnStyle.cs: fixes signature
30473 2005-06-12 Jackson Harper <jackson@ximian.com>
30475 * XplatUIX11.cs: Use sizing cursors similar to the ones on
30478 2005-06-11 Jackson Harper <jackson@ximian.com>
30480 * StatusBarPanel.cs: Signature cleanups. Implement
30483 2005-06-10 Jordi Mas i Hernandez <jordi@ximian.com>
30485 * DataGridTextBoxColumn.cs: Honors aligment
30486 * GridColumnStylesCollection.cs: Contains is case unsensitive
30487 * GridTableStylesCollection.cs: several fixes
30488 * DataGridTableStyle.cs: default column creation
30489 * DataGridDrawingLogic.cs: fixes
30490 * CurrencyManager.cs: ListName property
30491 * DataGrid.cs: multiple styles support
30492 * DataGridColumnStyle.cs: fixes
30495 2005-06-10 Peter Bartok <pbartok@novell.com>
30497 * Control.cs(Select): Moved SetFocus call to avoid potential
30498 loops if controls change the active control when getting focus
30499 * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
30500 the up/down buttons
30502 2005-06-10 Matthias Felgner <matthiasf@voelcker.ocm>
30504 * ImageListConverter.cs: Implemented
30506 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
30508 * MonthCalendar.cs: Wired in NumericUpDown control for year
30510 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
30512 * MonthCalendar.cs: Removed MonoTodo attributes on Click and
30513 DoubleClick events, since they are not meant to be fired.
30515 2005-06-09 Peter Bartok <pbartok@novell.com>
30517 * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
30518 Jonathan's standalone controls into MWF, implemented missing
30519 events, attributes and methods; added xxxAccessible classes
30520 * AccessibleObject.cs: Made fields internal so other classes
30521 can change them if needed
30523 2005-06-09 Jonathan Gilbert <2a5gjx302@sneakemail.com>
30525 * UpDownBase.cs: Complete implementation
30526 * NumericUpDown.cs: Complete implementation
30527 * DomainUpDown.cs: Complete implementation
30529 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
30531 * DataGridTextBoxColumn.cs: drawing fixes
30532 * DataGridCell.cs: fixes ToString method to match MSNet
30533 * DataGridTableStyle.cs: fixes
30534 * DataGridBoolColumn.cs: fixes, drawing
30535 * DataGridDrawingLogic.cs: fixes, new methods
30536 * DataGridTextBox.cs: Keyboard and fixes
30538 - Keyboard navigation
30540 - Row selection (single, multiple, deletion, etc)
30543 2005-06-07 Jackson Harper <jackson@ximian.com>
30545 * ThemeWin32Classic.cs: Clear the background area when drawing
30548 2005-06-06 Peter Bartok <pbartok@novell.com>
30550 * ImageListStreamer.cs: Fixed signature for GetData
30551 * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
30553 - Added missing ChildAccessibleObject class
30554 - Added missing OnXXXFocus overrides, switched to using those
30555 instead of the event handler
30557 - Added Parent property for ControlAccessibleObject
30560 - Added ResetBindings()
30561 * ListBindingConverter.cs: Implemented some methods
30562 * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
30563 * ImageList.cs: Implemented basic handle scheme, removed TODOs
30564 * ContainerControl.cs: Fixed signature, now subscribing to the
30565 ControlRemoved event instead of overriding the handler, LAMESPEC
30566 * CurrencyManager.cs: Added missing attribute
30567 * MonthCalendar.cs: Added missing properties
30569 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
30571 * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
30573 2005-06-06 Gaurav Vaish and Ankit Jain
30575 * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
30576 * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
30578 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
30580 * Control.cs: fixes CreateParams Width / Height.
30582 2005-06-05 Peter Bartok <pbartok@novell.com>
30584 * Win32DnD.cs: Removed compilation warnings
30586 2005-06-05 Peter Bartok <pbartok@novell.com>
30588 * Control.cs (CreateParams): Since we don't know if one of the
30589 properties we use is overridden, lets make sure if we fail accessing
30590 we continue with a backup plan
30592 2005-06-05 Peter Bartok <pbartok@novell.com>
30595 - Removed debug output
30596 - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
30598 - Plugged resource leak
30599 * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
30602 2005-06-05 Peter Bartok <pbartok@novell.com>
30604 * XplatUIWin32.cs: Removed DnD code
30605 * Win32DnD.cs: Implemented drop source and drop target functionality
30607 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
30609 * UpDownBase.cs: remove duplicate addition of event, enable some code
30610 that was commented out.
30611 * NumericUpDown.cs: added missing attributes and Hexadecimal property.
30612 Validate input when a key is pressed. It works fine now for every
30613 combination of Hexadecimal. Only missing some drawing love when sharing
30614 space with other controls.
30616 2005-06-04 Peter Bartok <pbartok@novell.com>
30619 - We need to pass a window for DragDrop, so enable callback events
30620 - Added DnD callback events when being a DragSource
30621 * XplatUI.cs (StartDrag): Added window handle argument
30622 * XplatUIDriver.cs (StartDrag): Added window handle argument
30623 * QueryContinueDragEventArgs: Made fields internally accessible so
30624 drivers can set them
30625 * GiveFeedbackEventArgs: Made fields internally accessible so drivers
30628 2005-06-03 Jordi Mas i Hernandez <jordi@ximian.com>
30630 * DataGridTextBoxColumn.cs: column text editing
30631 * DataGridTableStyle.cs: Respect columns styles created by the user
30632 * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
30633 * DataGridBoolColumn.cs: bool column editing
30634 * DataGrid.cs: fixes to scrolling, properties, etc
30635 * DataGridTextBox.cs: handle keyboard
30636 * DataGridColumnStyle.cs: fixes
30638 2005-06-02 Jackson Harper <jackson@ximian.com>
30640 * ImageListStreamer.cs: Somewhat broken implementation of
30641 GetObjectData. The RLE needs some work to match MS properly.
30643 2005-06-02 Jackson Harper <jackson@ximian.com>
30645 * X11Dnd.cs: Attempting to keep at least one file in MWF
30648 2005-06-02 Peter Bartok <pbartok@novell.com>
30650 * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
30653 2005-06-02 Peter Bartok <pbartok@novell.com>
30655 * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
30656 * XplatUI.cs: Added DoDragDrop() method
30657 * XplatUIDriver.cs: Added DoDragDrop() method
30659 2005-06-02 Jackson Harper <jackson@ximian.com>
30661 * Splitter.cs: Implement BorderStyle.
30663 2005-06-02 Jackson Harper <jackson@ximian.com>
30665 * XplatUIX11.cs: Tie into the X11Dnd subsystem.
30666 * X11Dnd.cs: New file. A subsystem that handles drag and drop on
30669 2005-06-02 Peter Bartok <pbartok@novell.com>
30672 - Added Data setter
30673 - Fixed broken insertion code for SetData, now also
30674 overwrites any existing entry of the same format name
30675 * Hwnd.cs: Added list of pointers that automatically gets
30676 freed when the window is disposed
30677 * XplatUI.cs: Call driver initialization method when loading
30680 - OnDragLeave takes EventArgs, not DragEventArgs
30681 - Added setting of WS_EX_ACCEPTFILES style when dropping is
30683 - Forces style update when drop state changes
30684 * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
30685 not perfect since we cannot (yet) call the IDataObject.GetData()
30686 method, we keep getting 0x80004005 error, dunno why)
30688 2005-06-02 Peter Bartok <pbartok@novell.com>
30690 * DragEventArgs.cs: Make fields internal so we can cache the
30691 object and re-set the fields from XplatUI
30693 2005-06-02 Jackson Harper <jackson@ximian.com>
30695 * Control.cs: Add some internal methods so the DnD subsystem can
30696 raise DnD events. Also call into the driver when AllowDrop is set.
30698 * XplatUIDriver.cs: New method for setting whether or not a window
30699 is allowed to accept drag and drop messages.
30701 2005-06-01 Jordi Mas i Hernandez <jordi@ximian.com>
30703 * ScrollBar.cs: Make sure that values sent in Scroll events
30704 are always between Maximum and Minimum.
30706 2005-06-01 Marek Safar <marek.safar@seznam.cz>
30708 * Menu.cs: Call MenuChanged when menuitem visibility has been
30710 * MenuItem.cs: Rebuild menu when item is (not) visible.
30711 * MainMenu.cs: MainMenu has special MenuChanged.
30712 * Theme.cs: Caption and FrameBorderSize are not fixed.
30713 * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
30714 * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
30716 * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
30717 * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
30719 2005-05-30 Jackson Harper <jackson@ximian.com>
30721 * DataFormat.cs: We can't statically initialize this stuff because
30722 it calls into the xplatui and could create a loop. So we lazy init
30725 2005-05-28 Jackson Harper <jackson@ximian.com>
30727 * Control.cs: Proper implementation of Product(Name/Version).
30729 2005-05-27 Jackson Harper <jackson@ximian.com>
30731 * DataObject.cs: Dont crash if no data is found.
30733 2005-05-26 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
30734 * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
30735 as per status page, guessing it should be set to true
30737 2005-05-26 Jordi Mas i Hernandez <jordi@ximian.com>
30739 * DataGridTextBoxColumn.cs: Draws text and basic text formatting
30740 * DataGridTableStyle.cs: set proper formatting text, def header text
30741 * ThemeWin32Classic.cs: new themable paramaters
30742 * DataGridBoolColumn.cs: paint check box, get data, fixes
30743 * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
30744 * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
30745 * DataGridColumnStyle.cs: fixes
30746 * Theme.cs: new themable paramaters
30748 2005-05-26 Peter Bartok <pbartok@novell.com>
30750 * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
30752 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
30753 * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
30755 2005-05-24 Peter Bartok <pbartok@novell.com>
30757 * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
30758 Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
30759 Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
30760 FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
30761 NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
30762 ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
30763 DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
30764 AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
30765 DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
30766 StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
30767 missing attributes, etc
30768 * DataGridPreferredColumnWidthTypeConverter.cs: Added
30770 2005-05-24 Peter Bartok <pbartok@novell.com>
30772 * Help.cs: Added, implemented trivial functions, throws up MessageBox
30773 when user tries to get help
30774 * DataObject.cs, DataFormats.cs, LinkArea.cs,
30775 SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
30776 to suppress warnings
30777 * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
30778 avoid unreachable code warning
30780 2005-05-20 Peter Bartok <pbartok@novell.com>
30782 * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
30784 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
30786 * DataGridTextBoxColumn.cs: Basic painting methods
30787 * DataGridTableStyle.cs: Set table style in the column
30788 * ThemeWin32Classic.cs: Use Theme for colors
30789 * DataGridDrawingLogic.cs: Implement more drawing
30790 * DataGrid.cs: drawing, theming, enhacements, fixes
30791 * DataGridColumnStyle.cs: fixes, drawing
30792 * Theme.cs: theming for Datagrid
30794 2005-05-20 Peter Bartok <pbartok@novell.com>
30796 * Cursor.cs: Implemented GetObjectData() method
30798 2005-05-20 Peter Bartok <pbartok@novell.com>
30800 * Cursors.cs: Added setting of cursor name
30802 - Implemented constructors
30803 - Implemented Draw and DrawStretched
30804 - Implemented Current property
30805 - Implemented == and != operators
30806 - Implemented Dispose()
30807 - Implemented ToString
30808 - Added missing attributes
30810 - Added missing reset for OverrideCursor when DoEvents is called
30811 - Fixed creation of cursor, logic was wrong
30813 - Added missing reset for OverrideCursor when DoEvents is called
30814 - Fixed creation of cursor, bit arrays were swapped
30815 * Clipboard.cs: Removed obsolete MonoTODO attribute
30817 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
30819 * ComboBox.cs: fixes OnSelectedItemChanged
30820 * ControlBindingsCollection.cs: fixes item range check
30822 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
30825 - Calc preferred height properly
30826 - Implement missing properties
30828 * NumericUpDown.cs: Implement missing events
30830 2005-05-19 Jackson Harper <jackson@ximian.com>
30832 * TabControl.cs: New method that resizes the tab pages before
30833 redrawing them. This as needed as the control is double buffered
30834 and sizing will not be recalculated unless ResizeTabPages is
30836 * TabPage.cs: Set base.Text instead of Text in the constructor so
30837 that UpdateOwner does not get called. Use the new Redraw method of
30838 TabControl instead of Refresh so the sizing is recalculated.
30839 * ThemeWin32Classic.cs: Draw the text for button tabs.
30841 2005-05-19 Jackson Harper <jackson@ximian.com>
30843 * Control.cs: Paint control background images. Fix typo where
30844 PaintControlBackground was not getting called correctly.
30846 2005-05-19 Peter Bartok <pbartok@novell.com>
30848 * ScrollableControl.cs (DisplayRectangle): Undid my last change until
30849 I can investigate, apparently I broke FileDialog
30851 2005-05-19 Marek Safar <marek.safar@seznam.cz>
30853 * AxHost.cs: Some simple properties.
30854 * Control.cs: window must be accessible after ctor.
30855 * Form.cs: Added TransparencyKey property.
30856 * TextBoxBase.cs: Implemented Clear. Text property can be null.
30857 * XplatUIWin32.cs: SetBorderStyle implemented.
30859 2005-05-18 Peter Bartok <pbartok@novell.com>
30861 * DataObject.cs: Entries are not global but particular to the
30862 DataObject, now it behaves that way
30863 * XplatUIWin32.cs: Implemented Clipboard methods
30864 * Clipboard.cs: Implemented
30865 * ScrollableControl.cs (DisplayRectangle): Fixed calculation
30866 * XplatUIOSX.cs: Updated to final clipboard prototypes
30867 * XplatUIX11.cs: Implemented Clipboard methods
30868 * XplatUIDriver.cs: Updated to final clipboard prototypes
30869 * XplatUIStructs.cs:
30870 - Added BITMAPINFOHEADER struct
30871 - Added ClipboardFormats enum
30873 - Added ClipboardStruct
30874 - Added Atom enum items for clipboard types
30875 - Fixed atom types for Selection event structures
30877 - Added internal properties and methods for drivers to enumerate
30879 - Switched initialization method to allow drivers to assign their
30880 own IDs even for the MS predefined clipboard IDs
30881 * XplatUI.cs: Updated to final clipboard interface
30883 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
30884 * PropertyGridView.cs: Fixed compiler warnings.
30886 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
30887 * PropertyGrid.cs: Added some event calls
30888 * PropertyGridView.cs: Change drawing code to use double buffering
30889 * PropertyGridTextBox.cs: Changed Text property name
30890 * GridItem.cs: Added Bounds property.
30891 * GridEntry.cs: Added Bounds property.
30893 2005-05-17 Lluis Sanchez Gual <lluis@novell.com>
30895 * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
30896 since GetType() may not return the correct type if the object is
30899 2005-05-17 Jordi Mas i Hernandez <jordi@ximian.com>
30901 * TreeNodeCollection.cs: fixes get/set item ranges
30903 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
30905 * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
30907 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
30909 * ComboBox.cs: Fix item range comparation
30910 * ListView.cs: Fix item range comparation
30912 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
30915 - Clear example panel when OnPaint is called
30916 - Better solution for displaying the example panel text
30917 - Select default indexes in the ListBoxes
30919 2005-05-11 Geoff Norton <gnorton@customerdna.com>
30921 * XplatUIOSX.cs: Avoid painting into invisible views. Fixes #74926
30923 2005-05-11 Peter Bartok <pbartok@novell.com>
30925 * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
30926 * SelectionRangeConverter.cs: Implemented
30927 * PropertyGrid.cs: Fixed attribute value
30929 - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
30930 - Added Sebastien Pouliot's CAS Stack Propagation fixes
30931 * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
30932 that's common to all drivers. First methods to go there are
30933 Sebastien Pouliot's CAS Stack Propagation helper methods
30934 * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
30935 Sebastien Pouliot for CAS Stack Propagation
30937 2005-05-11 Geoff Norton <gnorton@customerdna.com>
30940 XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
30942 2005-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
30944 * DataGridTextBoxColumn.cs: fixed some members
30945 * GridColumnStylesCollection.cs: indexed column is case insensitive
30946 * DataGridTableStyle.cs: fixes
30947 * ThemeWin32Classic.cs: add new theme parameter
30948 * Theme.cs: add new theme parameter
30949 * DataGridDrawingLogic.cs: Datagrid's drawing logic
30950 * DataGrid.cs: fixes, new internal properties, etc.
30951 * DataGridColumnStyle.cs: allows to set grid value
30954 2005-05-10 Peter Bartok <pbartok@novell.com>
30956 * AccessibleObject.cs:
30957 - Removed MonoTODO attribute on help, method is correct
30958 - Fixed Bounds property
30959 * AxHost.cs: Moved MonoTODO
30960 * ButtonBase.cs: Now setting AccessibleObject properties
30961 * RadioButton.cs: Setting proper AccessibleObject role
30962 * CheckBox.cs: Setting proper AccessibleObject role
30963 * ControlBindingsCollection.cs: Added properties, methods and attributes
30964 * DataFormats.cs: Fixed awkward internal API, and changed to enable
30965 userdefined DataFormats.Format items as well
30966 * ListControl.cs: Removed data_member from the public eye
30967 * OpenFileDialog.cs:
30968 - Made class sealed
30969 - Added missing attributes
30970 * SaveFileDialog.cs: Added missing attributes
30971 * ImageListStreamer.cs: Fixed code that caused warnings
30972 * LinkLabel.cs: Removed unreachable code
30973 * TreeView.cs: Fixed code that caused warnings
30974 * PropertyGridView.cs: Fixed code that caused warnings
30975 * GridColumnStylesCollection.cs: Added missing attributes
30976 * GridTableStylesCollection: Added missing attribute
30977 * PropertyManager: Added .ctor
30978 * SecurityIDType: Added
30979 * DataObject.cs: Implemented class
30980 * LinkArea.cs: Added missing attribute
30982 2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
30984 * RadioButton.cs: call base method to allow to fire OnClick event
30985 * UpDownBase.cs: OnMouseUp call base method
30986 * CheckedListBox.cs: call base method before returning
30987 * TrackBar.cs: call base method before returning
30990 2005-05-10 Peter Bartok <pbartok@novell.com>
30992 * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
30995 2005-05-10 Peter Bartok <pbartok@novell.com>
30997 * DataFormats.cs: Implemented
30998 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
30999 XplatUIX11.cs: Added Clipboard APIs
31000 * XplatUIWin32.cs: Implemented Clipboard APIs
31001 * FolderBrowserDialog.cs: Added missing event, attributes
31003 2005-05-10 Jordi Mas i Hernandez <jordi@ximian.com>
31005 * CheckBox.cs: call base method to allow to fire OnClick event
31007 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
31009 * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
31011 2005-05-06 Peter Bartok <pbartok@novell.com>
31013 * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
31014 * Screen.cs: Implemented
31015 * HelpNavigator.cs: Added
31016 * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
31018 * HelpProvider.cs: Implemented all we can do until we have a CHM
31019 help library (which means that "What's This" does work now)
31021 2005-05-06 Jackson Harper <jackson@ximian.com>
31023 * XplatUIX11.cs: Fix waking up the main loop.
31025 2005-05-05 Peter Bartok <pbartok@novell.com>
31027 * XplatUI.cs: Updated revision
31028 * Form.cs: Removed enless loop
31029 * GroupBox.cs (OnPaint): Added call to base.OnPaint()
31030 * Label.cs (OnPaint): Added call to base.OnPaint()
31031 * ToolTip.cs: Made ToolTipWindow reusable for other controls
31032 * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
31033 * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
31035 * ButtonBase.cs: Moved base.OnPaint() call to end of method
31036 * ThemeWin32Classic.cs: Replaced references to ToolTip with references
31037 to ToolTip.ToolTipWindow for drawing and size methods; this allows
31038 reuse of ToolTipWindow by other controls
31039 * SizeGrip.cs: Moved base.OnPaint() call to end of method
31040 * XplatUIX11.cs: Now clipping drawing area (experimental)
31041 * PictureBox.cs: Moved base.OnPaint() call to end of method
31042 * Theme.cs: Fixed ToolTip abstracts to match new format
31043 * ErrorProvider.cs: Implemented
31045 2005-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
31047 * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
31051 - Implements LinkBehavior
31052 - Fixes many issues
31054 2005-05-03 Jackson Harper <jackson@ximian.com>
31056 * ListView.cs: Calculate the scrollbar positioning on resize and
31057 paint, so they get put in the correct place.
31059 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
31061 * ColorDialogs.cs: The small color panels are now handled by
31062 SmallColorControl. This fixes drawing of the focus rectangle
31063 and adds a 3D border.
31065 2005-05-03 Peter Bartok <pbartok@novell.com>
31067 * Control.cs: Modified version of Jonathan Chamber's fix for
31070 2005-05-03 Jackson Harper <jackson@ximian.com>
31072 * ListView.cs: Remove redraw variable. Control now handles whether
31073 or not a redraw needs to be done, and will only raise the paint
31074 event if redrawing is needed.
31076 2005-05-03 Jackson Harper <jackson@ximian.com>
31078 * Splitter.cs: No decorations for the splitter form. Cache the
31081 2005-05-03 Jackson Harper <jackson@ximian.com>
31083 * TreeView.cs: Use dashed lines to connect nodes. Use the
31084 ControlPaint method for drawing the focus rect instead of doing
31087 2005-05-02 Peter Bartok <pbartok@novell.com>
31089 * LinkLabel.cs: Fixed the fixes from r43566 and 43521
31091 2005-04-29 Jackson Harper <jackson@ximian.com>
31093 * ThemeWin32Classic.cs: Don't clear the GC that will clear the
31094 entire image buffer. Just clear the clipping rectangle.
31096 2005-04-29 Jackson Harper <jackson@ximian.com>
31098 * ThemeWin32Classic.cs: Don't draw list view items that are
31099 outside the clipping rectangle.
31101 2005-04-29 Jordi Mas i Hernandez <jordi@ximian.com>
31103 * ListBox.cs: added horizontal item scroll
31105 2005-04-29 Jackson Harper <jackson@ximian.com>
31107 * ThemeWin32Classic.cs: Remove some old debug code that was
31108 causing flicker with the new double buffering code.
31110 2005-04-29 John BouAntoun <jba-mono@optusnet.com.au>
31112 * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
31113 behave like combobox and comboboxlist (still not sure if this is
31116 2005-04-28 Jackson Harper <jackson@ximian.com>
31118 * ThemeWin32Classic.cs: Don't fill the middle of progress
31119 bars. This fills areas outside of the clip bounds that don't need
31122 2005-04-28 Jackson Harper <jackson@ximian.com>
31124 * Control.cs: Don't expose functionality to touch the image buffers.
31126 * ListView.cs: We do not need to (and no longer can) manipulate
31127 the image buffers directly. All of this is handled by Control.
31129 2005-04-28 Peter Bartok <pbartok@novell.com>
31131 * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
31132 RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
31133 RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
31135 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
31138 - Adjust control's height for non-simple comboboxes (bug fix)
31140 * MenuAPI.cs: remove unused var
31141 * ScrollBar.cs: remove unsed var
31143 * ListBox.cs: unselect items when clearing
31145 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
31147 * ListControl.cs: honors OnPositionChanged and default Selected Item
31148 * ListBox.cs: unselect items when clearing
31150 2005-04-27 Jackson Harper <jackson@ximian.com>
31152 * X11Keyboard.cs: Initialize a default keyboard and give a warning
31153 if a "correct" keyboard is not found. This will make us not crash,
31154 but might give some users bad keyboard layouts...seems to be the
31155 same thing rewind does.
31157 2005-04-27 Jackson Harper <jackson@ximian.com>
31159 * BindingManagerBase.cs: Attach the current/position changed
31160 handlers to their respective events.
31162 2005-04-27 Jackson Harper <jackson@ximian.com>
31164 * Control.cs: Make sure that the first WM_PAINT does a full draw,
31166 * ThemeWin32Classic.cs: Don't fill the background for picture
31167 boxes. This could overright user drawing.
31168 * ComboBox.cs: Just fill the clipping rect not the entire client
31169 rect when drawing the background. This prevents pieces of the
31170 image buffer from getting overwritten and is theoretically faster.
31172 2005-04-26 Jordi Mas i Hernandez <jordi@ximian.com>
31174 * ComboBox.cs: Databinding support fixes, fire missing events
31175 * ListControl.cs: implement missing methods and properties, fixes
31176 * ThemeWin32Classic.cs: Databiding support on Drawing
31177 * CheckedListBox.cs: Databinding support fixes, fire missing events
31178 * ListBox.cs: Databinding support fixes, fire missing events
31180 2005-04-25 Peter Bartok <pbartok@novell.com>
31182 * LinkLabel.cs: Length of LinkArea is not allowed to be negative
31184 2005-04-25 Jackson Harper <jackson@ximian.com>
31186 * TreeView.cs: Use the horizontal scrollbars height not width when
31187 determining how much of the client area is available.
31189 2005-04-25 Jackson Harper <jackson@ximian.com>
31191 * Control.cs: Double buffering is handled differently now. As per
31192 the spec, the extra buffer is created in the WM_PAINT message and
31193 passed down to the control's drawing code.
31201 * PropertyGridView.cs:
31213 * DateTimePicker.cs:
31215 * TreeView.cs: Update to new double buffering system.
31216 * MonthCalendar.cs: Uncomment block, as Capture is now
31217 working. Update to new double buffering
31218 * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
31219 * PaintEventArgs.cs: New internal method allows us to set the
31220 graphics object. This is used for double buffering.
31221 * ThemeWin32Classic.cs: Give the picture box drawing code a clip
31222 rectangle. The internal paint_area var has been removed from
31223 StatusBar. The clipping rect should be used instead.
31224 * Theme.cs: Give the PictureBox drawing method a clipping rect.
31225 * TabPage.cs: The RefreshTabs method was removed, so just call the
31226 tab controls Refresh method now.
31227 * TabControl.cs: Update to new double buffering. Make sure the
31228 handle is created before sizing the tab pages, otherwise we will
31229 get stuck in a loop.
31231 2005-04-24 Borja Sanchez Zamorano <borsanza@gmail.com>
31233 * LinkLabel.cs: Fix typo, bug #74719; patch
31234 from Borja Sanchez Zamorano
31236 2005-04-22 Jackson Harper <jackson@ximian.com>
31238 * TreeNode.cs: Implement Handle stuff.
31239 * TreeView.cs: Utility methods so nodes can get/lookup by handle.
31241 2005-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
31243 * DataGridTextBoxColumn.cs: call base constructors, fixes
31244 * GridColumnStylesCollection.cs: missing events, methods, and functionality
31245 * GridTableStylesCollection.cs: fixes, check duplicate mapping names
31246 * DataGridTableStyle.cs: implements create default column styles
31247 * DataGridBoolColumn.cs: which types can handle
31248 * DataGrid.cs: missing methods, fixes, new functionality
31249 * DataGridColumnStyle.cs: fixes
31251 2005-04-20 Alexander Olk <xenomorph2@onlinehome.de>
31252 * FolderBrowserDialog.cs:
31253 - Use a thread to fill the TreeView
31254 - Adjusted some sizes
31256 2005-04-19 Peter Bartok <pbartok@novell.com>
31258 * LinkLabel.cs: (Re-)create the pieces when setting the Text
31259 property. Fixes #74360.
31261 2005-04-19 Jackson Harper <jackson@ximian.com>
31263 * XEventQueue.cs: Lock when getting the lockqueue size.
31264 * PictureBox.cs: Call base OnPaint
31266 2005-04-19 Peter Bartok <pbartok@novell.com>
31268 * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
31269 messages were no longer being processed (this broke BeginInvoke)
31272 2005-04-18 Jackson Harper <jackson@ximian.com>
31274 * TreeView.cs: buglet that caused node images to get drawn
31275 regardless of whether or not they were in the clipping rectangle.
31277 2005-04-18 Jackson Harper <jackson@ximian.com>
31279 * CurrencyManager.cs: There are four rules for GetItemProperties:
31280 - If the type is an array use the element type of the array
31281 - If the type is a typed list, use the type
31282 - If the list contains an Item property that is not an object, use
31284 - use the first element of the list if there are any elements in
31287 2005-04-17 Jackson Harper <jackson@ximian.oom>
31289 * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
31290 click. This handles offsets for scrolling properly and reduces
31291 memory. Also fixed GetNode to not offset now that TopNode works
31293 * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
31295 2005-04-17 Jackson Harper <jackson@ximian.com>
31297 * CursorConverter.cs: Initial implementation.
31299 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
31301 * ListControl.cs: work towards complex data binding support on ListControl
31302 * CurrencyManager.cs: work towards complex data binding support on ListControl
31303 * ListBox.cs: work towards complex data binding support on ListControl
31306 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
31308 * GridTableStylesCollection.cs: fixes name and constructor
31309 * DataGridTableStyle.cs: fixes
31310 * DataGridBoolColumn.cs: fixes names and constructors
31311 * DataGrid.cs: define methods and properties. Some init implementations
31312 * DataGridCell.cs: define methods and properties. Some init implementations
31313 * GridTablesFactory.cs: Define methods and properties
31315 2005-04-15 Geoff Norton <gnorton@customerdna.com>
31317 * XplatUIOSX.cs: Handle proper mouse tracking even if the current
31318 graphics port changes. We still want the coordinates in global screen
31321 2005-04-14 Jackson Harper <jackson@ximian.com>
31323 * TreeView.cs: Handle clicks when plus minus is disabled. Don't
31324 check plus minus or checkbox clicks unless those features are enabled.
31326 2005-04-14 Jackson Harper <jackson@ximian.com>
31328 * TreeView.cs: Add methods for setting the top and bottom visible
31329 nodes. TreeNode::EnsureVisible uses these methods.
31330 * TreeNode.cs: Implement EnsureVisible
31332 2005-04-13 Jordi Mas i Hernandez <jordi@ximian.com>
31334 * Form.cs: Pospone menu assignation if the window has not been created yet
31335 * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
31338 2005-04-12 Jackson Harper <jackson@ximian.com>
31340 * TreeView.cs: Set the TopNode properly when scrolling
31341 occurs. This has the added benifit of reducing the amount of
31342 walking that needs to be done when drawing. Also removed an old
31344 * OpenTreeNodeEnumerator.cs: Fix moving backwards.
31346 2005-04-11 Jordi Mas i Hernandez <jordi@ximian.com>
31348 * Timer.cs: fixes interval setting when the timer is already enabled
31350 2005-04-10 Alexander Olk <xenomorph2@onlinehome.de>
31352 * FolderBrowserDialog.cs: First approach
31354 2005-04-09 Peter Bartok <pbartok@novell.com>
31356 * FolderBrowserDialog: Added
31358 2005-04-07 Jordi Mas i Hernandez <jordi@ximian.com>
31360 * LinkLabel.cs: move drawing code into the theme
31361 * ThemeWin32Classic.cs: drawing code and painting background bugfix
31362 * Theme.cs: define DrawLinkLabel method
31364 2005-04-05 Jackson Harper <jackson@ximian.com>
31366 * BindingContext.cs: Use weak references so these bad actors don't
31367 stay alive longer then they need to.
31369 2005-04-05 Jackson Harper <jackson@ximian.com>
31371 * ListControl.cs: Basic implementation of complex databinding.
31373 * ListBox.cs: Add calls to ListControl databinding methods.
31375 2005-04-05 Alexander Olk <xenomorph2@onlinehome.de>
31378 - Don't change PopupButtonState to Normal when the
31379 PopupButton gets pressed several times.
31380 - Renamed ButtonPanel to PopupButtonPanel
31382 2005-04-05 Jordi Mas i Hernandez <jordi@ximian.com>
31384 * ColorDialog.cs: Use cached objects instead of creating them
31385 * LinkLabel.cs: Use cached objects instead of creating them
31386 * Splitter.cs: Use cached objects instead of creating them
31387 * FontDialog.cs: Use cached objects instead of creating them
31388 * PropertyGridView.cs: Use cached objects instead of creating them
31389 * MessageBox.cs: Use cached objects instead of creating them
31390 * FileDialog.cs: Use cached objects instead of creating them
31391 * ThemeWin32Classic.cs: Use cached objects instead of creating them
31392 * TreeView.cs: Use cached objects instead of creating them
31394 2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
31396 * Control.cs: use Equals to compare the font since no == op
31397 * ScrollBar.cs: use Equals to compare the font since no == op
31399 2005-04-04 Alexander Olk <xenomorph2@onlinehome.de>
31401 * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
31403 2005-04-01 Jackson Harper <jackson@ximian.com>
31405 * Binding.cs: Implement IsBinding.
31406 * BindingManagerBase.cs:
31407 * PropertyManager.cs:
31408 * CurrencyManager.cs: Add IsSuspended property.
31410 2005-04-01 Jackson Harper <jackson@ximian.com>
31412 * Binding.cs: Had some IsAssignableFrom calls backwards.
31414 2005-04-01 Jackson Harper <jackson@ximian.com>
31416 * Binding.cs: Handle null data members when pulling data.
31417 * PropertyManager.cs: Handle the data member being a property that
31420 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
31422 * DataGridTextBoxColumn.cs: fixes signature
31423 * DataGrid.cs: calls right constructor
31425 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
31427 * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
31428 * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
31429 * GridTableStylesCollection.cs: implements GridTableStylesCollection
31430 * DataGridTableStyle.cs: implements DataGridTableStyle
31431 * DataGridBoolColumn.cs: implements DataGridBoolColumn
31432 * DataGridTextBox.cs: implements DataGridTextBox
31433 * DataGridColumnStyle.cs: implements DataGridColumnStyle
31435 2005-03-31 Alexander Olk <xenomorph2@onlinehome.de>
31437 * FileDialog.cs: Added simple PopupButton class for ButtonPanel
31439 2005-03-29 Peter Bartok <pbartok@novell.com>
31442 - Properly implemented CompanyName property
31443 - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
31444 returns a path that includes CompanyName, ProductName and
31445 Version (fixes bug #70330)
31447 2005-03-29 Stefan Buehler <sbuehler@gmx.ch>
31449 * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
31452 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
31454 * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
31456 - Added ReadOnly CheckBox
31457 - Further refactoring: moved some code from Open-/SaveFileDialog
31460 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
31462 * OpenFileDialog.cs: Fixed CheckFileExists
31464 Moved FileView and DirComboBox outside FileDialog class.
31465 They can now be used outside FileDialog
31467 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
31469 * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
31470 * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
31472 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
31474 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
31475 - Added missing CreatePrompt property in SaveDialog
31476 - Overall SaveDialog handling should be better now
31477 - Added non standard ShowHiddenFiles property
31478 - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
31479 - Added InitialDirectory and RestoreDirectory support
31481 2005-03-26 Alexander Olk <xenomorph2@onlinehome.de>
31483 * FileDialog.cs: Made dirComboBox usable
31485 2005-03-24 Alexander Olk <xenomorph2@onlinehome.de>
31487 * FileDialog.cs: Added Filter support (case sensitiv)
31489 2005-03-24 Jackson Harper <jackson@ximian.com>
31491 * TabControl.cs: Need a couple more pixels for the lines.
31493 2005-03-23 Jackson Harper <jackson@ximian.com>
31495 * TabControl.cs: Give the tab page focus when it is selected.
31497 2005-03-23 Jackson Harper <jackson@ximian.com>
31499 * TabControl.cs: Account for the drawing of tabs borders when
31500 invalidating. If the slider was clicked dont do click detection on
31503 2005-03-23 Jackson Harper <jackson@ximian.com>
31505 * TabControl.cs: Fix typo, emilinates an unneeded expose event.
31507 2005-03-22 Jonathan Chambers <jonathan.chambers@ansys.com>
31509 * CategoryGridEntry.cs: Added
31510 * GridItem.cs: Added helper properties
31511 * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
31512 * GridEntry.cs: Updated code for collection
31513 * PropertyGrid.cs: Cleaned up some formatting
31514 * PropertyGridView.cs: Added drop down functionality for enums.
31515 * GridItemCollection.cs: Added enumerator logic
31516 * PropertyGridEntry.cs: Added
31518 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
31521 - Removed unnecessary commented code
31522 - Fixed handling for entering the filename manually in the combobox
31524 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
31526 * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
31528 2005-03-18 Peter Bartok <pbartok@novell.com>
31530 * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
31531 them being touching the border
31533 2005-03-18 Peter Bartok <pbartok@novell.com>
31535 * TextControl.cs: Quick hack to center text better
31537 2005-03-18 Peter Bartok <pbartok@novell.com>
31540 - Don't throw NotImplemented exceptions, just print a notice once
31541 instead (requested by Miguel). This makes running existing SWF
31544 - Commented out Drag'N'Drop XplatUI call (no driver support yet)
31545 - Added context menu trigger on right click
31546 * Panel.cs: Trigger invalidate on resize
31548 - Removed old double-buffer drawing
31549 - Added ResizeRedraw style to force proper update of statusbar
31551 - Removed debug output
31552 * ThemeWin32Classic.cs:
31553 - Fixed drawing of status bar, now draws Text property if there
31554 are no defined panels
31556 2005-03-18 Jackson Harper <jackson@ximian.com>
31558 * ImageList.cs: When the image stream is set pull all the images
31560 * ImageListStreamer.cs: Implement reading image list streams.
31562 2005-03-18 Peter Bartok <pbartok@novell.com>
31564 * ThemeWin32Classic.cs (DrawPictureBox):
31565 - Fixed calculations for centered drawing
31566 - Fixed drawing for normal mode, not scaling the image on normal
31568 2005-03-18 Peter Bartok <pbartok@novell.com>
31570 * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
31573 - Made Open/Save button the accept button for FileDialog
31574 - Tied the cancel button to the IButtonControl cancel button
31575 - Save/Open now properly builds the pathname
31576 - Now handles user-entered text
31577 - Preventing crash on right-click if no item is selected
31578 - Fixed Text property, now uses contents of textbox
31579 - Fixed SelectedText property, now just returns the text part that
31580 is selected in the text box
31582 2005-03-18 Jackson Harper <jackson@ximian.com>
31584 * ThemeWin32Classic.cs: Use the proper func for drawing the focus
31585 rect, make sure to de-adjust the interior rect after drawing the
31588 2005-03-18 Peter Bartok <pbartok@novell.com>
31590 * MenuAPI.cs: Remove menu *before* executing selected action to
31591 prevent the menu from 'hanging around'
31593 2005-03-17 Geoff Norton <gnorton@customerdna.com>
31595 * XplatUIOSX.cs: Implemented WorkingArea property
31597 2005-03-17 Peter Bartok <pbartok@novell.com>
31599 * XplatUIX11.cs: Fixed menu coord calculations
31600 * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
31601 for calculating offsets
31603 2005-03-17 Peter Bartok <pbartok@novell.com>
31605 * Hwnd.cs: Do not consider menu presence for default client
31606 rectangle location/size
31607 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
31608 XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
31609 translation functions
31610 * FileDialog.cs: Fixed (what I presume is a) typo
31612 2005-03-17 Jonathan Gilbert <logic@deltaq.org>
31614 * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
31615 X access (avoids X-Async errors)
31617 2005-03-16 Jackson Harper <jackson@ximian.com>
31619 * TabControl.cs: Raise the SelectedIndexChanged event.
31621 2005-03-16 Alexander Olk <xenomorph2@onlinehome.de>
31623 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
31624 - Removed vertical ToolBar and replaced it with a custom panel
31625 (desktop and home button already work)
31626 - Added Help button (some controls get resized or relocated then)
31627 - Draw correct text depending on Open or Save.
31628 - Fixed some typos...
31630 2005-03-16 Jordi Mas i Hernandez <jordi@ximian.com>
31633 - Only change Maximum and Minimum when need it (bug fix)
31635 2005-03-15 Peter Bartok <pbartok@novell.com>
31637 * Form.cs: Use Handle for icon, to trigger creation if
31638 the window does not yet exist
31640 - CanSelect: Slight performance improvement
31641 - Focus(): Preventing possible recursion
31642 - Invalidate(): Removed ControlStyle based clear flag setting
31643 - WM_PAINT: fixed logic for calling OnPaintBackground
31644 - WM_ERASEBKGND: Fixed logic, added call to new driver method
31645 EraseWindowBackground if the control doesn't paint background
31647 - Moved EraseWindowBackground() method to internal methods
31648 - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
31649 is sent via SendMessage on BeginPaint call on Win32
31651 - Added EraseWindowBackground() method
31652 - No longer sends WM_ERASEBKGND on .Expose, but on call to
31653 PaintEventStart, which more closely matches Win32 behaviour
31654 - Fixed Invalidate() call, now updates new ErasePending Hwnd property
31655 - Fixed SetFocus() to properly deal with client and whole windows
31656 * Hwnd.cs: Added ErasePending property
31657 * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
31658 * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
31660 2005-03-12 Geoff Norton <gnorton@customerdna.com>
31663 - Fix hard loop when timers exist.
31664 - Fix bugs with middle and right click for 3 button mice.
31666 2005-03-11 Peter Bartok <pbartok@novell.com>
31669 - get_WorkingArea: Need to call X directly, GetWindowPos only
31670 returns cached data now
31671 - Added sanity check to GetWindowPos hwnd usage
31673 2005-03-11 Jackson Harper <jackson@ximian.com>
31675 * BindingManagerBase.cs: This method isn't used anymore as
31676 PullData now updates the data in the control.
31678 2005-03-11 Jordi Mas i Hernandez <jordi@ximian.com>
31680 * Form.cs: fixes menu drawing on X11
31681 * MenuAPI.cs: fixes menu drawing on X11
31683 2005-03-11 Peter Bartok <pbartok@novell.com>
31685 * Control.cs: Changed OnCreateControl behaviour based on a suggestion
31686 from Jonathan Gilbert; should fix bug #73606
31687 * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
31688 in Screen coordinates. Thanks, Jordi.
31689 * Form.cs: Added missing attribute
31691 2005-03-11 Peter Bartok <pbartok@novell.com>
31694 - Rudimentary Mdi support
31695 - Removed outdated FormParent code
31696 - Implemented lots of missing properties and methods, still missing
31697 transparency support
31698 - Added missing attributes
31699 - Implemented support for MaximumBounds
31700 - Added firing of various events
31701 * XplatUI.cs: Added SetIcon() method
31702 * XplatUIDriver.cs: Added SetIcon() abstract
31703 * XplatUIOSX.cs: Stubbed out SetIcon() method
31705 - Implemented SetIcon() support
31706 - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
31707 - Switched to unix line endings
31709 - Made POINT internal so for can access it as part of MINMAX
31710 - Implemented SetIcon() support
31711 - Implemented support for CLIENTCREATESTRUCT (but might have to drop
31712 native Mdi support again, might have to go managed)
31713 * Control.cs: Now fires the StyleChanged event
31714 * MdiClient.cs: Added; still mostly empty
31716 2005-03-10 Peter Bartok <pbartok@novell.com>
31718 * SaveFileDialog.cs: Added emtpy file
31720 2005-03-08 Peter Bartok <pbartok@novell.com>
31722 * Control.cs: Fixed bug #73190; now invokes CreateControl (which
31723 in turn triggers OnCreateContro) when creating a handle for the
31725 * TextControl.cs: Fixed endless loop in certain cases when
31726 replacing the current selection
31728 2005-03-08 Jordi Mas i Hernandez <jordi@ximian.com>
31731 - Honors NewValue changes in Scroll events allowing apps to change it
31732 - Adds First and Last Scroll events
31733 - Fixes Thumb events
31735 2005-03-07 Peter Bartok <pbartok@novell.com>
31737 * Hwnd.cs: Added DefaultClientRectangle property
31738 * XplatUI.cs: Now using the X11 driver Where() method, which provides
31739 more detailed debug information
31741 - Fixed size-change feedback loop, where we would pull an old size
31742 off the queue and mistakenly change our window's size to an
31744 - Now compressing ConfigureNotify events, to reduce looping and
31746 * TextBoxBase.cs: Preventing crash when no text is set and ToString()
31749 2005-03-07 Jackson Harper <jackson@ximian.com>
31751 * Binding.cs: Push data pushes from data -> property. Check if the
31752 property is readonly when attempting to set it.
31754 2005-03-07 Jackson Harper <jackson@ximian.com>
31756 * Binding.cs: Format and parse data correctly. Use ASsignableFrom
31757 instead of IsSubclassOf. Pulling data now sets the value on the
31759 * PropertyManager.cs:
31760 * CurrencyManager.cs: Just need to pull data when updating now,
31761 because PullData will set the value on the control.
31763 2005-03-04 Jackson Harper <jackson@ximian.com>
31765 * Binding.cs: Implement data type parsing and converting on pulled
31766 data. TODO: Are there more ways the data can be converted?
31768 2005-03-04 Jackson Harper <jackson@ximian.com>
31770 * Binding.cs: Support <Property>IsNull checks. Also bind to the
31771 controls Validating method so we can repull the data when the
31772 control loses focus.
31774 2005-03-03 Jordi Mas i Hernandez <jordi@ximian.com>
31777 - Fixes null string format
31780 - Adds enum type checks
31781 - Fixes redrawing and recalc need after changing some properties
31782 - Fixes on focus_item set after the event
31783 - Fixes adding columns after the control has been created
31785 * ThemeWin32Classic.cs:
31786 - Fixes CheckBox focus rectangle
31787 - Fixes ColumnHeader drawing
31790 2005-03-03 Jackson Harper <jackson@ximian.com>
31792 * Binding.cs: Bind to <Property>Changed events so we can detect
31793 when properties are changed and update the data.
31795 2005-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
31798 - Changes 32-bit pixel format to Format32bppArgb to allow transparency
31799 - Fixes ImageList constructor with ImageList container
31800 - Fixes image scaling (wrong parameters at DrawImage)
31802 2005-02-02 Jackson Harper <jackson@ximian.com>
31804 * Binding.cs: Make property searches case-insensitive. Eliminate
31805 some duplicated code.
31807 2005-03-01 Jordi Mas i Hernandez <jordi@ximian.com>
31810 - Handle focus event
31811 - Fix scrollbar events
31812 - Discard highlighted item if remove it
31813 - Fixes SelectedItem with strings
31815 2005-03-01 Peter Bartok <pbartok@novell.com>
31818 - Fixed Visible property, now follows (once again) parent chain
31819 to return false if any control in the chain is visible=false
31820 - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
31821 - Fixed several places where is_visible instead of Visible was used
31822 - Implemented FIXME related to focus selection when setting focused
31823 control to be invisible
31825 * XplatUIWin32.cs: Now using proper method to find out if window is
31826 visible. Thanks to Jordi for pointing it out
31828 2005-02-28 Jordi Mas i Hernandez <jordi@ximian.com>
31830 * ComboBox.cs: show/hide scrollbar instead of creating it
31832 2005-02-27 Jackson Harper <jackson@ximian.com>
31834 * CurrencyManager.cs: Add PositionChanged stuff.
31836 2005-02-27 Peter Bartok <pbartok@novell.com>
31838 * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
31839 * XplatUIOSX.cs: Added GetMenuOrigin() stub
31840 * XplatUIWin32.cs: Implemented GetMenuOrigin()
31842 - Implemented GetMenuDC()
31843 - Implemented GetMenuOrigin()
31844 - Implemented ReleaseMenuDC()
31845 - Implemented generation of WM_NCPAINT message
31846 - Implemented generation and handling of WM_NCCALCSIZE message
31847 * Form.cs: Added debug helper message for Jordi's menu work
31849 - Modified ClientRect property; added setter, fixed getter to handle
31850 setting of ClientRect
31851 - Added MenuOrigin property
31853 2005-02-26 Peter Bartok <pbartok@novell.com>
31856 - Destroys the caret if a window that's being destroyed contains it
31857 - Ignores expose events coming from the X11 queue for windows that
31858 already are destroyed
31859 - Now uses the proper variable for handling DestroyNotify, before we
31860 marked the wrong window as destroyed
31861 - Improved/added some debug output
31863 2005-02-26 Peter Bartok <pbartok@novell.com>
31865 * X11Keyboard.cs: Fixes to work on 64bit systems
31867 2005-02-26 Peter Bartok <pbartok@novell.com>
31870 - Now calling OnHandleDestroyed from DestroyHandle()
31871 instead of Dispose()
31872 - Removed bogus call to controls.Remove() from DestroyHandle()
31874 2005-02-26 Peter Bartok <pbartok@novell.com>
31876 * Control.cs: Properly destroy child windows when our handle is
31879 2005-02-25 Peter Bartok <pbartok@novell.com>
31882 - Added 'DriverDebug' define to allow tracing XplatUI API calls
31883 - Alphabetized Static Methods and Subclasses
31886 - Added XException class to allow custom handling of X11 exceptions
31887 - Created custom X11 error handler, tied into XException class
31888 - Added support for MONO_XEXCEPTIONS env var to allow the user
31889 to either throw an exception on X errors or continue running
31890 after displaying the error
31891 - Added handling of DestroyNotify message
31892 - Added handler for CreateNotify message (still disabled)
31893 - Improved (tried to at least) Where method to provide file and lineno
31895 - Added XErrorHandler delegate
31896 - Added XRequest enumeration (to suppor translation of errors)
31898 2005-02-25 Jackson Harper <jackson@ximian.com>
31900 * PropertyManager.cs: Implement editing features
31901 * CurrencyManager.cs:
31902 * Binding.cs: First attempt at UpdateIsBinding
31903 * BindingManagerBase.cs: Call UpdateIsBinding before
31904 pushing/pulling data.
31906 2005-02-25 Jordi Mas i Hernandez <jordi@ximian.com>
31908 * MenuAPI.cs: Respect disabled items
31909 * ThemeWin32Classic.cs
31910 - Caches ImageAttributes creation for DrawImageDisabled
31911 - Fixes vertical menu line drawing
31912 - Draws disabled arrows in disable menu items
31914 2005-02-24 Peter Bartok <pbartok@novell.com>
31917 - Added UserData property to allow associating arbitrary objects
31919 - Fixed leak; now removing Hwnd references from static windows array
31921 - Fixed Graphics leak in PaintEventEnd
31922 - Removed usage of HandleData, switched over to Hwnd class
31923 * HandleData.cs: Removed, obsoleted by Hwnd.cs
31925 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
31927 * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
31928 * ScrollBar.cs: Fixes bug
31929 * TrackBar.cs: removes death code, clipping, mimize refreshes,
31930 keyboard navigation enhancements
31932 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
31934 * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
31935 * GroupBox.cs: Add control styles
31936 * Label.cs: Add control styles
31937 * UpDownBase.cs: Add control styles
31938 * ListBox.cs: Add control styles
31939 * XplatUIWin32.cs: Fixes wrong parameter order
31942 2005-02-23 Chris Bacon <chris.bacon@docobo.co.uk>
31944 * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
31946 2005-02-23 Jackson Harper <jackson@ximian.com>
31948 * PropertyManager.cs: Implement property binding. This doesn't
31949 seem to work yet though as (I think) there are some bugs in
31950 System.ComponentModel.PropertyDescriptor.
31951 * BindingContext.cs: Use new PropertyManager constructor.
31953 2005-02-23 Jordi Mas i Hernandez <jordi@ximian.com>
31955 * ProgressBar.cs: use clip region in ProgressBar
31956 * ThemeWin32Classic.cs: use clip region in ProgressBar
31958 2004-02-22 Jackson Harper <jackson@ximian.com>
31960 * BindingsCollection.cs: Remove some debug code.
31962 2005-02-22 Jackson Harper <jackson@ximian.com>
31964 * BindingContext.cs:
31965 * ControlBindingsCollection.cs:
31966 * CurrencyManager.cs:
31968 * BindingManagerBase.cs: Initial implementation
31969 * BindingsCollection.cs: Add an internal contains method that the
31970 BindingManagerBase uses to ensure bindings aren't added twice to
31972 * PropertyManager.cs: Stubbed out.
31974 * ContainerControl.cs: Hook up databinding
31976 2005-02-22 Geoff Norton <gnorton@customerdna.com>
31979 OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
31980 Fixed Invalidate/Update chain.
31981 Fixed tons of other minor bugs (this is almost a complete rewrite).
31983 2005-02-22 Jordi Mas i Hernandez <jordi@ximian.com>
31985 * ComboBox.cs: do subcontrol creation when the control is created
31987 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
31989 * Label.cs: fixes image drawing (image and imagelist)
31990 * ThemeWin32Classic.cs: cache brushes
31992 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
31994 * Form.cs: Move menu drawing code to Theme class
31995 * ComboBox.cs: Move ComboBox drawing code to Theme class
31996 * MenuItem.cs: Move menu drawing code to Theme class
31997 * MenuAPI.cs: Move menu drawing code to Theme class
31998 * ThemeWin32Classic.cs: New methods
31999 * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
32000 * ListBox.cs: Move Listbox drawing code to Theme class
32001 * Theme.cs: New methods
32003 2005-02-20 Peter Bartok <pbartok@novell.com>
32006 - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
32007 only process mnemonics on those)
32008 - Fixed event sequence for key handling; first calling
32009 ProcessKeyEventArgs now
32011 - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
32012 for processing non-character keys
32013 - Fixed WM_CHAR to generate proper event sequence before processing
32014 * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
32017 2005-02-19 Peter Bartok <pbartok@novell.com>
32019 * UserControl.cs: Added TextChanged event; added attributes
32020 * SizeGrip.cs: Implemented resizing and optional display of grip
32021 * Form.cs: Fixed attribute
32022 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
32023 Changed meaning of ScrollWindow bool argument; instead of the
32024 clear attribute (which will be true usually anyway), it gives the
32025 option of moving child controls as well.
32027 - Changed to match new ScrollWindow argument
32028 - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
32029 now handles the implicit parent window a WM puts around us
32030 * ScrollableControl.cs: Implemented (not the prettiest, but it seems
32032 * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
32033 * TreeView.cs: Adjusted to new ScrollWindow arguments
32035 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
32037 * Form.cs: Menu integration with non-client area
32038 * MenuItem.cs: Menu integration with non-client area
32039 * MenuAPI.cs: Menu integration with non-client area
32041 2005-02-18 Peter Bartok <pbartok@novell.com>
32043 * MethodInvoker.cs: Added
32044 * MdiLayout.cs: Added
32045 * SendKeys.cs: Started implementation
32046 * ErrorIconAlignment.cs: Added
32048 2005-02-18 Peter Bartok <pbartok@novell.com>
32050 * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
32051 * Form.cs: Added handling for Menu-related Non-client messages
32053 2005-02-17 Peter Bartok <pbartok@novell.com>
32055 * UpDownBase.cs: Fixed typo, compilation errors
32056 * DomainUpDown.cs: Fixed attribute value
32058 2005-02-16 Miguel de Icaza <miguel@novell.com>
32060 * UpDownBase.cs: Attach entry events.
32062 Add ForeColor property, Focused, InterceptArrowKeys (interception
32063 does not work yet).
32065 2005-02-17 Jordi Mas i Hernandez <jordi@ximian.com>
32068 - Redraw non client are on Setmenu
32069 - Calc proper menu starting point
32071 2005-02-17 Peter Bartok <pbartok@novell.com>
32073 * Application.cs: Fixed message_filter check
32075 2005-02-17 Peter Bartok <pbartok@novell.com>
32077 * Application.cs: Now calls registered message filters
32078 * DockStyle.cs: Fixed attribute
32079 * Form.cs: Fixed attribute
32080 * Menu.cs: Fixed attribute
32081 * ToolTip.cs: Fixed attribute
32082 * TreeNode.cs: Added missing attributes and arranged in regions
32083 * PropertyGrid.cs: Fixed signatures
32084 * TreeNodeCollection.cs: Added attributes
32085 * Splitter.cs: Added missing attributes; arranged into regions
32086 * TabPage.cs: Added missing attributes; arranged into regions
32087 * TextBoxBase.cs: Added missing attributes
32088 * TextBox.cs: Added missing attributes
32089 * ArrangeDirection.cs: Added missing attributes
32090 * TreeNodeConverter.cs: Added stub (needed for TreeNode)
32091 * ToolBarButton.cs: Fixed attributes
32092 * AnchorStyles.cs: Fixed attribute
32093 * TrackBar.cs: Fixed attributes
32094 * TabControl.cs: Added missing attributes and arranged into regions
32095 * ToolBar.cs: Fixed attribute
32096 * StatusBar.cs: Fixed signature, organized into regions and added
32098 * StatusBarPanel.cs: Fixed attributes
32099 * ContentsResizedEventArgs.cs: Implemented
32100 * ContentsResizedEventHandler.cs: Implemented
32101 * DateBoldEventArgs.cs: Implemented
32102 * DateBoldEventHandler.cs: Implemented
32103 * UpDownEventArgs.cs: Implemented
32104 * UpDownEventHandler.cs: Implemented
32106 2005-02-16 Jordi Mas i Hernandez <jordi@ximian.com>
32108 * Form.cs: first Menu NC refactoring
32109 * MenuAPI.cs: first Menu NC refactoring
32111 2005-02-16 Peter Bartok <pbartok@novell.com>
32113 * ImeMode.cs: Added missing attributes
32114 * Menu.cs: Fixed attribute
32115 * GroupBox.cs: Fixed attribute
32116 * Label.cs: Fixed attribute
32117 * ColorDialog.cs (RunDialog): Removed TODO attribute
32118 * ComboBox.cs: Fixed attributes
32119 * ListControl.cs: Added missing attributes
32120 * PropertyGrid.cs: Fixed attributes
32121 * Control.cs: Fixed attributes
32122 * ListViewItem.cs: Added TypeConverter attribute
32123 * NotifyIcon.cs: Fixed attributes
32124 * ListView.cs: Fixed attributes
32125 * ButtonBase.cs: Fixed attribute
32126 * ImageList.cs: Added missing attributes
32127 * ContainerControl.cs: Fixed signature
32128 * CheckedListBox.cs: Fixed attribute; added missing attributes
32129 * Panel.cs: Fixed attributes
32130 * PropertyTabChangedEventArgs.cs: Added missing attribute
32131 * PropertyValueChangedEventArgs.cs: Added missing attribute
32132 * Binding.cs: Fixed attribute
32133 * ListViewItemConverter: Implemented ListViewSubItemConverter class
32134 * ListBox.cs: Fixed attribute; added missing attributes;
32135 * ScrollableControl.cs: Added missing attributes
32136 * PictureBox.cs: Added missing attributes; implemented missing property
32137 * DateTimePicker.cs: Added missing attributes
32138 * Theme.cs (ToolWindowCaptionHeight): Fixed type
32139 * MonthCalendar.cs: Fixed attributes
32140 * StatusBarPanel.cs: Added missing attributes
32141 * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
32143 2005-02-16 Peter Bartok <pbartok@novell.com>
32145 * TextBoxBase.cs: The previous method to enforce height yet remember
32146 the requested high was less than ideal, this is an attempt to do
32148 * Control.cs: Added comment about possible problem
32149 * Copyright: Updated format
32150 * GridItemType.cs: Fixed swapped values
32152 2005-02-15 Jackson Harper <jackson@ximian.com>
32154 * BaseCollection.cs: Use property so we never access an
32155 uninitialized list. Also initialize the list in the property.
32157 2005-02-15 Peter Bartok <pbartok@novell.com>
32159 * GroupBox.cs (ProcessMnemonic): Implemented
32160 * Label.cs (ProcessMnemonic): Implemented
32161 * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
32164 2005-02-15 Peter Bartok <pbartok@novell.com>
32166 * RadioButton.cs (ProcessMnemonic): Implemented
32167 * CheckBox.cs (ProcessMnemonic): Implemented
32169 - Added handling of WM_SYSxxx keyboard messages to support mnemonic
32171 - Added internal method to allow calling ProcessMnemonic from other
32173 * ContainerControl.cs:
32174 - Started support for handling validation chain handling
32175 - Implemented ProcessMnemonic support
32176 - Added Select() call to Active, to make sure the active control
32178 * Form.cs: Setting toplevel flag for Forms (this was lost in the
32179 FormParent rewrite)
32180 * ThemeWin32Classic.cs:
32181 - DrawCheckBox(): Fixed stringformat to show hotkeys
32182 - DrawRadioButton(): Fixed stringformat to show hotkeys
32183 * CommonDialog.cs: Removed WndProc override, not needed
32185 2005-02-14 Peter Bartok <pbartok@novell.com>
32187 * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
32188 missed those in the rewrite
32190 2005-02-14 Miguel de Icaza <miguel@novell.com>
32192 * NumericUpDown.cs (Increment, ToString): Add.
32193 (DecimalPlaces): implement.
32197 * UpDownBase.cs: Add the designer attributes.
32199 2005-02-13 Peter Bartok <pbartok@novell.com>
32201 * Panel.cs: Removed border_style, now in Control
32202 * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
32203 ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
32205 2005-02-13 Peter Bartok <pbartok@novell.com>
32207 * MouseButtons.cs: Added missing attributes
32208 * XplatUIStructs.cs: Added enumeration for title styles
32209 * LeftRightAlignment.cs: Added missing attributes
32210 * Hwnd.cs: Switched to use client_window as handle (slower, but makes
32211 it compatible with Graphics.FromHwnd()
32212 * SelectedGridItemChangedEventArgs.cs: Fixed property type
32213 * Keys.cs: Added missing attributes
32214 * SelectionRange.cs: Added missing attributes
32215 * SelectionRangeConverter.cs: Added
32217 - Introduced SetBorderStyle, SetMenu, GetMenuDC and
32218 ReleaseMenuDC methods
32219 - Renamed ReleaseWindow to UngrabWindow
32220 - Added proper startup notice to allow version identification
32222 - Added missing attributes
32223 - Removed FormParent concept
32224 * Label.cs: Removed border_style field, now in Control
32225 * RadioButton.cs: Now properly selects RadioButton when focus is
32227 * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
32229 - Added missing attributes
32230 - Added borderstyle handling
32231 - Removed FormParent concept support
32232 - Fixed calls to XplatUI to match changed APIs
32233 - Fixed bug that would case us to use disposed Graphics objects
32234 - Removed unneeded internal methods
32235 - PerformLayout(): Fixed to handle DockStyle.Fill properly
32236 - SelectNextControl(): Fixed to properly check common parents
32237 * TextBoxBase.cs: Removed border_style field (now in Control)
32239 - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
32240 fixed calculations for form size
32241 - Added support for localized strings and icons
32242 - Improved form size calculations, added border
32243 * ListView.cs: Removed border_style field (now in Control)
32244 * X11Structs.cs: Moved several structs from X11 driver here
32245 * X11Keyboard.cs: Changed debug message
32246 * Application.cs: Removed FormParent concept support
32248 - Resetting end_modal flag
32249 - Removed FormParent concept support
32250 * NativeWindow.cs: Removed FormParent concept support
32251 * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
32252 Client area and Non-Client whole window to allow support for WM_NC
32254 * XplatUIOSX.cs: Updated to match latest driver spec; added exception
32255 prevent using it until it supports Hwnd as per Geoff Norton's request
32256 * ToolBar.cs: Fixed drawing, was not doing proper drawing
32257 * PictureBox.cs: Removed border_style field, now in Control
32258 * XplatUIWin32.cs: Added new driver methods
32260 2005-02-12 Peter Bartok <pbartok@novell.com>
32262 * OpacityConverter.cs: Implemented
32263 * Hwnd.cs: Internal class to support drivers that need to emulate
32264 client area/non-client area window behaviour
32266 2005-02-11 Peter Bartok <pbartok@novell.com>
32268 * KeysConverter.cs: Implemented
32270 2005-02-11 Jordi Mas i Hernandez <jordi@ximian.com>
32272 * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
32273 * LinkLabel: Added missing attributes
32274 * MainMenu.cs: fixes ToString
32275 * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
32276 * ListBox.cs: fixes event position
32277 * TrackBar.cs: adds missing attributes and events
32279 2005-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
32281 * MenuItem.cs: Use SystemInformation and bug fixes
32282 * MenuAPI.cs: Use SystemInformation and bug fixes
32284 2005-02-09 Jackson Harper <jackson@ximian.com>
32286 * X11Keyboard.cs: We ignore some keys, but still need to set/reset
32287 their keystate otherwise things like VK_MENU get stuck "on".
32289 2005-02-09 Kazuki Oikawa <kazuki@panicode.com>
32291 * ListBox.cs: Fixes AddRange bug
32293 2005-02-09 Jordi Mas i Hernandez <jordi@ximian.com>
32296 - Add missing attributes
32297 - Add missing method
32299 * CheckedListBox.cs: Added missing attributes
32300 - Add missing attributes
32301 - Remove extra method
32303 * ComboBox.cs: Added missing attributes
32304 * VScrollBar.cs: Added missing attributes
32305 * ScrollBar.cs: Added missing attributes
32306 * ListBox.cs: Fixes signature, add missing consts
32307 * LinkArea.cs: Added missing attributes
32310 2005-02-08 Peter Bartok <pbartok@novell.com>
32312 * Menu.cs: Added missing attributes
32313 * MainMenu.cs: Added missing attributes
32314 * GroupBox.cs: Added missing attributes
32315 * Label.cs: Added missing attributes
32316 * CheckBox.cs: Implemented CheckBoxAccessibleObject class
32318 - Added Instance and Options properties
32319 - Added missing attributes
32320 * Cursor.cs: Made Serializable
32321 * NotifyIcon: Added missing attributes
32322 * MenuItem.cs: Added missing attributes
32323 * TextBoxBase.cs: Implemented AppendText() and Select() methods
32324 * Panel.cs: Added Missing attributes
32325 * MonthCalendar.cs: Fixed CreateParams
32327 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
32331 - Fixes issues with links
32332 - Adds the class attributes
32334 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
32337 - Fixes button when no items available in dropdown
32338 - Fixes repainting problems
32339 - Adds the class attributes
32341 2005-02-07 Geoff Norton <gnorton@customerdna.com>
32343 * XplatUIOSX.cs: Detect the menu bar and title bar height from
32344 the current theme. Cache these on startup.
32346 2005-02-07 Jackson Harper <jackson@ximian.com>
32348 * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
32349 the scrollbar buttons when they are depressed.
32351 2005-02-07 Geoff Norton <gnorton@customerdna.com>
32353 * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
32354 Get the display size from the main displayid. We currently dont
32355 support multiple display configurations.
32357 2005-02-07 Geoff Norton <gnorton@customerdna.com>
32359 * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
32361 2005-02-07 Miguel de Icaza <miguel@novell.com>
32363 * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
32365 2005-02-05 Jonathan Chambers <jonathan.chambers@ansys.com>
32367 * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
32369 2005-02-04 Jackson Harper <jackson@ximian.com>
32371 * ThemeWin32Classic.cs: Respect the clipping rect when
32372 drawing. Only fill the intersection of clips and rects so there
32373 isn't a lot of large fills.
32374 * ScrollBar.cs: Pass the correct clipping rect to the theme
32375 engine. Remove some debug code.
32377 2005-02-05 John BouAntoun <jba-mono@optusnet.com.au>
32379 * DateTimePicker.cs:
32380 - Fixed crash on DateTime.Parse, use Constructor instead
32382 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
32386 - Owner draw support (MeasureItem and DrawItem)
32388 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
32391 - Implements FindMergePosition and MergeMenu functions (very poor documented)
32392 - Fixes MenuItems.Add range
32394 - MergeMenu and Clone and CloneMenu functions
32396 2005-02-03 Jackson Harper <jackson@ximian.com>
32398 * ScrollBar.cs: Make abstract
32399 * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
32402 2005-02-03 Jackson Harper <jackson@ximian.com>
32404 * ScrollBar.cs: First part of my scrollbar fixups. This removes
32405 all the unneeded refreshes and uses invalidates with properly
32408 2005-02-03 Peter Bartok <pbartok@novell.com>
32410 * ComponentModel.cs: Added
32411 * IDataGridEditingService.cs: Added
32412 * Timer.cs: Added missing attributes
32413 * ToolTip.cs: Added missing attributes
32415 2005-02-03 Jonathan Chambers <jonathan.chambers@ansys.com>
32417 * PropertyGridView.cs: Added. Patch by Jonathan Chambers
32419 2005-02-03 Peter Bartok <pbartok@novell.com>
32421 * ListBox.cs: Added missing attributes
32423 2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
32426 - Fixes font height after font change
32427 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
32429 2005-02-02 Peter Bartok <pbartok@novell.com>
32431 * HandleData.cs: Introduced static methods to allow class
32432 to be more self-contained and track it's own HandleData objects
32433 * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
32434 HandleData to use new static methods
32436 2005-02-02 Jordi Mas i Hernandez <jordi@ximian.com>
32439 - Fixes default size and PreferredHeight
32441 - ObjectCollection.Insert implementation
32447 - ObjectCollection.Insert implementation
32448 - No selection after clean
32451 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
32453 * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
32455 2005-02-01 Jordi Mas i Hernandez <jordi@ximian.com>
32458 - Caches ItemHeight calculation for OwnerDrawVariable
32459 - Handles dropdown properly
32460 - Fixes several minor bugs
32462 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
32465 - Fixes 71946 and 71950
32466 - Fixes changing Multicolumn on the fly
32467 - Fixes keyboard navigation on Multicolumn listboxes
32469 2005-01-31 Geoff Norton <gnorton@customerdna.com>
32471 * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
32472 crash reporter log.
32474 2005-01-31 Geoff Norton <gnorton@customerdna.com>
32476 * XplatUIOSX.cs: Allow applications to actually exit.
32478 2005-01-31 Geoff Norton <gnorton@customerdna.com>
32480 * XplatUIOSX.cs: SetWindowStyle implemented. Reposition views in
32481 their parent at creation time rather than lazily later. Fixes a major
32482 regression we were experiencing.
32484 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
32486 * ThemeWin32Classic.cs: more date time picker painting fixes
32487 * DateTimePicker.cs: more monthcalendar drop down fixes
32488 * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
32490 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
32493 - When moving the thumb going outside the control should stop the moving
32494 - Adds the firing of missing events
32495 - Fixes no button show if Size is not specified
32496 - End / Home keys for keyboard navigation
32498 2005-01-30 Peter Bartok <pbartok@novell.com>
32500 * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
32501 sanity check to prevent theoretical loop
32502 * XplatUIWin32.cs (SetVisible): Removed debug output
32503 * XplatUIX11.cs (SystrayChange): Added sanity check
32504 * ScrollableControl.cs (OnVisibleChanged): Now calls base method
32505 * Control.cs (OnVisibleChanged): Added workaround for ParentForm
32506 behaviour, valid until the X11 client window rewrite is done
32507 * TextBox.cs (ctor): Setting proper default foreground and background
32510 2005-01-30 John BouAntoun <jba-mono@optusnet.com.au>
32512 * Theme: Added DrawDateTimePicker to interface
32513 * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
32514 * DateTimePicker.cs: Created (still needs keys and painting code)
32515 * DateTimePickerFormat.cs: added
32516 * MonthCalendar.cs: fixed CreateParams for popup window mode
32518 2005-01-29 Peter Bartok <pbartok@novell.com>
32520 * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
32521 this should also the calculations for ligher/darker
32522 * Theme.cs: Fixed defaults for ScrollBar widths/heights
32524 2005-01-29 Peter Bartok <pbartok@novell.com>
32526 * ArrangeDirection.cs: Added
32527 * ArrangeStartingPositon.cs: Added
32528 * SystemInformation.cs: Implemented
32529 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
32530 XplatUIX11.cs, Theme.cs: Added/implemented new static properties
32531 used by SystemInformation class
32532 * X11Strucs.cs: Added XSizeHints structure
32534 - Fixed CreateParams to make sure the menu window is always visible
32535 - TrackPopupMenu: Added check to make sure we don't draw the
32538 2005-01-29 Peter Bartok <pbartok@novell.com>
32540 * HandleData.cs: Added method for altering invalid area
32541 * TextBoxBase.cs: Implemented TextLength
32543 2005-01-28 Peter Bartok <pbartok@novell.com>
32545 * XplatUIX11.cs: Improvement over last patch, not sending
32546 the WM_PAINT directly anymore, instead we scroll any pending
32547 exposed areas and let the system pick out the WM_PAINT later
32549 2005-01-28 Peter Bartok <pbartok@novell.com>
32551 * SWF.csproj: Deleted, no longer used. Instead,
32552 Managed.Windows.Forms/SWF.csproj should be used
32553 * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
32554 directly, to avoid a potential race condition with the next
32557 2005-01-28 Peter Bartok <pbartok@novell.com>
32559 * XplatUI.cs: Made class internal
32561 2005-01-28 Jordi Mas i Hernandez <jordi@ximian.com>
32563 * CheckedListBox.cs:
32566 - Missing methods and events
32568 2005-01-27 Peter Bartok <pbartok@novell.com>
32570 * Application.cs (Run): Don't use form if we don't have one
32572 2005-01-27 Peter Bartok <pbartok@novell.com>
32574 * TextBoxBase.cs (get_Lines): Fixed index off by one error
32576 2005-01-27 Peter Bartok <pbartok@novell.com>
32578 * GridEntry.cs: Added; Patch by Jonathan S. Chambers
32579 * GridItem.cs: Added; Patch by Jonathan S. Chambers
32580 * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
32581 * GridItemType.cs: Added; Patch by Jonathan S. Chambers
32582 * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
32583 * PropertySort.cs: Added; Patch by Jonathan S. Chambers
32584 * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
32585 * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
32586 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
32587 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
32588 * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
32589 * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
32591 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
32594 - Draw focus on Simple Combobox
32595 - Fixes drawing issues
32598 2005-01-27 Peter Bartok <pbartok@novell.com>
32601 - Place window in default location, instead of hardcoded 0/0
32602 - Send initial LocationChanged event
32604 - UpdateBounds after creation to find out where the WM placed us
32605 - Make sure that if the ParentForm changes location the Form
32607 * XplatUIX11.cs: XGetGeometry will not return the coords relative
32608 to the root, but to whatever the WM placed around us.
32609 Translate to root coordinates before returning toplevel
32611 * XplatUIWin32.cs: Removed debug output
32612 * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
32613 flag to GetWindowPos, to allow translation of coordinates on X11
32615 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
32617 * ListBox.cs: connect LostFocus Event
32619 2005-01-27 Peter Bartok <pbartok@novell.com>
32621 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
32622 XplatUIX11.cs: Extended the Systray API
32623 * Form.cs: Removed debug output
32624 * Application.cs: Fixed focus assignment, always need to call
32625 XplatUI.Activate() since Form.Activate() has rules that may
32627 * NotifyIcon.cs: Should be complete now
32628 * ToolTip.cs: Worked around possible timer bug
32630 2005-01-27 Jackson Harper <jackson@ximian.com>
32633 - Only invalidate the effected tabs when the
32634 selected index changes. This reduces drawing and gets rid of some
32636 - Only refresh if the tabs need to be shifted, otherwise only
32637 invalidate the slider button.
32638 - On windows the tabs are not filled to right if the slider is
32641 2005-01-27 Jackson Harper <jackson@ximian.com>
32643 * TabControl.cs: Only refresh on mouseup if we are showing the
32644 slider. Also only invalidate the button whose state has changed.
32646 2005-01-26 Peter Bartok <pbartok@novell.com>
32648 * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
32649 * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
32650 and SystrayRemove() methods
32651 * XplatUIOSX.cs: Stubbed Systray methods
32653 - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
32655 - Fixed broken XChangeProperty calls (marshalling messed up things)
32656 * X11Structs.cs: Added enums and structs required for Size hinting
32657 * NotifyIcon.cs: Added & implemented
32659 2005-01-26 Jackson Harper <jackson@ximian.com>
32661 * TabControl.cs: Space vertically layed out tabs properly.
32663 2005-01-26 Peter Bartok <pbartok@novell.com>
32665 * Form.cs (CreateClientParams): Always set the location to 0,0
32666 since we're a child window.
32668 * Control.cs (SetVisibleCore): Always explicitly setting the location
32669 of a toplevel window, apparently X11 doesn't like to move windows
32670 while they're not mapped.
32672 2005-01-26 Jackson Harper <jackson@ximian.com>
32674 * TabControl.cs: Implement FillToRight size mode with vertically
32677 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
32679 * ControlPaint.cs, ThemeWin32Classic.cs
32680 - Fixes DrawFocusRectangle
32682 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
32685 - MenuBar tracking only starts when item is first clicked
32686 - Fixes menu hidding for multiple subitems
32687 - Unselect item in MenuBar when item Executed
32690 2005-01-25 Jordi Mas i Hernandez <jordi@ximian.com>
32693 - IsInputKey for ListBox
32696 - Shift and Control item selection
32697 - Implement SelectionMode.MultiExtended
32698 - Fixes RightToLeft
32700 - IsInputKey implemented
32701 - Do not generate OnTextChangedEdit on internal txt changes
32703 2005-01-23 Peter Bartok <pbartok@novell.com>
32705 * AccessibleObject.cs: Partially implemented Select()
32706 * MonthCalendar.cs: Added missing attributes and events
32707 * Form.cs: Fixed CreateParams behaviour, now controls derived from
32708 form can properly override CreateParams.
32709 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
32710 XplatUIX11.cs: Dropped RefreshWindow method, not needed if
32711 Control performs Invalidate & Update
32712 * NativeWindow (CreateHandle): Added special handling for Form
32713 and Form.FormParent classes to allow overriding of From.CreateParams
32715 - ControlNativeWindow: Renamed 'control' variable to more intuitive
32717 - ControlNativeWindow: Added Owner property
32718 - Removed usage of Refresh() on property changes, changed into
32719 Invalidate(), we need to wait until the queue is processed for
32720 updates, direct calls might cause problems if not all vars for
32721 Paint are initialized
32722 - Added call to UpdateStyles() when creating the window, to set any
32723 styles that CreateWindow might have ignored.
32724 - Added support for Form CreateParent overrides to UpdateStyles()
32725 * MessageBox.cs: Removed no longer needed FormParent override stuff,
32726 CreateParams are now properly overridable
32727 * CommonDialog.cs: Removed no longer needed FormParent override stuff,
32728 CreateParams are now properly overridable
32730 2005-01-23 Miguel de Icaza <miguel@ximian.com>
32732 * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
32735 Capture LostFocus and OnTextBoxChanged. The later introduces a
32736 recursive invocation that I have not figured out yet.
32738 Reset the timer when not using (it was accumulating).
32741 (OnTextBoxChanged): Set UserEdit to true here to track whether the
32742 user has made changes that require validation.
32744 Reset changing to avoid loops.
32746 2005-01-22 Miguel de Icaza <miguel@ximian.com>
32748 * NumericUpDown.cs: Display value at startup.
32750 * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
32753 * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
32754 filled in. Added some basic parsing of text.
32756 Still missing the OnXXX method overrides, and figuring out the
32757 events that must be emitted.
32759 * UpDownBase.cs: Handle UserEdit on the Text property.
32761 2005-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
32764 - Fixes IntegralHeight
32767 2005-01-21 Jackson Harper <jackson@ximian.com>
32769 * TabControl.cs: Set the SelectedIndex property when SelectedTab
32770 is set so that the page visibility is updated and the tabs are
32773 2005-01-21 Jackson Harper <jackson@ximian.com>
32775 * TabControl.cs: Use cliping rectangle for blitting. Give the
32776 theme the clipping rect so we can do clipping while
32777 drawing. Remove some debug code.
32779 2005-01-21 Jackson Harper <jackson@ximian.com>
32781 * TabPage.cs: Add a new method so tab pages can force the tab
32782 control to recalculate the tab page sizes.
32783 * TabControl.cs: UpdateOwner needs to make the tab control recalc
32786 2005-01-20 Jackson Harper <jackson@ximian.com>
32788 * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
32790 2005-01-20 Jackson Harper <jackson@ximian.com>
32792 * TreeView.cs: Set the bounds for nodes properly. They were
32793 getting screwed up when checkboxes were not enabled, but images
32796 2005-01-20 Jordi Mas i Hernandez <jordi@ximian.com>
32799 - Owner draw support
32802 2005-01-20 Jackson Harper <jackson@ximian.com>
32804 * XplatUIStructs.cs: More misc keys
32805 * X11Keyboard.cs: Ignore some control keys.
32807 2005-01-20 Jackson Harper <jackson@ximian.com>
32809 * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
32810 * X11Keyboard.cs: Set the AltGr mask when we get a key event.
32812 2005-01-19 Peter Bartok <pbartok@novell.com>
32814 * Control.cs: Un-selecting the control when it is loosing focus
32816 2005-01-19 Jackson Harper <jackson@ximian.com>
32818 * TreeView.cs: Hook up to the text controls leave event so we can
32819 end editing when the users clicks outside the text box.
32821 2005-01-19 Jackson Harper <jackson@ximian.com>
32823 * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
32824 get set in the conversion array.
32826 2005-01-19 Peter Bartok <pbartok@novell.com>
32828 * Application.cs (ModalRun): Added a call to CreateControl to ensure
32829 focus is properly set
32831 - Added missing attributes
32832 - removed styles, those are already set in the base class
32834 - Added missing attributes
32835 - Added clip window styles
32836 * CheckBox.cs: Added missing attributes
32838 - FormParentWindow.CreateParams: Added required clip styles
32839 * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
32840 also filters modifier keys
32842 - Added assignment of Accept and Cancel button to enable Enter
32843 and Esc keys in MessageBox dialogs
32844 - FormParentWindow.CreateParams: Added required clip styles
32845 * RadioButton.cs: Added missing attributes
32846 * TextControl.cs: No longer draws selection if control does not
32849 - Now draws simple rectangle around test area to make it obvious
32850 there's a control. This is a hack until we properly support borders
32851 - A few simple fixes to support selections better, now erases selected
32852 text when typing, and resets selection when using movement keys
32854 2005-01-19 Miguel de Icaza <miguel@ximian.com>
32856 * UpDownBase.cs: Added some new properties.
32858 * DomainUpDown.cs: Implement a lot to get my test working.
32860 2005-01-19 Geoff Norton <gnorton@customerdna.com>
32862 * XplatUIOSX.cs: Fix a minor bug to bring the close box back
32864 2005-01-19 Geoff Norton <gnorton@customerdna.com>
32866 * OSXStructs (WindowAttributes): Fixed csc complaints
32868 2005-01-19 Geoff Norton <gnorton@customerdna.com>
32871 OSXStructs.cs: Initial refactor to move enums and consts into
32872 OSXStructs and use them in the driver for greater readability.
32874 2005-01-19 Geoff Norton <gnorton@customerdna.com>
32876 * XplatUIOSX.cs: Initial support for Standard Cursors.
32877 * OSXStructs.cs: Move our structs here; added ThemeCursor enum
32879 2005-01-19 Jordi Mas i Hernandez <jordi@ximian.com>
32881 * ComboBox.cs: ability to change style when the ctrl is already
32882 created, missing methods and events, bug fixes, signature fixes
32884 2005-01-19 Peter Bartok <pbartok@novell.com>
32886 * Cursors.cs (ctor): Added ctor to fix signature
32888 2005-01-18 Peter Bartok <pbartok@novell.com>
32890 * Button.cs: Implemented DoubleClick event
32892 - Fixed keyboard handling to behave like MS, where the press of
32893 Spacebar is equivalent to a mousedown, and the key release is
32894 equivalent to mouseup. Now a spacebar push will give the same
32895 visual feedback like a mouse click.
32896 - Added missing attributes
32897 - Added ImeModeChanged event
32898 - Added support for generating DoubleClick event for derived classes
32900 - Implemented DoubleClick event
32901 - Added missing attributes
32902 * CommonDialog.cs: Added missing attribute
32903 * ContextMenu.cs: Added missing attributes
32905 - AutoChecked buttons do not allow to be unselected when clicked
32906 (otherwise we might end up with no selected buttons in a group)
32907 - Added missing attributes
32908 - Implemented DoubleClickEvent
32909 * ThreadExceptionDialog.cs: Enabled TextBox code
32911 2005-01-18 Peter Bartok <pbartok@novell.com>
32913 * Form.cs: Removed debug output
32914 * Button.cs: Added support for DoubleClick method
32916 2005-01-18 Peter Bartok <pbartok@novell.com>
32919 - Added method to parent window that allows triggering size
32920 calculations when a menu is added/removed
32921 - set_Menu: Cleaned up mess from early days of Form and Control,
32922 now properly triggers a recalc when a menu is added/removed
32923 - Added case to select form itself as focused form if no child
32925 - Added PerformLayout call when showing dialog, to ensure properly
32928 - Select(): Made internal so Form can access it
32929 - Focus(): Only call Xplat layer if required (avoids loop), and sets
32931 * Application.cs (Run): Removed hack and calls PerformLayout instead
32932 to trigger calculation when Form becomes visible
32934 2005-01-18 Jordi Mas i Hernandez <jordi@ximian.com>
32936 * ComboBox.cs: fixes for ownerdraw
32938 2005-01-18 Peter Bartok <pbartok@novell.com>
32941 - Sentinel is no longer static, each Document gets it's own, this
32942 avoids locking or alternatively overwrite problems when more
32943 than one text control is used simultaneously.
32944 - Switched to use Hilight and HilightText brushes for text selection
32946 * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
32948 2005-01-18 Peter Bartok <pbartok@novell.com>
32951 - Hooked up the following events:
32959 o SystemColorsChanged
32960 o ParentFontChanged
32962 - Removed debug output
32963 - Added a call to the current theme's ResetDefaults when a color change
32965 * Form.cs: Now setting the proper ImeMode
32966 * Theme.cs: Defined a method to force recreation of cached resources
32967 and rereading of system defaults (ResetDefaults())
32968 * ThemeWin32Classic.cs: Added ResetDefaults() stub
32970 2005-01-17 Peter Bartok <pbartok@novell.com>
32972 * Control.cs: Added missing attributes
32974 2005-01-17 Jackson Harper <jackson@ximian.com>
32976 * TreeNode.cs: Implement editing. Add missing properties selected
32978 * TreeView.cs: Implement node editing. Also some fixes to use
32979 Invalidate (invalid area) instead of Refresh when selecting.
32981 2005-01-17 Peter Bartok <pbartok@novell.com>
32984 - Implemented InvokeGotFocus() method
32985 - Implemented InvokeLostFocus() method
32986 - Implemented InvokePaint() method
32987 - Implemented InvokePaintBackground() method
32988 - Implemented InvokeClick() method
32989 - Implemented FindForm() method
32990 - Implemented RectangleToClient() method
32991 - Implemented ClientToRectangle() method
32992 - Implemented ResetBackColor() method
32993 - Implemented ResetCursor() method
32994 - Implemented ResetFont() method
32995 - Implemented ResteForeColor() method
32996 - Implemented ResetImeMode() method
32997 - Implemented ResetLeftToRight() method
32998 - Implemented ResetText() method
32999 - Implemented Scale() methods
33000 - Implemented ScaleCore() method
33001 - Implemented Update() method
33002 - Removed unused variables
33003 - Stubbed AccessibilityNotifyClients and
33004 ControlAccessibleObject.NotifyClients() methods (dunno what to do
33006 - Now setting proper default for RightToLeft property
33007 - Fixed bug in SetClientSizeCore that would cause windows to get
33009 - Now sending Click/DoubleClick events
33010 - Now selecting controls when left mouse button is clicked on
33012 * AccessibleEvents.cs: Added
33013 * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
33014 * XplatUIOSX.cs: Stubbed UpdateWindow() method
33015 * XplatUIWin32.cs: Implemented UpdateWindow() method
33016 * XplatUIX11.cs: Implemented UpdateWindow() method
33017 * Form.cs: Removed stray semicolon causing CS0162 warning
33018 * ThemeWin32Classic.cs: Fixed unused variable warnings
33019 * ScrollableControl.cs: Now calls base method for ScaleCore
33020 * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
33021 style to avoid interference with internal click handler (which is
33022 different than standard Control click handling)
33024 - Now unchecks all sibling radio buttons when control is
33025 selected (Fixes #68756)
33026 - Removed internal tabstop variable, using the one inherited from
33029 2005-01-17 Jackson Harper <jackson@ximian.com>
33031 * NavigateEventArgs.cs: Fix base type.
33032 * LinkLabel.cs: Sig fix
33034 2005-01-17 Jackson Harper <jackson@ximian.com>
33036 * TreeView.cs: Only invalidate the effected nodes bounds when
33039 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
33041 * XplatUIWin32.cs: fixes Win32 marshaling
33042 * XplatUIX11.cs: fixes method signature
33044 2005-01-17 Peter Bartok <pbartok@novell.com>
33046 * XplatUIX11.cs: Clean up resources when we no longer need them
33048 2005-01-17 Peter Bartok <pbartok@novell.com>
33050 * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
33051 OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
33052 and DestroyCursor() methods.
33053 * Cursor.cs: Partially implemented, now supports standard cursors;
33054 still contains some debug code
33055 * Cursors.cs: Implemented class
33057 - WndProc(): Added handling of WM_SETCURSOR message, setting the
33059 - Implemented Cursor property
33060 - Replaced break; with return; more straightforwar and possibly
33062 - Now properly setting the result for WM_HELP
33063 * X11Structs.cs: Added CursorFontShape enum
33064 * XplatUIStructs.cs:
33065 - Added StdCursor enum (to support DefineStdCursor() method)
33066 - Added HitTest enum (to support sending WM_SETCURSOR message)
33068 - Now sends the WM_SETCURSOR message
33069 - Implemented new cursor methods
33070 * XplatUIOSX.cs: Stubbed new cursor methods
33072 - Implemented new cursor methods
33073 - Added GetSystemMetrics function and associated enumeration
33075 2005-01-15 Peter Bartok <pbartok@novell.com>
33078 - WndProc(): Now handles EnableNotifyMessage
33079 - SelectNextControl(): Fixed bug where if no child or sibling
33080 controls exist we looped endlessly
33082 2005-01-14 Jackson Harper <jackson@ximian.com>
33084 * TreeView.cs: Recalculate the tab pages when a new one is added
33085 so that the proper bounding rects are created.
33087 2005-01-14 Jackson Harper <jackson@ximian.com>
33089 * TreeView.cs: Draw a gray box instead of a grip in the lower
33090 right hand corner when there are both horizontal and vertical
33093 2005-01-14 Jackson Harper <jackson@ximian.com>
33095 * Control.cs: When erasing backgrounds use FromHwnd instead of
33096 FromHdc when there is a NULL wparam. This occurs on the X driver.
33097 * XplatUIX11.cs: Set the wparam to NULL.
33099 2005-01-13 Jackson Harper <jackson@ximian.com>
33101 * PictureBox.cs: Implement missing methods (except ToString, need
33102 to test that on windows) and events. When visibility is changed we
33103 need to redraw the image because the buffers are killed. When size
33104 is changed refresh if the sizemode needs it.
33106 2005-01-13 Peter Bartok <pbartok@novell.com>
33108 * Control.cs (SelectNextControl): Was using wrong method to select
33111 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
33113 * ComboBox.cs: fixes dropstyle
33115 2005-01-13 Peter Bartok <pbartok@novell.com>
33118 - Implemented Select() override
33119 - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
33120 - Now sets keyboard focus on startup
33121 * Control.cs (SelectNextControl): Now properly handles directed=true
33123 - WndProc: Now passes tab key on to base if AcceptTabChar=false
33124 - Added (really bad) focus rectangle (mostly for testing)
33125 * TextBox.cs: Added code to handle getting/loosing focus and invalidating
33126 to enforce redraw on focus changes
33127 * ContainerControl.cs:
33128 - Fixed detection of Shift-Tab key presses
33129 - Fixed traversal with arrow keys
33130 * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
33131 gonna keep this or if it's complete yet
33133 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
33135 * ComboBox.cs: missing properties, fixes
33137 2005-01-13 Peter Bartok <pbartok@novell.com>
33139 * Panel.cs (ctor): Setting Selectable window style to off
33140 * Splitter.cs (ctor): Setting Selectable window style to off
33141 * GroupBox.cs (ctor): Setting Selectable window style to off
33142 * Label.cs (ctor): Setting Selectable window style to off
33144 2005-01-12 Miguel de Icaza <miguel@ximian.com>
33146 * UpDownBase.cs (InitTimer): If the timer has been already
33147 created, enable it.
33149 Use a TextBox instead of a Label.
33151 2005-01-12 Jackson Harper <jackson@ximian.com>
33153 * TreeView.cs: Refresh the tree after sorting the nodes. Always
33154 draw the connecting node lines (when ShowLines is true).
33155 * TreeNode.cs: The nodes index can now be updated. This is used
33156 when a node collection is sorted.
33157 * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
33158 insert or an existing unsorted node collection can be sorted.
33160 2005-01-12 Peter Bartok <pbartok@novell.com>
33162 * ContainerControl.cs: Implemented ProcessDialogKeys()
33164 2005-01-12 Peter Bartok <pbartok@novell.com>
33167 - Implemented SelectNextControl() method
33168 - Several focus related bug fixes
33169 - Fixed Docking calculations to match MS documentation and
33172 2005-01-12 Jordi Mas i Hernandez <jordi@ximian.com>
33174 * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
33177 2005-01-12 Peter Bartok <pbartok@novell.com>
33180 - Fixed broken Contains() method
33181 - Implemented GetNextControl() method. Finally. This is the pre-
33182 requisite for focus handling.
33184 2005-01-12 Peter Bartok <pbartok@novell.com>
33186 * OSXStrucs.cs: Added
33188 2005-01-12 Peter Bartok <pbartok@novell.com>
33191 - Removed PeekMessageFlags
33192 - Implemented SetWindowStyle() method
33193 * XplatUIStructs.cs: Added PeekMessageFlags
33194 * X11Structs: Added missing border_width field to XWindowChanges struct
33196 - PeekMessage: Now throws exception if flags which are not yet
33197 supported are passed
33198 - Implemented SetWindowStyle() method
33199 - Fixed SetZOrder to handle AfterHwnd properly
33200 * XplatUI.cs: Added SetWindowStyle() method
33201 * XplatUIDriver.cs: Added SetWindowStyle() abstract
33203 - Implemented UpdateStyles() method
33204 - Implemented UpdateZOrder() method
33205 * XplatUIOSX.cs: Added SetWindowStyle() stub
33207 2005-01-12 Geoff Norton <gnorton@customerdna.com>
33209 * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
33213 2005-01-11 Jackson Harper <jackson@ximian.com>
33215 * TreeView.cs: Still need to draw lines to siblings even if out of
33216 the current node is out of the clip.
33218 2005-01-11 Jackson Harper <jackson@ximian.com>
33220 * TreeView.cs: When setting the hbar/vbar/grip position use
33221 SetBounds so that perform layout is only called once. Also suspend
33222 and resume layout so layout is only done once for all controls.
33223 - Removed some debug fluff
33224 * SizeGrip.cs: Call base implmentation in overriding methods.
33225 - When visibility is changed the drawing buffers are killed so we
33228 2005-01-11 Jackson Harper <jackson@ximian.com>
33230 * TreeView.cs: Calculate the open node count while drawing. This
33231 saves us an entire tree traversal for every paint operation. Use
33232 a member var for the open node count so less vars are passed around.
33234 2005-01-11 John BouAntoun <jba-mono@optusnet.com.au>
33236 * MonthCalendar.cs:
33237 - fixed selection to use mousemove, not mouse polling on timer
33238 * ThemeWin32Classic.cs
33239 - removed redundant unused variable "no_more_content"
33241 2005-01-11 Peter Bartok <pbartok@novell.com>
33243 * XplatUIX11.cs (DoEvents): Needs to return when no more events
33244 are pending, so it now calls PeekMessage instead of GetMessage;
33245 implemented a incomplete version of PeekMessage
33247 2005-01-11 Peter Bartok <pbartok@novell.com>
33249 * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
33251 * TextBoxBase.cs: Added sending of TextChanged event
33253 2005-01-10 Jackson Harper <jackson@ximian.com>
33255 * TreeView.cs: Try not to draw outside the clipping rectangle on
33258 2005-01-10 Jordi Mas i Hernandez <jordi@ximian.com>
33260 * ComboBox.cs: keyboard navigation, item navigation, bug fixes
33262 2005-01-10 Jackson Harper <jackson@ximian.com>
33265 - Implement fast scrolling. Now only the newly
33266 exposed nodes are drawn and the old image is moved using the
33267 XplatUI::ScrollWindow method.
33268 - Factor in height of nodes when calculating whether or not the
33269 node is in the clipping rect.
33271 2005-01-10 Jackson Harper <jackson@ximian.com>
33273 * TreeNodeCollection.cs: Refresh the tree when a new node is added.
33275 2005-01-10 Peter Bartok <pbartok@novell.com>
33277 * Application.cs: Added temporary hack to resolve all our resize
33278 required issues on startup. This will get fixed properly at
33279 some point in the future
33281 2005-01-10 Jackson Harper <jackson@ximian.com>
33283 * SizeGrip.cs: New internal class that is used as a sizing
33284 grip control...hence the name.
33286 2005-01-10 Peter Bartok <pbartok@novell.com>
33288 * Control.cs: Implemented proper TabIndex handling, now assigning
33289 a tabindex when a control is added to a container
33290 * GroupBox.cs (ctor): Now sets the Container style bit, required
33291 for Control.GetNextControl()
33293 2005-01-09 Jackson Harper <jackson@ximian.com>
33295 * TextBoxBase.cs: Clear window when scrolling (fixes build).
33297 2005-01-09 Peter Bartok <pbartok@novell.com>
33299 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
33300 XplatUIX11.cs: Added ability to control ScrollWindow expose and
33301 an overload for ScrollWindow to allow only scrolling a rectangle
33303 2005-01-09 Peter Bartok <pbartok@novell.com>
33306 - Implemented SetDesktopBounds method
33307 - Implemented SetDesktopLocation method
33309 2005-01-08 Jackson Harper <jackson@ximian.com>
33311 * TreeView.cs: Only set the vbar's Maximum and LargeChange when
33312 the node count has changed, this removes to VScroll::Refresh calls
33315 2005-01-08 Geoff Norton <gnorton@customerdna.com>
33317 * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
33319 2005-01-07 Jackson Harper <jackson@ximian.com>
33321 * TreeNode.cs: Just update the single node when it is
33322 checked. Don't refresh after toggling, the Expand/Collapse already
33324 * TreeView.cs: Respect clipping a little more when drawing. Try
33325 not to redraw things that don't need to be redrawn. Just hide the
33326 scrollbars when they are no longer needed instead of removing
33327 them, so they don't have to be created again and again.
33329 2005-01-07 Geoff Norton <gnorton@customerdna.com>
33331 * XplatUIOSX.cs (SetCaretPos): We need to translate the view
33332 coordinates to window space to place the caret properly, FIXED.
33333 Implement GetWindowState & SetWindowState
33335 2005-01-06 Peter Bartok <pbartok@novell.com>
33338 - Implemented ClientSize property
33339 - Implemented DesktopBounds property
33340 - Implemented DesktopLocation property
33341 - Implemented IsRestrictedWindow property
33342 - Implemented Size property
33343 - Implemented TopLevel property
33344 - Implemented FormWindowState property
33346 - Implemented GetTopLevel() method
33347 - Implemented SetTopLevel() method
33348 * X11Structs.cs (Atom):
33349 - Added AnyPropertyType definition
33350 - Added MapState definiton and updated XWindowAttribute struct
33351 * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
33352 * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
33353 * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
33355 - Implemented GetWindowState() and SetWindowState() methods
33356 - Fixed Win32GetWindowLong return type
33358 - Introduced central function for sending NET_WM messages
33359 - Implemented GetWindowState() and SetWindowState() methods
33360 * TextBoxBase.cs (set_Lines):
33361 - Now uses Foreground color for text added via Text property (Duh!)
33362 - Added code to remember programmatically requested size (fixes
33363 behaviour when Multiline is set after Size)
33364 - Added AutoSize logic
33366 2005-01-06 Jackson Harper <jackson@ximian.com>
33368 * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
33370 2005-01-06 Jackson Harper <jackson@ximian.com>
33372 * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
33373 set to less then 0.
33375 2005-01-06 Jackson Harper <jackson@ximian.com>
33377 * ScrollableControl.cs: Lazy init the scrollbars.
33379 2005-01-06 Jackson Harper <jackson@ximian.com>
33381 * Theme.cs: Speed up getting pens and solid brushes, by using
33382 their ARGB as a hash instead of tostring and not calling Contains.
33384 2005-01-06 Peter Bartok <pbartok@novell.com>
33387 - Implemented OnActivated and OnDeactivate event trigger
33388 - Implemented Activate() method
33389 - Fixed ShowDialog() to activate the form that was active before
33390 the dialog was shown
33392 - Added global active_window var that tracks the currently active
33394 - Now always grabs Property changes from the root window to always
33395 catch changes on the active window property
33396 - Added code to PropertyNotify handler to send Active/Inactive
33397 messages when state changes. This puts X11 and Win32 en par on
33398 WM_ACTIVATE notifications (except for double notifications when
33399 the user clicks away from our modal window to another one of our
33402 2005-01-05 Jackson Harper <jackson@ximian.com>
33404 * ImageList.cs: Implment ctor
33406 2005-01-05 Geoff Norton <gnorton@customerdna.com>
33408 * XplatUIOSX.cs: Implement Activate/SetTopmost
33410 2005-01-05 Geoff Norton <gnorton@customerdna.com>
33412 * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
33414 2005-01-05 Geoff Norton <gnorton@customerdna.com>
33416 * XplatUIOSX.cs: Implement GetActive/SetFocus.
33418 2005-01-05 Peter Bartok <pbartok@novell.com>
33420 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
33421 XplatUIOSX.cs: Added GetActive method to return the currently
33422 active window for the application (or null, if none is active)
33424 - Implemented ActiveForm
33425 - Commented out owner assignment for modal dialogs (causes problems
33426 on Win32, since the owner will be disabled)
33427 - Reworked some Active/Focus handling (still incomplete)
33428 * CommonDialog.cs: Commented out owner assignment for modal dialogs
33429 (causes problems on Win32, since the owner will be disabled)
33430 * IWin32Window: Added ComVisible attribute
33432 2005-01-05 Peter Bartok <pbartok@novell.com>
33434 * ToolTip.cs (WndProc): Enable setting focus now that we have the
33435 required XplatUI functions.
33437 2005-01-05 Peter Bartok <pbartok@novell.com>
33439 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
33440 XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
33441 to implement focus and activation handling; still incomplete and
33444 2005-01-04 Peter Bartok <pbartok@novell.com>
33446 * TextBoxBase.cs: Changed access level for Document property to
33447 match switch to internal for TextControl
33449 2005-01-04 Peter Bartok <pbartok@novell.com>
33451 * AccessibleObject: Added ComVisible attribute
33453 2005-01-04 Jackson Harper <jackson@ximian.com>
33455 * X11Keyboard.cs: Remove unneeded var.
33457 2005-01-04 Jackson Harper <jackson@ximian.com>
33459 * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
33461 * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
33462 ClientMessage. This makes apps exit cleanly (more often).
33464 2005-01-04 Jackson Harper <jackson@ximian.com>
33466 * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
33467 handling focus, return correct colors and fonts,
33468 * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
33469 handle selection, horizontal scrolling, and mouse interaction.
33471 2005-01-04 Peter Bartok <pbartok@novell.com>
33473 * ICommandExecutor.cs: Added
33474 * IDataGridColumnStyleEditingNotificationService.cs: Added
33475 * IFeatureSupport.cs: Added
33476 * IFileReaderService.cs: Added
33477 * IDataObject.cs: Added ComVisible attribute
33478 * AmbientProperties.cs: Added
33479 * BaseCollection.cs: Added missing attributes
33480 * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
33481 * BaseCollection.cs: Added missing attributes
33482 * Binding.cs: Added TypeConverter attribute
33483 * BindingContext.cs: Added DefaultEvent attribute
33484 * BindingsCollection.cs: Added DefaultEvent attribute
33485 * Button.cs: Added DefaultValue attribute
33486 * DragEventArgs.cs: Added ComVisible attribute
33487 * GiveFeedbackEventArgs.cs: Added ComVisible attribute
33488 * KeyEventArgs.cs: Added ComVisible attribute
33489 * KeyPressEventArgs.cs: Added ComVisible attribute
33490 * MouseEventArgs.cs: Added ComVisible attribute
33491 * NavigateEventArgs.cs: Added
33492 * NavigateEventHandler.cs: Added
33493 * FeatureSupport.cs: Added
33494 * OSFeature.cs: Added
33495 * Theme.cs: Added abstract Version property to support OSFeature
33496 * ThemeWin32Classic.cs: Added Version property to
33497 support OSFeature.Themes
33498 * ProgressBar.cs: Removed OnPaintBackground override, not required since
33499 the proper styles to avoid background drawing are set, also doesn't
33501 * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
33502 * QueryContinueDragEventArgs.cs: Added ComVisible attribute
33503 * ScrollEventArgs.cs: Added ComVisible attribute
33504 * SplitterEventArgs.cs: Added ComVisible attribute
33505 * AccessibleSelection.cs: Added Flags attribute
33506 * Appearance.cs: Added ComVisible attribute
33507 * Border3DSide.cs: Added ComVisible attribute
33508 * Border3DStyle.cs: Added ComVisible attribute
33509 * BorderStyle.cs: Added ComVisible attribute
33510 * DragAction.cs: Added ComVisible attribute
33511 * ErrorBlinkStyle.cs: Added
33512 * ScrollEventType.cs: Added ComVisible attribute
33513 * AnchorStyles.cs: Added Editor attribute
33514 * DockStyle.cs: Added Editor attribute
33515 * HorizontalAlignment.cs: Added ComVisible attribute
33516 * HelpEventArgs.cs: Added ComVisible attribute
33517 * PaintEventArgs.cs: Added IDisposable
33519 2005-01-04 Peter Bartok <pbartok@novell.com>
33521 * TextControl.cs: Switched Line, LineTag and Document classes to
33524 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
33526 * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
33527 Simple mode, fixes, IntegralHeight, etc.
33529 2005-01-04 Peter Bartok <pbartok@novell.com>
33531 * TextBoxBase.cs: Using proper font variable now
33533 2005-01-04 Peter Bartok <pbartok@novell.com>
33535 * Form.cs (ShowDialog): Set parent to owner, if provided
33536 * GroupBox.cs: Removed unused vars
33538 - Added GetHashCode() for Document and LineTag classes
33539 - Removed unused variables
33540 - Added CharIndexToLineTag() and LineTagToCharIndex() methods
33541 to allow translation between continuous char position and line/pos
33542 * CheckBox.cs: Removed vars that are provided by base class
33543 * RadioButton.cs: Removed vars that are provided by base class, added
33544 new keyword where required
33545 * LinkLabel.cs: Added new keyword where required
33546 * Control.cs (WndProc): Removed unused variable
33548 - Finished SelectionLength property
33549 - Implemented SelectionStart property
33550 - Implemented Text property
33551 - Removed unused vars
33552 * MessageBox.cs: Added new keyword where required
33553 * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
33555 * MenuAPI.cs: Added new keyword where required
33556 * ButtonBase.cs: Removed vars that are provided by base class, added
33557 new keyword where required
33558 * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
33559 argument to double, to allow compiling with csc 2.0 (Atsushi ran
33561 * Application.cs (Run): Now triggers the ThreadExit event
33562 * CommonDialog.cs: Added new keyword where required; now properly sets
33563 parent (owner) for dialog
33564 * XplatUIX11.cs: Commented out unused vars
33565 * StatusBar.cs: Fixed signature for Text property
33566 * TabPage.cs: Undid Jordi's removal of unused var, now using the var
33568 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
33570 * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
33571 TrackBar.cs, MonthCalendar.cs: remove unused vars
33573 2005-01-03 Jackson Harper <jackson@ximian.com>
33575 * ThemeWin32Classic.cs:
33576 * X11Keyboard.cs: Remove unused vars.
33578 2005-01-03 Peter Bartok <pbartok@novell.com>
33581 - set_Text: Tied into TextControl
33582 - set_TextAlignment: Tied into TextControl
33584 - Added alignment properties and implemented alignment handling
33585 and drawing (still has a bug, not generating proper expose events)
33586 - Added new Line() constructor to allow passing the line alignment
33587 - Fixed selection setting, properly handling end<start now
33588 - Added aligment considerations to RecalculateDocument()
33590 - Now properly enforces control height for single line controls
33591 - Added support for CharacterCasing
33592 - Added IsInputKey override
33593 - Fixed Keys.Enter logic
33594 - Added SetBoundsCore override
33595 - Fixed mouse selection handling
33597 2005-01-03 Jackson Harper <jackson@ximian.com>
33600 - Collapse and uncheck all nodes when CheckBoxes is disabled.
33601 - Checkboxes are always aligned to the bottom of the node,
33602 regardless of item height.
33603 - Use the node bounds to draw the text so we can center it when
33604 the item height is greater then the font height.
33605 - Node::Bounds are only the text part of the node.
33606 * TreeNode.cs: New method to combine collapsing and unchecking all
33609 2005-01-02 Jackson Harper <jackson@ximian.com>
33611 * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
33612 * TreeNode.cs: Add a bounding box for the checkbox, refresh the
33613 tree when a check is changed. TODO: Only refresh the checked node.
33615 2004-12-30 Jackson Harper <jackson@ximian.com>
33617 * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
33618 * TreeNode.cs: When collapsing make sure to never collapse the
33621 2004-12-29 Jackson Harper <jackson@ximian.com>
33623 * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
33625 2004-12-28 Zoltan Varga <vargaz@freemail.hu>
33627 * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
33629 2004-12-28 Peter Bartok <pbartok@novell.com>
33631 * MessageBox.cs (get_CreateParams): Don't use owner var if it's
33634 2004-12-28 Peter Bartok <pbartok@novell.com>
33636 * Control.cs (WndProc): Added WM_HELP handler, now generates
33637 HelpRequested event
33638 * Form.cs: Added HelpButton property and required support code
33639 * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
33641 2004-12-28 Peter Bartok <pbartok@novell.com>
33644 - Made DialogForm.owner variable internal
33645 - Added check to ensure owner form is set before setting
33646 owner properties in CreateParams
33648 2004-12-28 Geoff Norton <gnorton@customerdna.com>
33650 * XplatUIOSX.cs: Implement mouse hovering. Fix QDPoint struct to avoid
33651 swizzling. Implement ClientToScreen and ScreenToClient. Implement
33652 GetCursorPos. Fix major visibility issues. Rework the windowing
33653 system to support borderless/titleless windows (implements menus).
33654 Fix GetWindowPos. Implement initial background color support for
33657 2004-12-28 Peter Bartok <pbartok@novell.com>
33659 * Form.cs (get_CreateParams): Make sure we have an owner before using
33660 the owner variable. Implement proper default if no owner exists
33662 2004-12-28 Peter Bartok <pbartok@novell.com>
33664 * In preparation for making Managed.Windows.Forms the default build target
33665 for System.Windows.Forms, the following stubbed files were added.
33666 Dialogs are currently being implemented by contributors and are only
33667 short-term place holders.
33668 * ColorDialog.cs: Initial check-in (minmal stub)
33669 * DataGrid.cs: Initial check-in (minimal stub)
33670 * DataGridLineStyle.cs: Initial check-in (minimal stub)
33671 * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
33672 * DataGridTableStyle.cs: Initial check-in (minimal stub)
33673 * FontDialog.cs: Initial check-in (minimal stub)
33674 * FileDialog.cs: Initial check-in (minimal stub)
33675 * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
33676 * GridTableStylesCollection.cs: Initial check-in (minimal stub)
33677 * OpenFileDialog: Initial check-in (minimal stub)
33678 * IComponentEditorPageSite.cs: Initial check-in
33679 * Splitter.cs: Initial check-in (for Jackson)
33680 * SplitterEventArgs.cs: Initial check-in (for Jackson)
33681 * SplitterEventHandler.cs: Initial check-in (for Jackson)
33682 * TextBox.cs: Initial check-in; still needs some wiring to
33683 TextControl backend
33684 * Form.cs: Implemented ControlBox property
33685 * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
33686 * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
33687 * TextControl.cs: Added selection functionality; added todo header
33689 - Implemented Lines property
33690 - Implemented TextHeight property
33691 - Implemented SelectedText property
33692 - Implemented SelectionLength property
33693 - Implemented SelectAll method
33694 - Implemented ToString method
33695 - Removed and cleaned up some debug code
33696 - Implemented (still buggy) mouse text selection
33698 2004-12-27 Jordi Mas i Hernandez <jordi@ximian.com>
33700 * ComboBox.cs: Complete DropDownList implementation, fixes.
33702 2004-12-26 Jordi Mas i Hernandez <jordi@ximian.com>
33704 * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
33705 * ComboBoxStyle.cs: ComboBoxStyle enum
33706 * ComboBox.cs: Initial work on ComboBox control
33708 2004-12-21 Peter Bartok <pbartok@novell.com>
33710 * Control.cs (ctor, CreateParams): Moved setting of is_visible
33711 forward so that anything that creates a window gets the default,
33712 also no longer uses Visible property in CreateParams to avoid
33713 walking up the parent chain and possibly get the wrong visible
33714 status. Fixed IsVisible to no longer walk up to the parent.
33716 2004-12-21 Peter Bartok <pbartok@novell.com>
33718 * Form.cs (ShowDialog): Unset modality for the proper window
33720 2004-12-20 Peter Bartok <pbartok@novell.com>
33722 * CommonDialog.cs: Initial check-in
33724 2004-12-20 Peter Bartok <pbartok@novell.com>
33726 * Control.cs (Visible): Now uses the parent window instead of the
33727 client area window for the property
33730 - ShowDialog(): Now uses the proper window for modality
33731 - The default visibility state for the form parent is now false. This
33732 will prevent the user from seeing all the changes to the form and
33733 its controls before the application hits Application.Run()
33734 - Removed some stale commented out code
33737 - Added FindWindow() method to have a method to check for existence
33739 - Added ability to override default exception handling (for example
33740 when debugging with VS.Net; to do this the ExternalExceptionHandler
33742 - Removed some useless debug output
33745 - Removed r37929 (SetModal patch from Ashwin Bharambe), was
33746 not working as expected
33747 - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
33748 property to allow switching back to the modal window if focus is
33749 given to another one of our windows (Application Modal)
33750 - Now only sets override_redirect if we create a window
33752 - Moved EventMask selection before mapping of newly created window
33753 so we can catch the map event as well
33754 - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
33755 - Added various Atom related DllImports
33756 - Implemented Exit() method
33757 - .ctor() : No longer shows window if WS_VISIBLE is not defined
33758 in the CreateParams
33760 * MessageBox.cs: Now properly deals with the FormParent window by
33761 providing an override the FormParent CreateParams property to
33762 set as POPUP instead of OVERLAPPED window.
33764 2004-12-19 Geoff Norton <gnorton@customerdna.com>
33766 * XplatUIOSX.cs: Implement DestroyWindow. Implement ScrollWindow
33767 Minor code cleanup.
33769 2004-12-19 Geoff Norton <gnorton@customerdna.com>
33771 * XplatUIOSX.cs (SetModal): Implement this method on OSX.
33773 2004-12-18 Peter Bartok <pbartok@novell.com>
33775 * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
33776 implementing SetModal() method
33778 2004-12-18 Peter Bartok <pbartok@novell.com>
33780 * X11Structs.cs (XGCValues): Fixed type of function element
33781 * XplatUI.cs: Added ScrollWindow() method
33782 * XplatUIDriver.cs: Added ScrollWindow() abstract
33783 * XplatUIWin32.cs: Implemented ScrollWindow() method
33784 * XplatUIX11.cs: Implemented ScrollWindow() method
33785 * XplatUIOSX.cs: Stubbed out ScrollWindow() method
33787 2004-12-17 Geoff Norton <gnorton@customerdna.com>
33789 * XplatUIOSX.cs: Fix cursor to use an Invert instead of drawing it
33790 Some more keyboard support (INCOMPLETE)
33792 2004-12-17 Peter Bartok <pbartok@novell.com>
33795 - Added color attribute to line tags.
33796 - Added color argument to all functions dealing with tags
33797 - Added color argument support to various functions
33798 - Fixed miss-calculation of baseline/shift in certain circumstances
33800 * TextBoxBase.cs: Added new color option to test code
33802 2004-12-17 Jackson Harper <jackson@ximian.com>
33805 * MonthCalendar.cs: Signature fixes
33807 2004-12-17 Geoff Norton <gnorton@customerdna.com>
33809 * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
33810 keyboard event moved it. Create a new graphics context for each paint resolves this
33812 2004-12-17 Geoff Norton <gnorton@customerdna.com>
33814 * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
33815 Make caret exist and go blink blink. Initial keyboard support.
33816 Fix exception handler, Add Invalidate support. Change way RefreshWindow
33819 2004-12-17 Jackson Harper <jackson@ximian.com>
33821 * XplatUIStructs.cs: Updated set of virtual keycodes.
33822 * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
33824 2004-12-17 Jackson Harper <jackson@ximian.com>
33826 * XplatUIX11.cs: Prune old keyboard code.
33828 2004-12-17 Jackson Harper <jackson@ximian.com>
33830 * XplatUIX11.cs: When generating mouse wparams get the modifier
33831 keys from the ModifierKeys property.
33833 2004-12-17 Jackson Harper <jackson@ximian.com>
33835 * X11Keyboard.cs: Send up/down input when generating
33836 messages. Remove some unused vars.
33838 2004-12-17 Jackson Harper <jackson@ximian.com>
33841 * TreeView.cs: get rid of warnings.
33843 2004-12-17 Jackson Harper <jackson@ximian.com>
33845 * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
33847 2004-12-17 Jordi Mas i Hernandez <jordi@ximian.com>
33849 * ListBox.cs: bug fixes, changes for CheckedListBox.cs
33850 CheckedListBox.cs: Implementation
33852 2004-12-17 Peter Bartok <pbartok@novell.com>
33854 * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
33856 2004-12-16 Peter Bartok <pbartok@novell.com>
33859 - InsertCharAtCaret(): Fixed start pos fixup
33860 - CaretLine_get: No longer derives the line from the tag, the tag
33861 could be stale if lines in the document have been added or deleted
33862 - RebalanceAfterDelete(): Fixed bug in balancing code
33863 - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
33864 - Line.Streamline(): Now can also elminate leading empty tags
33865 - DumpTree(): Added a few more tests and prevented exception on
33867 - Added Debug section for Combining lines
33868 - Delete(): Now copies all remaining properties of a line
33871 - Left mousebutton now sets the caret (and middle button still acts
33872 as formatting tester, which must go away soon)
33873 - Added Debug section for Deleting/Combining lines
33874 - Fixed calculations for UpdateView after Combining lines
33876 2004-12-16 Peter Bartok <pbartok@novell.com>
33878 * TextControl.cs: Now properly aligns text on a baseline, using the
33879 new XplatUI.GetFontMetrics() method. Simplified several calculations
33880 * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
33883 2004-12-16 Peter Bartok <pbartok@novell.com>
33885 * XplatUI.cs: Added GetFontMetrics() method
33886 * XplatUIDriver.cs: Added GetFontMetrics() abstract
33887 * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
33888 into libgdiplus, our private GetFontMetrics function
33889 * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
33890 * XplatUIWin32.cs: Implemented GetFontMetrics() method
33892 2004-12-16 Jackson Harper <jackson@ximain.com>
33894 * XplatUIStruct.cs: Add enum for dead keys
33895 * X11Keyboard.cs: Map and unmap dead keys.
33897 2004-12-16 Jackson Harper <jackson@ximian.com>
33899 * X11Keyboard.cs: Detect and use the num lock mask.
33901 2004-12-16 Peter Bartok <pbartok@novell.com>
33903 * Control.cs (CreateGraphics): Added check to make sure the
33904 handle of the window exists before calling Graphics.FromHwnd()
33906 2004-12-16 Peter Bartok <pbartok@novell.com>
33908 * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
33909 contains a lot of code that's not supposed to be there for the
33910 real thing, but required for developing/testing the textbox
33913 2004-12-16 Peter Bartok <pbartok@novell.com>
33916 - Fixed Streamline method
33917 - Added FindTag method to Line
33918 - Added DumpTree method for debugging
33919 - Added DecrementLines() method for deleting lines
33920 - Fixed UpdateView to update the cursor to end-of-line on single-line
33922 - Added PositionCaret() method
33923 - Fixed MoveCaret(LineDown) to move into the last line, too
33924 - Added InsertChar overload
33925 - Fixed InsertChar tag offset calculations
33926 - Added DeleteChar() method
33927 - Added Combine() method for folding lines
33928 - Fixed Delete() method, no longer allocates wasted Line object and
33929 now copies all properties when swapping nodes
33930 - Delete() method now updates document line counter
33932 2004-12-15 Jackson Harper <jackson@ximian.com>
33934 * XplatUIX11.cs: Get the modifier keys from the keyboard driver
33935 * X11Keyboard.cs: Expose the currently selected modifier keys
33936 through a property.
33938 2004-12-15 Peter Bartok <pbartok@novell.com>
33940 * TextControl.cs: Initial check-in. Still incomplete
33942 2004-12-15 Jackson Harper <jackson@ximian.com>
33945 * TreeView.cs: Fix build on csc (second time today ;-))
33947 2004-12-15 Jackson Harper <jackson@ximian.com>
33949 * TreeView.cs: Store the treenodes plus/minus box bounds when it
33950 is calculated and use this for click testing.
33951 * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
33953 2004-12-15 Jackson Harper <jackson@ximian.com>
33955 * TreeView.cs: Pass the nodes image index to the image list when
33956 drawing that image.
33958 2004-12-15 Jackson Harper <jackson@ximian.com>
33960 * X11Keyboard.cs: Set messages hwnd.
33961 * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
33962 post_message calls.
33964 2004-12-15 Jackson Harper <jackson@ximian.com>
33966 * X11Keyboard.cs: Fix to compile with csc.
33968 2004-12-15 Jackson Harper <jackson@ximian.com>
33970 * X11Structs.cs: Add key mask values
33971 * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
33972 * X11Keyboard.cs: New file - Extrapolates and interpolates key
33973 down/up foo into WM_CHAR foo
33974 * KeyboardLayouts.cs: Common keyboard layouts
33975 * XplatUIX11.cs: Add the keyboard driver. Add functionality to
33976 post messages into the main queue.
33978 2004-12-13 Jordi Mas i Hernandez <jordi@ximian.com>
33980 * Button.cs: implement ProcessMnemonic
33981 * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
33983 * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
33984 * ButtonBase.cs: Show HotkeyPrefix (not the &)
33986 2004-12-12 John BouAntoun <jba-mon@optusnet.com.au>
33988 * MonthCalendar.cs: Implemented click-hold for next/previous month
33991 2004-12-11 Peter Bartok <pbartok@novell.com>
33994 - Added XKeyboardState (moved from XplatUIX11.cs)
33995 - Added XCreateGC related enums and structures
33996 - Added GXFunction for XSetFunction
33998 * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
34000 * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
34001 CaretVisible() calls
34003 * ToolTip.cs: Added code to prevent stealing focus from app windows
34005 * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
34006 DestroyCaret, SetCaretPos and CaretVisible)
34009 - Added implementation for caret functions
34010 - Moved hover variables into a struct, to make it a bit easier
34011 on the eyes and to debug
34012 - Removed XKeyboardState (moved to XplatUIX11.cs)
34013 - Moved Keyboard properties into the properties region
34015 * Control.cs (get_Region): Control.CreateGraphics is the appropriate
34016 call to get a graphics context for our control
34018 * XplatUIOSX.cs: Added empty overrides for the new caret functions
34020 * TreeView.cs: Fixed bug. No matter what color was set it would always
34021 return SystemColors.Window
34023 * XplatUIWin32.cs: Implemented caret overrides
34025 2004-12-10 Jordi Mas i Hernandez <jordi@ximian.com>
34027 * ListBox.cs: fire events, implement missing methods and properties,
34030 2004-12-10 John BouAntoun <jba-mono@optusnet.com.au>
34032 * MonthCalendar.cs: invalidation bug fixing
34033 * ThemeWin32Classic.cs: paint fixing
34035 2004-12-09 Geoff Norton <gnorton@customerdna.com>
34037 * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
34038 prepare the CGContextRef there now.
34040 2004-12-09 John BouAntoun <jba-mono@optusnet.com.au>
34042 * MonthCalendar.cs:
34043 - optimisationL only invalidate areas that have changed
34044 * ThemeWin32Classic.cs:
34045 - only paint parts that intersect with clip_area
34047 2004-12-09 Peter Bartok <pbartok@novell.com>
34049 * Application.cs: Undid changes from r37004 which cause problems
34052 2004-12-09 Ravindra <rkumar@novell.com>
34054 * ToolBar.cs: Added support for displaying ContextMenu
34055 attached to a button on ToolBar.
34056 * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
34059 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
34061 * Label.cs: autosize works in text change and removes unnecessary
34064 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
34066 * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
34069 2004-12-08 Geoff Norton <gnorton@customerdna.com>
34071 * XplatUIOSX.cs: Added mouse move/click/grab support
34072 Remove some debugging WriteLines not needed anymore.
34073 Add window resizing/positioning.
34074 Fix visibility on reparenting.
34076 2004-12-08 Peter Bartok <pbartok@novell.com>
34078 * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
34080 2004-12-07 Geoff Norton <gnorton@customerdna.com>
34082 * XplatUIOSX.cs: Initial checkin
34083 * XplatUI.cs: Use the Quartz driver if the environment is set to use it
34085 2004-12-03 Ravindra <rkumar@novell.com>
34087 * ListView.cs: Added some keybindings and fixed scrolling.
34088 ScrollBars listen to ValueChanged event instead of Scroll
34089 Event. This would let us take care of all changes being
34090 done in the scrollbars' values programmatically or manually.
34091 * ListView.cs (CanMultiselect): Added a check for shift key.
34092 * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
34093 * ListViewItem.cs (Clone): Fixed. We need to make a copy
34094 of ListViewSubItemCollection as well.
34096 2004-12-06 Peter Bartok <pbartok@novell.com>
34098 * Control.cs (Parent): Added check and exception to prevent
34101 2004-12-03 Jordi Mas i Hernandez <jordi@ximian.com>
34103 * ListBox.cs: implemented clipping, selection single and multiple,
34106 2004-12-03 Ravindra <rkumar@novell.com>
34108 * ListView.cs (ListView_KeyDown):
34109 * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
34110 when CTRL key is pressed.
34111 * ListViewItem.cs (Selected): Fixed setting the property.
34113 2004-12-03 Marek Safar <marek.safar@seznam.cz>
34115 * Application.cs (OnThreadException): Use ThreadExceptionDialog.
34117 * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
34118 MinimizeBox, ShowInTaskbar, TopMost properties.
34120 * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
34121 will be implemented).
34123 2004-12-03 Marek Safar <marek.safar@seznam.cz>
34125 * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
34127 * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
34130 * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
34132 * TreeView.cs: BackColor is Colors.Window.
34134 2004-12-01 Jackson Harper <jackson@ximian.com>
34136 * TreeView.cs: When resizing the tree if the user is making it
34137 smaller we don't get expose events, so we need to handle adding
34138 the horizontal scrollbar in the size changed handler as well as
34139 the expose handler.
34141 2004-12-02 Jordi Mas i Hernandez <jordi@ximian.com>
34143 * DrawItemState.cs: fixes wrong enum values
34145 2004-12-01 Jackson Harper <jackson@ximian.com>
34147 * TreeView.cs: Resize the hbar as well as the vbar on resize.
34149 2004-12-01 Jackson Harper <jackson@ximian.com>
34151 * NodeLabelEditEventArgs.cs:
34152 * NodeLabelEditEventHandler.cs:
34153 * OpenTreeNodeEnumerator.cs:
34155 * TreeNodeCollection.cs:
34157 * TreeViewAction.cs:
34158 * TreeViewCancelEventArgs.cs:
34159 * TreeViewCancelEventHandler.cs:
34160 * TreeViewEventArgs.cs:
34161 * TreeViewEventHandler.cs: Initial implementation.
34163 2004-12-01 Ravindra <rkumar@novell.com>
34165 * ListView.cs (CalculateListView): Fixed scrolling related
34166 calculations. Also, removed some debug statements from other
34168 * ListViewItem.cs: Changed access to 'selected' instance variable
34169 from private to internal.
34170 * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
34172 2004-12-01 Jordi Mas i Hernandez <jordi@ximian.com>
34174 * ThemeWin32Classic.cs: remove cache of brush and pens for
34175 specific controls and use the global system, fixes scrollbutton
34176 bugs (for small sizes, disabled, etc)
34178 * ScrollBar.cs: does not show the thumb for very small controls
34179 (as MS) and allow smaller buttons that the regular size
34181 2004-12-01 Miguel de Icaza <miguel@ximian.com>
34183 * UpDownBase.cs: Add abstract methods for the interface.
34184 Add new virtual methods (need to be hooked up to TextEntry when it
34186 Add override methods for most features.
34187 Computes the size, forces the height of the text entry.
34189 * NumericUpDown.cs: Put here the current testing code.
34191 * Set eol-style property on all files that do not have mixed line
34192 endings, to minimize the future problems. There are still a few
34193 files with mixed endings, and someone should choose whether they
34194 want to move it or not.
34196 2004-11-30 Jordi Mas i Hernandez <jordi@ximian.com>
34198 * MonthCalendar.cs, ListView.cs: use Theme colours instead of
34201 2004-11-30 Ravindra <rkumar@novell.com>
34203 * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
34204 drawing and replaced use of SystemColors by theme colors.
34205 * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
34206 * ListView.cs (ListViewItemCollection.Add): Throw exception when
34207 same ListViewItem is being added more than once.
34209 2004-11-30 John BouAntoun <jba-mono@optusnet.com.au>
34211 * MonthCalendar.cs:
34212 - ControlStyles love to make the control not flicker
34214 2004-11-30 Peter Bartok <pbartok@novell.com>
34216 * CharacterCasing.cs: Added
34218 2004-11-29 Peter Bartok <pbartok@novell.com>
34220 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
34221 TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
34222 I am removing these files as they conflict with already completed
34223 work. While it is fantastic to get contributions to MWF, I
34224 respectfully ask that everyone please coordinate their contributions
34225 through mono-winforms-list or #mono-winforms at this time. We're
34226 explicitly avoiding stubbing and don't want controls that don't have
34227 their basic functionality implemented in svn. Please also see
34228 http://www.mono-project.com/contributing/winforms.html
34231 2004-11-29 Marek Safar <marek.safar@seznam.cz>
34233 * Application.cs (ModalRun): Don't hang after exit.
34235 * Theme.cs: New TreeViewDefaultSize property.
34237 * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
34238 with less hardcoded SystemColors constant.
34239 Implemented TreeViewDefaultSize.
34241 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
34242 TreeViewAction.cs, TreeViewEventArgs.cs: New files.
34245 2004-11-29 John BouAntoun <jba-mono@optusnet.com.au>
34247 * MonthCalendar.cs:
34248 - Fix NextMonthDate and PrevMonthDate click moving calendar
34250 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
34252 * MonthCalendar.cs:
34253 - Fix usage of ScrollChange Property when scrolling months
34255 2004-11-26 Jordi Mas i Hernandez <jordi@ximian.com>
34257 * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
34258 - Fixes menu destroying
34259 - Support adding and removing items on already created menus
34261 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
34263 * MonthCalendar.cs:
34264 - Re-worked all bolded dates handling to match win32
34265 * ThemeWin32Classic.cs:
34266 - Fixed rendering with bolded dates
34268 2004-11-25 Jordi Mas i Hernandez <jordi@ximian.com>
34270 * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
34271 - Horizontal scroolbar
34276 2004-11-25 John BouAntoun <jba-mono@optusnet.com.au>
34278 * MonthCalendar.cs:
34279 - Fix Usage of MaxSelectionCount from SelectionRange
34280 - Fixed Shift + Cursor Selection
34281 - Fixed Shift + (Pg up/Pg dn, Home/End) selection
34282 - Fixed normal cursor selection to be compat with win32
34283 - Fixed Shift + Mouse Click selection
34285 2004-11-24 Peter Bartok <pbartok@novell.com>
34287 * XplatUI.cs (DispatchMessage): Switched to return IntPtr
34288 * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
34290 - CreatedKeyBoardMsg now updates keystate with Alt key
34291 - Added workaround for timer crash to CheckTimers, Jackson will
34292 develop a proper fix and check in later
34293 - Implemented DispatchMessage
34294 - Removed calling the native window proc from GetMessage (call
34295 now moved to DispatchMessage)
34297 * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
34298 the keydata (Fixes bug #69831)
34301 - (DispatchMessage): Switched to return IntPtr
34302 - Added DllImport for SetFocus
34304 2004-11-24 Ravindra <rkumar@novell.com>
34306 * ThemeWin32Classic.cs: Fixed ListView border and checkbox
34307 background drawing.
34308 * ListViewItem.cs: Fixed various properties, calculations
34309 and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
34310 * ListView.cs: Fixed calculations, BackColor, ForeColor properties
34311 and some internal properties. Fixed MouseDown handler and Paint
34314 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
34316 * MonthCalendar.cs: Add TitleMonth ContextMenu handling
34318 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
34320 * ContainerControl.cs: correct accidental check in of local changes
34322 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
34324 * ThemeWin32Classic.cs:
34325 - Fixed Drawing Last month in grid (sometimes not showing)
34326 * MonthCalendar.cs:
34327 - Fixed title width calculation bug (makeing title small)
34329 2004-11-23 Peter Bartok <pbartok@novell.com>
34332 - Added generation of WM_MOUSEHOVER event
34333 - Added missing assignment of async_method atom
34334 - Fixed WM_ERASEBKGND; now only redraws the exposed area
34336 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
34338 * ThemeWin32Classic.cs:
34339 - Fixed Drawing of today circle when showtodaycircle not set
34340 - fixed drawing of first and last month in the grid (gay dates)
34341 * MonthCalendar.cs:
34342 - Fixed Drawing of today circle
34343 - Fixed drawing of grady dates
34344 - Fixed HitTest for today link when ShowToday set to false
34345 - Fixed DefaultSize to obey ShowToday
34347 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
34349 * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
34350 * System.Windows.Forms/Theme.cs
34351 * MonthCalendar.cs: added for MonthCalendar
34352 * SelectionRange.cs: added for MonthCalendar
34353 * Day.cs: added for MonthCalendar: added for MonthCalendar
34354 * DateRangeEventArgs.cs: added for MonthCalendar
34355 * DateRangeEventHandler.cs: added for MonthCalendar
34357 2004-11-22 Ravindra <rkumar@novell.com>
34359 * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
34362 2004-11-22 Miguel de Icaza <miguel@ximian.com>
34364 * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
34367 * NumericUpDown.cs: Added new implementation.
34368 * UpDownBase.cs: Added new implementation.
34370 * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
34373 * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
34376 * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
34379 2004-11-21 Miguel de Icaza <miguel@ximian.com>
34381 * Timer.cs (Dispose): Should call the base dispose when
34384 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
34386 * ScrollBar.cs: updates thumb position when max, min or increment
34389 2004-11-21 Ravindra <rkumar@novell.com>
34391 * ListView.cs: Implemented item selection, activation and
34392 column header style. Fixed properties to do a redraw, if
34393 required. Added support for MouseHover, DoubleClick, KeyDown
34394 and KeyUp event handling and some minor fixes.
34395 * ListViewItem.cs: Fixed constructor.
34396 * ThemeWin32Classic.cs: Improved drawing for ListView.
34398 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
34400 * ThemeWin32Classic.cs: initial listbox drawing code
34401 * DrawMode.cs: new enumerator
34402 * ListControl.cs: stubbed class
34403 * ListBox.cs: initial implementation
34404 * Theme.cs: new methods definitions
34405 * SelectionMode.cs: new enumerator
34407 2004-11-17 Peter Bartok <pbartok@novell.com>
34409 * XplatUIWin32.cs: Added double-click events to the class style
34410 * Control.cs (WndProc):
34411 - Added handling of click-count to MouseDown/ MouseUp events.
34412 - Added handling of middle and right mouse buttons
34413 - Removed old debug code
34415 2004-11-17 Jackson Harper <jackson@ximian.com>
34417 * XplatUIX11.cs: Use the new Mono.Unix namespace.
34419 2004-11-17 Ravindra <rkumar@novell.com>
34421 * ListView.cs: Added event handling for MouseMove/Up/Down.
34422 * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
34423 * ThemeWin32Classic.cs: We need to clear the graphics context and
34424 draw column header in a proper state.
34427 2004-11-17 Jordi Mas i Hernandez <jordi@ximian.com>
34429 * Menu.cs: fixes signature
34431 2004-11-16 Peter Bartok <pbartok@novell.com>
34433 * XplatUIX11.cs (GetMessage): Implemented generation of
34434 double click mouse messages
34436 2004-11-12 Jordi Mas i Hernandez <jordi@ximian.com>
34438 * Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
34441 2004-11-11 Peter Bartok <pbartok@novell.com>
34443 * HandleData.cs: Added Visible property
34444 * XplatUIX11.cs (IsVisible): Now uses Visible property from
34446 * XplatUIX11.cs: Removed old debug leftovers
34447 * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
34448 * Control.cs (WndProc): Removed old debug leftovers,
34449 streamlined handling of WM_WINDOWPOSCHANGED, removed un-
34450 needed WM_SIZE handling
34452 2004-11-11 Jackson Harper <jackson@ximian.com>
34454 * OwnerDrawPropertyBag.cs:
34455 * TreeViewImageIndexConverter.cs: Initial implementation
34457 2004-11-10 Jackson Harper <jackson@ximian.com>
34459 * ThemeWin32Classic.cs:
34460 * TabControl.cs: instead of moving tabs by the slider pos just
34461 start drawing at the tab that is offset by the slider. This way
34462 scrolling always moves by exactly one tab.
34464 2004-11-10 Jackson Harper <jackson@ximian.com>
34466 * TabControl.cs: You can only scroll left when the slider has
34467 already ben moved right.
34469 2004-11-10 Jackson Harper <jackson@ximian.com>
34471 * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
34474 2004-11-10 Jackson Harper <jackson@ximian.com>
34476 * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
34479 2004-11-09 Jackson Harper <jackson@ximian.com>
34481 * TabControl.cs (CalcXPos): New helper method so we can determine
34482 the proper place to start drawing vertical tabs.
34483 * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
34485 2004-11-09 Jackson Harper <jackson@ximian.com>
34487 * TabControl.cs: Calculate sizing and rects for left aligned tabs.
34488 * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
34489 and Bottom, left and right are illegal values for this and
34490 multiline is enabled when the alignment is set to left or right.
34491 (DrawTab): Each alignment block should draw the text itself now
34492 because Left requires special love. Also add rendering for Left
34495 2004-11-09 Jordi Mas i Hernandez <jordi@ximian.com>
34497 * Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
34498 does not destroy the windows, removes debugging messages
34500 2004-11-09 jba <jba-mono@optusnet.com.au>
34502 * ThemeWin32Classic.cs
34503 (DrawButtonBase): Fix verticle text rect clipping in windows
34504 (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
34505 rendering and incorrect text rect clipping
34506 (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
34507 rendering and incorrect text rect clipping
34509 2004-11-08 Jackson Harper <jackson@ximian.com>
34511 * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
34512 bottom when they are bottom aligned so the bottoms of the tabs get
34514 * TabControl.cs (DropRow): Move rows up instead of down when the
34515 tab control is bottom aligned.
34517 2004-11-08 13:59 pbartok
34520 - Added handling for various window styles
34521 - Added handling for popup windows
34522 - Added SetTopmost handling
34524 2004-11-08 13:55 pbartok
34527 - Added argument to SetTopmost method
34528 - Fixed broken ClientToScreen function
34530 2004-11-08 13:53 pbartok
34532 * XplatUIStructs.cs:
34533 - Added missing WS_EX styles
34535 2004-11-08 13:53 pbartok
34537 * XplatUI.cs, XplatUIDriver.cs:
34538 - Added argument to SetTopmost
34540 2004-11-08 13:52 pbartok
34543 - Added XSetWindowAttributes structure
34544 - Improved XWindowAttributes structure
34545 - Added SetWindowValuemask enum
34546 - Added window creation arguments enum
34547 - Added gravity enum
34548 - Added Motif hints structure
34549 - Added various Motif flags and enums
34550 - Added PropertyMode enum for property functions
34552 2004-11-08 13:50 pbartok
34555 - Fixed arguments for updated SetTopmost method
34557 2004-11-08 13:49 pbartok
34560 - Fixed arguments for updated SetTopmost function
34561 - Fixed usage of PointToClient
34563 2004-11-08 13:44 pbartok
34566 - Added Clipping of children and siblings
34568 2004-11-08 13:41 pbartok
34571 - Removed SetMenuBarWindow call. We do this in Form.cs
34573 2004-11-08 13:40 jackson
34575 * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
34576 scrolling jimmi in the correct location with bottom aligned tabs
34578 2004-11-08 13:36 pbartok
34580 * ContainerControl.cs:
34581 - Implemented BindingContext
34582 - Implemented ParentForm
34584 2004-11-08 12:46 jackson
34586 * TabControl.cs: Put bottom rendered tabs in the right location
34588 2004-11-08 07:15 jordi
34590 * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
34593 2004-11-05 17:30 jackson
34595 * TabControl.cs: When selected tabs are expanded make sure they
34596 don't go beyond the edges of the tab control
34598 2004-11-05 14:57 jackson
34600 * TabControl.cs: Reset show_slider so if the control is resized to
34601 a size where it is no longer needed it's not displayed anymore
34603 2004-11-05 13:16 jackson
34605 * TabControl.cs: Make tab pages non visible when added to the
34608 2004-11-05 12:42 jackson
34610 * TabControl.cs: Implement SizeMode.FillToRight
34612 2004-11-05 12:16 jackson
34614 * Control.cs: Do not call CreateHandle if the handle is already
34617 2004-11-05 11:46 jackson
34619 * TabControl.cs: Remove superflous call to CalcTabRows
34621 2004-11-05 09:07 jackson
34623 * XplatUIX11.cs: Update for Mono.Posix changes
34625 2004-11-05 07:00 ravindra
34627 * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
34630 2004-11-04 22:47 jba
34632 * ThemeWin32Classic.cs:
34633 - Fix Button rendering for FlatStyle = Flat or Popup
34634 - Fix RadioButton and CheckBox rendering when Appearance = Button
34635 (normal and flatstyle).
34636 - Correct outer rectangle color when drawing focus rectangle
34637 - Adjust button bounds to be 1 px smaller when focused
34638 - Make button not draw sunken 3d border when pushed (windows compat)
34639 - Fix CPDrawBorder3D to not make bottom right hand corner rounded
34640 - Offset the text in RadioButton and Checkbox when being rendered as
34642 - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
34644 - Fixed disabled rendering for colored flatstyle radiobuttons (both)
34645 - Fixed disabled text rendering for normally rendered radiobuttons
34647 2004-11-04 10:26 jackson
34649 * TabControl.cs: Recalculate tab rows when resizing
34651 2004-11-04 07:47 jordi
34653 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
34654 collection completion, drawing issues, missing features
34656 2004-11-04 05:03 ravindra
34659 - We need to recalculate the Thumb area when
34660 LargeChange/maximum/minimum values are changed.
34661 - We set the 'pos' in UpdatePos() method to minimum, if it's less
34662 than minimum. This is required to handle the case if large_change is
34663 more than max, and use LargeChange property instead of large_change
34665 - We return max+1 when large_change is more than max, like MS does.
34667 2004-11-04 04:29 ravindra
34669 * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
34670 - Changed default value signatures (prefixed all with ListView).
34671 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
34673 - Fixed calculations for ListViewItem and implemented Clone()
34676 2004-11-04 04:26 ravindra
34678 * Theme.cs, ThemeWin32Classic.cs:
34679 - Changed default ListView values signatures (prefixed all with
34681 - Fixed default size values for VScrollBar and HScrollBar.
34682 - Fixed DrawListViewItem method.
34684 2004-11-04 04:05 ravindra
34686 * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
34688 2004-11-04 04:04 ravindra
34690 * ImageList.cs: Implemented the missing overload for Draw method.
34692 2004-11-03 19:29 jackson
34694 * TabControl.cs: Handle dropping rows on selection properly
34696 2004-11-03 11:59 jackson
34698 * TabControl.cs: remove debug code
34700 2004-11-03 11:52 jackson
34702 * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
34703 the scrolly widgerywoo
34705 2004-11-02 13:52 jackson
34707 * TabControl.cs: Resize the tab pages and tabs when the tab control
34710 2004-11-02 13:40 jackson
34712 * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
34713 selected tab to the bottom
34715 2004-11-02 13:39 jackson
34717 * TabPage.cs: Store the tab pages row
34719 2004-11-02 12:33 jordi
34721 * MenuItem.cs: fixes handle creation
34723 2004-11-02 11:42 jackson
34725 * TabControl.cs: signature fix
34727 2004-11-02 08:56 jackson
34729 * TabControl.cs: Calculate whether the tab is on an edge properly.
34730 Remove top secret debugging code
34732 2004-11-01 19:57 jackson
34734 * TabControl.cs: Add click handling, and proper sizing
34736 2004-11-01 19:47 jackson
34738 * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
34741 2004-11-01 19:39 jackson
34743 * TabPage.cs: add internal property to store the bounds of a tab
34746 2004-10-30 04:23 ravindra
34748 * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
34751 2004-10-30 04:21 ravindra
34753 * ListView.cs, ListViewItem.cs: Added support for scrolling and
34754 fixed calculations.
34756 2004-10-30 03:06 pbartok
34759 - Removed extension of DllImported libs
34761 2004-10-29 09:55 jordi
34763 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
34764 navigation, itemcollection completion, menu fixes
34766 2004-10-27 22:58 pbartok
34769 - Now throws a nice error message when no X display could be opened
34771 2004-10-26 13:51 jordi
34773 * ListView.cs: removes warning
34775 2004-10-26 03:55 ravindra
34777 * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
34778 ThemeWin32Classic.cs: Some formatting for my last checkins.
34780 2004-10-26 03:36 ravindra
34782 * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
34783 control and default values.
34785 2004-10-26 03:35 ravindra
34787 * Theme.cs: Added some default values for ListView control.
34789 2004-10-26 03:33 ravindra
34791 * ToolBar.cs: ToolBar should use the user specified button size, if
34792 there is any. Added a size_specified flag for the same.
34794 2004-10-26 03:33 ravindra
34796 * ColumnHeader.cs: Added some internal members and calculations for
34799 2004-10-26 03:32 ravindra
34801 * ListViewItem.cs: Calculations for ListViewItem.
34803 2004-10-26 03:31 ravindra
34805 * ListView.cs: Added some internal members and calculations for
34808 2004-10-22 13:31 jordi
34810 * MenuAPI.cs: speedup menus drawing
34812 2004-10-22 13:16 jackson
34814 * XplatUIX11.cs: Make sure to update exposed regions when adding an
34817 2004-10-22 11:49 jackson
34821 2004-10-22 11:41 jackson
34823 * Control.cs: Check to see if the window should have its background
34824 repainted by X when drawing.
34826 2004-10-22 11:31 jackson
34828 * XplatUIX11.cs: When invalidating areas only use XClearArea if
34829 clear is true, this way we do not get flicker from X repainting the
34832 2004-10-22 11:28 jackson
34834 * XEventQueue.cs: Queue properly
34836 2004-10-21 09:38 jackson
34838 * XEventQueue.cs: Fix access modifier
34840 2004-10-21 09:36 jackson
34842 * XEventQueue.cs: Don't loose messages
34844 2004-10-21 09:22 jackson
34846 * XEventQueue.cs: Don't loose messages
34848 2004-10-20 04:15 jordi
34850 * BootMode.cs: enum need it by SystemInfo
34852 2004-10-19 21:58 pbartok
34855 - Small sanity check
34857 2004-10-19 21:56 pbartok
34860 - Added private FormParentWindow class which acts as the container
34861 for our form and as the non-client area where menus are drawn
34862 - Added/Moved required tie-ins to Jordi's menus
34863 - Fixed/Implemented the FormStartPosition functionality
34865 2004-10-19 21:52 pbartok
34868 - Removed unneeded locals
34869 - Added code to all size and location properties to understand and
34870 deal with the parent container of Form
34872 2004-10-19 21:33 pbartok
34875 - Fixed to deal with new Form subclasses for menus
34877 2004-10-19 17:48 jackson
34879 * XEventQueue.cs: commit correct version of file
34881 2004-10-19 16:50 jackson
34883 * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
34885 2004-10-19 16:15 jordi
34887 * MenuAPI.cs: MenuBarCalcSize returns the height
34889 2004-10-19 08:31 pbartok
34892 - Added missing call to PreProcessMessage before calling OnXXXKey
34895 2004-10-19 00:04 ravindra
34897 * ToolTip.cs: Fixed constructor.
34899 2004-10-18 09:31 jordi
34901 * MenuAPI.cs: menuitems in menubars do not have shortcuts
34903 2004-10-18 09:26 jordi
34905 * MenuItem.cs: fixes MenuItem class signature
34907 2004-10-18 08:56 jordi
34909 * MenuAPI.cs: prevents windows from showing in the taskbar
34911 2004-10-18 00:28 ravindra
34913 * ToolTip.cs: Suppressed a warning message.
34915 2004-10-18 00:27 ravindra
34917 * Control.cs: Default value of visible property must be true.
34919 2004-10-17 23:19 pbartok
34922 - Complete implementation
34924 2004-10-17 23:19 pbartok
34927 - Added EnableWindow method
34928 - Added SetModal stub
34929 - Added generation of WM_ACTIVATE message (still needs testing)
34930 - Added SetTopMost stub
34931 - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
34933 2004-10-17 23:17 pbartok
34936 - Removed VirtualKeys to XplatUIStructs
34937 - Implemented SetTopMost method
34938 - Implemented EnableWindow method
34939 - Bugfix in ScreenToClient()
34940 - Bugfixes in ClientToScreen()
34942 2004-10-17 22:51 pbartok
34944 * XplatUIStructs.cs:
34945 - Added WS_EX styles to WindowStyles enumeration
34947 2004-10-17 22:50 pbartok
34949 * XplatUI.cs, XplatUIDriver.cs:
34950 - Added method for enabling/disabling windows
34951 - Added method for setting window modality
34952 - Added method for setting topmost window
34954 2004-10-17 22:49 pbartok
34956 * ThemeWin32Classic.cs:
34957 - Added ToolTip drawing code
34959 2004-10-17 22:49 pbartok
34962 - Added ToolTip abstracts
34964 2004-10-17 22:47 pbartok
34967 - Fixed Form.ControlCollection to handle owner relations
34968 - Added Owner/OwnedForms handling
34969 - Implemented Z-Ordering for owned forms
34970 - Removed unneeded private overload of ShowDialog
34971 - Fixed ShowDialog, added the X11 incarnation of modal handling (or
34973 - Fixed Close(), had wrong default
34974 - Added firing of OnLoad event
34975 - Added some commented out debug code for Ownership handling
34977 2004-10-17 22:16 pbartok
34980 - Fixed/implemented flat list of controls
34982 2004-10-17 22:14 pbartok
34985 - Added code to simulate modal dialogs on Win32
34987 2004-10-17 16:11 jordi
34989 * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
34992 2004-10-17 13:39 jordi
34994 * MenuAPI.cs: menu drawing fixes
34996 2004-10-15 09:10 ravindra
34998 * StructFormat.cs: General Enum.
35000 2004-10-15 09:09 ravindra
35002 * SizeGripStyle.cs: Enum for Form.
35004 2004-10-15 09:08 ravindra
35006 * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
35007 in Theme for ListView.
35009 2004-10-15 09:06 ravindra
35011 * ColumnHeader.cs: Flushing some formatting changes.
35013 2004-10-15 09:05 ravindra
35015 * ListViewItem.cs: Implemented GetBounds method and fixed coding
35018 2004-10-15 09:03 ravindra
35020 * ListView.cs: Implemented Paint method and fixed coding style.
35022 2004-10-15 07:34 jordi
35024 * MenuAPI.cs: fix for X11
35026 2004-10-15 07:32 ravindra
35028 * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
35029 - Renamed Paint() method to Draw() for clarity. Also, moved
35030 DrawImage() to OnPaint().
35032 2004-10-15 07:25 ravindra
35034 * CheckBox.cs, RadioButton.cs:
35035 - Removed Redraw (), we get it from ButtonBase.
35036 - Implemented Paint (), to do class specific painting.
35038 2004-10-15 07:16 ravindra
35041 - Redraw () is not virtual now.
35042 - Added an internal virtual method Paint (), so that
35043 derived classes can do their painting on their own.
35044 - Modified OnPaint () to call Paint ().
35046 2004-10-15 06:43 jordi
35048 * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
35049 MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
35051 2004-10-15 00:30 ravindra
35054 - MessageBox on windows does not have min/max buttons.
35055 This change in CreateParams fixes this on Windows. We
35056 still need to implement this windowstyle behavior in
35059 2004-10-14 05:14 ravindra
35062 - Changed Redraw () to do a Refresh () always.
35063 - Fixed the MouseMove event handling when mouse is pressed,
35064 ie drag event handling.
35065 - Replaced the usage of ToolBarButton.Pressed property to
35066 ToolBarButton.pressed internal variable.
35068 2004-10-14 05:10 ravindra
35070 * ToolBarButton.cs:
35071 - Added an internal member 'inside' to handle mouse move
35072 with mouse pressed ie mouse drag event.
35073 - Changed 'Pressed' property to return true only when
35074 'inside' and 'pressed' are both true.
35075 - Some coding style love.
35077 2004-10-14 00:17 ravindra
35079 * Form.cs: Fixed class signature. ShowDialog (Control) is not a
35082 2004-10-14 00:15 ravindra
35084 * ButtonBase.cs: Redraw () related improvements.
35086 2004-10-14 00:14 ravindra
35088 * MessageBox.cs: Moved InitFormSize () out of Paint method and
35089 removed unnecessary calls to Button.Show () method.
35091 2004-10-13 17:50 pbartok
35095 - Removed destroying of window until we solve the problem of X
35096 destroying the window before us on shutdown
35098 2004-10-13 16:32 pbartok
35101 - Now Redraws on MouseUp for FlatStyle Flat and Popup
35103 2004-10-13 14:18 pbartok
35106 - Added code to destroy the X window
35108 2004-10-13 14:18 pbartok
35111 - Added code to destroy a window
35113 2004-10-13 14:12 pbartok
35116 - Added the Redraw on Resize that got dropped in the last rev
35118 2004-10-13 09:06 pbartok
35120 * ThemeWin32Classic.cs:
35121 - Path from John BouAntoun:
35122 * Fix check rendering (centre correctly for normal style, offset
35123 correctly for FlatStyle).
35124 * Fix border color usage (use backcolor) for FlatStyle.Popup
35125 * Use checkbox.Capture instead of checkbox.is_pressed when
35126 rendering flatstyle states.
35128 2004-10-12 21:48 pbartok
35130 * ThemeWin32Classic.cs:
35131 - Removed all occurences of SystemColors and replaced them with the
35132 matching theme color
35134 2004-10-12 21:41 pbartok
35136 * ThemeWin32Classic.cs:
35137 - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
35138 him using the function for flatstyle drawing
35139 - Changed functions to use the new version of CPDrawBorder3D
35141 2004-10-12 21:15 pbartok
35144 - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
35145 match MS documentation. They need to return defined colors if the
35146 passed color matches the configured control color. Thanks to John
35147 BouAntoun for pointing this out.
35149 2004-10-12 20:57 pbartok
35152 - Fix from John BouAntoun: Raise ForeColorChanged event when text
35155 2004-10-12 20:46 pbartok
35158 - Fix from John BouAntoun: Now properly sets the Appearance property
35160 2004-10-12 20:45 pbartok
35162 * ThemeWin32Classic.cs:
35163 - Fixes from John BouAntoun: now handles forecolors and backcolors
35164 for flatstyle rendered controls much better; It also fixes normal
35165 checkbox rendering when pushed or disabled.
35167 2004-10-08 02:50 jordi
35169 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
35172 2004-10-07 08:56 jordi
35174 * ThemeWin32Classic.cs: Removes deletion of cached brushes
35176 2004-10-06 03:59 jordi
35178 * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
35179 XplatUIWin32.cs: removes warnings from compilation
35181 2004-10-05 12:23 jackson
35183 * RadioButton.cs: Fix ctor
35185 2004-10-05 11:10 pbartok
35188 - Partial implementation by Benjamin Dasnois
35190 2004-10-05 10:15 jackson
35192 * ThemeWin32Classic.cs: Improve rendering of the radio button patch
35195 2004-10-05 03:07 ravindra
35198 - Removed a private method, Draw ().
35199 - Fixed the ButtonDropDown event handling.
35200 - Fixed MouseMove event handling.
35202 2004-10-05 03:04 ravindra
35204 * ThemeWin32Classic.cs:
35205 - Added DrawListView method and ListViewDefaultSize property.
35206 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
35207 - Changed DOS style CRLF to Unix format (dos2unix).
35209 2004-10-05 03:03 ravindra
35212 - Added DrawListView method and ListViewDefaultSize property.
35214 2004-10-05 02:42 ravindra
35216 * ToolBarButton.cs: Added an internal member dd_pressed to handle
35217 clicks on DropDown arrow.
35219 2004-10-04 22:56 jackson
35221 * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
35222 ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
35223 Control handle the buffers, derived classes should not have to
35224 CreateBuffers themselves.
35226 2004-10-04 21:20 jackson
35228 * StatusBar.cs: The control handles resizing the buffers now.
35230 2004-10-04 21:18 jackson
35232 * Control.cs: When resizing the buffers should be invalidated. This
35233 should be handled in Control not in derived classes.
35235 2004-10-04 14:45 jackson
35239 2004-10-04 02:14 pbartok
35241 * LeftRightAlignment.cs:
35244 2004-10-04 01:09 jordi
35246 * ThemeWin32Classic.cs: fixes right button position causing right
35247 button not showing on horizontal scrollbars
35249 2004-10-02 13:12 pbartok
35252 - Simplified the Invalidate method by using an X call instead of
35253 generating the expose ourselves
35254 - Added an expose when the window background is changed
35255 - Implemented ClientToScreen method
35257 2004-10-02 13:08 pbartok
35260 - Added Win32EnableWindow method (test for implementing modal
35262 - Added ClientToScreen method and imports
35264 2004-10-02 13:07 pbartok
35266 * XplatUI.cs, XplatUIDriver.cs:
35267 - Added ClientToScreen coordinate translation method
35269 2004-10-02 13:06 pbartok
35271 * KeyPressEventArgs.cs:
35272 - Fixed access level for constructor
35274 2004-10-02 13:06 pbartok
35277 - Changed access level for the window_collection hash table
35279 2004-10-02 13:05 pbartok
35282 - Added KeyPreview property
35283 - Added Menu property (still incomplete, pending Jordi's menu work)
35284 - Implemented ProcessCmdKey
35285 - Implemented ProcessDialogKey
35286 - Implemented ProcessKeyPreview
35288 2004-10-02 13:02 pbartok
35291 - Added private method to get the Control object from the window
35293 - Implemented ContextMenu property
35294 - Implemented PointToScreen
35295 - Implemented PreProcessMessage
35296 - Implemented IsInputChar
35297 - Implemented IsInputKey
35298 - Implemented ProcessCmdKey
35299 - Completed ProcessKeyEventArgs
35300 - Fixed message loop to call the proper chain of functions on key
35302 - Implemented ProcessDialogChar
35303 - Implemented ProcessDialogKey
35304 - Implemented ProcessKeyMessage
35305 - Implemented ProcessKeyPreview
35306 - Added RaiseDragEvent stub (MS internal method)
35307 - Added RaiseKeyEvent stub (MS internal method)
35308 - Added RaiseMouseEvent stub (MS Internal method)
35309 - Added RaisePaintEvent stub (MS Internal method)
35310 - Added ResetMouseEventArgs stub (MS Internal method)
35311 - Implemented RtlTranslateAlignment
35312 - Implemented RtlTranslateContent
35313 - Implemented RtlTranslateHorizontal
35314 - Implemented RtlTranslateLeftRight
35315 - Added generation of KeyPress event
35317 2004-10-02 05:57 ravindra
35319 * ListViewItem.cs: Added attributes.
35321 2004-10-02 05:32 ravindra
35323 * ListView.cs: Added attributes.
35325 2004-10-01 11:53 jackson
35327 * Form.cs: Implement the Close method so work on MessageBox can
35330 2004-09-30 14:06 pbartok
35335 2004-09-30 11:34 jackson
35337 * RadioButton.cs: Fix typo. Patch by John BouAntoun.
35339 2004-09-30 07:26 ravindra
35341 * ListViewItemConverter.cs: Converter for ListViewItem.
35343 2004-09-30 07:26 ravindra
35345 * SortOrder.cs: Enum for ListView control.
35347 2004-09-30 07:25 ravindra
35349 * ColumnHeader.cs: Supporting class for ListView control.
35351 2004-09-30 07:24 ravindra
35353 * ListView.cs, ListViewItem.cs: Initial implementation.
35355 2004-09-30 07:20 ravindra
35357 * ItemActivation.cs: Enum for ListView Control.
35359 2004-09-29 20:29 pbartok
35362 - Added lookup of pixel value for background color; tries to get a
35363 color 'close' to the requested color, it avoids having to create a
35364 colormap. Depending on the display this could mean the used color
35365 is slightly off the desired color. Might have to change it to a more
35366 resource intensive colormap approach, but it will work as a
35367 workaround to avoid red screens.
35369 2004-09-29 14:27 jackson
35371 * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
35373 2004-09-28 12:44 pbartok
35375 * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
35376 HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
35377 ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
35378 Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
35379 TrackBar.cs, VScrollBar.cs:
35380 - Streamlined Theme interfaces:
35381 * Each DrawXXX method for a control now is passed the object for
35382 the control to be drawn in order to allow accessing any state the
35383 theme might require
35385 * ControlPaint methods for the theme now have a CP prefix to avoid
35386 name clashes with the Draw methods for controls
35388 * Every control now retrieves it's DefaultSize from the current
35391 2004-09-28 12:17 jackson
35393 * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
35396 2004-09-24 14:57 jackson
35398 * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
35399 Gives us a nice little performance boost.
35401 2004-09-24 12:02 jackson
35403 * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
35404 TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
35405 Control and supporting classes. Initial checkin
35407 2004-09-23 13:08 jackson
35409 * Form.cs: Temp build fixage
35411 2004-09-23 01:39 ravindra
35413 * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
35414 ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
35415 ItemDragEventArgs.cs, ItemDragEventHandler.cs,
35416 LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
35417 EventHandlers needed by ListView Control.
35419 2004-09-22 14:12 pbartok
35421 * ScrollableControl.cs:
35422 - Implemented DockPadding property
35423 - Implemented AutoScroll property
35424 - Implemented AutoScrollMargin property
35425 - Implemented AutoScrollMinSize property
35426 - Implemented AutoScrollPosition property
35427 - Implemented DisplayRectangle property (still incomplete)
35428 - Implemented CreateParams property
35429 - Implemented HScroll property
35430 - Implemented VScroll property
35431 - Implemented OnVisibleChanged property
35433 2004-09-22 14:09 pbartok
35436 - Added Form.ControllCollection class
35437 - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
35438 RemoveOwnedForm (still incomplete, missing on-top and common
35439 minimize/maximize behaviour)
35440 - Added StartPosition property (still incomplete, does not use when
35442 - Added ShowDialog() methods (still incomplete, missing forcing the
35445 2004-09-22 14:05 pbartok
35448 - Added message loop for modal dialogs
35450 2004-09-22 14:02 pbartok
35453 - Fixed wrong types for events
35455 2004-09-22 14:00 pbartok
35457 * Shortcut.cs, FormWindowState.cs:
35458 - Fixed wrong values
35460 2004-09-22 12:01 jackson
35462 * Control.cs: Text is never null
35464 2004-09-20 22:14 pbartok
35467 - Fixed accessibility level for Idle handler
35469 2004-09-20 18:54 jackson
35471 * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
35472 XplatUIX11.cs: New message loop that uses poll so we don't get a
35475 2004-09-17 10:43 pbartok
35478 - Fixed behaviour of arrow buttons. Now properly behaves like
35479 Buttons (and like Microsoft's scrollbar arrow buttons)
35481 2004-09-17 10:14 pbartok
35484 - Added missing release of keyboard/mouse capture
35486 2004-09-17 06:18 jordi
35488 * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
35489 Theme.cs: Very early menu support
35491 2004-09-16 17:45 pbartok
35494 - Fixed sending a window to the front
35495 - Added overload for SetWindowPos to avoid casting
35497 2004-09-16 17:44 pbartok
35500 - Added SendToBack and BringToFront methods
35502 2004-09-16 07:00 ravindra
35504 * Copyright: Added Novell URL.
35506 2004-09-16 07:00 ravindra
35508 * ToolBar.cs: Invalidate should be done before redrawing.
35510 2004-09-15 21:19 ravindra
35512 * ColumnHeaderStyle.cs: Enum for ListView Control.
35514 2004-09-15 21:18 ravindra
35516 * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
35519 2004-09-13 18:26 jackson
35521 * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
35524 2004-09-13 18:13 jackson
35526 * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
35527 a second thread and post messages into the main threads message
35528 queue. This makes timing much more consistent. Both win2K and XP
35529 have a minimum timer value of 15 milliseconds, so we now do this
35532 2004-09-13 15:18 pbartok
35534 * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
35536 - Added Z-Ordering methods
35538 2004-09-13 10:56 pbartok
35541 - Fixed #region names
35542 - Moved properties and methods into their proper #regions
35544 2004-09-13 10:51 pbartok
35547 - Added Accept and CancelButton properties
35548 - Added ProcessDialogKey() method
35550 2004-09-13 08:18 pbartok
35552 * IWindowTarget.cs:
35555 2004-09-10 21:50 pbartok
35558 - Added DoDragDrop() [incomplete]
35559 - Properly implemented 'Visible' handling
35560 - Added SetVisibleCore()
35561 - Implemented FindChildAtPoint()
35562 - Implemented GetContainerControl()
35563 - Implemented Hide()
35565 2004-09-10 19:28 pbartok
35568 - Moved methods into their appropriate #regions
35569 - Reordered methods within regions alphabetically
35571 2004-09-10 18:57 pbartok
35573 * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
35574 - Added method to retrieve text from window
35576 2004-09-10 18:56 pbartok
35579 - Moved some internal functions into the internal region
35580 - Implemented FontHeight
35581 - Implemented RenderRightToLeft
35582 - Implemented ResizeRedraw
35583 - Implemented ShowFocusCues
35584 - Implemented ShowKeyboardCues
35585 - Implemented FromChildHandle
35586 - Implemented FromHandle
35587 - Implemented IsMnemonic
35588 - Implemented ReflectMessage
35589 - All public and protected Static Methods are now complete
35591 2004-09-10 16:54 pbartok
35594 - Implemented remaining missing public instance properties
35595 - Alphabetized some out of order properties
35597 2004-09-10 05:51 ravindra
35599 * PictureBox.cs: Added a check for null image.
35601 2004-09-10 00:59 jordi
35603 * GroupBox.cs: remove cvs tag
35605 2004-09-09 05:25 ravindra
35607 * ToolBar.cs: Make redraw accessible from ToolBarButton.
35609 2004-09-09 05:23 ravindra
35611 * ToolBarButton.cs: Changes in ToolBarButton need to make it's
35614 2004-09-09 02:28 pbartok
35616 * ThemeWin32Classic.cs:
35617 - Improve disabled string look
35619 2004-09-09 01:15 jordi
35621 * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
35624 2004-09-08 23:56 ravindra
35626 * ItemBoundsPortion.cs: It's enum, not a class!
35628 2004-09-08 23:47 ravindra
35630 * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
35633 2004-09-08 21:13 ravindra
35635 * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
35638 2004-09-08 21:03 ravindra
35640 * ThemeWin32Classic.cs: PictureBox would not draw a null image to
35643 2004-09-08 21:01 ravindra
35645 * ScrollableControl.cs: Removed unreachable code.
35647 2004-09-08 06:45 jordi
35649 * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
35651 2004-09-08 01:00 jackson
35653 * XplatUIX11.cs: Only run the timers when updating the message
35654 queue. This effectively gives X messages a higher priority then
35655 timer messages. Timers still need love though
35657 2004-09-07 14:01 jackson
35659 * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
35660 this for us and the handle is no longer valid.
35662 2004-09-07 13:59 jackson
35664 * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
35665 loop that manages to not crash. TODO: Add poll and cleanup timers
35667 2004-09-07 11:12 jordi
35669 * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
35671 2004-09-07 03:40 jordi
35673 * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
35674 fixes, methods, multiple links
35676 2004-09-06 06:55 jordi
35678 * Control.cs: Caches ClientRectangle rectangle value
35680 2004-09-05 02:03 jordi
35682 * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
35685 2004-09-04 11:10 jordi
35687 * Label.cs: Refresh when font changed
35689 2004-09-02 16:24 pbartok
35692 - Added sanity check to creation of double buffer bitmap
35694 2004-09-02 16:24 pbartok
35697 - Fixed selection of text color
35698 - Fixed handling of resize event; now properly recreates double
35700 - Added missing assignment of TextAlignment
35701 - Added proper default for TextAlignment
35703 2004-09-02 14:26 pbartok
35706 - Added missing RadioButton.RadioButtonAccessibleObject class
35708 2004-09-02 14:26 pbartok
35711 - Added missing Control.ControlAccessibleObject class
35712 - Started to implement Select()ion mechanisms, still very incomplete
35714 2004-09-02 14:25 pbartok
35716 * AccessibleObject.cs:
35717 - Added missing methods
35719 2004-09-02 14:23 pbartok
35721 * AccessibleNavigation.cs, AccessibleSelection.cs:
35724 2004-09-02 10:32 jordi
35726 * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
35727 pool for pens, brushes, and hatchbruses
35729 2004-09-01 15:30 jackson
35731 * StatusBar.cs: Fix typo
35733 2004-09-01 14:44 pbartok
35738 2004-09-01 14:39 pbartok
35740 * Button.cs, RadioButton.cs:
35741 - Functional initial check-in
35743 2004-09-01 14:01 pbartok
35746 - Added missing default
35747 - Added missing region mark
35749 2004-09-01 09:10 jordi
35751 * Label.cs: fixes method signatures, new methods, events, fixes
35754 2004-09-01 07:19 jordi
35756 * Control.cs: Init string variables with an empty object
35758 2004-09-01 04:20 jordi
35760 * Control.cs: fires OnFontChanged event
35762 2004-08-31 20:07 pbartok
35765 - Enabled display of strings
35767 2004-08-31 20:05 pbartok
35770 - Added (partial) implementation of DialogResult; rest needs to be
35771 implemented when the modal loop code is done
35773 2004-08-31 19:55 pbartok
35776 - Fixed to match the removal of the needs_redraw concept
35778 2004-08-31 19:55 pbartok
35781 - Removed the rather odd split between 'needs redraw' and redrawing
35782 - Now handles the events that require regeneration (ambient
35783 properties and size)
35785 2004-08-31 19:41 pbartok
35788 - Added firing of BackColorChanged event
35789 - Added TopLevelControl property
35790 - Fixed handling of WM_ERASEBKGRND message
35792 2004-08-31 12:49 pbartok
35798 2004-08-31 12:48 pbartok
35801 - Finished (famous last words)
35803 2004-08-31 04:35 jordi
35805 * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
35806 scrolling bugs, adds new methods
35808 2004-08-30 14:42 pbartok
35811 - Implemented CheckBox drawing code
35813 2004-08-30 14:42 pbartok
35816 - Made Redraw() and CheckRedraw() virtual
35817 - Improved mouse up/down/move logic to properly track buttons
35819 2004-08-30 09:44 pbartok
35822 - Updated to fix broken build. Not complete yet.
35824 2004-08-30 09:28 pbartok
35829 2004-08-30 09:17 pbartok
35834 2004-08-27 16:12 ravindra
35836 * ToolBarButton.cs: Added TypeConverter attribute.
35838 2004-08-27 16:07 ravindra
35840 * ImageIndexConverter.cs: Implemented.
35842 2004-08-27 14:17 pbartok
35845 - Removed unneeded stack vars
35846 - First attempt to fix sizing issues when layout is suspended
35848 2004-08-25 15:35 jordi
35850 * ScrollBar.cs: more fixes to scrollbar
35852 2004-08-25 14:04 ravindra
35854 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
35855 Added the missing divider code and grip for ToolBar Control.
35857 2004-08-25 13:20 pbartok
35860 - Control now properly passes the ambient background color to child
35863 2004-08-25 13:20 jordi
35865 * ScrollBar.cs: small bug fix regarding bar position
35867 2004-08-25 12:33 pbartok
35870 - Now only calls SetTimer or KillTimer if the enabled state has
35873 2004-08-25 12:33 pbartok
35876 - Fixed timer handling, now seems to work
35877 - Improved error message for window creation
35879 2004-08-25 12:32 pbartok
35882 - Fixed generation of MouseUp message
35884 2004-08-25 12:29 jordi
35886 * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
35887 and fixes for progressbar
35889 2004-08-24 18:43 ravindra
35891 * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
35892 in ToolBar control.
35894 2004-08-24 17:15 pbartok
35898 - Added missing events
35901 2004-08-24 17:14 pbartok
35903 * StatusBar.cs, PictureBox.cs:
35904 - Now uses Control's CreateParams
35906 2004-08-24 16:36 pbartok
35909 - Fixed background color handling
35910 - Fixed sending of enter/leave events on a grab
35912 2004-08-24 16:35 pbartok
35915 - Refined definitions for CrossingEvent
35917 2004-08-24 12:37 jordi
35919 * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
35920 formmating, methods signature, and adds missing events
35922 2004-08-24 12:24 jordi
35924 * Control.cs: fire OnEnabledChanged event
35926 2004-08-24 11:17 pbartok
35929 - Implemented SetTimer() and KillTimer()
35931 2004-08-24 11:16 pbartok
35934 - Now uses Remove instead of Add to kill the timer
35936 2004-08-24 10:16 jackson
35938 * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
35939 picture boxes in the theme now. Draw picture box borders and obey
35942 2004-08-24 05:49 jackson
35944 * Timer.cs: Remove top secret debugging code
35946 2004-08-24 05:34 jackson
35948 * PictureBox.cs: Temp hack to make picture boxes draw their full
35951 2004-08-24 05:29 jackson
35953 * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
35954 XplatUIX11.cs: Move timers to the driver level. On X they are
35955 queued by the driver and checked on idle.
35957 2004-08-24 01:07 jackson
35959 * XplatUIX11.cs: Use a queue for async messages instead of passing
35960 them as ClientMessages since that was totally broken. Also simply
35961 check for events and return an idle message if none are found. This
35962 gives us an idle handler, and prevents deadlocking when no messages
35965 2004-08-23 18:19 ravindra
35967 * XplatUIWin32.cs: Removed the unwanted destructor.
35969 2004-08-23 17:27 pbartok
35972 - Finishing touches. Works now, just needs some optimizations.
35974 2004-08-23 16:53 jordi
35976 * ScrollBar.cs: small fix
35978 2004-08-23 16:45 pbartok
35981 - Removed debug output
35984 2004-08-23 16:43 jordi
35986 * ScrollBar.cs: [no log message]
35988 2004-08-23 16:10 pbartok
35991 - Fixed handling of WM_CLOSE message
35992 - Removed debug output
35994 2004-08-23 16:09 pbartok
35997 - Added handling of Idle event
35998 - Added handling of form closing
35999 - Fixed reporting of MessageLoop property
36000 - Removed some unneeded code, should provide a bit of a speedup
36002 2004-08-23 15:22 pbartok
36005 - Added InitLayout() method
36006 - Added code to properly perform layout when Anchor or Dock property
36008 - Changed 'interpretation' of ResumeLayout. MS seems to have a
36009 LAMESPEC, tried to do it in a way that makes sense
36011 2004-08-23 14:10 jordi
36013 * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
36014 properties and methods
36016 2004-08-23 13:55 pbartok
36019 - Properly fixed Jordi's last fix
36020 - Now uses Cursor's Position property instead of calling XplatUI
36023 2004-08-23 13:44 jordi
36025 * PaintEventHandler.cs: Adding missing attribute
36027 2004-08-23 13:39 pbartok
36030 - Implemented Position property
36032 2004-08-23 13:39 pbartok
36034 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
36035 - Added method to move mouse cursor
36037 2004-08-23 13:39 pbartok
36040 - Fixed setting of background color
36041 - Added method to move mouse cursor
36043 2004-08-23 13:16 jordi
36045 * Control.cs: avoids null exception
36047 2004-08-22 17:46 jackson
36049 * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
36052 2004-08-22 17:40 jackson
36054 * XplatUIX11.cs: Add some missing locks
36056 2004-08-22 15:10 pbartok
36058 * Control.cs, Form.cs:
36059 - Removed OverlappedWindow style from Control, instead it's default
36061 - Made form windows OverlappedWindow by default
36063 2004-08-22 13:34 jackson
36065 * ScrollBar.cs: Update the position through the Value property so
36066 the OnValueChanged event is raised.
36068 2004-08-22 12:04 pbartok
36071 - Added Cursor.cs and UserControl.cs
36073 2004-08-22 12:03 pbartok
36076 - Started implementation, not usable yet
36078 2004-08-22 12:00 pbartok
36081 - Implemented UserControl (complete)
36083 2004-08-21 19:20 ravindra
36085 * ToolBar.cs: Correcting the formatting mess of VS.NET.
36087 2004-08-21 18:49 ravindra
36089 * ToolBar.cs: Probably this completes the missing attributes in
36092 2004-08-21 18:03 ravindra
36094 * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
36095 Fixed toolbar control signatures.
36097 2004-08-21 16:32 pbartok
36102 2004-08-21 16:30 pbartok
36107 2004-08-21 16:19 pbartok
36109 * Control.cs, Label.cs:
36112 2004-08-21 15:57 pbartok
36115 - Added loads of debug output for development
36116 - Fixed typo in method name
36118 2004-08-21 15:52 pbartok
36120 * ToolBarButtonClickEventArgs.cs:
36121 - Added missing base class
36123 2004-08-21 14:53 pbartok
36126 - Updated to match new GrabWindow signature
36128 2004-08-21 14:51 pbartok
36130 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
36131 - Added method to get default display size
36133 2004-08-21 14:23 pbartok
36135 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
36136 - Added method to query current grab state
36137 - Added argument to allow confining a grab to a window
36139 2004-08-21 14:22 pbartok
36142 - Added [Flags] attribute so that modifiers can be used in bitwise
36145 2004-08-21 14:21 pbartok
36147 * TrackBar.cs, ScrollBar.cs:
36148 - Replaced direct XplatUI calls with their Control counterpart
36150 2004-08-21 13:32 pbartok
36153 - Implemented Created property
36155 2004-08-21 13:28 pbartok
36158 - Implemented ContainsFocus
36160 2004-08-21 13:26 pbartok
36163 - Implemented CausesValidation
36165 2004-08-21 13:21 pbartok
36168 - Implemented CanFocus
36169 - Implemented CanSelect
36170 - Implemented Capture
36172 2004-08-21 12:35 pbartok
36175 - Fixed bug with Async message handling
36176 - Implemented getting the ModifierKeys
36178 2004-08-21 12:32 jackson
36180 * AsyncMethodResult.cs: Make sure we have the mutex before we
36181 release it. Fixes BeginInvoke on windows
36183 2004-08-21 11:31 pbartok
36185 * XplatUIWin32.cs, XplatUIX11.cs:
36186 - Drivers now return proper mouse state
36188 2004-08-21 10:54 jackson
36190 * Control.cs: Implement EndInvoke
36192 2004-08-21 10:48 jackson
36194 * Timer.cs: Remove unneeded finalizer
36196 2004-08-20 19:52 ravindra
36198 * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
36199 in mouse event handling in the ToolBar control.
36201 2004-08-20 19:50 ravindra
36203 * ImageList.cs: Changed draw method to use the arguments passed in
36206 2004-08-20 18:58 pbartok
36208 * XplatUIStructs.cs:
36209 - Added private message for async communication
36211 2004-08-20 17:38 ravindra
36213 * Control.cs: Made RightToLeft property virtual and removed a
36216 2004-08-20 14:39 jordi
36218 * ThemeGtk.cs: use style_attach
36220 2004-08-20 14:39 pbartok
36223 - Added jackson's Async code from X11 to Win32
36225 2004-08-20 14:09 pbartok
36228 - Added all new files
36230 2004-08-20 14:09 pbartok
36233 - Added call to set window background color
36235 2004-08-20 14:03 pbartok
36237 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
36238 - Added method for setting the window background
36240 2004-08-20 14:02 pbartok
36243 - Added method for setting the background color
36244 - Added handling for erasing the window background
36246 2004-08-20 13:45 jordi
36248 * TrackBar.cs: fixes timer, new properties and methods
36250 2004-08-20 13:34 jackson
36252 * ScrollBar.cs: Use the SWF timer so callbacks are run in the
36255 2004-08-20 13:22 jackson
36257 * Timer.cs: Timer Tick events are now handed through Controls Async
36258 mechanism so the callbacks are executed in the same thread as X
36260 2004-08-20 13:19 jackson
36262 * XplatUIDriver.cs: Expose functionality to send async messages
36265 2004-08-20 13:18 jackson
36267 * Control.cs: Implement Begininvoke
36269 2004-08-20 13:14 jackson
36271 * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
36272 messages through the driver
36274 2004-08-20 13:12 jackson
36276 * XplatUIX11.cs: Lock before all X operations. Also added Async
36277 method functionality through XSendEvent
36279 2004-08-20 13:11 jackson
36281 * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
36282 This will screw up on 64 bit systems)
36284 2004-08-20 13:10 jackson
36286 * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
36287 Async messages through X/Win32
36289 2004-08-19 19:39 pbartok
36292 - Updated code to match new HandleData.DeviceContext type
36294 2004-08-19 19:38 pbartok
36297 - Made DeviceContext a generic object to allow usage from various
36299 - Added support for queueing Windows messages
36301 2004-08-19 19:37 pbartok
36304 - Added generation of MouseEnter, MouseLeave and MouseHover events
36305 - Added cleanup on EndPaint
36307 2004-08-19 19:17 pbartok
36310 - Added handling of WM_MOUSEHOVER
36311 - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
36314 2004-08-19 18:55 jordi
36316 * ThemeGtk.cs: fixes button order
36318 2004-08-19 18:12 jordi
36320 * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
36322 2004-08-19 17:09 pbartok
36325 - Added Right property
36326 - Added RightToLeft property
36328 2004-08-19 16:27 jordi
36330 * ThemeGtk.cs: experimental GTK theme support
36332 2004-08-19 16:26 jordi
36334 * ITheme.cs, Theme.cs: move themes from an interface to a class
36336 2004-08-19 16:25 jordi
36338 * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
36341 2004-08-19 16:04 pbartok
36344 - Added colormap basics
36345 - Added a way to re-initialize with a different display handle
36346 - Fixed setting of the window background color
36347 - Added various X11 imports related to colors and colormaps
36349 2004-08-19 15:51 pbartok
36352 - Removed packing hints (Paolo suggested this a while back)
36353 - fixed colormap type
36354 - Added default Atom types
36355 - Added Screen and color structs and enums
36357 2004-08-19 15:39 pbartok
36360 - Added missing Draw() method
36361 - Added missing RecreateHandle event
36363 2004-08-19 15:30 pbartok
36366 - Added handling of WM_CLOSE
36368 2004-08-18 13:16 jordi
36370 * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
36373 2004-08-18 09:56 jordi
36375 * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
36377 2004-08-17 15:31 ravindra
36379 * SWF.csproj: Updated project.
36381 2004-08-17 15:25 pbartok
36384 - Drawing improvement; don't call UpdateBounds if we are not visible
36385 (or have been minimized)
36387 2004-08-17 15:24 pbartok
36390 - Finished IsVisible
36391 - Added Win32GetWindowPlacement
36393 2004-08-17 15:08 jackson
36395 * Panel.cs: Initial checkin of the Panel
36397 2004-08-17 14:25 pbartok
36400 - Fixed broken handling of default window sizes
36402 2004-08-17 13:29 jackson
36404 * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
36405 has a large startup time.
36407 2004-08-17 10:25 jackson
36409 * HandleData.cs: union areas properly
36411 2004-08-17 10:12 jackson
36413 * HandleData.cs: union areas properly
36415 2004-08-16 20:00 ravindra
36417 * ToolBar.cs, ToolBarButton.cs: Added attributes.
36419 2004-08-16 18:48 ravindra
36421 * ToolBar.cs: Added attributes.
36423 2004-08-16 17:17 ravindra
36425 * SWF.csproj: Updated project.
36427 2004-08-16 17:16 jackson
36429 * XplatUIX11.cs: Check for more expose events before sending a
36430 WM_PAINT so they can all be grouped together. This makes dragging a
36431 window across another window redraw in a sane way.
36433 2004-08-16 15:47 pbartok
36436 - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
36437 support OnMouseEnter/Leave()
36438 - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
36441 2004-08-16 15:46 pbartok
36443 * XplatUIStructs.cs, XplatUIX11.cs:
36444 - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
36445 OnMouseEnter/Leave()
36447 2004-08-16 15:34 jackson
36449 * XplatUIX11.cs: Group multiple expose events in HandleData, make
36450 sure messages get the message field set to WM_NULL if they are not
36453 2004-08-16 15:24 jackson
36455 * HandleData.cs: HandleData is used for storing message information
36458 2004-08-15 17:23 ravindra
36460 * ColorDepth.cs: Added attribute.
36462 2004-08-15 17:23 ravindra
36464 * SWF.csproj: Updated project for ToolBar Control.
36466 2004-08-15 17:20 ravindra
36468 * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
36469 control and also dos2unix format.
36471 2004-08-15 17:13 ravindra
36473 * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
36474 ToolBarButtonClickEventArgs.cs,
36475 ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
36476 ToolBarTextAlign.cs: First Implementation of ToolBar control.
36478 2004-08-15 15:31 pbartok
36481 - First (mostly) working version
36483 2004-08-13 16:15 pbartok
36486 - Fixed Anchor default
36488 2004-08-13 15:43 pbartok
36491 - Changed GetCursorPos signature
36493 2004-08-13 15:42 pbartok
36495 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
36496 - Changed signature for GetCursorPos
36498 2004-08-13 15:25 pbartok
36502 - Fixed resizing/exposure handling
36504 2004-08-13 15:22 jordi
36506 * ThemeWin32Classic.cs: removes redundant code and fixes issues
36509 2004-08-13 14:55 jordi
36511 * TrackBar.cs: change from wndproc to events
36513 2004-08-13 13:00 jordi
36515 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
36516 XplatUIX11.cs: implements PointToClient (ScreenToClient)
36518 2004-08-13 12:53 pbartok
36521 - Changed GetWindowPos to also provide client area size
36522 - Fixed broken prototypes for several win32 functions
36524 2004-08-13 12:53 pbartok
36526 * XplatUI.cs, XplatUIDriver.cs:
36527 - Changed GetWindowPos to also provide client area size
36529 2004-08-13 12:52 pbartok
36532 - Added generation of WM_POSCHANGED
36533 - Changed GetWindowPos to also provide client area size
36535 2004-08-13 12:52 pbartok
36538 - Added Dispose() and destructor
36539 - Fixed resizing and bounds calculation
36541 - Added memory savings for invisible windows
36543 2004-08-13 12:46 jordi
36545 * TrackBar.cs: adds timer and grap window
36547 2004-08-13 10:25 jackson
36549 * Timer.cs: SWF Timer
36551 2004-08-12 16:59 pbartok
36553 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
36554 - Implemented method to get current mouse position
36556 2004-08-12 14:29 jordi
36558 * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
36559 enhancement, fix mouse problems, highli thumb, etc
36561 2004-08-12 13:31 pbartok
36564 - Fixed Anchoring bugs
36566 2004-08-12 13:01 jackson
36568 * StatusBar.cs: Don't forget things
36570 2004-08-12 12:54 jackson
36572 * ThemeWin32Classic.cs: Handle owner draw status bars
36574 2004-08-12 12:54 jackson
36576 * StatusBar.cs: Implement missing properties, events, and methods.
36577 Handle mouse clicking
36579 2004-08-12 10:19 jackson
36581 * StatusBarPanelClickEventArgs.cs,
36582 StatusBarPanelClickEventHandler.cs: Classes for handling status
36583 bar panel click events
36585 2004-08-12 10:10 jackson
36587 * Control.cs: Add missing properties
36589 2004-08-12 09:46 pbartok
36591 * BindingsManagerBase.cs:
36592 - Name changed to BindingManagerBase.cs
36594 2004-08-12 09:25 jordi
36596 * ScrollableControl.cs: calls ctrlbase instead of exeception
36598 2004-08-11 16:28 pbartok
36600 * InputLanguageChangingEventArgs.cs:
36601 - Never check in before compiling. Fixes the last check-in
36603 2004-08-11 16:26 pbartok
36605 * InputLanguageChangingEventArgs.cs:
36606 - More signature fixes
36608 2004-08-11 16:20 pbartok
36610 * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
36611 Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
36612 ImageListStreamer.cs, InputLanguage.cs,
36613 InputLanguageChangedEventArgs.cs,
36614 InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
36615 LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
36616 ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
36617 XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
36620 2004-08-11 16:16 pbartok
36624 - Added .Net 1.1 method
36626 2004-08-11 15:25 pbartok
36629 - Fixed BindingManagerBase.cs filename
36631 2004-08-11 15:22 pbartok
36633 * BindingManagerBase.cs:
36634 - Was checked in with wrong filename
36636 2004-08-11 14:50 pbartok
36641 2004-08-11 13:41 jordi
36643 * XplatUIWin32.cs: Fixes ClientRect
36645 2004-08-11 13:19 pbartok
36647 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
36649 - We had SetWindowPos and MoveWindow to set window positions and
36650 size, removed MoveWindow. We have GetWindowPos, so it made sense to
36651 keep SetWindowPos as matching counterpart
36652 - Added some X11 sanity checking
36654 2004-08-11 12:59 pbartok
36657 - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
36658 (It seems that SetBounds is just a front for SetBoundsCore and
36659 SetBoundsCore updates the underlying window system and
36660 UpdateBounds is responsible for updating the variables associated
36661 with the Control and sending the events)
36662 - Major cleanup of Size handling; we now have two sizes, client_size
36663 and bounds. Bounds defines the window with decorations, client_size
36666 2004-08-11 12:55 pbartok
36668 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
36669 - Added method to calculate difference between decorated window and
36672 2004-08-11 12:54 pbartok
36675 - Forcing redraw on resize
36677 2004-08-11 11:43 pbartok
36680 - Removed disposing of the actual images when the list is disposed
36682 2004-08-11 09:13 pbartok
36685 - Now properly reparents windows
36687 2004-08-11 08:37 pbartok
36692 2004-08-11 07:47 pbartok
36695 - Rewrote the collection stuff. Might not be as fast now, not
36696 keeping the number of children around and accessible directly, but
36697 it's more straightforward
36699 2004-08-11 07:44 pbartok
36701 * AccessibleObject.cs:
36702 - Fixed to match ControlCollection rewrite
36704 2004-08-11 07:43 pbartok
36707 - Added missing creation of the collection list
36709 2004-08-10 20:08 jackson
36711 * StatusBar.cs: Get the paint message from WndProc
36713 2004-08-10 19:31 jackson
36715 * ThemeWin32Classic.cs: Create Brushes as little as possible
36717 2004-08-10 19:20 jackson
36719 * UICues.cs: Add Flags attribute
36721 2004-08-10 19:19 jackson
36723 * StatusBarPanel.cs: Signature cleanup
36725 2004-08-10 19:10 jackson
36727 * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
36728 Initial implementation of status bar item drawing
36730 2004-08-10 17:27 jordi
36732 * TrackBar.cs: add missing methods, properties, and restructure to
36735 2004-08-10 16:24 jackson
36737 * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
36738 ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
36741 2004-08-10 13:21 jordi
36743 * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
36744 enhancements and standarize on win colors defaults
36746 2004-08-10 12:52 jackson
36748 * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
36749 ThemeWin32Classic.cs: Implement DrawItem functionality
36751 2004-08-10 12:47 jordi
36753 * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
36755 2004-08-10 12:32 jordi
36757 * Control.cs: throw ontextchange event
36759 2004-08-10 11:43 pbartok
36762 - Added more to the still unfinished Dock/Anchor layout code
36764 2004-08-10 11:39 pbartok
36766 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
36767 - Added GetWindowPos method
36769 2004-08-10 11:36 pbartok
36772 - Implemented several methods
36774 2004-08-10 09:47 jackson
36776 * TrackBar.cs: Allow control to handle buffering
36778 2004-08-10 09:41 jackson
36780 * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
36782 2004-08-10 09:24 jackson
36784 * Label.cs, LinkLabel.cs: Let Control handle buffering.
36786 2004-08-10 09:09 jackson
36788 * StatusBar.cs: Let Control handle all the buffering.
36790 2004-08-10 09:08 jackson
36792 * Control.cs: Control will now handle the buffering code, so each
36793 control does not have to implement this.
36795 2004-08-10 08:34 jackson
36797 * XplatUIDriver.cs: Use default colors from the theme
36799 2004-08-09 17:12 pbartok
36802 - Fixed several bugs Ravindra pointed out
36804 2004-08-09 16:11 pbartok
36807 - Added incomplete dock layout code
36808 - Added support for mouse wheel
36810 2004-08-09 16:09 pbartok
36813 - Added handling for middle and right mousebutton
36814 - Added handling for mouse wheel
36815 - Added handling for key state and mouse state and position
36816 - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
36819 2004-08-09 15:40 jackson
36821 * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
36822 StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
36825 2004-08-09 15:37 jackson
36827 * StatusBar.cs: Initial implementation of StatusBar
36829 2004-08-09 15:36 jackson
36831 * ITheme.cs: Add support for drawing status bar and getting status
36834 2004-08-09 15:35 pbartok
36839 2004-08-09 15:34 jackson
36841 * ThemeWin32Classic.cs: Add support for drawing status bar and get
36842 status bar item sizes
36844 2004-08-09 15:21 jackson
36846 * ThemeWin32Classic.cs: Use known colors for default control
36849 2004-08-09 15:12 jackson
36851 * ThemeWin32Classic.cs: Make the default font static, it is static
36852 in control so this doesn't change functionality and creating fonts
36855 2004-08-09 14:56 pbartok
36858 - Added GrabMode enum
36860 2004-08-09 14:55 pbartok
36862 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
36863 - Removed Run method, was only required for initial development
36865 2004-08-09 14:51 pbartok
36867 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
36868 - Implemented GrabWindow/ReleaseWindow methods to allow pointer
36871 2004-08-09 13:48 pbartok
36874 - Fixed default sizing for child windows
36876 2004-08-09 12:56 pbartok
36879 - Added generation of WM_DESTROY message
36880 - Added handling of window manager induced shutdown
36882 2004-08-09 11:31 jackson
36884 * ThemeWin32Classic.cs: New names for control properties
36886 2004-08-09 11:25 jackson
36888 * Control.cs: Use new color names
36890 2004-08-09 11:02 jackson
36892 * XplatUI.cs: Get default window properties from the theme
36894 2004-08-09 11:01 jackson
36896 * ITheme.cs: The theme engine now controls default window
36899 2004-08-09 11:00 jackson
36901 * ThemeWin32Classic.cs: Add default window color properties
36903 2004-08-09 10:17 jackson
36905 * ThemeWin32Classic.cs: Use correct default back color
36907 2004-08-09 10:05 jackson
36909 * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
36912 2004-08-09 09:56 jackson
36914 * XplatUI.cs: Remove defaults, these are handled by the theme now.
36916 2004-08-09 09:54 jackson
36918 * Control.cs: Get default properties from the theme.
36920 2004-08-09 09:53 jackson
36922 * ITheme.cs: Themes now handle default control properties
36924 2004-08-09 09:53 jackson
36926 * ThemeWin32Classic.cs: Themes now handle default control
36927 properties so coloring will be consistent
36929 2004-08-08 16:54 jordi
36931 * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
36933 2004-08-08 15:08 jordi
36935 * XplatUIX11.cs: fixes keyboard crash
36937 2004-08-08 13:47 jordi
36939 * Label.cs: add cvs header info
36941 2004-08-08 12:09 jackson
36943 * ThemeWin32Classic.cs: Add pen_buttonface
36945 2004-08-08 11:52 jordi
36947 * Label.cs, LinkLabel.cs: [no log message]
36949 2004-08-08 11:34 jordi
36951 * ThemeWin32Classic.cs: Use Windows Standard Colours
36953 2004-08-07 17:32 jordi
36955 * TrackBar.cs: throw exceptions of invalid enums values
36957 2004-08-07 17:31 jordi
36959 * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
36962 2004-08-07 16:56 jackson
36964 * HorizontalAlignment.cs: Initial checkin
36966 2004-08-07 13:16 jordi
36968 * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
36971 2004-08-07 13:05 jordi
36973 * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
36974 GetSysColor defines
36976 2004-08-06 18:01 pbartok
36978 * ThemeWin32Classic.cs:
36979 - Fixed some rounding issues with float/int
36981 2004-08-06 18:00 jackson
36983 * DockStyle.cs, AnchorStyles.cs:
36985 Add flags and serializable attributes.
36987 2004-08-06 17:46 pbartok
36990 - Implemented GetParent
36992 2004-08-06 17:18 pbartok
36995 - Fixed some rounding issues with float/int
36997 2004-08-06 17:17 pbartok
36999 * X11Structs.cs, XplatUIX11.cs:
37000 - Fixed Refresh and Invalidate
37002 2004-08-06 15:30 pbartok
37004 * Control.cs, X11Structs.cs, XplatUIX11.cs:
37005 - Fixed recursive loop when resizing
37006 - Improved/fixed redrawing on expose messages
37008 2004-08-06 09:53 jordi
37010 * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
37011 keyboard navigation
37013 2004-08-06 08:02 pbartok
37015 * X11Structs.cs, XplatUIX11.cs:
37016 - Fixed reparenting
37017 - Fixed window border creation
37019 2004-08-05 15:38 pbartok
37022 - Attempted fix for reparenting problems
37024 2004-08-04 15:14 pbartok
37027 - Fixed Invalidation bug (calculated wrong client area)
37028 - Added ClientSize setter
37030 2004-08-04 15:13 pbartok
37033 - Added AutoScale properties
37035 2004-08-04 15:13 pbartok
37038 - Added latest files
37040 2004-08-04 14:11 pbartok
37042 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
37044 - Added Invalidate handling
37046 2004-08-03 17:09 jordi
37048 * XplatUIDriver.cs: fixes spelling mistake
37050 2004-07-27 09:53 jordi
37052 * TrackBar.cs: fixes trackbar events, def classname, methods
37055 2004-07-27 09:29 jordi
37057 * ScrollBar.cs: fixes scrollbar events
37059 2004-07-27 04:38 jordi
37061 * Control.cs: changes to be able to run winforms samples
37063 2004-07-26 11:42 jordi
37065 * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
37066 ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
37068 2004-07-26 05:41 jordi
37070 * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
37071 MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
37074 2004-07-22 09:22 jordi
37076 * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
37077 check link overlapping, implement events, and fixes
37079 2004-07-21 10:28 jordi
37081 * DialogResult.cs, IButtonControl.cs: fixes comments filenames
37083 2004-07-21 10:19 jordi
37085 * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
37086 LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
37087 LinkLabelLinkClickedEventArgs.cs,
37088 LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
37089 XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
37092 2004-07-19 13:09 jordi
37094 * Control.cs, Label.cs: label control re-written: added missing
37095 functionlity, events, and properties
37097 2004-07-19 10:49 jordi
37099 * Control.cs: fixes SetBounds logic
37101 2004-07-19 01:29 jordi
37103 * Control.cs: Call RefreshWindow only if the window has created
37105 2004-07-15 14:05 pbartok
37107 * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
37108 - Implemented ImageList and ImageList.ImageCollection classes
37109 - Added ColorDepth enumeration
37110 - Updated SWF VS.Net project
37112 2004-07-15 11:06 jordi
37114 * XplatUIStructs.cs: added MsgButons enum
37116 2004-07-15 11:03 jordi
37118 * Control.cs: added basic mouse handeling events
37120 2004-07-15 03:38 jordi
37122 * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
37123 Vertical TrackBar control implementation
37125 2004-07-13 09:33 jordi
37127 * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
37129 2004-07-13 09:31 jordi
37131 * Control.cs, Form.cs: commit: new properties and fixes form size
37134 2004-07-09 14:13 miguel
37136 * ProgressBar.cs: Spelling
37138 2004-07-09 11:25 pbartok
37141 - Removed usage of Rectangle for drawing. Miguel pointed out it's
37144 2004-07-09 11:17 miguel
37146 * ProgressBar.cs: 2004-07-09 Miguel de Icaza <miguel@ximian.com>
37148 * ProgressBar.cs: Fixed spelling for `block'
37150 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
37153 Avoid using the += on rect.X, that exposed a bug in the compiler.
37155 2004-07-08 23:21 pbartok
37157 * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
37158 AnchorStyles.cs, Application.cs, ApplicationContext.cs,
37159 BaseCollection.cs, Binding.cs, BindingContext.cs,
37160 BindingMemberInfo.cs, BindingsCollection.cs,
37161 BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
37162 BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
37163 ButtonState.cs, CaptionButton.cs, CheckBox.cs,
37164 ContainerControl.cs, Control.cs, ControlEventArgs.cs,
37165 ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
37166 ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
37167 CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
37168 DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
37169 FrameStyle.cs, GiveFeedbackEventArgs.cs,
37170 GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
37171 HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
37172 IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
37173 InputLanguageChangedEventArgs.cs,
37174 InputLanguageChangedEventHandler.cs,
37175 InputLanguageChangingEventArgs.cs,
37176 InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
37177 InvalidateEventArgs.cs, InvalidateEventHandler.cs,
37178 KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
37179 KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
37180 LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
37181 MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
37182 PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
37183 QueryAccessibilityHelpEventArgs.cs,
37184 QueryAccessibilityHelpEventHandler.cs,
37185 QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
37186 RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
37187 ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
37188 ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
37189 TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
37190 UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
37191 XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
37192 XplatUIX11.cs, lang.cs: