1 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
3 * Control.cs: Corcompare issues.
4 * MessageBox.cs: Implemented missing 2.0 functions.
6 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
8 * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
9 Implemented more 2.0 members.
11 2007-05-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
13 * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
14 null (strange, but it seems to happen when running unit tests).
16 2007-05-30 Andreia Gaita <avidigal@novell.com>
18 * ContainerControl.cs: Set active_control even earlier, before
19 firing any events, and undo it if validation returns false.
21 2007-05-30 Andreia Gaita <avidigal@novell.com>
23 * ContainerControl.cs: Raise Validation and Enter/Leave events
24 even if there is no Form and set active_control earlier, just
25 before firing Enter events (toshok's patches). Fixes #80647.
27 2007-05-30 Jackson Harper <jackson@ximian.com>
29 * TextControl.cs: Redid the pageup/pagedown a little to simplify
30 things and fix bug #81311.
32 2007-05-30 Jackson Harper <jackson@ximian.com>
34 * X11Dnd.cs: Now that we have our own event loop, we need to
35 cancel when we get a mouseup but it won't be accepted.
37 2007-05-30 Chris Toshok <toshok@ximian.com>
39 * DataGrid.cs (set_CurrentCell): guard against negative
42 * DataGridColumnStyle.cs (CheckValidDataSource): just use the
43 array index syntax instead of looping over the property names.
45 * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
46 and set IsInEditOrNavigateMode to false there.
48 2007-05-30 Jackson Harper <jackson@ximian.com>
50 * TreeView.cs: Make sure we don't get a bad visible order when
51 setting to the top node. Fixes some misc crashing in
54 2007-05-30 Andreia Gaita <avidigal@novell.com>
56 * UserControl.cs: Add 2.0 AutoSizeMode
58 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
60 * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
62 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
64 * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
67 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
69 * DataGridColumnStyle.cs: Add char trimming column header text format.
71 2007-05-29 Everaldo Canuto <ecanuto@novell.com>
73 * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name.
76 2007-05-29 Jackson Harper <jackson@ximian.com>
78 * TreeNode.cs: Fix off by one on calculating whether or not a node
81 2007-05-29 Jonathan Pobst <monkey@jpobst.com>
83 * Control.cs: ResumeLayout(false) should recalculate anchor distances.
84 * ScrollableControl.cs: Force an UpdateDistances when we move the
88 2007-05-29 Andreia Gaita <avidigal@novell.com>
90 * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
91 update the page setup screen.
93 2007-05-29 Andreia Gaita <avidigal@novell.com>
95 * PageSetupDialog.cs: Fix landscape mode.
97 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
99 * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
100 IconSizeHorizontalSpacing.
102 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
104 * ListView.cs: The declaration of prev_tooltip_item should be inside
105 a NET_2_0 conditional (avoid a warning).
107 2007-05-28 Andreia Gaita <avidigal@novell.com>
109 * PageSetupDialog.cs: Implement PrintPreview control to display
110 the preview thumbnail. Change unit conversion to use
111 PrinterUnitConvert methods.
113 Note: there is a huge bug in ms.net where the default margins are
114 interpreted as centimeters (?), when in fact they are set in inches. When
115 loading the page setup dialog initially (ms.net), the default margins
116 are set to 1 inch, and the dialog shows them with value 10, when in fact
117 it should be 25 (properly converted). Our dialog doesn't have this bug.
119 * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for
121 * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
123 2007-05-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
126 * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
129 2007-05-28 Andreia Gaita <avidigal@novell.com>
131 * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
132 an IntPtr on csc (it builds fine on mcs, could it be a compiler
133 bug?), convert the ptr to Int32 first.
135 2007-05-28 Jackson Harper <jackson@ximian.com>
137 * X11Dnd.cs: Add a timer, so after drop, if a finish is not
138 recieved, we will exit the dnd tracking loop.
140 2007-05-28 Jackson Harper <jackson@ximian.com>
142 * X11Dnd.cs: Keep tracking until the xdnd finished event is
143 recieved. TODO: I should probably stick a timer on the dropped
144 event, and finish the drag if the XDND Finished event never shows
145 (because some apps don't seem to send it).
147 2007-05-28 Everaldo Canuto <ecanuto@novell.com>
149 * ToolBar.cs: Fix toolbar default width for button with image. Fixes
152 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
154 * MonthCalendar.cs: Only mark the keypresses we actually handle as
157 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
159 * MonthCalendar.cs: Set the size after initializing all the relevant
160 variables. Fixes #81742.
162 2007-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
164 * KeyEventArgs.cs: Fix typo.
166 2007-05-28 Gert Driesen <drieseng@users.sourceforge.net>
168 * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
169 to match MS. Fixed MinDate to only accept value less than or equal
170 to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
171 Removed TODO's that are now verified by unit tests.
173 2007-05-27 Gert Driesen <drieseng@users.sourceforge.net>
175 * TreeNodeCollection.cs: Minor corrections to exceptions to match
178 2007-05-25 Jackson Harper <jackson@ximian.com>
180 * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
181 it's own message loop.
182 * XplatUIX11.cs: Remove some of the dnd hooks
184 2007-05-25 Gert Driesen <drieseng@users.sourceforge.net>
186 * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
187 instead of MinimizedWindowSize.
189 2007-05-25 Jackson Harper <jackson@ximian.com>
191 * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
193 2007-05-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
195 * KeyEventArgs.cs: Added SuppressKeyPress.
196 * Control.cs: Added support for SuppressKeyPress.
198 2007-05-24 Andreia Gaita <avidigal@novell.com>
200 * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
201 problems with PieChart. suppress_validation should not be a counter,
202 if there are several BeginInit calls, the first EndInit will
203 activate validation. Fix exceptions thrown by set_Value.
204 * UpDownBase.cs: ValidateText only if it's the user editing it.
206 2007-05-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
208 * ListControl.cs: FilterItemOnProperty should return the filtered
209 item proeprty even if DataSource is null. The same applies for
210 GetItemText. Fixes #80427.
212 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
214 * Control.cs: If a control doesn't have a parent when it's Dock is
215 set, but it has children, it needs to do a layout. Fixes some nested
216 controls issues. [Fixes bug #81199]
218 2007-05-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
220 * ComboBox.cs: If there are few items in the drop down list, make it
221 the exact size the items need, no bigger. Fixes #81612.
223 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
225 * Application.cs: When we have captured the keyboard for a menu,
226 check for mouse down events in case we need to close the menu.
227 * Control.cs, Form.cs: Remove mouse down checks for menus.
229 2007-05-24 Jackson Harper <jackson@ximian.com>
231 * TextControl.cs: Handle tabs in non multiline mode a little
234 2007-05-24 Jackson Harper <jackson@ximian.com>
236 * TextControl.cs: We need to manually break apart tabbed text and
237 move the tabs, since the system.drawing tabbing mechanism relies
239 * TextBoxBase.cs: Move the caret properly when the user enters a
242 2007-05-24 Jonathan Pobst <monkey@jpobst.com>
244 * ContainerControl.cs: Don't check CanSelect before calling
246 * ToolStrip.cs: Only do implicit mnemonics on MenuStrips. Don't
247 release a KeyboardActive on click if it's not ours.
249 2007-05-23 Andreia Gaita <avidigal@novell.com>
251 * ColumnHeader.cs: Add TypeConverter
253 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
255 * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
257 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
259 * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
261 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
263 * LinkLabel.cs: Implement public Padding property.
265 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
267 * LinkLabel.cs: Implement public FlatStyle.
269 2007-05-23 Jonathan Pobst <monkey@jpobst.com>
271 * Control.cs: Apply patch from George to call parent.PerformLayout
272 when Visible is changed. [Fixes bugs #81118, 81718]
274 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
276 * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
278 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
280 * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
282 2007-05-23 Everaldo Canuto <ecanuto@novell.com>
284 * ContextMenu.cs: Implement Collapse.
286 2007-05-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
288 * ToolBarButton.cs: Implement Name.
290 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
292 * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
293 use current_item, it prevents some NRE. Fixes #81675.
295 2007-05-22 Andreia Gaita <avidigal@novell.com>
297 * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
298 without updating the text.
300 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
302 * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
303 without calling DeleteObject. [Should fix bug #81709]
305 2007-05-22 Jackson Harper <jackson@ximian.com>
307 * RichTextBox.cs: Set the line endings correctly, when flushing
310 2007-05-22 Gert Driesen <drieseng@users.sourceforge.net>
312 * XplatUIX11.cs: MinimumWindowSize on X11 is actually
315 2007-05-22 Jackson Harper <jackson@ximian.com>
317 * TreeView.cs: Setting top with a null node should set to the very
320 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
322 * Form.cs: ShowDialog: destroy the handle when message loop is
323 finished, matches MS behaviour. Refactor parts of WmClose into
324 RaiseCloseEvents, that only raises events if they haven't already
325 been raised. Fixes #81688 and #81521.
326 * Application.cs: Don't call close on the form when exiting a modal
327 loop, it will raise all the (Form)Closed/Closing events again if
328 WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
329 which doesn'r raise any events it they have been raised before.
331 2007-05-22 Jonathan Pobst <monkey@jpobst.com>
333 * Control.cs: Add OnPrint.
334 * ToolStrip.cs: Add GetChildAtPoint.
335 * ToolStripContainer.cs: Add OnRightToLeftChanged.
336 * ToolStripRenderer.cs: Make CreateMirrorImage internal.
338 2007-05-22 Everaldo Canuto <ecanuto@novell.com>
340 * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.
342 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
344 * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
345 isn't visible anymore. Fixes #81651.
347 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
349 * Control.cs: WmShowWindow: Update children's z-order after setting
350 their parent. SetParent may show the window, thereby corrupting
351 z-order, since the window will be shown on top.
352 * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
353 multiple (and redundant) WM_SHOWWINDOW messages.
354 * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
355 event has already been raised.
356 * Form.cs: Change is_changing_visible_state to a counter, since
357 SetVisibleCore can be called recursively. CreateHandle: when
358 creating mdi children, send (De)Activated events.
359 * MdiClient.cs: Update use of is_changing_visible_state.
360 * Application.cs: OnThreadException: Surround exception handling with
361 try/finally to ensure we always reset the error-handling state
364 2007-05-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
366 * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
369 2007-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
371 * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
372 SmallIcon views, now that we have a standarized horizontal spacing.
374 * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
375 4, just like the other views (Match .Net).
377 2007-05-21 Jonathan Pobst <monkey@jpobst.com>
379 * Control.cs: Delay calculating anchor distances until we actually layout.
380 Always query the WM for the actual size and location it put us at instead of
381 only when we send negative values.
382 [Fixes bugs #81694, 81695]
384 2007-05-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
386 * Application.cs: Avoid a possible stack overflow when trying to exit
389 2007-05-19 Marek Safar <marek.safar@gmail.com>
391 * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
394 2007-05-19 Andreia Gaita <avidigal@novell.com>
396 * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
397 * NumericUpDownAcceleration.cs,
398 NumericUpDownAccelerationCollection.cs: Added 2.0
401 2007-05-19 Gert Driesen <drieseng@users.sourceforge.net>
403 * RichTextBox.cs: Recalculate the document after the ScrollBars
404 property is changed. Fixes bug #81681.
406 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
408 * DataObject.cs: Implement 2.0 methods.
410 2007-05-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
412 * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
413 in the center of the checkbox, not in the left-top corner.
416 2007-05-18 Jackson Harper <jackson@ximian.com>
418 * RichTextBox.cs: Recalculate the document after the scrollbars
420 * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
423 2007-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
425 * CreateParams.cs: Make HasWindowManager marginally faster.
426 * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
427 into Hwnd so that other drivers can use it as well.
428 * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
429 the default location from Hwnd. Fixes MDI client windows always
430 showing up at (0,0) in Windows (Win32 won't set the default
431 location since the window styles aren't correct).
433 2007-05-18 Gert Driesen <drieseng@users.sourceforge.net>
435 * TreeView.cs: Modified DoubleBuffered to just use the base
438 2007-05-18 Jackson Harper <jackson@ximian.com>
440 * TreeView.cs: Set the top node to the last child node when
442 - When we get focus, if there is no selected node, use the top
445 2007-05-18 Jonathan Pobst <monkey@jpobst.com>
447 * KeysConverter.cs: Add CanConvertTo.
448 * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
449 * LinkConverter.cs: Added.
451 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
453 * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
454 it prevents error when file dont have write access. Fixes #81669 and #81667.
456 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
458 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar
459 button text. Fixes #79640.
461 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
463 * Control.cs: According to MSDN controls created in the designer theres
464 keyboard accelerators visible by default. So included check for design
465 in ShowKeyboardCuesInternal.
467 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
469 * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox
472 2007-05-18 Everaldo Canuto <ecanuto@novell.com>
474 * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
475 for 1.0, becuse ShowKeyboardCues is protected on 1.0.
477 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
479 * Control.cs: Finish implementation of UI State using WmChangeUIState
480 to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
481 in some controls to check for show_keyboard_cues to draw accell keys "_".
483 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
485 * ListBox.cs: When calculating the horizontal scrollbar
486 in single column mode, don't use values less than 0 for
487 Maximum. Fixes #81474.
489 2007-05-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
491 * ListBox.cs: Throw the some missing exceptions in
492 ListBox.ObjectCollection methods.
494 2007-05-17 Jackson Harper <jackson@ximian.com>
496 * TextBoxBase.cs: Recalculate the document when the word wrap
497 value has changed. This fixes 81488.
499 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
501 * Clipboard.cs: Implement missing GetText overload.
503 2007-05-17 Chris Toshok <toshok@ximian.com>
505 * Control.cs (CheckDataBindings): remove the binding_context arg
508 * CurrencyManager.cs (OnItemChanged): fix this now that
509 BindingManagerBase is fixed. also remove the comment telling where
510 the fix should go. We set transfering_data to true/false around
511 the call to PushData to keep UpdateIsBinding from being called.
512 (ListChangedHandler): remove the extra OnMetaDataChanged call for
513 PropertyDescriptorAdded in the 1.1 case. The extra call is
514 actually generated by System.Data generating 2 metadata changed
515 events of its own per column add. The fix should go there. Add a
516 comment to that affect in our test's Assert.Ignore.
518 * BindingManagerBase.cs: Rework PullData and PushData slightly.
519 we keep a boolean flag (transfering_data) that keeps us from
520 calling UpdateIsBinding multiple times if we re-enter either of
523 * ControlBindingsCollection.cs (AddCore): remove the
524 binding_context arg to binding.Check.
526 * Binding.cs (IsBinding): don't check if we're binding here, just
527 return our cached value. we update it in UpdateIsBinding.
528 (Check): don't take the binding_context arg, we'll just use our
529 control's. Also, for some reason MS doesn't use the data member
530 field when getting the bindingmanager for this binding. it just
531 uses the datasource. Make this method callable multiple times,
532 and only do the is_null_desc stuff if manager.Position != -1 (so
533 we don't get an exception accessing manager.Current).
534 (UpdateIsBinding): move the code from IsBinding here.
535 (PositionChangedHandler): call Check here to we can initialize
536 things that require a non- -1 position.
538 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
540 * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
543 2007-05-17 Andreia Gaita <avidigal@novell.com>
545 * TabControl.cs: Add 2.0 methods and events, including
546 OnEnter / OnLeave and raises it for tabpages (fixes #79869)
547 * TabPage.cs: Add 2.0 methods
549 2007-05-17 Everaldo Canuto <ecanuto@novell.com>
551 * Control.cs: Implement WmUpdateUIState, show_focus_cues and
552 keyboard_cues is properly handled by message method.
554 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
556 * TreeViewImageIndexConverter.cs: Add 2.0 methods.
558 2007-05-17 Jonathan Pobst <monkey@jpobst.com>
560 * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
562 2007-05-16 Everaldo Canuto <ecanuto@novell.com>
565 - WmUpdateUIState added to handle state changes, it make call to
566 OnChangeUICues event.
567 - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
570 2007-05-16 Jonathan Pobst <monkey@jpobst.com>
572 * ImageKeyConverter.cs: Added.
573 * TreeViewImageKeyConverter.cs: Added.
575 2007-05-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
577 * ToolTips.cs: Update Text if SetToolTip is called for a control
578 already showing the tooltip, as well as restarting its timer; show
579 tooltip if we are inside the control bounds by the time of calling
580 SetToolTip. Inside ShowTooltip remove the check to not show the
581 tooltip again for the active control (it is allowed by .Net to
582 show the tooltip on the same control multiple times).
584 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
586 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
588 2007-05-16 Andreia Gaita <avidigal@novell.com>
590 * ContainerControl.cs: only process tab key if there are no
591 modifier keys present, otherwise the control does the
592 tab processing, if it needs to. Fixes #81622
593 * TabControl.cs: Fixes calculation for which tab to select on
596 2007-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
598 * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
600 2007-05-15 Jonathan Pobst <monkey@jpobst.com>
602 * Control.cs: Make IsInputCharInternal to allow controls to
603 override it and still match MS API.
604 * TextBoxBase.cs: Override IsInputCharInternal and always
608 2007-05-15 Jackson Harper <jackson@ximian.com>
610 * TextBox.cs: Disable some of the menu options when using a
613 2007-05-15 Jackson Harper <jackson@ximian.com>
617 * RichTextBox.cs: Some new 2.0 methods
619 2007-05-15 Gert Driesen <drieseng@users.sourceforge.net>
621 * FileDialog.cs: On 1.0 profile, do not support multidotted
624 2007-05-14 Jackson Harper <jackson@ximian.com>
626 * TextBoxBase.cs: Implement some of the new 2.0 methods.
627 * RichTextBox.cs: We need to override these methods on 2.0.
628 * MaskedTextBox.cs: These are implemented now
629 * TextControl.cs: This was off by one.
631 2007-05-14 Jackson Harper <jackson@ximian.com>
633 * TextControl.cs: Because the line endings are including in the
634 text, we don't need to add them in anymore.
636 2007-05-11 Everaldo Canuto <everaldo@simios.org>
638 * ToolBar.cs: Fix autosize and get it working only after hadle is created,
639 also prevent redraw in set_autosize if handle is not created. Fixes #81523.
641 2007-05-11 Everaldo Canuto <everaldo@simios.org>
643 * ToolBar.cs: Adjust size to default size when button theres no text and
644 image, it fixes remaining issues from #81524.
646 2007-05-11 Everaldo Canuto <everaldo@simios.org>
649 - When not flat call redraw to recalculate sizes on creare handle to match
651 - Revert 77220 because it causes some regressions in toobar
654 2007-05-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
656 * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
657 now actually enters a usable state.
659 2007-05-11 Everaldo Canuto <everaldo@simios.org>
661 * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
662 calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
665 2007-05-11 Everaldo Canuto <everaldo@simios.org>
667 * ToolBar.cs: Save default_size on create handle to use later for buttons
668 without text, needed to mimic win32 behavior.
670 2007-05-11 Everaldo Canuto <everaldo@simios.org>
672 * ToolBar.cs: Fix button layour to best fit width or height according to
673 vertical or not. Fixes #81524.
675 2007-05-10 Everaldo Canuto <everaldo@simios.org>
677 * ToolBarButton.cs: When change style call ToolBar.Redraw to update
678 toolbar size info because different styles theres different sizes.
681 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
683 * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
684 if we are using checkboxes, checked is true, and we have less
685 than two images in StateImageList; for the 1.1 in the same scenario
686 draw the first image if we have at least one image in StateImageList.
687 Fixes part of #81191.
689 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
691 * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
692 the owner's Items collection on merge.
694 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
696 * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
697 * ToolStripItemCollection.cs: Lots of fixes to when events get called
698 and parent/owner gets changed based on gert's unit tests.
700 2007-05-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
702 * MaskedTextBox.cs: Started implementing parts of it.
704 2007-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
706 * ListView.cs: When clicking the checkbox on the items
707 take into account the double clicks even if we have only
708 one image in StateImageList (only for 1.0/1.1). Also
709 generate an extra change of checked state when we receive
710 the second click on checkbox (match .Net behaviour).
711 Fixes part of #81191.
713 2007-05-10 Everaldo Canuto <everaldo@simios.org>
715 * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
717 2007-05-10 Jonathan Pobst <monkey@jpobst.com>
719 * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
720 even if OnLoad is overriden and base.OnLoad is not called.
723 2007-05-10 Andreia Gaita <avidigal@novell.com>
725 * TableLayoutSettings.cs: A big doh! fix and bowing down of head in
726 shame. (I blame my ever-persisting and annoying cold)
728 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
730 * ListView.cs: Don't eat navigation keys. Let them flow through to
731 KeyDown/KeyPress routines. [Fixes bug #81569]
733 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
735 * ListView.cs: When handling keys for selecting the item based off
736 keyboard input, do not consider keys pressed with Alt or Control. Also,
737 correctly handle keys when the Shift key is down. [Fixes bug #81578]
739 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
741 * Control.cs: When using UseWaitCursor, we have to store the requested
742 Cursor to use when UseWaitCursor is turned off.
744 2007-05-09 Jonathan Pobst <monkey@jpobst.com>
746 * Control.cs: Implement PreProcessControlMessage. Default IsInputChar
748 * Application.cs: Use PreProcessControlMessage instead of
750 * PreProcessControlMessage.cs: Make internal for 1.1.
752 2007-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
754 * Control.cs: Add InternalContains focus property, which hast the same
755 functionality of ContainsFocus, but also including implicit controls.
756 * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
757 since we need to know if the focus is contained in our implicit
758 ItemControl when calculating Layout. Fixes part of #80888.
760 2007-05-08 Everaldo Canuto <everaldo@simios.org>
762 * ToolTip.cs: Remove center form string alignment as it must be align to
765 2007-05-08 Jonathan Pobst <monkey@jpobst.com>
767 * ToolStripItemCollection.cs: Set the new item's parent and owner
768 in Insert like we do in Add. [Fixes bug #81568]
770 2007-05-08 Jackson Harper <jackson@ximian.com>
772 * TreeView.cs: GotFocus differences between 1.1 and 2.0.
773 - Off by one error in SetTop
774 - Disable DoubeBuffering
776 2007-05-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
778 * ScrollableControl.cs: ScrollIControlntoView: we now only move the
779 control as much as necessary in order to make it entirely visible,
780 instead of centering the control in the container (matches MS
781 behaviour). CalculateCanvasSize: we need to take the current scroll
782 position into account when calculating the maximum canvas,
783 otherwise the following scenario will fail: resize so that the
784 scrollbars appear, use the scrollbars to scroll, resize again
785 smaller, and now the canvas size is too small. Recalculate: when
786 showing scrollbars make sure they start off at 0, and try to scroll
787 the active control into view. Fixes #79540. HandleScrollBar: don't
788 scroll anywhere if the scrollbar isn't visible.
790 2007-05-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
792 * ListView.cs: When focus changed, call Layout/Invalidate
793 in the focused item to update the selected state (should show
794 entire label when ListView is focused, and a part of it if is not).
795 * ListViewItem.cs: When doing layout for LargeIcon, take into account
796 for displaying the entire label not only the Focused state of the
797 item, but also the Focused state of the ListView (match .Net
800 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
802 * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
803 Implement UseWaitCursor.
805 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
806 Applying contributed patch from Sergey Volk.
808 * Clipboard.cs: Implement SetDataObject retry logic and new overload
810 * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
812 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
814 * Control.cs: Implement DrawToBitmap.
816 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
817 Applying contributed patch from Stefan Noack.
819 * Control.cs: Add [Get|Set]AutoSizeMode.
821 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
823 * MdiClient.cs: Unmerge menus when the last child is closed.
825 2007-05-07 Jonathan Pobst <monkey@jpobst.com>
827 * ToolStrip.cs: Do not call BeginMerge on DropDowns.
828 * ToolStripManager.cs: Call Merge on DropDowns.
831 2007-05-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
833 * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
835 * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
836 visibility. We can't create forms visible, since we have to set the
837 owner before making the form visible (otherwise Win32 will do
838 strange things with task bar icons). The problem is that we set the
839 internal is_visible to true before creating the control, so
840 is_changing_visible_state is the only way of determining if we're
841 in the process of creating the form due to setting Visible=true -
842 this works because SetVisibleCore explicitly makes the form
843 visibile afterwards anyways. Fixes #80775.
845 2007-05-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
847 * ThemeWin32Classic.cs: When drawing ListViewItems,
848 use StringTrimming.EllipsisCharacter if the view is Tile, Details,
849 or LargeIcon _and_ item is not focused (match .Net behaviour).
851 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
853 * Control.cs, Form.cs: Fix some obsolete method warnings.
855 2007-05-04 Jonathan Pobst <monkey@jpobst.com>
857 * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
858 * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
860 2007-05-04 Andreia Gaita <avidigal@novell.com>
862 * ContainerControl.cs: Fix active_control attribution when going
863 up the parent chain so that the first parent container gets the control
864 and the rest of the parent containers get the child containers (skips
865 non-containers). Fixes #80729
867 2007-05-04 Randolph Chung <tausq@debian.org>
869 * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
872 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
874 * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
875 takes a size parameter, since the CreateParam's size isn't true for
876 minimized forms. Fixes #81518,
878 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
880 * Form.cs: Add OnDeactivateInternal.
881 * MdiClient.cs: Raise Deactivate event. Fixes #81409.
883 2007-05-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
885 * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
886 accessing the parent. Fixes #81508.
888 2007-05-03 Chris Toshok <toshok@ximian.com>
890 * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
891 2.0 block, pass listposition + 1 to ChangeRecordState when a row
892 was added before the current listposition. Fixes the
893 TestInsertRowBeforeCurrent unit test.
895 2007-05-03 Jonathan Pobst <monkey@jpobst.com>
897 * Application.cs: Add RaiseIdle.
898 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
899 XplatUIX11.cs: Implement RaiseIdle.
901 2007-05-02 Jonathan Pobst <monkey@jpobst.com>
902 corcompare work: N - Z
906 * ScrollableControl.cs
910 * SystemInformation.cs
912 * TableLayoutControlCollection.cs
913 * TableLayoutPanel.cs
918 * ToolStripComboBox.cs
919 * ToolStripContainer.cs
920 * ToolStripContentPanel.cs
921 * ToolStripDropDown.cs
922 * ToolStripDropDownItem.cs
923 * ToolStripDropDownMenu.cs
925 * ToolStripItemCollection.cs
926 * ToolStripMenuItem.cs
928 * ToolStripSplitButton.cs
931 * TreeNodeCollection.cs
932 * TreeNodeMouseHoverEventArgs.cs
935 2007-05-01 Everaldo Canuto <everaldo@simios.org>
937 * ContextMenu.cs: Add public method Show with alignment property to 2.0
938 stuff. Thanks aatdark for the patch.
940 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
942 * GridItem.cs: Implement 2.0 Tag property.
944 2007-05-01 Frederik Carlier <frederik.carlier@carlier-online.be>
946 * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
947 count instead of Nodes.Length. [Fixes bug #81448]
949 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
951 * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
954 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
955 corcompare work: A - M
956 * BindingNavigator.cs
967 2007-05-01 Jonathan Pobst <monkey@jpobst.com>
969 * Application.cs: Give toolstrips a chance to process mnemonics.
970 * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
971 ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
972 ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
974 2007-05-01 Jackson Harper <jackson@ximian.com>
976 * TextBoxBase.cs: Better preferred height, FixedSingle gets the
978 - Don't set the BoundsSpecified
980 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
982 * Application.cs: When using the toolstrip shortcut mechanism, allow the
983 message to pass through to a regular control if it hosted by a toolstrip.
984 * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
985 ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
987 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
989 * TextRenderer.cs: Use the flags argument when using the MeasureString
992 2007-04-30 Jonathan Pobst <monkey@jpobst.com>
994 * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
995 the MDI menu item. [Fixes bug #81483]
997 2007-04-30 Gert Driesen <drieseng@users.sourceforge.net>
999 * DataGridViewColumn.cs: Initialize value of headercell to zero-length
1000 string. When setting Name to null, use zero-length string instead.
1002 2007-04-29 Andreia Gaita <avidigal@novell.com>
1004 * TabControl.cs: Implement missing 2.0 methods (SelectTab,
1005 DeselectTab). Implement missing 2.0 TabPageCollection methods
1006 (Add, ContainsKey, RemoveByKey, IndexOfKey)
1008 2007-04-29 Pedro MartÃnez Juliá <pedromj@gmail.com>
1010 * DataGridViewColumn.cs: Make HeaderText take preference over Name.
1012 2007-04-29 Gert Driesen <drieseng@users.sourceforge.net>
1014 * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
1015 Fixes bug #81479. Include details of exception when LoadFile fails.
1017 2007-04-28 Alan McGovern <alan.mcgovern@gmail.com>
1019 * DrawListViewSubItemEventArgs.cs: Added missing setter
1021 2007-04-27 Andreia Gaita <avidigal@novell.com>
1023 * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and
1024 Hide methods (not complete). Implement missing 2.0 OnPopup event.
1026 2007-04-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1028 * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
1029 removed in ly last commit (it was breaking the Label edit feature).
1031 * ThemeWin32Classic.cs: When drawing a ListViewItem use
1032 StringAlignment.Near for LineAlignment (match .Net).
1034 2007-04-27 Andreia Gaita <avidigal@novell.com>
1036 * TabControl.cs: Change SetTab so it adds the tabpage to the list
1037 of controls if it isn't already there - was blowing up when doing
1038 tabcontrol.TabPages[i]=new TabPage().
1039 SetTab now does a replace by removing the page at the index.
1040 Add a new InsertTab method that inserts a page in a given index
1041 instead of replacing.
1042 Implements TabPageCollection.Insert(int, TabPage).
1044 2007-04-27 Chris Toshok <toshok@ximian.com>
1046 * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
1047 internal handler that can be invoked from our subclasses.) Also,
1048 add a comment to PushData about how we need to fix it.
1050 * CurrencyManager.cs: tons of changes here. trying to get things
1051 matching the behavior of .net wrt event orders (ItemChanged,
1052 CurrentChanged, PositionChanged.) I've implemented a private .net
1053 symbol (ChangeRecordState) that appears in stack traces because
1054 it's actually easier to do this than to effective inline all its
1055 various behaviors at every call site.
1057 * RelatedPropertyManager.cs: guard against an exception here by
1058 not using parent.Current if the position is set to -1 (if the
1059 parent datasource is cleared, for instance).
1061 * Binding.cs: don't parse data in PushData (this might be wrong,
1062 but it jives with MS's behavior.) Also, don't call PushData when
1063 we get a CurrentChanged event.
1065 2007-04-27 Andreia Gaita <avidigal@novell.com>
1069 WebBrowserSiteBase.cs,
1070 HtmlDocument.cs: Added stubbed out classes, no real implementations
1073 2007-04-27 Everaldo Canuto <everaldo@simios.org>
1075 * MainMenu.cs: In draw method without parameters call draw method with
1076 PaintEvent, another one (just rect) adjust rectangle and we dont need it
1077 as Rect property is already adjusted. Fixes #80694.
1079 2007-04-27 Jonathan Pobst <monkey@jpobst.com>
1081 * Application.cs: Need to handle keyboard menu deselection here.
1082 * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
1083 navigation, allowing keyboard to work on X11.
1084 * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
1086 2007-04-27 Everaldo Canuto <everaldo@simios.org>
1088 * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
1089 menu bar. It fixes some drawing issues in menu bar.
1091 2007-04-27 Everaldo Canuto <everaldo@simios.org>
1093 * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before
1094 Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
1095 when <alt> key is pressed.
1097 2007-04-26 Everaldo Canuto <everaldo@simios.org>
1099 * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries, Gtk as
1100 example just set visible to false and make this prevent from other problems.
1101 In SystrayAdd always remove pending expose. Fixes #81072.
1103 2007-04-26 Marek Safar <marek.safar@gmail.com>
1105 * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
1108 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
1110 * ListView.cs: Added three missing 2.0 events and corresponding
1111 EventHandlers. Added the OwnerDraw property.
1112 * DrawListViewColumnHeaderEventHandler.cs: fixed typo
1114 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
1116 * DrawListViewItemEventArgs.cs
1117 * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
1119 2007-04-26 Alan McGovern <alan.mcgovern@gmail.com>
1121 * TextControl.cs: Fixed typo in constructor
1123 2007-04-26 Jonathan Pobst <monkey@jpobst.com>
1125 * Application.cs: Create a shortcut path so that currently selected
1126 MenuStrips can intercept keyboard events without having focus.
1127 * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
1128 * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
1129 ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
1130 keyboard navigation (arrows, tab, enter, esc) on Windows. Still need to
1131 generate WM_SYSCOMMAND message in X11 for other platforms.
1132 * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
1133 in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
1134 * ToolStripSplitButton.cs: Add DefaultItem property.
1136 2007-04-26 Everaldo Canuto <everaldo@simios.org>
1138 * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
1139 fixes some menu draw problem on Windows with border diferent from default
1140 it also fixes #81403.
1142 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
1144 * Form.cs: Refactor WndProc into separate methods, just like Control is
1147 2007-04-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
1149 * Control.cs: set_Text: move the call to the driver into a seperate
1150 virtual method so that Form can override it.
1151 * MaskedTextBox.cs: Corcompare fixes.
1152 * Form.cs: Override UpdateWindowText and only update the styles if the
1153 form has been shown (fixes #81405).
1155 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
1157 * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
1158 WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
1159 WM_ACTIVATEAPP. This fixes menus not disappearing on X11 when
1160 the form lost focus or another control was clicked.
1162 2007-04-25 Gert Driesen <drieseng@users.sourceforge.net>
1164 * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
1167 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
1169 * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
1170 DrawListViewItemEventHandler.cs,
1171 DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
1173 * X11Structs.cs: More ToString implementation.
1175 2007-04-25 Jonathan Pobst <monkey@jpobst.com>
1177 * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
1178 * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
1180 2007-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
1182 * Control.cs: Only raise OnVisibleChanged if we're not recreating the
1184 * FormCollection.cs: Don't add a form if it's already in the
1186 * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
1187 according to behaviour and MSDN. The ownerWin32 is the active
1188 window at the moment when we call ShowDialog, not the context's
1189 main form (the context's main form may open another form that opens
1190 a form with ShowDialog, the win32 owner is the second form). Add
1191 and remove forms to the Application.OpenForms in other places to
1192 better match MS behaviour. Add an IsActive property that raises
1193 On(de)Activated only if the active state has changed (we were
1194 raising OnDeactivated before OnActivated while creating forms).
1195 * Application.cs: Refactor Enabling/Disabling of windows for modal
1196 dialog loops out to separate methods, and restore the thread
1197 context when we quit the method. Fixes #81407.
1199 2007-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1201 * ListView.cs: In ItemControl.HandleClicks, also fire
1202 2.0 MouseClick or MouseDoubleClick events on the parent,
1203 not only the Click/DoubleClick events.
1205 2007-04-24 Andreia Gaita <avidigal@novell.com>
1207 * TableLayoutSettings.cs:
1208 - Added a GetControls method and a support structure to help the
1209 TypeConverter to enumerate the controls for serialization.
1210 - Added a new serialization constructor.
1211 - Added a isSerialized flag initialized to true on the
1212 serialization constructor so that the TableLayoutPanel.LayoutSettings
1213 setter does not throw the designed NotSupportedOperation exception
1214 when the object is built through deserialization.
1215 - Implemented GetObjectData
1217 * TableLayoutPanel.cs: Added check on LayoutSettings.
1219 2007-04-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1221 * ListView.cs: Report Click and DoubleClick events to the parent
1222 from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
1223 from breaking the click count state when using dialog forms (Control
1224 reports the clicks in a similar fashion). In the previous behaviour
1225 the last WM_LBUTTONUP message in a double click was sent to the
1226 ListView's form, instead of the ListView, which was breaking the click
1227 count for it. Fixes #80387.
1229 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
1231 * BindingNavigator.cs : fixed bugs revealed by new nunit tests
1233 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
1235 * ToolStripDropDownItem.cs: Lazy initialize the DropDown. This prevents
1236 us from created dropdowns for menu items that do not have subitems.
1237 * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
1238 Check HasDropDownItems before calling DropDown so a dropdown will not be
1239 created if it isn't needed.
1241 2007-04-24 Jackson Harper <jackson@ximian.com>
1243 * TreeView.cs: Set the first node to the selected node when we get
1244 focus if there is no selected node.
1246 2007-04-24 Andreia Gaita <avidigal@novell.com>
1248 * MimeIcon.cs: remove using blocks so that image streams are
1249 not disposed of. Fixes #80151
1251 2007-04-24 Jackson Harper <jackson@ximian.com>
1253 * TextBoxBase.cs: Fixup the height of textboxes when the control
1256 2007-04-24 Jonathan Pobst <monkey@jpobst.com>
1258 * ToolStrip.cs: Fully implement GetNextItem. Call OnParentRightToLeftChanged
1259 for each ToolStripItem when the parent's RightToLeftChanged is called.
1261 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
1263 * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
1265 * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
1266 property, so that the setter can be overriden too.
1267 * TextBox.cs: Change GetContextMenuInternal() to use
1268 ContextMenuInternal.
1270 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
1272 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
1275 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
1277 * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
1280 2007-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
1282 * MaskedTextBox.cs: Commit this so nobody else starts working on it and
1283 avoid duplicate work. Mostily skeleton code, it's not working at
1286 2007-04-20 Leszek Ciesielski <skolima@gmail.com>
1288 * NotifyIcon.cs : stub for MouseClick event
1289 * Application.cs: stub for SetUnhandledExceptionMode
1291 2007-04-24 Alan McGovern <alan.mcgovern@gmail.com>
1293 * BindingNavigator.cs : Initial (partial) implementation
1295 2007-04-23 Jackson Harper <jackson@ximian.com>
1297 * TreeView.cs: Do not create the treeview's handle when setting
1298 the scroll position.
1299 - ExpandAll needs to compute the scrollbars so it knows which
1300 position to set the bar too.
1302 * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
1304 2007-04-23 Jackson Harper <jackson@ximian.com>
1306 * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
1309 2007-04-23 Jonathan Pobst <monkey@jpobst.com>
1311 * ToolStripItem.cs: Make GetImageSize internal.
1312 * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
1313 need to draw an item. Fixes a reported issue where images on menus
1314 that were not 16x16 were drawing incorrectly.
1316 2007-04-21 Miguel de Icaza <miguel@novell.com>
1318 * Padding.cs: Use the converter, fixes the resgen2 issue with
1321 2007-04-21 Jackson Harper <jackson@ximian.com>
1323 * TreeView.cs: Dont try to unhighlight the selected node if there
1324 isn't a selected node.
1326 2007-04-21 Jackson Harper <jackson@ximian.com>
1332 * TreeView.cs: Use the InternalBorderStyle property to set the
1333 initial border style, this forces the client rectangle to be sized
1336 2007-04-20 Jackson Harper <jackson@ximian.com>
1338 * TreeView.cs: Simplify scrolling to the last node after expanding
1340 - Fix some off by ones with setting the bottom.
1342 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
1344 * Control.cs: Use DefaultSize for Size, calculate ClientSize from
1345 that. We were incorrectly doing it the other way around. Also,
1346 update ClientSize if we change the BorderStyle before the control
1349 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
1351 * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
1352 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
1353 XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
1354 * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
1355 DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
1356 Caption to CaptionHeight.
1357 * XplatUIX11.cs: Renamed Caption to CaptionHeight.
1358 * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
1359 and FixedFrameBorderSize to return value from current XplatUI driver.
1360 * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
1361 CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
1362 and FixedFrameBorderSize using win32 API. Renamed Caption to
1364 * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
1365 * SystemInformation.cs: Fixed typo in BorderSize.
1367 2007-04-20 Gert Driesen <drieseng@users.sourceforge.net>
1369 * XplatUI.cs: Added MenuAccessKeysUnderlined.
1370 * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
1371 * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
1373 * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
1374 value from XplatUI driver.
1375 * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
1376 SystemParametersInfo.
1377 * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
1379 * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
1382 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
1384 * XplatUIX11.cs, Hwnd.cs: Remove warnings.
1386 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
1388 * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
1390 2007-04-20 Jonathan Pobst <monkey@jpobst.com>
1392 * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
1393 MenuStrips that contain ToolStripSeparators.
1395 2007-04-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
1397 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
1398 DefineStdCursorBitmap.
1399 * Cursor.cs: Add an internal constructor so that the Cursor knows if it
1400 has been created off a standard cursor. This is used to get a
1401 bitmap of the standard cursor when Draw or DrawStretched is called
1402 in order to draw the cursor.
1403 * X11Structs.cs: Added XcursorImage and XcursorImages.
1404 * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
1405 DefineStdCursorBitmap.
1406 * Cursors.cs: Update all relevant creations of Cursor to use the new
1407 internal constructor.
1409 2007-04-19 Jackson Harper <jackson@ximian.com>
1411 * TextBox.cs: Move the has_been_focused into the base control, so
1412 some of the text adding methods can manipulate it (probably time
1413 for a better name for this flag too).
1414 - Call a new version of selectall that doesn't scroll
1415 * TextBoxBase.cs: When we append text, if the document is empty,
1416 don't scroll. If the document has text already, we scroll to the
1417 end of the appended text.
1418 - When the text is changed, we reset the has_been_focused, so the
1419 next time the control gets focused, all the text is selected.
1421 2007-04-19 Jackson Harper <jackson@ximian.com>
1423 * TextControl.cs: Move the margins to the document, add a method
1424 so the margin sizes can be updated.
1425 * TextBoxBase.cs: When the border style is changed, update the
1428 2007-04-19 Jonathan Pobst <monkey@jpobst.com>
1430 * Control.cs: Respect DefaultPadding.
1431 * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
1432 padding into account.
1433 * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.
1435 2007-04-19 Jackson Harper <jackson@ximian.com>
1437 * TextControl.cs: Oops, we need to use the ClientRect not the
1440 2007-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1442 * ListView.cs: In ItemControl.ItemsMouseDown, take into
1443 account the double clicks when CheckBoxes are used and
1444 the pointer is inside the checkbox. Fixes part of #81191.
1446 2007-04-18 Jackson Harper <jackson@ximian.com>
1448 * TextControl.cs: Pressing the end key shouldn't move the caret
1449 past the line ending.
1450 * TextBoxBase.cs: We can still delete if we are in the line
1451 ending and the combine will just kill the existing line ending.
1453 2007-04-18 Jackson Harper <jackson@ximian.com>
1455 * TextControl.cs: We can't move lines, then invalidate their
1456 bounds, we need to get the old bounds and combine that with the
1458 * TextBoxBase.cs: Before combining two lines for a delete, we need
1459 to invalidate the area of the old line, since that will be moved
1460 in the combine operation.
1462 2007-04-18 Everaldo Canuto <everaldo@simios.org>
1464 * LinkLabel.cs: In OnPaint invoke draw background to fix problems
1465 with transparent background. Fixes #80482.
1467 2007-04-18 Jonathan Pobst <monkey@jpobst.com>
1469 * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
1470 * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
1473 2007-04-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
1475 * CreateParams.cs: Add a couple of helper methods and do a less string
1476 concatenation in ToString.
1477 * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
1478 overload that takes a Control parameter, since this method may be
1479 called before a control is assigned to the hwnd (from
1480 CreateWindow), and update CreateWindow to use the new overload. In
1481 GetMenuOrigin subtract the title bar from the y position if the
1482 form has a window manager (since we're painting it and not X).
1483 * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
1484 CreateParams to calculate the origin (since border sizes may vary).
1485 In ScreenToMenu only subtract the title height if we actually have
1487 * MdiWindowManager.cs: Override MenuHeight to always return 0, since
1488 mdi children never have menus of themselves.
1489 * InternalWindowManager.cs: Implement menu handling like form does.
1490 Added GetMenuOrigin to calculate the menu origin, can't use the
1491 CreateParams from the form like normally since it's lying.
1492 * Hwnd.cs: Implement GetBorderSize better (in the sense more
1493 windows-like) and add Inflate and comparison operators to the
1494 Borders type. When calculating MenuOrigin and it's a form with a
1495 window manager, use the window manager to calculate it.
1497 2007-04-17 Chris Toshok <toshok@ximian.com>
1499 * Control.cs (CreateControl): turns out in 2.0 we don't need this
1500 OnBindingContextChanged thing here. It's only generated from
1501 ContainerControl.OnCreateControl. Fixes a newly written unit test
1502 - BindingTest.BindingContextChangedTest4.
1504 2007-04-17 Jackson Harper <jackson@ximian.com>
1506 * ScrollBar.cs: When setting values, make sure the current
1507 position stays within the new values range.
1509 2007-04-17 Chris Toshok <toshok@ximian.com>
1511 * Control.cs (CreateControl): talk about a bizarre corner case.
1512 Don't emit OnBindingContextChanged here if we're a parentless
1513 control (i.e. if we're a form.). Fixes
1514 BindingTest.BindingContextChangedTest2.
1516 2007-04-17 Everaldo Canuto <everaldo@simios.org>
1518 * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior
1519 from win32. Fixes #81255.
1521 2007-04-17 Everaldo Canuto <everaldo@simios.org>
1523 * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
1524 already present in CalculateButtonTextAndImageLayout.
1526 2007-04-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
1528 * XplatUIX11.cs: When setting min/max size for a window we need to
1529 translate the coordinates to x coordinates. Create an overload of
1530 SetWindowMinMax that takes a CreateParams handling this, and change
1531 SetWMStyles to call this function (can't use Control.FromHandle in
1532 the SetWindowMinMax to get the control/CreateParams from the handle
1533 because the handle might not have been assigned to the control
1536 2007-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1538 * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
1539 if StateImageList is non-null and it has less than two items (match MS
1540 behaviour). Also, in HandleNavKeys handle the Space key, calling
1541 the new ToggleItemsCheckState method, which tries to change the
1542 checked state of the selected items. Fixes part of #81191.
1544 2007-04-16 Jackson Harper <jackson@ximian.com>
1546 * RichTextBox.cs: namespace cleanup.
1548 2007-04-16 Everaldo Canuto <everaldo@simios.org>
1550 * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
1552 2007-04-16 Everaldo Canuto <everaldo@simios.org>
1555 * Control.cs: Call invalidate in set_Region.
1557 * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
1560 2007-04-16 Jackson Harper <jackson@ximian.com>
1562 * TextBoxBase.cs: When enter is pressed, we need to update all
1563 lines below the current.
1565 2007-04-16 Jonathan Pobst <jpobst@monkey.com>
1567 * MdiClient.cs: Implement implicit menu merging for MDI
1568 children. When a child form is active, if it has a menustrip
1569 and the parent form has a MainMenuStrip, automatically merge
1572 2007-04-15 Andreia Gaita <avidigal@novell.com>
1574 * TabControl.cs: Refactored sizing methods to not repeat
1575 code all over the place. Tab bounds are now calculated
1576 as if alignment is top and single line, and only when
1577 setting the bounds are the positions adjusted according
1578 to alignment. Replaced hardcoded positions, spacings and
1579 paddings by getting the values the ThemeEngine.
1582 * Theme.cs: Change TabControl properties and methods so
1583 that all start with TabControl*. Added more properties
1584 to help remove hardcoded values on tabcontrol.
1585 Add CPDrawBorder3D declaration so the Theming classes
1588 * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
1590 * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
1591 on the Theming namespace, and call the appropriate methods here.
1592 Change CPDrawBorder3D to public.
1594 2007-04-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1596 * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
1597 the control after firing the OnMouseUp event, instead of sending
1598 the message before the mentioned event. This is so we can match the
1599 MS behaviour. Fixes part of #80385.
1601 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
1603 * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
1604 RightToLeft property.
1606 2007-04-13 Jonathan Pobst <monkey@jpobst.com>
1608 * ToolStrip.cs: Add properties and internal methods to support merging.
1609 * ToolStripItem.cs: Add MergeAction and MergeIndex.
1610 * ToolStripItemCollection.cs: Add Insert and Remove methods that do
1611 not trigger reparenting or layouts.
1612 * ToolStripManager.cs: Add Merge and RevertMerge methods.
1613 * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
1614 is hosting the overflow menu.
1616 2007-04-13 Jackson Harper <jackson@ximian.com>
1618 * TextControl.cs: Set the line ending correctly for the first
1621 2007-04-13 Sebastien Pouliot <sebastien@ximian.com>
1623 * Theme.cs: Update GetMethod to get the new definition for
1624 KnownColors.Update (and fix theme color updates).
1626 2007-04-12 Everaldo Canuto <everaldo@simios.org>
1628 * MessageBox.cs: Fix some test and button position.
1630 2007-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1632 * Form.cs: Consider the implicit controls in
1633 GetRealChildAtPoint. We need it since this method
1634 is called on Form when handling the some messages in
1635 WndProc, and need to consider those implicit ones too.
1638 2007-04-12 Jonathan Pobst <monkey@jpobst.com>
1640 * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
1641 if there are no ShortcutKeys set.
1642 * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
1643 set, use it when painting.
1645 2007-04-12 Jackson Harper <jackson@ximian.com>
1647 * TextControl.cs: Fix some off-by-one issues in line duplication
1648 and insertion in the undo manager. Also, overwrite the first tag
1649 of a line on insert, if it is just a zero lengthed tag. This
1650 prevents us from getting an extra stranded tag at the beginning of
1653 2007-04-11 Everaldo Canuto <everaldo@simios.org>
1655 * Label.cs: Remove check for handle created in CalcAutoSize, we need
1656 to calculated proper size including when handle was not created yet.
1658 2007-04-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
1660 * MdiWindowManager.cs: When moving a form, allow the form to be moved
1661 when the mouse is outside of it's parent's client rectangle. Fixes
1662 #79982 (take 3, part 2).
1664 2007-04-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
1666 * X11Structs.cs: Add a few ToString() overrides.
1667 * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
1668 the window location in a window-manager independent way. Reworked
1669 FrameExtents, it now actually works. Reworked AddConfigureNotify
1670 and ReparentNotify handling to use GetTopLevelWindowLocation
1671 instead of the earlier, more hacky solution. Reworked SetWMStyles,
1672 hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
1673 windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
1674 for all other windows (fixes #81281 part 1), a toolwindow is hidden
1675 from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
1676 and generally refactored to do as few calculations as possible
1679 2007-04-09 Sebastien Pouliot <sebastien@ximian.com>
1681 * Theme.cs: Change "reflective-contract" between MWF and SD to
1682 minimize # of calls, avoid Color serialization and avoid updating
1683 every "known colors" each time a single one is updated.
1685 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
1687 * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
1688 when not readonly and the text is explicitly set. Code style updates.
1689 * DataGridTableStyle.cs: Removed extra line.
1690 * DataGrid.cs: Code style updates. Removed extra whitespace.
1691 * DataGridColumnStyle.cs: Code style updates. Removed extra
1694 2007-04-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
1696 * XplatUIX11.cs: Added comment that "fixes" #80021.
1698 2007-04-09 Jackson Harper <jackson@ximian.com>
1700 * TextControl.cs: We don't need this -1 on the line count anymore.
1702 2007-04-09 Gert Driesen <drieseng@users.sourceforge.net>
1704 * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
1705 entered value to underlying type, and convert it back to a string to
1706 apply formatting. Modified GetFormattedValue to use TypeConverter
1709 2007-04-08 Gert Driesen <drieseng@users.sourceforge.net>
1711 * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
1712 Use SubItems property when we want to ensure there's at least one
1713 subitem. Modified SubItems property to ensure there's always at least
1714 one subitem. Avoid using ListViewSubItemCollection.AddRange to match
1715 the NRE's reported by MS.
1717 2007-04-07 Gert Driesen <drieseng@users.sourceforge.net>
1719 * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
1720 ResetForeColor override on 2.0. Fixed a few API compatibility issues.
1721 Spaces to tabs. Removed extra tabs.
1723 2007-04-06 Jonathan Pobst <monkey@jpobst.com>
1725 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
1726 infinite loop. (Forgot to copy to the horizontal toolstrip case.)
1728 2007-04-06 Jackson Harper <jackson@ximian.com>
1730 * TextBoxBase.cs: When a delete removes a line, recalculate all
1731 lines below that line (they need to get offsets setup correctly)
1734 2007-04-05 Jackson Harper <jackson@ximian.com>
1736 * TextControl.cs: We need to invalidate across the width of the
1737 document when we are invalidating multiple lines.
1738 * TextBoxBase.cs: Don't delete into the line ending.
1740 2007-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1742 * ListView.cs: Restore the check for the MouseHover event
1743 in ListView. It looks like the ListView fires more than one MouseHover
1744 event when HoverSelection is true _only_ in weird-corner scenarios, but
1745 in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
1748 2007-04-05 Mike Kestner <mkestner@novell.com>
1750 * ListView.cs : raise MouseDown before updating selection.
1751 [Fixes #80373 tab 1&3]
1753 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
1755 * ToolStripRenderer.cs: Add static method to mirror image.
1756 * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
1757 and RightToLeftAutoMirrorImage.
1758 * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
1760 2007-04-05 Jonathan Pobst <monkey@jpobst.com>
1762 * ToolStripSplitStackLayout.cs: Support Alignment property.
1763 * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
1765 2007-04-05 Jackson Harper <jackson@ximian.com>
1767 * TextControl.cs: Move around the line endings when crossing line
1769 - When combining lines, strip the ending text off the first line.
1771 2007-04-05 Jackson Harper <jackson@ximian.com>
1774 * TextBoxBase.cs: Try to never move the cursor into the line
1777 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
1779 * ToolStripItem.cs: Make sure we aren't firing mouse events when
1780 the item is disabled. Also add a few missing methods.
1782 2007-04-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1784 * ListView.cs: We don't need the MouseEnter/MouseLeave check
1785 to fire just one MouseHover event when HoverSelection is true, since
1786 .Net does fire more than one MouseHover event in that scenario. Also,
1787 fix the selection in HoverSelection, by invoking UpdateMultiSelect
1788 if MultiSelect is true, instead of only setting ListViewItem.Selected.
1789 Finally, we need to reset the Hover logic in MouseMove, even when we
1790 don't have a selected item.
1792 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
1794 * ToolStrip.cs: Add several missing methods, properties, and events.
1796 2007-04-04 Chris Toshok <toshok@ximian.com>
1798 * DataGridTextBoxColumn.cs: set the bounds of the text box to
1799 (0,0,0,0) in Commit, as MS does.
1801 * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
1802 make sure we set CurrentRow on a row header click *before* calling
1803 Select. This moves the current cell (and the textbox) to the new
1804 row. The call to Select then hides the textbox, giving us the
1805 correct behavior. Fixes #80362.
1807 * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
1808 (ListChangedHandler): reorder the position/current changed events,
1809 and call UpdateIsBinding in the ItemAdded case.
1811 * GridColumnStylesCollection.cs: add some columns events, one of
1812 which raises the CollectionChanged event.
1814 2007-04-04 Jackson Harper <jackson@ximian.com>
1816 * TextControl.cs: When we delete multiple selection lines
1817 invalidate the selection area, don't need to do that for single
1818 lines because the final update view will handle it.
1820 2007-04-04 Jonathan Pobst <monkey@jpobst.com>
1822 * Control.cs: When we CreateControl, we need to also create all of the
1823 control's children. The child's OnLoad must also fire before the parent's
1824 OnLoad. Fixes the toolbox size in PDN.
1826 2007-04-04 Jackson Harper <jackson@ximian.com>
1828 * TextBoxBase.cs: When the user presses enter, insert a line
1829 ending into the text. (Maybe this would be a good spot for
1830 Environment.NewLine).
1831 * TextControl.cs: Remove undo manager hack, line endings get
1832 inserted properly now.
1834 2007-04-04 Everaldo Canuto <everaldo@simios.org>
1837 - Remove unneeded parameters in UpdateCursor.
1838 - Fix UpdateCursor to check if menu is active.
1839 - Call UpdateCursor when menu deactivate my click.
1840 [Fixes remaining issues from #80410]
1842 2007-04-04 Everaldo Canuto <everaldo@simios.org>
1844 * Control.cs: GetRealChildAtPoint method added, it make an
1845 recursive child control search for the point.
1847 * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
1850 * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
1852 2007-04-03 Everaldo Canuto <everaldo@simios.org>
1854 * Form.cs: Fix mouse position when send back mouse event after closes
1857 2007-04-03 Everaldo Canuto <everaldo@simios.org>
1859 * Form.cs: Simplify the BUTTONDOWN for active tracker.
1861 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
1863 * Control.cs: Fix an issue where if a user resized a control inside
1864 a sizing method like OnResize, we would overwrite their explicit
1865 value. Also, only call DefaultSize once in the constructor instead
1866 of 4 times. Also, do not call SetBoundsCore from SetBounds if
1867 nothing actually changed.
1869 2007-04-03 Jackson Harper <jackson@ximian.com>
1871 * TextControl.cs: Don't attempt to copy text for lines with no
1872 text in them (technically this shouldn't happen, but we aren't
1873 always inserting line endings when we should be).
1875 2007-04-03 Jackson Harper <jackson@ximian.com>
1877 * TextBoxBase.cs: Calculate the scrollbars before calculating the
1878 document, because this sets some of the document size properties
1881 2007-04-03 Jackson Harper <jackson@ximian.com>
1883 * TextBoxBase.cs: We need to calculate maximums even if this is
1884 not a multiline control, because the maxs are used for scrolling.
1885 - Display the caret after doing a page up/down, we need to
1886 manually display it because a proper CaretMoved event isn't
1887 triggered (this is because of the way the math is done to
1888 determine how far to scroll).
1890 2007-04-03 Jonathan Pobst <monkey@jpobst.com>
1892 * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
1893 (ToolBar was relying on SetBoundsCore to default the values sent
1894 base off of BoundsSpecified.)
1896 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
1898 * DateTimePicker.cs: Change Text so that when a null value or empty
1899 string is assigned to the test we always raise ValueChanged and
1900 TextChanged (earlier implementation would only raise ValueChanged
1901 if the current date value was different from DateTime.Now).
1903 2007-04-03 Andreia Gaita <avidigal@novell.com>
1905 * ButtonBase: Call update after invalidation, fixes #80194
1907 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
1909 * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
1912 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
1914 * XplatUIX11.cs: SetWMStyles: If the control is a form with
1915 FormBorderStyle = None, don't give the window any decorations.
1918 2007-04-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
1920 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
1921 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
1922 to check for is a mix of several styles (such as WS_CAPTION for
1924 * Control.cs: Don't paint an area bigger than the client area when
1925 painting the background colour. Add an internal GetCreateParams.
1926 Update calls to XplatUI.CalculateWindowRect due to API change.
1927 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
1928 window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
1929 the size if it hasn't been handled by any windows. When creating
1930 and moving windows, X wants the location of the entire window, but
1931 the size of the client window, so add
1932 TranslateClientRectangleToXClientRectangle,
1933 TranslateWindowSizeToXWindowSIze and
1934 TranslatedXWindowSizeToWindowSize to cope with this, and call them
1935 before every window creation and move. Update CalculateWIndowRect
1936 to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
1937 In AddConfigureNotify don't do anything if the hwnd is a zombie
1938 (fixes the BadWindow we were getting while running the tests),
1939 always calculate the offsets when it's a parentless window, not
1940 only when reparented, and translate the window size, since we're
1941 getting the client size of the whole window, excluding entire
1943 * Theme.cs: Added BorderSizableSize.
1944 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
1945 anymore. Update calls to XplatUI.CalculateWindowRect due to API
1947 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
1948 change. Fake the window styles here instead of in XplatUIWin32 so
1949 that all back-ends get the same window styles (and it's Form that's
1950 deciding when to use wm, not the Win32 backend anyways)
1951 * Hwnd.cs: Completely reworked GetWindowRectangle and
1952 GetClientRectangle - they are now passed a CreateParams and they
1953 only use Style and ExStyle to determine the rectangles (they should
1954 now work just like Win32AdjustWindowRectEx - though quite a few
1955 special cases are probably missing). They should also be 100%
1956 complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
1957 == rect), and all numbers (borders, menu sizes) are taken from the
1958 current theme. Added a GetBorders helper function that will return
1959 the borders for any given CreateParams (including captions and
1960 menus), and GetBorderSize that returns the given border size only.
1961 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
1962 Hwnd.GetClientRectangle.
1964 2007-04-02 Chris Toshok <toshok@ximian.com>
1966 * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
1967 logic between the values we present to the user and the values
1968 which are stored in the column's property. Also, don't call
1969 GetPreferredSize - it's virtual. Along the way, fix bug #80965.
1971 2007-04-02 Jackson Harper <jackson@ximian.com>
1973 * TextBoxBase.cs: Scroll faster!
1975 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
1977 * StatusStrip.cs: Layout fixes for PDN.
1978 * ToolStrip.cs: Set item's available to true, and placement to main when
1980 * ToolStripItem.cs: Fix an Available issue, check that Parent is really
1981 changing in setter before doing any work, add InternalVisible.
1982 * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
1983 * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
1986 2007-04-02 Jackson Harper <jackson@ximian.com>
1988 * TextBox.cs: LBUTTON does not make the textbox select all of it's
1991 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
1993 * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
1994 Makes ToolStripComboBoxes show up again.
1996 2007-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1998 * ListView.cs: Add a hover_pending field in ListView
1999 to fire just one OnMouseHover event for each MouseEnter/MouseLeave
2000 cycle (we are resetting the MouseHover logic in XplatUI
2001 to handle HoverSelection). Fixes #80429.
2003 2007-04-02 Jackson Harper <jackson@ximian.com>
2005 * TextControl.cs: Make sure the attributes get set on the last
2007 - Still have to do the end tag if we have stepped all the ways to
2010 2007-04-02 Sebastien Pouliot <sebastien@ximian.com>
2012 * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
2013 on an internal libgdiplus call when the information is already
2014 available via the public API.
2016 2007-04-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
2018 * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
2019 control is removed from a control collecftion.
2020 * XplatUIX11.cs: The first location for toplevel form is (22, 22).
2021 Fixes FormPropertyTest (failed on rare occasions).
2022 * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
2023 of Win32SetParent (when changing from no parent to a parent it
2024 might add the new parent's location in screen coordinates to this
2026 * Form.cs: Rework ChangingParent once again, now the handle is
2027 recreated whenever a FormWindowManager is added or removed (that is
2028 whenever a normal form is parented or abandoned). Also change
2029 CreateParams so that all non-toplevel windows always get the
2030 specified sice (StartupPosition is never considered for
2031 non-TopLevel forms).
2032 * ContainerControl.cs: Add ChildControlRemoved, the container control
2033 needs to be notified when a control is removed from it's
2034 collection, in the case the removed control is the active control.
2036 2007-04-02 Jackson Harper <jackson@ximian.com>
2038 * RichTextBox.cs: Use the new methods for setting the font and
2039 color, these methods set the specified attribute without
2040 overriding the other attributes.
2042 2007-04-02 Jonathan Pobst <monkey@jpobst.com>
2044 * ToolStripPanel.cs: Fixes for better layouts in PDN.
2046 2007-03-31 Gert Driesen <drieseng@users.sourceforge.net>
2048 * TextBox.cs: Added internal ChangeBackColor method to special-case
2049 Color.Empty. Added check for invalid ScrollBars value.
2050 * TextBoxBase.cs: Added internal ChangeBackColor method.
2051 * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
2052 internal ChangeBackColor method to special-case Color.Empty. Added
2053 check for invalid ScrollBars value.
2055 2007-03-30 Everaldo Canuto <everaldo@simios.org>
2057 * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
2059 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
2061 * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
2062 * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
2063 [Based on submitted patch from Olivier Duff.]
2065 2007-03-30 Jackson Harper <jackson@ximian.com>
2067 * TextBox.cs: Only select all on initial focus if the user has not
2068 specified a selection area.
2070 2007-03-30 Jonathan Pobst <monkey@jpobst.com>
2072 * UserControl.cs: Override CreateParams.
2074 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
2078 * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
2079 * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
2080 check for is a mix of several styles (such as WS_CAPTION for instance).
2081 * Control.cs: Don't paint an area bigger than the client area when painting
2082 the background colour. Add an internal GetCreateParams. Update calls to
2083 XplatUI.CalculateWindowRect due to API change.
2084 * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
2085 size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
2086 hasn't been handled by any windows. When creating and moving windows, X
2087 wants the location of the entire window, but the size of the client
2088 window, so add TranslateClientRectangleToXClientRectangle,
2089 TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
2090 to cope with this, and call them before every window creation and move.
2091 Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
2092 removing DeriveStyles). In AddConfigureNotify don't do anything if the
2093 hwnd is a zombie (fixes the BadWindow we were getting while running the
2094 tests), always calculate the offsets when it's a parentless window, not
2095 only when reparented, and translate the window size, since we're getting
2096 the client size of the whole window, excluding entire window.
2097 * Theme.cs: Added BorderSizableSize.
2098 * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
2099 anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
2100 * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
2101 Fake the window styles here instead of in XplatUIWin32 so that all
2102 back-ends get the same window styles (and it's Form that's deciding when
2103 to use wm, not the Win32 backend anyways)
2104 * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
2105 they are now passed a CreateParams and they only use Style and ExStyle
2106 to determine the rectangles (they should now work just like
2107 Win32AdjustWindowRectEx - though quite a few special cases are probably
2108 missing). They should also be 100% complimentary (i.e. GetWindowRectangle
2109 (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
2110 sizes) are taken from the current theme. Added a GetBorders helper
2111 function that will return the borders for any given CreateParams
2112 (including captions and menus), and GetBorderSize that returns the given
2114 * XplatUIOSX.cs: Update calls to CalculateWindowRect and
2115 Hwnd.GetClientRectangle.
2117 2007-03-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
2119 * Form.cs: Don't layout mdi children on MdiParent creation, the initial
2120 layout of the mdi children is handled by CreateParams. Fixes
2123 2007-03-29 Everaldo Canuto <everaldo@simios.org>
2125 * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
2128 * Form.cs: When active tracker mouse down is not processed, send event
2129 back to control inside mouse position. [Fixes #81227]
2131 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
2133 * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
2134 remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
2135 stealing focus from the active form on Windows. (Control will be made
2136 visible in ShowWindow.)
2138 2007-03-29 Mike Kestner <mkestner@novell.com>
2140 * ImageList.cs : add internal Changed event.
2141 * ListView.cs : hook up to StateImageList.Changed to perform
2142 invalidations when the the state icon list changes. [Fixes #81191]
2144 2007-03-29 Jonathan Pobst <monkey@jpobst.com>
2146 * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
2147 to prevent tooltips from stealing focus from the active form on Windows.
2149 2007-03-29 Everaldo Canuto <everaldo@simios.org>
2151 * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon.
2153 * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
2155 2007-03-29 Everaldo Canuto <everaldo@simios.org>
2157 * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
2160 2007-03-29 Jackson Harper <jackson@ximian.com>
2162 * TextControl.cs: When deleting text from non multiline textboxes,
2163 we need to update the entire document, because line offsets will
2166 2007-03-29 Everaldo Canuto <everaldo@simios.org>
2168 * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
2169 added to theme, now we can create themes that uses diferent notify engines
2170 like notification-daemon from galago project or growl for Mac OS.
2172 2007-03-28 Everaldo Canuto <everaldo@simios.org>
2174 * NotifyIcon.cs: Prevent Balloon to show in task bar.
2176 2007-03-28 Everaldo Canuto <everaldo@simios.org>
2178 * XplatUIX11.cs: Prevent system to open more than one balloon.
2180 * NotifyIcon.cs: Prevent system to open more than one balloon and remove
2181 some compiler warning messages.
2183 2007-03-28 Everaldo Canuto <everaldo@simios.org>
2187 * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
2189 * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect
2190 implemented, this methods is used by NotifyIcon.BalloonWindow class.
2192 * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11
2195 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2197 * ListViewItem.cs: Forgot to make Invalidate internal.
2199 2007-03-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2201 * ListView.cs: Add a InvalidateSelection method to
2202 invalidate methods which are currently selected, and call
2203 it when setting FullRowSelect and HideSelection, instead of
2206 2007-03-28 Chris Toshok <toshok@ximian.com>
2208 * XplatUIX11.cs (UnmapWindow): reindent this block.
2210 * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
2211 the selection_start if we're moving the selection (that is, not
2212 extending it). Fixes bug #80461.
2214 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
2216 * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
2217 * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
2218 create private ControlCollection.
2220 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
2222 * Control.cs: We need to call OnVisibleChanged for our implicit
2223 children as well as our normal children. Fixes scrollbars in
2224 comboboxes not showing up.
2226 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
2228 * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
2229 the check for IsHandleCreated first. The check in CreateHandle is not
2230 good enough because CreateHandle can be overriden, and the override
2231 should not be called if the handle is already created.
2233 2007-03-28 Jonathan Pobst <monkey@jpobst.com>
2235 * ToolStrip.cs: Remove MonoTODO for tooltips.
2236 * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
2237 * ToolStripContainer.cs: Add custom ControlCollection class.
2238 * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
2239 * ToolStripDropDown.cs: Add some missing properties/methods.
2240 * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
2241 * ToolStripItem.cs: Remove MonoTODO for tooltips.
2242 * ToolStripManager.cs: Add IsShortcutDefined.
2243 * ToolStripOverflow.cs: Override LayoutEngine.
2244 * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
2245 * ToolStripSeparator.cs: Add ImageKey.
2247 2007-03-28 Jackson Harper <jackson@ximian.com>
2249 * TextControl.cs: If a char delete removes a line ending, we need
2250 to update the ending style.
2251 - Make sure the line ending calcs get called.
2253 2007-03-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
2255 * XplatUIX11.cs: CreateWindow: Remove old default form location code,
2256 it was making the new code not work. Fixed a typo in the new code
2257 as well. Fixes #79826.
2259 2007-03-27 Everaldo Canuto <everaldo@simios.org>
2262 - NIF_STATE and NIF_INFO added to NotifyIconFlags.
2263 - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
2264 - SystrayBalloon method implemented.
2265 [Add support for notifyicon balloon on win32, #79149]
2267 2007-03-27 Mike Kestner <mkestner@novell.com>
2269 * ThemeWin32Classic.cs : update StateImageList selection to mirror
2270 the ms behavior when only one image is added to the list.
2273 2007-03-27 Jackson Harper <jackson@ximian.com>
2275 * TextControl.cs: Improvements to non multiline line ending
2278 2007-03-27 Everaldo Canuto <everaldo@simios.org>
2280 * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon.
2282 2007-03-27 Everaldo Canuto <everaldo@simios.org>
2285 - Balloon message handling added.
2286 - Call XplatUI.SystrayBalloon in ShowBalloonTip.
2288 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
2289 XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed
2290 to SystrayBalloon to me like other Systray method, also a
2291 handle parameter added.
2293 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2295 * ListView.cs: Show scrollbars even when items.Count == 0
2296 but the columns Width is bigger than the ListView.Width.
2297 Also, when columns.Count == 0 set layout_wd and layout_ht
2298 to the ClientRectangle values, so we don't show any scrollbar
2301 2007-03-27 Everaldo Canuto <everaldo@simios.org>
2303 * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
2305 2007-03-27 Jackson Harper <jackson@ximian.com>
2307 * RichTextBox.cs: The RTF library decodes the text properly for us
2310 2007-03-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2312 * ListView.cs: Display HeaderControl even when columns.Count == 0.
2313 * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
2314 ListView header (HeaderControl), instead of Control.BackColor.
2316 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
2318 * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
2319 Fixes tab control issues where controls would not show up because they
2320 never received their OnVisibleChanged call.
2322 2007-03-27 Everaldo Canuto <everaldo@simios.org>
2324 * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
2327 2007-03-27 Jonathan Pobst <monkey@jpobst.com>
2329 * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
2330 is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
2331 * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
2332 are max or min. Remove WS_VISIBLE from CreateParams unless we are recreating
2333 the handle. Fix WindowState by using the internal variable until we are
2334 sure that we've been shown.
2335 * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
2339 2007-03-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
2341 * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
2342 (at least borders). Fixes #79386 on Linux (with a small difference
2343 in behaviour: when trying to resize a caption-less window metacity
2344 shows the sysmenu. Resizing is still possible though).
2345 * XplatUIWin32.cs: When setting window styles send request an extra
2346 WM_NCCALCSIZE when it's a form without title (due to no text and no
2347 caption), since Win32 seems to calculate it wrong the first time we
2348 get the message, though the second time things work as they should.
2349 * Form.cs: Reorder a few statements in ChangingParent, otherwise the
2350 newly reparented window might show up unparented. Update
2351 CreateParams to exclude WS_DLGFRAME if ControlBox is false and
2352 there's no title text. Fixes #79386.
2354 2007-03-27 Mike Kestner <mkestner@novell.com>
2356 * ListBox.cs : don't perform invalidations if the handle hasn't been
2357 created. [Fixes #80753]
2359 2007-03-27 Mike Kestner <mkestner@novell.com>
2361 * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
2364 2007-03-26 Everaldo Canuto <everaldo@simios.org>
2366 * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields
2367 needed to implement Balloon.
2369 2007-03-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2371 * ListViewItem.cs: In the constructors that take
2372 an array of strings, don't use ListViewSubItemCollection.AddRange
2373 method to add items, since we need to have a different behaviour (in
2374 the constructors we add an item for each null string, opposed to
2375 the behaviour of AddRange, which adds nothing).
2377 2007-03-26 Andreia Gaita <avidigal@novell.com>
2379 * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
2381 2007-03-26 Jackson Harper <jackson@ximian.com>
2383 * TextControl.cs: Draw and measure line endings when in non
2385 - When searching the text, count the end of the last line as a
2388 2007-03-26 Jackson Harper <jackson@ximian.com>
2390 * RichTextBox.cs: The selection_start and selection_end don't
2391 really track the correct tags for the selection. So we'll manually
2392 compute the correct tag here.
2394 2007-03-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
2396 * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
2397 and Continuous styles. Fixes #79469.
2399 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
2401 * ToolStrip.cs: Implement Tooltips.
2402 * ToolStripItem.cs: Create internal method for determining tooltip.
2404 2007-03-26 Jonathan Pobst <monkey@jpobst.com>
2406 * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
2408 2007-03-26 Everaldo Canuto <everaldo@simios.org>
2410 * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
2411 it prevents a problem thak keeps icon visible after application
2414 2007-03-26 Everaldo Canuto <everaldo@simios.org>
2416 * NotifyIcon.cs: Balloon properties and methods created.
2418 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
2419 XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
2421 2007-03-25 Jonathan Pobst <monkey@jpobst.com>
2423 * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
2425 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
2427 * Control.cs: Make SetBoundsCore match MS better. The BoundsSpecified
2428 parameter indicates which aspects were explicit/user-set.
2429 * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
2431 2007-03-24 Jonathan Pobst <monkey@jpobst.com>
2433 * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
2434 * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
2435 SmallChange, and Value (2.0).
2436 * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
2438 2007-03-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2440 * ListView.cs: Always set item_control.Width in LayoutDetails
2441 if View is Details. Setting it later in CalculateScrollBars
2442 in a not-so-corner scenario (the sum of columns width is
2443 not bigger than the ListView width when handle is created, and then
2444 that sum gets bigger by increasing the width of the columns)
2445 causes a very weird recursion path (which shouldn't be happening,
2446 since header_control sets it in CalculateScrollBars too). This bug
2447 appeared after Chris' fixes for handle created issues, so probably
2448 it's related to some handle-creation time.
2450 2007-03-23 Chris Toshok <toshok@ximian.com>
2452 * DataGrid.cs (GetVisibleRowCount): increase the row count in the
2453 case where there's an add row, just so we don't end up in a case
2454 where it's not displayed (this happens when the row is partially
2455 obscured). Fixes bug #79574.
2457 2007-03-23 Jackson Harper <jackson@ximian.com>
2461 * RichTextBox.cs: Preserve line endings in the lines text buffer,
2462 also added an enum that represents the line ending type.
2464 2007-03-23 Andreia Gaita <avidigal@novell.com>
2466 * NumericUpDown.cs: Fix logic so Text and Value properties are not
2467 messed with in every method call, but only from DownButton,
2468 UpButton, UpdateEditText() and ValidateText. Fixes #80346
2470 2007-03-23 Chris Toshok <toshok@ximian.com>
2472 * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
2473 format objects if the format spec is "". Fixes bug #80889.
2475 2007-03-22 Miguel de Icaza <miguel@novell.com>
2477 * ToolStripPanel.cs (Join): added stubs to build PDN3
2479 * Control.cs (AutoScrollOffset): Add.
2481 * SystemInformation.cs (MouseWheelScrollDelta): Expose this
2482 property, its only implemented for Win32, on X11 it defaults to
2483 some hardcoded value.
2485 * ToolStripItem.cs (AllowDrop): Add property
2487 2007-03-22 Mike Kestner <mkestner@novell.com>
2489 * ListView.cs : in FullRowSelect Details mode, only enable box
2490 selection if the user clicks over the "item" column outside of the
2491 text area. Mmmmm, compatibility. [Fixes #80374 subpart 7]
2493 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
2495 * Control.cs: ChangeParent: Call Form's ChangingParent even if the
2496 handle is not created yet.
2497 * Form.cs: Select: Don't call CreateHandle if the handle is already
2498 created, avoids a stack overflow on Windows when we are recreating
2500 * ScrollableControl.cs: Set the correct z-order for the scrollbars when
2501 they are made visible, and override AfterTopMostControl to keep
2502 them on top when other controls are brought to front.
2503 CalculateCanvas: Scrollbars are only visible if auto_scroll is true
2504 or force_*scroll_visible is true (old implementation always shows
2505 scrollbars when needed, no matter what auto_scroll was set to).
2506 * InternalWindowManager.cs: UpdateWindowDecorations: Add a
2507 IsHandleCreated check.
2509 2007-03-22 Andreia Gaita <avidigal@novell.com>
2511 * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
2512 row or col separator.
2513 * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
2515 2007-03-22 Everaldo Canuto <everaldo@simios.org>
2517 * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
2519 2007-03-22 Everaldo Canuto <everaldo@simios.org>
2521 * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
2522 cursor for child controls. In ShowWindow and HideWindow now call SetCursor
2523 every time. Fixes #80410.
2525 2007-03-22 Chris Toshok <toshok@ximian.com>
2527 * BindingSource.cs (AddNew): partially implement.
2529 remove a couple of NotImplementedException's
2530 to get bug #81148 closed.
2532 2007-03-22 Everaldo Canuto <everaldo@simios.org>
2537 - UpdateCursor method added to update the screen cursor.
2538 - GetAvailableCursor method added to return cursor for enabled tree,
2539 it searches for cursor on control and it's parent's for enabled control.
2540 - Call UpdateCursor method on setter of Cursor property.
2541 - On setter of Enabled call UpdateCursor when it is false, we need to
2542 change cursor to normal (or to this parent cursor) because cursor
2543 setting theres no effect to disabled controls.
2544 - Some minor source changes to follow the coding style guidelines.
2546 * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled
2549 2007-03-22 Chris Toshok <toshok@ximian.com>
2551 * XplatUIX11.cs: ignore the BadPicture errors cairo+render
2554 2007-03-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
2556 * XplatUIX11.cs: Implement default locations for forms.
2557 * Form.cs: Completely rework startup location for forms. Fixes #79964.
2558 * Hwnd.cs: Add previous_child_startup_location (to track the current
2559 startup location for any child forms of the current form) and
2560 previous_main_startup_location (to track the startup location for
2561 the current toplevel form).
2563 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
2565 * Control.cs: Don't trigger a layout if an implicit control is added
2566 that isn't visible. Also, don't notify the owner when an implicit control
2567 is added. (Owners shouldn't even know about their implicit controls.)
2569 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
2571 * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
2572 to save some re-layouts.
2574 2007-03-21 Everaldo Canuto <everaldo@simios.org>
2576 * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
2579 2007-03-21 Jonathan Pobst <monkey@jpobst.com>
2581 * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
2582 ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
2584 2007-03-21 Mike Kestner <mkestner@novell.com>
2586 * ListView.cs : disable selection update for non-left button clicks
2587 with mods and over selected items. [Fixes #80524]
2589 2007-03-20 Jackson Harper <jackson@ximian.com>
2592 * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
2595 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
2597 * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
2598 very probably a more complicated calculation there. Update the
2599 textbox' ForeColor and BackColor when the ComboBox' colors are
2600 changed. Change the border change in LayoutComboBox to only affect
2601 the textbox, not all the calculations there. Seems to fix most of
2604 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
2606 * ComboBox.cs: Handle Home and End keys as well as all combinations of
2607 modifiers + navigation keys as input keys, enables advanced text
2608 selection in the combobox (like Shift+Left Arrow for instance).
2609 ComboTextBox now overrides Focused and returns whatever
2610 ComboBox.Focused returns, since it really should be focused
2611 whenever the ComboBox is. Fixes #80795. Also make the border around
2612 the text box one pixel bigger, as mentioned in #79436.
2614 2007-03-20 Jackson Harper <jackson@ximian.com>
2616 * TreeView.cs: Don't offset the images, this was causing some
2617 artifacts when expanding/collapsing with images that were the
2618 exact height of the treenode.
2620 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
2622 * TrackBar.cs: Query the theme for the correct value when the mouse
2623 moves and the thumb is pressed.
2624 * Theme.cs: Added TrackBarValueFromMousePosition
2625 * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
2626 implementation was updating the trackbar value when drawing, now
2627 the drawing methods only draw. Fixes #80900. Refactored the
2628 calculations out to TrackBarValueFromMousePosition and
2629 GetTrackBarDrawingInfo, so that TrackBar can get the correct value
2630 according to the mouse position whenever it wants to. Changed the
2631 light coloured pen when drawing the thumb from ControlLight to
2632 ControlLightLight, because the ControlLight is the same colour as
2633 the background so the 3D effect is lost.
2635 2007-03-20 Everaldo Canuto <everaldo@simios.org>
2637 * Form.cs: In ShowDialog uses MainForm as transient form when no form is
2638 defined. Fixes #80784.
2640 2007-03-20 Marek Habersack <mhabersack@novell.com>
2642 * ContextMenuStrip.cs: align with the change introduced in
2645 2007-03-20 Everaldo Canuto <everaldo@simios.org>
2647 * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs,
2648 XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner
2651 2007-03-19 Chris Toshok <toshok@ximian.com>
2653 * Control.cs (WmPaint): don't make use of the Handle property
2654 after an event is emitted, as the user could have closed the
2655 form/destroyed the control. Store the Handle in a local variable
2656 and make use of that. Fixes bug #80768.
2658 2007-03-20 Everaldo Canuto <everaldo@simios.org>
2660 * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
2661 behavior in X11 environments.
2663 2007-03-20 Everaldo Canuto <everaldo@simios.org>
2665 * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
2666 because on setter of topmost we dont call SetTopmost when handle is not
2669 2007-03-20 Jackson Harper <jackson@ximian.com>
2671 * TextControl.cs: Need to use SelectionLength () not
2672 selection_length, since that var is reset to -1.
2673 - Draw the caret when we don't have focus.
2674 * TextBox.cs: The selectall actually doesn't occur until the first
2676 * TextBoxBase.cs: Need to update the caret position after a
2679 2007-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2681 * ListView.cs: Enable scrolling when using Tile view.
2683 2007-03-20 Everaldo Canuto <everaldo@simios.org>
2687 * XplatUIDriver.cs: Abstract SetOwner method created.
2689 * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method
2690 must be implemented and was masked as todo.
2692 * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with
2695 * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but
2696 cheking for null owner to remove transient. The SetTopmost will be change
2699 * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
2700 SetTopmost. Now owned forms will work properly in win32 and X11.
2702 2007-03-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
2704 * MdiWindowManager.cs: Update function name.
2705 * Form.cs: After closing a form MdiParent is always null.
2706 * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
2707 better what it should do: necessary book-keeping when the form is
2708 closed, it should not close the form itself.
2710 2007-03-19 Andreia Gaita <avidigal@novell.com>
2712 * ListViewItem.cs: Fix back and fore color. The subitems only
2713 use their own colors if they are set, otherwise use the listview's
2714 colors. Don't set default colors on constructor for subitem.
2717 2007-03-19 Mike Kestner <mkestner@novell.com>
2719 * ListView.cs : make box selection for Details views with
2720 FullRowSelect conform to MS behavior when clicking in the "item"
2721 column and clicking outside the defined columns.
2722 [Fixes case 5-6 of #80374]
2724 2007-03-19 Chris Toshok <toshok@ximian.com>
2726 * ScrollableControl.cs: create the controls from within the ctor,
2727 but don't actually add them until our handle is created. this
2728 fixes a NRE possibility jpobst found (if you override OnLayout in
2729 a subclass, it's called before your ctor). Also, add a
2730 IsHandleCreated guard to UpdateSizeGripVisibility as well.
2732 2007-03-19 Jackson Harper <jackson@ximian.com>
2734 * TextBox.cs: Reduce the amount of invalidation we do.
2735 * TextBoxBase.cs: Make shortcuts enabled true by default, at least
2736 some of them are true by default on MS.
2737 - Add some functions to reduce the amount of invalidates we do.
2738 * TextControl.cs: Less invalidation.
2740 2007-03-19 Chris Toshok <toshok@ximian.com>
2742 [ Fixes #81773, and *seems* to fix #81553 as well ]
2744 * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
2745 AccumulateDestroyedHandles. We need to do it *after* we send
2746 WM_DESTROY, as the user's code can access Control.Handle in
2747 OnHandleDestroyed, and this shouldn't cause a recreation. Also,
2748 move the WM_DESTROY/zombie handling to before the call to
2749 XDestroyWindow. For some reason without this ordering
2750 FormTest.RecreateHandle hangs. This ordering is semantically
2751 equivalent, however, as XDestroyWindow is async anyway.
2753 2007-03-19 Gert Driesen <drieseng@users.sourceforge.net>
2755 * RichTextBox.cs: Reset backcolor_set after setting default.
2757 2007-03-19 Chris Toshok <toshok@ximian.com>
2759 * ScrollableControl.cs: the scroll position should not effect the
2760 canvas size. commit patch from georgegiolfan@yahoo.com, which
2761 fixes some really bizarre behavior on resizing. Fixes bug #80778.
2763 2007-03-19 Chris Toshok <toshok@ximian.com>
2765 * ScrollableControl.cs: clean this up a bit. create the
2766 scrollbars in the ctor and just show/hide them as needed. Also,
2767 make hscroll_visible/vscroll_visible internal to Recalculate, and
2768 just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
2769 everywhere else. This seems to fix the scrollbars appearing
2770 beneath the content for me (i have *no* idea why that is,
2773 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
2775 * ToolStrip.cs: Don't call DoAutoSize when we change Dock. Also, remove
2776 some redundacy for stuff in Anchor and Dock that base will take care of.
2779 2007-03-19 Mike Kestner <mkestner@novell.com>
2781 * ListView.cs : make box selection for Details views without
2782 FullRowSelect dependent on the text bounds, not item bounds.
2783 * ListViewItem.cs : add an internal property to obtain the TextBounds
2784 in Details view. [Fixes case 1-4 of #80374]
2786 2007-03-19 Andreia Gaita <avidigal@novell.com>
2788 * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
2789 we're < 2.0. #78448 && #80316
2791 2007-03-19 Jonathan Pobst <monkey@jpobst.com>
2793 * FontDialog.cs: Don't crash when we switch to a new font that doesn't
2794 have the same style available as the previously selected one. Also,
2795 support FixedPitchOnly property. [Fixes bugs #80918, #80947]
2797 2007-03-19 Jackson Harper <jackson@ximian.com>
2799 * TextControl.cs: Add an alignment property that all new lines
2801 - Make sure to use the align shift when calculating the line's X
2803 * TextBox.cs: Set the alignment on the document as well as on all
2806 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
2808 * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
2809 throw if setting the parent of an mdichild that already has an
2810 mdiparent. Update signature for 2.0 profile. ProductName: If there's no
2811 AssemblyProductAttribute in the assembly, use the type's namespace (as
2812 MS seems to do). CreateControl: don't create the handle if the control
2813 is not visible (according to MS behaviour and spec). SetTopLevel: Only
2814 create handle if the control is not a form. Change FocusInternal to
2815 virtual so that it can be overriden by Form.
2816 * TextBox.cs: Update call to FocusInternal.
2817 * Form.cs: Always create the handle when calling Focus on a MdiChild. The
2818 form is not a toplevel form when it's a mdi child, so update is_toplevel
2819 accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
2820 hasn't been created. Show (IWin32Window): Don't allow this overload for
2821 toplevel windows. CenterToParent/CenterToScreen/Select: create the
2822 handle as MS does. SetVisibleCore: if called on a MdiChild and the
2823 parent isn't visible yet, save the visibility and restore it when the
2824 parent is made visible.
2825 * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
2826 methods, since the visibility of the scrollbars can be changed from
2827 several places, not only from AutoScroll.
2830 2007-03-19 Jackson Harper <jackson@ximian.com>
2832 * RichTextBox.cs: Enable shortcuts by default.
2833 * TextBoxBase.cs: Add conditional shortcuts.
2835 2007-03-19 Everaldo Canuto <everaldo@simios.org>
2837 * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).
2839 2007-03-19 Chris Toshok <toshok@ximian.com>
2843 * XplatUIX11.cs (WaitForHwndMessage): change this to actually
2844 swallow the message we're waiting on, instead of delivering it, as
2845 this is only used for the WM_SHOWWINDOW raised from
2846 MapWindow/UnmapWindow, and the message needs to be generated
2847 (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
2848 before doing the Map/Unmap. Also make sure that the Hwnd is still
2849 alive after the message has been handled.
2851 *before* the window is shown.
2853 * Control.cs (CreateControl): guard a few more things inside the
2854 if (!is_created) block, as we might end up being called again -
2856 (WmShowWindow): call CreateControl if we're showing the control.
2858 2007-03-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
2860 * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
2861 controls without a handle if they have any parent with a handle. In
2862 Dispose add a check whether the handle is created or not before
2863 calling BeginInvoke, this removes the need of the extra disposing
2864 parameter (which was bogus anyway since it didn't prevent the
2865 invoke from happening, it only skipped the check for an existing
2866 handle, meaning that the invoke would call on an inexistent
2869 2007-03-19 Everaldo Canuto <everaldo@simios.org>
2871 * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
2874 2007-03-18 Everaldo Canuto <everaldo@simios.org>
2877 - Fixed a problem that dont show help button for messages with 3 buttons.
2878 - Refactory button size and position calculations, now dont use fixed
2879 values, also fixed button sizes (#80043) and form's border space.
2880 - AddButton method created, now all other AddButton methods call this one.
2881 - Some other source code cosmetic changes.
2883 2007-03-18 Jackson Harper <jackson@ximian.com>
2885 * RichTextBox.cs: Don't do this all fonts must match check if
2886 there is only one char selected.
2888 2007-03-18 Jackson Harper <jackson@ximian.com>
2890 * TreeView.cs: ScrollWindow works properly now, so we don't need
2891 to screw around with the scroll area. This fixes some artifacts
2892 when expanding and collapsing.
2894 2007-03-18 Jackson Harper <jackson@ximian.com>
2896 * TextBoxBase.cs: Allow updating the selection position when the
2897 cursor is outside the textarea, but we have a capture.
2898 * TextControl.cs: A special case for when the cursor is outside
2899 the bounds of the TB.
2901 2007-03-18 Jackson Harper <jackson@ximian.com>
2903 * TextBoxBase.cs: Remove image pasting code for now. There is no
2904 way to get an image on the clipboard right now anyways.
2906 * RichTextBox.cs: Use the new RTF Picture class for pictures.
2908 2007-03-18 Everaldo Canuto <everaldo@simios.org>
2911 - Set window properties in constructor intead of on CreateParams.
2912 - Remove topmost from Window ExStyle.
2913 - Set ShowInTaskbar to false.
2914 - Set form border to FixedDialog.
2915 - Some cosmetic changes and remove unneeded comments.
2916 - It fixes itens 2,3 and 4 of bug #80043.
2918 2007-03-18 Gert Driesen <drieseng@users.sourceforge.net>
2920 * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
2921 none was explicitly set. Fixes part of bug #79949.
2923 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
2925 * ToolStripComboBox.cs: Add AutoComplete*.
2927 2007-03-16 George Giolfan <georgegiolfan@yahoo.com>
2929 * ToolStripComboBox.cs: Add FlatStyle.
2931 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
2933 * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
2934 ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
2936 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
2938 * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
2939 CheckBox.cs, RadioButton.cs, BindingSource.cs,
2940 DataGridColumnStyle.cs: Remove warnings.
2942 2007-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
2944 * Menu.cs: MergeMenu: Check menu argument for null before looping over
2946 * MdiWindowManager.cs: Add IsVisiblePending to track the pending
2947 visibility of mdi child forms. FormSizeChangedHandler: update the
2948 maximized size if size has changed while maximized.
2949 * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
2950 creating the handle.
2951 * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
2952 avoid creating the handle if not created.
2953 * XplatUI.cs: Update debug output.
2954 * XplatUIStructs.cs: Added ToString's for a couple of structs.
2956 2007-03-16 Jonathan Pobst <monkey@jpobst.com>
2958 * ContainerControl.cs: Give ToolStripManager the opportunity to handle
2960 * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs,
2961 ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
2962 Implement keyboard shortcuts.
2964 2007-03-15 Everaldo Canuto <everaldo@simios.org>
2966 * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
2967 Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog,
2968 ColorDialog and all derived classes.
2970 2007-03-15 Everaldo Canuto <everaldo@simios.org>
2972 [ Fixes bug #79828 ]
2975 - Rename ToolBarButtonInfor to ToolBarItem.
2976 - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
2977 - Maintain an array of ToolBarItem, used instead of ToolBarButton
2978 collection to be able add same button more than one time on a toolbar.
2979 - Refactory all properties and methods to use ToolBarItem.
2982 - Remove all propeties and methods that is now in ToolBarItem.
2983 - Rectangle propery now gets the rectangle from first ToolBarItem to
2984 mimic win32 behavior.
2985 - Size calculation and layout methods also removed.
2987 * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
2988 ToolBarItem instead of ToolBarButton to right drawing buttons when
2989 same button/separator was added more than one time to ToolBar.
2991 * ThemeNice.cs: Same as above.
2993 2007-03-15 Andreia Gaita <avidigal@novell.com>
2995 * XplatUIX11.cs: Fire extra MouseMove events right after
2996 MouseDown and MouseUp, emulating win32's <censored> behaviour
2997 for apps that rely on it.
2999 2007-03-15 Jackson Harper <jackson@ximian.com>
3002 * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
3003 it is drawn on the controls client window and there is no NC
3005 - Set the background color to gray on 2.0 when we are readonly.
3007 2007-03-15 Chris Toshok <toshok@ximian.com>
3009 [ Fixes bug #81144 ]
3011 * XplatUIX11.cs: implement VirtualScreen independently of
3012 WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
3015 2007-03-15 Chris Toshok <toshok@ximian.com>
3017 * Hwnd.cs: add an internal field for the cached_window_state.
3019 * XplatUIX11.cs: cache the window state, invalidating the cache
3020 (and thus re-querying the X server) only when we see an update to
3021 the _NET_WM_STATE property.
3023 2007-03-15 Chris Toshok <toshok@ximian.com>
3025 * BindingSource.cs: get a lot of the unit tests working.
3027 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
3029 * Control.cs: Modify UpdateStyles to store distances when bounds >=
3030 0 instead of just bounds > 0. [Fixes bug #80912]
3032 2007-03-15 Jonathan Pobst <monkey@jpobst.com>
3034 * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
3037 2007-03-15 Ivan N. Zlatev <contact@i-nz.net>
3039 * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
3040 XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
3041 XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
3042 WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
3044 2007-03-15 Chris Toshok <toshok@ximian.com>
3048 * Control.cs: add Ivan's fix for 81101, with a slight modification
3049 - you can set control.Target to null.
3051 2007-03-14 Jonathan Pobst <monkey@jpobst.com>
3053 * ToolStripItem.cs: If our OwnerItem is null, we can't use
3054 HideDropDown, use Hide instead to prevent an NRE.
3057 2007-03-14 Jackson Harper <jackson@ximian.com>
3059 * TextBoxBase.cs: Mess with the creation stuff a little. We need
3060 to calculate the document before the handle is created, in some
3061 cases. (Actually just one case).
3063 2007-03-14 Jackson Harper <jackson@ximian.com>
3065 * TextBoxBase.cs: Need to display the caret after letting the base
3066 wndproc handle the focus methods, because the caret display
3067 methods check the focus state.
3068 - Try to display the caret after updating it's position with SelectWord.
3069 - Don't need to do an immediate update on this recalc, since there
3070 will be an invalidate anyways.
3072 2007-03-14 Jackson Harper <jackson@ximian.com>
3074 * TreeView.cs: Some workarounds so that we can match event order a
3077 2007-03-14 Gert Driesen <drieseng@users.sourceforge.net>
3079 * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
3080 #80803. Avoid NullReferenceException when Control does not have
3081 parent. Fixed different blinkstyle issues. Only subscribe to Tick
3082 event a single time. Only draw error icon when control is created and
3083 visible. Fixes failing unit tests.
3085 2007-03-14 Andreia Gaita <avidigal@novell.com>
3087 * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
3088 Selecting events. Fire Leave and Enter events when changing tabs.
3090 2007-03-14 George Giolfan <georgegiolfan@yahoo.com>
3092 * TreeView.cs: Add TreeViewNodeSorter.
3093 * TreeNodeCollection.cs: Add sorter parameter to Sort method.
3095 2007-03-14 Chris Toshok <toshok@ximian.com>
3097 * Form.cs: go ahead and remove the RecreateHandles that jpobst
3098 removed earlier and I had him add back it. It turns out metacity
3099 *does* in fact handle the MOTIF_WM_HINTS property changing, it
3100 just doesn't redraw the window titlebar until you resize the
3101 window. This also means we aren't recreating the entire window
3102 hierarchy on X when you change this property. And it looks better
3105 2007-03-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3108 * ListView.cs: Collecting selection information
3109 is now done in SelectedIndexCollection rather than in
3110 SelectedListViewItemCollection. This is done so we can
3111 have the selection information code in one single place
3112 (virtual mode selection information entirely depends on
3113 SelectedIndexCollection).
3115 2007-03-13 Miguel de Icaza <miguel@novell.com>
3117 * ErrorProvider.cs: Add stubs for ISupportInitialize
3119 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3121 * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
3122 in the right order with the right values, from the Checked property,
3123 just as MS does (instead of triggering them from ListView).
3125 * ListView.cs: Make OnItemCheck and OnItemChecked internal.
3127 2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3129 * ListView.cs: Implement ItemChecked 2.0 event. Also cast to
3130 the correct handler in OnItemCheck method (ItemCheckEventHandler
3131 instead of EventHandler). This used to throw an InvalidCastException.
3133 2007-03-13 Jackson Harper <jackson@ximian.com>
3135 * TextBoxBase.cs: Calculate the document before the handle is
3136 created, so there isn't an extra invalidate called.
3138 2007-03-13 Jonathan Pobst <monkey@jpobst.com>
3140 * Form.cs: Don't set owner in ShowDialog until we are sure
3141 that we aren't going to throw an exception. [Fixes bug #80773]
3143 2007-03-12 George Giolfan <georgegiolfan@yahoo.com>
3145 * TreeView.cs: Make it compile.
3147 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
3149 * Control.cs: Another place we don't call SizeFromClientSize.
3150 * Form.cs: Another place we don't call SizeFromClientSize.
3153 2007-03-12 Jackson Harper <jackson@ximian.com>
3155 * TreeView.cs: Basically emulating some strangness here with
3156 exanding nodes and setting node positions when windows aren't
3158 - Also attempting to walk the node tree less than previously, and
3159 just use visible order calculations for determining offsets.
3160 - oops made scrolling backwards.
3161 * TreeNode.cs: We need to start nodes with a zero visible order,
3162 because the order calcs are based on the first nodes order.
3164 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
3166 * Form.cs: Don't exit the program if RecreateHandle is called on
3169 2007-03-12 Chris Toshok <toshok@ximian.com>
3171 * XEventQueue.cs: remove the use of PostQuitState.
3173 * XplatUIX11.cs: remove the use of PostQuitState. If we get a
3174 WM_QUIT message in GetMessage, return false (and if we're in the
3175 nested WaitForHwndMessage, repost the WM_QUIT message).
3177 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
3179 * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
3180 or the MaximizeBox properties. [Part of bug #80640]
3182 2007-03-12 Everaldo Canuto <everaldo@simios.org>
3184 * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
3187 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
3189 * ToolStripItem.cs: Fix some tests I broke by checking Visible
3192 2007-03-12 Gert Driesen <drieseng@users.sourceforge.net>
3194 * FileDialog.cs: Use text of File name combobox to determine what
3195 files the user selected. Added tokenizer to parse the file names.
3198 2007-03-12 Jonathan Pobst <monkey@jpobst.com>
3200 * Control.cs: We can't call SizeFromClientSize in the constructor,
3201 but we still need to do the same work, so make an internal version.
3204 2007-03-12 Jackson Harper <jackson@ximian.com>
3208 * OpenTreeNodeEnumerator: Match MS better for IsVisible and
3211 2007-03-12 Jackson Harper <jackson@ximian.com>
3213 * TextBoxBase.cs: Now that the handles are being created a little
3214 later, we need to make sure that the document is recalculated when
3215 the handle is created.
3217 2007-03-11 Everaldo Canuto <everaldo@simios.org>
3219 * Theme.cs: GetLinkFont abstract method added.
3222 - Remove CalcTrimRectangle, no longer needed.
3223 - Factor also remove, position issues must be fixed in libgdiplus.
3224 - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
3225 - GetPieceFont, CreateLinkFont and link_font removed, theme must be
3226 care about font used to draw links.
3227 - Set TabStop to true when control is "Selectable", control is selectable
3228 when have one or more links. Fixes #80501 (test case is also added).
3229 - Set the LinkArea values after links change, LinkArea values must be
3230 based in first link position and size, a test case was created.
3231 - Fix ControlStyles.Selectable value, now is based on LinkArea value,
3232 the attribute must be true LinkArea.Length > 0. The same was applied to
3235 * ThemeWin32Classic.cs:
3236 - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used
3238 - Use CPDrawStringDisabled to draw disabled text instead of hard code
3240 - Draw focus rectangle for every parts focused, including parts that
3241 is on another line, its because regions returns various rectangles
3242 and not only one. Needed to mimic W32 look.
3243 - Uses Graphics.Clip to delimite region painted, it mean that now
3244 complete text is passed to DrawString, with this we solve layout
3245 issues without create another text renderer.
3246 - Uses Region.Intersect to fix some flickers problems, now only needed
3247 parts will redrawed.
3248 - This changes fixes #79614 and some other unreported issues, on Linux
3249 some layout problems still remain, the problem is under
3250 MeasureCharacterRanges but it is an libgdiplus bug.
3252 2007-03-10 Gert Driesen <drieseng@users.sourceforge.net>
3254 * TextBox.cs: Set for foreground color.
3255 * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
3256 this is already done in Control.
3258 2007-03-10 Jackson Harper <jackson@ximian.com>
3260 * TextBox.cs: Set the background color, but reset the
3261 backcolor_set flag which is just for the user setting the
3264 2007-03-09 Chris Toshok <toshok@ximian.com>
3266 * Control.cs: really remove the call to XplatUI.SetVisible from
3267 CreateHandle(), like I said I did when I merged the branch.
3269 * BindingSource.cs: implement some more of this stuff.
3271 2007-03-09 Jackson Harper <jackson@ximian.com>
3273 * TextBox.cs: Don't explicitly set our background colors.
3275 * TextBoxBase.cs: Draw readonly text.
3276 - Need to invalidate when backcolor or readonly are changed.
3278 2007-03-09 Jackson Harper <jackson@ximian.com>
3280 * TextBoxBase.cs: Don't set the forecolor until the handle is
3282 - Do not raise OnPaint, and removed some old debug code.
3284 2007-03-09 George Giolfan <georgegiolfan@yahoo.com>
3286 * ScrollableControl.cs: Fix mouse wheel scrolling.
3288 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
3290 * Control.cs: Wire up MouseDoubleClick event.
3292 2007-03-09 Jonathan Pobst <monkey@jpobst.com>
3294 * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
3296 * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
3297 * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
3298 item is added. This logic was moved to ToolStrip.OnItemAdded.
3301 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3303 * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
3305 2007-03-08 Jackson Harper <jackson@ximian.com>
3307 * TreeView.cs: Show the correct image for selected node (this used
3308 to work, not sure how the code got deleted). Also implemented 2.0 feature
3311 2007-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3314 * ListViewItem.cs: Cache index in items when retrieving them
3317 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
3319 * ToolStripItem.cs: Don't return the explicit_size if we are using
3320 AutoSize. Fixes invalidation issue when user has explicitly set a
3321 size and has AutoSize = true.
3323 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
3325 * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
3327 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
3329 * DataGridView.cs: Remove event handler from DataView when a
3330 DataTable is used as DataSource.
3332 2007-03-08 Jonathan Pobst <monkey@jpobst.com>
3334 * Control.cs: Create internal setter for client_size to allow it to be
3335 set without triggering resizing code.
3336 * Form.cs: Calculate client_size in constructor, only change client_size
3337 in FormBorderStyle property if Handle has been created.
3338 [Fixes #80574, #80791]
3340 2007-03-08 George Giolfan <georgegiolfan@yahoo.com>
3342 * SystemInformation.cs: Add TerminalServerSession.
3344 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
3346 * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
3349 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
3351 * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
3352 Handle before we were supposed to. Now checks ActivateOnShow property
3354 * Control.cs: Add internal ActivateOnShow property.
3355 * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
3357 * Hwnd.cs Remove no longer needed no_activate field.
3359 2007-03-07 Jackson Harper <jackson@ximian.com>
3361 * TreeView.cs: Implement owner draw tree nodes. And a couple more
3363 * DrawTreeNodeEventHandler.cs: Add
3364 * DrawTreeNodeEventArgs.cs: Correct default value.
3366 2007-03-07 Chris Toshok <toshok@ximian.com>
3368 * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
3369 to be called before NativeWindow.WndProc. Put the HwndCreating
3370 magic there to hook up our Hwnd's to handles.
3372 2007-03-07 Gert Driesen <drieseng@users.sourceforge.net>
3374 * DataGridView.cs: Comment out debug code.
3376 2007-03-07 Chris Toshok <toshok@ximian.com>
3378 [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
3379 to make the rest of the world happy]
3381 * Control.cs (CreateHandle): there's no need to call
3382 XplatUI.SetVisible here, it's effectively done by
3383 XplatUI.CreateWindow on X now, and always was on windows.
3385 * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
3386 shortcircuit out of the loop if we have a message loop running on
3389 [Changelog from merge]
3391 2007-03-05 Chris Toshok <toshok@ximian.com>
3393 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
3394 causes handle creation.
3396 2007-02-28 Chris Toshok <toshok@ximian.com>
3398 * ApplicationContext.cs: Add a flag to make sure we only raise the
3399 ThreadExit event once (ExitThreadCore can be indirectly called
3400 from a few places.) I don't like the additional flag, but it
3401 makes the event ordering/count correct.
3403 * Application.cs (MWFThread.LoopCount): don't use an enumerator
3404 without locking the collection. An enumerator doesn't give us any
3405 protection from modification anyway. Lock the thread hash and
3406 replace the complicated enumerator loop with a foreach.
3407 (Application.CloseForms): make internal so it can be called from
3408 ApplicationContext. This should probably be moved to MWFThread.
3409 (Application.ExitThread): don't call MWFThread.Current.Exit()
3410 here. just call XplatUI.PostQuitMessage. We'll exit the thread
3411 when the runloop exits (in response to WM_QUIT.)
3412 (Application.RunLoop): add a comment (and check) for
3413 context.MainForm being null after setting context.MainForm.Visible
3414 = true. This is because you're perfectly free to dispose of a
3415 form in VisibilityChanged. Chalk this up to another case where we
3416 need to synchronously generate WM_ACTIVATE from Control.Show.
3417 Also, add handling for WM_QUIT here so we'll exit the loop.
3419 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit. The
3420 fact that we don't wait if we're only unmapping the whole_window
3421 makes me a bit nervous, but it doesn't seem to cause any problems
3424 also, add a comment about the stupid, broken and wrong resetting
3425 of PostQuitState to false in GetMessage().
3427 In PostQuitMessage, we need to add a WM_QUIT message to the
3428 thread's queue. We use the FosterParent to get the right
3431 Lastly, in SetVisible, we need to unmap both windows, since the
3432 waiting only happens when we're unmapping the client window. So
3433 now, the *only* time we unmap just the whole_window is in the hack
3434 for resizing a control to 0,0.
3436 2007-02-21 Chris Toshok <toshok@ximian.com>
3438 * Application.cs (CloseForms): rewrite this so that we don't
3439 modify the list while we're traversing it.
3441 2007-02-20 Chris Toshok <toshok@ximian.com>
3443 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
3445 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
3446 handle is created. otherwise we'll create it here.
3447 (VerticalScrollEvent): same here.
3449 * Application.cs (CloseForms): call Form.Dispose, don't post
3452 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
3453 here. Application should Dispose() of the Form's.
3455 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
3457 (MapWindow,UnmapWindow): only actually do the waiting for
3458 SHOWWINDOW if the control we're dealing with is a Form.
3459 (CreateWindow): if the control isn't a form, SendMessage
3460 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
3462 * Control.cs (SetVisibleCore): always use is_visible here, not
3463 value. If we use value, we can end up re-setting something
3464 visible if, for instance, you do Control.Hide() in a delegate
3465 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
3467 2007-02-20 Chris Toshok <toshok@ximian.com>
3469 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
3470 the message we need. PeekMessage returning false should not be a
3471 condition under which we exit the loop.
3473 2007-02-15 Chris Toshok <toshok@ximian.com>
3475 * Control.cs (Refresh): only refresh if we've got a handle and are
3477 (CreateAccessibilityInstance): CreateControl() here.
3478 (UpdateChildrenZOrder): complicate the code loop even more by
3479 taking into account controls that haven't had their handle
3480 created, and those that aren't visible. But on the flip side,
3481 simplify the code by splitting it into two loops. one which
3482 builds up the list of child controls we're interested in, and the
3483 other that sets the z order of those children.
3485 2007-02-14 Chris Toshok <toshok@ximian.com>
3487 * Control.cs: Control.AccessibilityObject causes the control to be
3488 created, not just the handle.
3490 2007-02-14 Chris Toshok <toshok@ximian.com>
3492 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
3493 problem on X where a window might have its handle created (and be
3494 visible) while the window is unmapped. calling XConfigureWindow
3495 on an unmapped window is bad, and generates X errors.
3497 2007-02-13 Chris Toshok <toshok@ximian.com>
3499 * Control.cs (CreateHandle): don't loop over our children setting
3500 their parent here. do it when in WndProc when we're shown.
3501 (UpdateChildrenZOrder): make this internal so we can call it from
3503 (WndProc): for WM_SHOWWINDOW, reparent the child control after
3504 creating its handle. Also, remove the calls to PerformLayout from
3505 here. they're done in ScrollableControl.OnVisibleChanged. Also,
3506 OnVisibleChanged only seems to be called directly here for the
3507 toplevel control. It's propagated down the window hierarchy by
3508 calls to child.OnParentVisibleChanged.
3509 (OnVisibleChanged): don't do layout here - it's done (oddly
3510 enough, according to a glance at stack traces on ms.net..) in
3513 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
3514 z order of our children before calling PerformLayout.
3516 2007-02-12 Chris Toshok <toshok@ximian.com>
3518 [big change, fixes #80020]
3520 * AccessibleObject.cs: we need to make owner internal again to fix
3521 some of ControlAccessibleObject.
3523 * Control.cs: lots of changes here. add support for WM_CREATE,
3524 for which we generate OnHandleCreated. Remove the OnHandleCreated
3525 call from CreateHandle. Also add support for WM_SHOWWINDOW where
3526 we create child controls. leave the MonoTODO's for the
3527 accessibility calls, but fix the exceptions so the tests pass.
3529 Add the InvalidOperationExceptions to Invoke methods, and remove a
3530 couple of InvokeInternal methods we aren't using.
3532 Also, add a couple of CreateHandle calls in places where we know
3533 the handles are being created but our code doesn't reference
3536 Make SetVisibleCore call OnVisibleChange if the handle isn't
3537 created. If the handle is created, we rely on XplatUI.SetVisible
3538 generating the event synchronously.
3540 Lastly, make sure we don't use this.Handle inside CreateHandle,
3541 because we can call back into client (and that code can dispose of
3544 * XplatUIStructs.cs: misc/cleanup.
3546 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
3547 although we don't populate the wParam properly.
3548 (CreateWindow): generate WM_CREATE.
3549 (MapWindow,UnmapWindow): make these calls synchronous, at great
3550 performance expense (particularly in the unmap case), to match
3553 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
3555 (set_MdiParent): don't recreate the handle unless it's been
3558 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
3561 * NativeWindow.cs: this is probably the weirdest part of the
3562 patch. We need a way to link up the window being created to the
3563 WM_CREATE message. Since we can only be creating one window at a
3564 time on a given thread, we keep track of a per-thread reference so
3565 we can dispatch it properly. We also need to keep track of the
3566 Hwnd currently being created so that the win32 backend doesn't
3569 * XplatUIWin32.cs: a similar change to the one we made in
3572 2007-03-07 Jonathan Pobst <monkey@jpobst.com>
3574 * ToolStripItem.cs: Make CalculatePreferredSize virtual.
3575 * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
3576 to draw the menu shortcut string.
3578 2007-03-07 Jackson Harper <jackson@ximian.com>
3580 * TreeNode.cs: Add the 2.0 collapse method.
3582 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
3584 * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
3586 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
3588 * DataGridView.cs: Change DataSource will clear column and row
3589 lists. Call Invalidate() to reflect DataSource change.
3591 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
3593 * DataGridView.cs: Add rows when DataSource is System.Data.DataView
3594 and a new row is added to it.
3596 2007-03-07 Pedro MartÃnez Juliá <pedromj@gmail.com>
3598 * DataGridView.cs: Add columns when DataSource is en empty list but
3599 is a System.Data.DataView (from a System.Data.DataTable).
3601 2007-03-06 Andreia Gaita <avidigal@novell.com>
3603 * Label.cs: Implement AutoEllipsis (2.0)
3605 2007-03-06 Jackson Harper <jackson@ximian.com>
3607 * TreeView.cs: Implement 2.0 TopNode setter property.
3608 - Use a local var instead of the skipped_nodes field for computing
3609 how many nodes to skip. Otherwise we won't scroll because the
3610 valuechanged handler checks if skipped_nodes is equal to the new
3612 - Implement 2.0 Sort method.
3613 - Add useless 2.0 DoubleBuffer property
3614 - Implement 2.0 LineColors property. Lets you change the color of
3615 the lines in the tree. Terribly useful for creating non cohesive
3617 - Implement 2.0 image key feature.
3619 2007-03-06 Jackson Harper <jackson@ximian.com>
3621 * TreeView.cs: We can't get the bounds of the nodes before raising
3622 the AfterSelect event, because that event could change the node's
3623 bounds (scrolling, font change, etc).
3625 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
3627 * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
3628 * Form.cs: Don't recreate handle when creating FormWindowManager, just
3629 update window styles. In CreateParams us VisibleInternal instead of
3630 VIsible to get the actual visible flag set for this form.
3631 * FormWindowManager.cs: Activate the form whenever the mouse clicks on
3632 the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
3633 handle the case when the form is already maximized, in which case
3634 it should be restored. Fixes #81043.
3636 2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
3638 * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
3640 2007-03-05 Jackson Harper <jackson@ximian.com>
3642 * TreeViewHitTestInfo.cs: implement.
3644 2007-03-05 Jackson Harper <jackson@ximian.com>
3646 * InternalWindowManager.cs: class status fix.
3648 2007-03-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
3650 * InternalWindowManager.cs: All windows that have a parent
3651 are confined to their parent when they're being moved.
3654 2007-03-04 Gert Driesen <drieseng@users.sourceforge.net>
3656 * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
3657 on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
3659 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
3661 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
3662 buttons invisible before deciding which ones should be visible
3663 (fixes minimize/maximize buttons showing up in toolwindows). Remove
3665 * InternalWindowManager.cs: Remove warning.
3667 2007-03-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3669 * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
3670 to throw an InvalidOperationException is virtual mode is being used.
3672 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
3674 * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
3675 ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
3676 ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
3677 ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
3678 ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
3679 ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
3681 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
3683 * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
3684 driver.KeyboardDelay from XplatUI.KeyboardDelay
3685 * XplatUIW in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
3686 (patch by Sergey Volk)
3688 2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
3690 * ToolWindowManager.cs: Added, contains logic for
3692 * CreateParams.cs: Add a few helper methods and an
3693 internal variable to know which control the CreateParams belongs
3695 * Control.cs: Call Form.ChangingParent when the
3696 parent is about to be changed.
3697 * XplatUIX11.cs: DeriveStyles (): Set
3698 caption_height for all windows that have captions and are children.
3699 Update to use ToolWindowManager instead of InternalWindowManager
3701 * XplatUIWin32.cs: Set fake window styles for all
3702 windows that have window managers.
3703 * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
3704 now duplicated for mdi windows when they are
3705 maximized, first for the buttons the window itself has, then for
3706 the buttons that appear in the menu bar. Makes things a little
3707 easier). Updated UpdateWindowDecorations, SetWindowState and the
3708 mouse eventhandlers accordingly.
3709 * Form.cs: Add ChangingParent (), contains the
3710 logic of what should happen when the parent changes. In MdiParent
3711 don't set things that ChangingParent () is doing. When handling
3712 WM_CLOSE, we can close the form if there are any other modal forms
3713 and the current form is a descendent of the modal form.
3714 * InternalWindowManager.cs: A lot of refactoring,
3715 the title buttons are now extracted to a separate container class
3716 that takes care of all button code (clicks, tooltips, etc). Moved
3717 Iconic|Maximized|Normal Bounds properties to this class from
3718 MdiWindowManager, so that the window state logic can succeed for
3719 other than mdi wm's. Implemented general window state change logic.
3720 Moved CreateButtons to ThemeWin32Classic, since the theme might
3721 override which buttons are available when as well as the exact
3723 * FormWindowManager.cs: Added, contains logic for
3725 * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
3726 which buttons go where (and if they are at all visible).
3727 Removed special handling of maximized windows, since they aren't special.
3728 In DrawManagedWindowDecorations don't try to draw the text if it is
3730 * MdiClient.cs: ArrangeIconicWindows: Don't calculate any sizes,
3731 use whatever the wm gives us.
3733 2007-03-02 Jonathan Pobst <monkey@jpobst.com>
3735 * ButtonBase.cs: Add 2.0 properties.
3736 * Button.cs: Override Draw for 2.0.
3737 * Control.cs: Add Entered and Selected properties.
3738 * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
3739 TextRenderer.cs: Make internal for 1.1 to unify drawing code.
3740 * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
3742 * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
3744 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
3746 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code. :/
3748 2007-03-01 Jonathan Pobst <monkey@jpobst.com>
3750 * XplatUIWin32.cs: Register a new class with Windows each time we get
3751 a new ClassStyle. [Fixes bugs #79432, #80817]
3752 * Controls.cs: Set the correct ClassStyle in CreateParams.
3753 * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
3755 2007-03-01 Gert Driesen <drieseng@users.sourceforge.net>
3757 * ListView.cs: Add fireEvent argument to ReorderColumn since the
3758 ColumnReordered event must not be signaled when modifying DisplayIndex
3759 of a ColumnHeader. Added internal ReorderColumns method which takes
3760 care of drawing, and updating the internal DisplayIndex of the
3761 ColumnHeader. Added AddColumn method which is invoked from
3762 ColumnHeaderCollection when adding or inserting columns, and which
3763 ensures that reorder_columns_indices is kept in sync. Avoid redrawing
3764 after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
3765 Recalculated dispay indices after removing a ColumnHeader.
3766 * ColumnHeader.cs: Save DisplayIndex separately from ListView to
3767 match MS. Allows last display index to be returned after ListView
3768 is disposed. Update actual location of ColumnHeader when DisplayIndex
3771 2007-03-01 Everaldo Canuto <everaldo@simios.org>
3773 * LinkLabel.cs: Improve CalcTrimRectangle.
3775 * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
3777 2007-02-28 Everaldo Canuto <everaldo@simios.org>
3779 * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
3780 get rectangle as a result value.
3782 2007-02-28 Everaldo Canuto <everaldo@simios.org>
3784 * LinkLabel.cs: Theres some diferences between rectangle return from
3785 MeasureCharacterRanges and the area used for DrawString to fix this
3786 CalcMeasurementFactor method was created, it calcules the diferences
3787 to be use later to adjust rectangle in draw operations. Fixes #80473.
3789 * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
3790 to adjust draw rectangle.
3792 2007-02-27 Everaldo Canuto <everaldo@simios.org>
3794 * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
3795 text and some other changes to reduce and optimize source code.
3797 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
3799 * RadioButton.cs: Implement 2.0 event.
3800 * RelatedImageListAttribute.cs: Implement new class.
3802 2007-02-27 Everaldo Canuto <everaldo@simios.org>
3804 * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
3806 2007-02-27 Jonathan Pobst <monkey@jpobst.com>
3808 * CheckBox.cs: Implement 2.0 functionality.
3810 2007-02-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3812 * ListView.cs: Refactor Add and AddRange methods of
3813 ListViewItemCollection, to not update the ListView
3814 everytime an item is added in AddRange. Also move the update
3815 code to a new CollectionChanged method, and call it
3816 from other methods that need it as well (this should also fix some
3817 bugs when Sorting is used).
3819 2007-02-27 Jackson Harper <jackson@ximian.com>
3821 * TextControl.cs: Try to never let the caret stay in a non-text
3823 * TextBoxBase.cs: Update the caret.
3825 2007-02-26 Jonathan Pobst <monkey@jpobst.com>
3827 * XplatUIStructs.cs: Add some convenience methods for POINT structure.
3828 * XplatUIWin32.cs: Add some convenience methods for RECT structure,
3829 delete POINT structure, duplicate of one in XplatUIStructs.
3830 * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
3832 2007-02-26 Gert Driesen <drieseng@users.sourceforge.net>
3834 * ListView.cs: Initialize LabelEditEventArgs after setting Text of
3835 edit box since otherwise the Label would immediately be set (even if
3836 the user did not modify the label). In OnKeyDown set Handled to true
3837 if Return or Escape was pressed. In ColumnHeaderCollection unlink
3838 columns that are to be removed. In ListViewItemCollection unlink items
3839 that are to be removed.
3841 2007-02-24 Jonathan Pobst <monkey@jpobst.com>
3843 * TextRenderer.cs: If we set a GDI clip region, we need to clear
3844 it when we are done. [Fixes bug #80949]
3846 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
3848 * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
3850 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3852 * ListView.cs: I forgot to commit the changes for ListView
3853 in my previous patch.
3855 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
3857 * Clipboard.cs: Partially implement an overload of SetDataObject.
3858 * Form.cs: Implement ShowWithoutActivation.
3859 * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
3861 2007-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3863 This is a first set of changes to make the Virtual mode works,
3864 by avoiding the retrieval of ListViewItem instances until
3867 * ListView.cs: Store item position in the ListView instead of the
3868 ListViewItem, this way we don't request the Bounds property of
3869 ListViewItem inside the ListView calculations, as well as cache the item
3870 size in item_size field. Store indexes instead of ListViewItem
3871 instances in the matrix used by icon view. Add a ItemMatrixLocation
3872 struct to hold the row and col info of the matrix info.
3874 * ListViewItem.cs: Don't store the location anymore, and only cache
3875 the rectangles for GetBounds. Use the ListView.GetItemLocation
3876 method to retrieve the actual location.
3878 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
3880 * TextRenderer.cs: Add clipping support, thanks to George.
3883 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
3885 * ListViewItem.cs: Cancel label edit when item is removed from
3887 * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
3888 event before the edit textbox is displayed. Added CancelEdit method
3889 which is used end to editing while ignoring the value set by the
3890 user. In EndEdit, set focus to ListView to avoid losing focus to
3891 other controls. In ListViewItemCollection.Clear, cancel editing of
3892 any of the items. In Remove, cancel editing of item being removed.
3893 Avoid udplicate code by modifing RemoveAt to invoke Remove.
3895 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
3897 * FileDialog.cs: Update FSEntry when move is successful. Fixes
3900 2007-02-23 Everaldo Canuto <everaldo@simios.org>
3902 * MainMenu.cs: Change Draw method to take care about MenuOrigin to be
3903 compatible with non X11 systems. Fixes #80901.
3905 2007-02-23 Gert Driesen <drieseng@users.sourceforge.net>
3907 * ListView.cs: Added bool argument to UpdateMultiSelection to specify
3908 whether the item should be unselected and reselect. We do no want this
3909 when we're starting to edit the label. Do not fire the
3910 SelectedIndexChanged event from ListView when its already been fired
3911 by modifying ListViewItem.Selected. Fixes bug #80943.
3913 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
3915 * TextRenderer.cs: Previos commit logic was backwards.
3917 2007-02-23 Jonathan Pobst <monkey@jpobst.com>
3919 * TextRenderer.cs: Don't add padding on MeasureText if we were
3920 sent the NoPadding flag.
3922 2007-02-23 Everaldo Canuto <everaldo@simios.org>
3924 * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
3925 after DrawButton. To prevent image overlaps button borders SetClip and
3926 ResetClip added before and after draw image. Fixes #79129.
3928 2007-02-23 Everaldo Canuto <everaldo@simios.org>
3930 * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify
3931 window size, it fix problem when you run under win32 that theres
3932 Size diferent than ClientSize. Also fix controls size and positions
3933 to mimic Win32. Fixes #80837.
3935 2007-02-22 Everaldo Canuto <everaldo@simios.org>
3937 * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on
3938 menu area to fix some problems for non X11 systems. Fixes #80613.
3940 2007-02-22 Jackson Harper <jackson@ximian.com>
3942 * TreeNode.cs: When a node is expanded, set its is_expanded flag
3943 even if it doesn't have any children.
3945 2007-02-22 Jackson Harper <jackson@ximian.com>
3947 * TreeView.cs: Calculate the top node 'on the fly', this
3948 eliminates issues where you need to click on the tree before
3949 scrolling it to get the top node computed correctly.
3950 * TreeNodeCollection.cs: We don't need to mess with the top node
3953 2007-02-22 Jackson Harper <jackson@ximian.com>
3955 * DataGridViewRow.cs: Fix typo so height can actually be set.
3956 Patch by Peter Grimm.
3958 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
3960 * FileDialog.cs: Fixed support for renaming files and directories.
3961 * ListView.cs: Do not lose focus when edit is canceled. Process
3962 Escape as regular key (to prevent closing of dialogs).
3964 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
3966 * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
3967 spaces. Changed spaces to tabs. Removed unnecessary init of bools.
3969 2007-02-22 Gert Driesen <drieseng@users.sourceforge.net>
3971 * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
3972 did not modify label.
3973 * ListView.cs: Only set LabelEditEventArgs.Label if user actually
3974 modified the text. Reset Label when user presses Escape in edit mode.
3975 Move focus to ListView after having cancelled or finished editing the
3978 2007-02-21 Gert Driesen <drieseng@users.sourceforge.net>
3980 * ComboBox.cs: Removed unnecessary initializations. Marked items field
3981 private. Clear textbox when Text is set to null and SelectedIndex is
3983 * FileDialog.cs: Removed unnecessary initializations. Removed
3984 workarounds for ComboBox bugs that are now fixed. Modified
3985 DefaultExt, InitialDirectory and Title property to change null to
3986 zero-length string in getters. Avoid directly accessing fields.
3988 2007-02-20 Jackson Harper <jackson@ximian.com>
3990 * TextControl.cs: Remove RecalAlignments call, that was some
3991 debugging leftovers.
3992 - Don't use the line indent when we shouldn't.
3993 * RichTextBox.cs: Add support for paragraph left indents.
3995 2007-02-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
3997 * Control.cs: Fix BeginInvoke signature for 2.0 profile.
3998 Seems like the class status pages doesn't catch params differences.
4000 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
4002 * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
4004 2007-02-19 Gert Driesen <drieseng@users.sourceforge.net>
4006 * ComboBox.cs: Setting Text should have no effect if item text of
4007 selected item exactly matches value. First lookup text using
4008 case-sensitive comparison, and fallback to case-insensitive comparison.
4009 FindString(Exact) returns -1 if search string is null. On 2.0 profile,
4010 allow startIndex to be last index. Changed ArgumentOutOfRangeException
4011 paramname to match MS. Restart from first item if string is not found
4012 after startIndex. Fixed paramname of ArgumentNullException that is
4013 thrown for null value in ObjectCollection.Contains.
4015 2007-02-19 Everaldo Canuto <everaldo@simios.org>
4017 * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
4019 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
4021 * ListControl.cs: In SelectedValue use value.Equals to compare for
4022 equality instead of ==, otherwise it will fail for strings.
4025 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
4027 * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
4028 since the caret won't show up unless ShowSelection is true.
4031 2007-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
4033 * Application.cs: When disabling all forms but the main form, do not
4034 disable any descendants of the main form (such as mdi children or
4035 other parented forms). Fixes #80822 on Windows.
4036 * Form.cs: If we have a parent, set the WS_CHILD style.
4037 * Control.cs: Update the window styles if the control whose parent has
4038 changed is a form (the WS_CHILD style has to be switched).
4040 2007-02-19 Everaldo Canuto <everaldo@simios.org>
4042 * XplatUIStructs.cs: MsgUIState structure added.
4044 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
4046 * FileDialog.cs: Removed need for separate fileName field. On 2.0
4047 profile, do not check filename(s) for illegal character if filename(s)
4048 were set non-interactively but always check on 1.0 profile. Fixed NRE
4049 in DefaultExt and only strip off first leading dot. Improve exception
4050 message when invalid Filter is set. Do not ignore InitialDirectory if
4051 it does no exist. Store specified Title, and if empty use default
4052 title (depending on type of dialog). Added an internal DialogTitle
4053 property for retrieving dialog title. Fixed logic of displayed dir to
4054 more closely match MS. Avoid setting ComboBox.Text to a zero-length
4055 string as its buggy.
4056 * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
4057 FileName is a zero-length string (it can never be null). Override
4058 DialogTitle property to set default title of dialog box.
4059 * SaveFileDialog.cs: Override DialogTitle property to set default
4060 title of dialog box.
4062 2007-02-18 Gert Driesen <drieseng@users.sourceforge.net>
4064 * FileDialog.cs: Modify default text of filename and filetype labels
4065 to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
4066 after we've updated the SelectedIndex. Fixes part of bug #80887.
4067 * SaveFileDialog.cs: Set text of filetype label.
4069 2007-02-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4071 * LabelEditEventArgs.cs: New internal SetLabel method, to set the
4072 label field. Needed by latest Jackson's fixes for ListView.
4074 2007-02-16 Andreia Gaita <avidigal@novell.com>
4076 * PrintPreviewControl/PrintPreviewDialog: Properly dispose of
4077 print preview images.
4079 2007-02-16 Jackson Harper <jackson@ximian.com>
4081 * ListView.cs: Make AfterLabelEdit work correctly.
4082 * FileDialog.cs: After changing the name of the folder, we have to
4083 make sure that it is created, or that we pop up an error because
4086 2007-02-16 Jackson Harper <jackson@ximian.com>
4088 * X11Dnd.cs: Implement aliases on mime handlers, so things like
4089 System.String are mapped to text.
4090 - Handle dataobjects, getting all the possible formats out of them
4091 - We dont need the drag event args before we give feedback. This
4092 allows feedback cursors to be immediate before selections have
4095 2007-02-16 Jackson Harper <jackson@ximian.com>
4097 * TextBoxBase.cs: Modified the method for inserting images to
4098 taking a line and position instead of tag and position.
4099 * RichTextBox.cs: Handle PngBlip data by inserting the png image
4101 * TextControl.cs: Allow images to be inserted as the first tag of
4103 - Fix some off by one issues when we assume the first tag is a
4104 text tag, not an image tag.
4106 2007-02-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4108 * ListView.cs: Set focus to ListView when ItemControl gets a
4109 WM_RBUTTONDOWN message, to mimic .Net behaviour.
4110 Fixes part of #80467.
4112 2007-02-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
4114 * DateTimePicker.cs: Call RecreateHandle if the Format changes and
4115 validate Text input (if null or empty string reset Value to default
4116 value). Fixes #80830.
4118 2007-02-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4120 * ListView.cs: Set owner as null for columns and items when
4121 Dispose is invoked. Fixes #80607.
4123 2007-02-14 Jonathan Pobst <monkey@jpobst.com>
4125 * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
4126 showing DropDowns, don't show a Grip when doing Flow layout.
4127 [This fixes the toolbox in PDN 2.72.]
4128 * ToolStripItem.cs: Add Anchor property and some internal properties to
4129 reduces needed changes to FlowLayout.
4130 * ToolStripOverflow.cs: Remove unused variable.
4131 * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
4132 use it in the layout calculations.
4134 2007-02-13 Everaldo Canuto <everaldo@simios.org>
4136 * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
4139 * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
4142 2007-02-13 Everaldo Canuto <everaldo@simios.org>
4144 * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from
4145 MeasureString format, it can make button very large in some cases, it is
4146 strange but is what win32 do.
4148 2007-02-13 Everaldo Canuto <everaldo@simios.org>
4150 * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string
4153 * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
4154 rendering, the value is based on MenuAccessKeysUnderlined.
4156 2007-02-13 Everaldo Canuto <everaldo@simios.org>
4158 * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
4161 * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
4163 * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
4164 and use MenuAccessKeysUnderlined instead.
4166 2007-02-13 Andreia Gaita <avidigal@novell.com>
4168 * ContainerControl.cs: Focus fix for nunit treeview selection bug.
4169 A selected control would not get a Focus call if:
4170 - the default active control of the container is the same as
4171 the one that was selected
4172 - we are switching from one container to another
4173 Under these conditions, the container being selected already has
4174 an active_control, which is the same as the one being activated,
4175 so set_ActiveControl would always return and not send the Focus
4176 call. Fix to check if the currently active control of the container
4177 is actually focused.
4179 2007-02-13 Jonathan Pobst <monkey@jpobst.com>
4181 * StatusStrip.cs: Implement the spring layout.
4182 * ToolStripControlHost.cs: Make sure the hosted control's visibility
4183 always matches the host.
4184 * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
4187 2007-02-13 Andreia Gaita <avidigal@novell.com>
4189 * Control.cs: Code reorganization only.
4190 - Reorganize the WndProc cases so that each case has it's own handling method,
4191 to help with the no-line-numbering stack traces.
4192 - Formatting changes (it's vstudio's fault, really :p)
4194 2007-02-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
4196 * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
4197 Thread.CurrentUICulture to match DateTimePicker's (and MS)
4200 2007-02-12 Jackson Harper <jackson@ximian.com>
4203 * TextBox.cs: By default we have a non multiline document
4204 - use the multiline property instead of the internal variable
4205 * TextBoxBase.cs: Treat multiline and non multiline the same in
4207 - Use the documents multiline flag instead of tracking it ourself
4208 * TextControl.cs: Attempt at getting multiline to match MS
4209 behavior. Lines now track an offset, which is either their X or Y
4210 offset depending on whether or not we are in multiline mode.
4211 - Update all the methods to understand that lines have an X value.
4212 - Fix crash in Undo::Duplicate when empty lines are deleted.
4214 2007-02-12 Everaldo Canuto <everaldo@simios.org>
4216 * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and
4217 code moved to properties PreferredHeight and PreferredWidth. It solve the
4218 all problems when preferred sizes must be recalculated. Fixes #80801.
4220 2007-02-12 Everaldo Canuto <everaldo@simios.org>
4222 * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
4223 font height when compatible_text_rendering is false. Partially fix #80801.
4225 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
4227 * Form.cs: Fixed typo in exception message. Fixes bug #80779.
4229 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
4231 * Form.cs: Improved exception messages in ShowDialog.
4233 2007-02-09 Gert Driesen <drieseng@users.sourceforge.net>
4235 * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
4236 PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
4237 if not set. Fixes bug #80764. Avoid accessing current_settings field
4240 2007-02-08 Everaldo Canuto <everaldo@simios.org>
4242 * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
4245 * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
4246 public in 2.0 and for easy maintenance and dont break compatibility it is
4249 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
4251 * ToolStripItem.cs: Implement using images from ImageList.
4253 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
4255 * DateTimePicker.cs: Change default date-formatting culture from
4256 CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
4257 seems to be the way MS does it.
4259 2007-02-08 Andreia Gaita <avidigal@novell.com>
4261 * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image
4262 (the 6 was cut off on the right side)
4264 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
4266 * Form.cs: Tell MenuStrips to close when the form is clicked.
4267 * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs,
4268 ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
4269 ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
4270 ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add
4271 support for Overflow, where items that do not fit are automatically
4272 reparented to a drop down menu.
4273 * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
4274 Also: fixes bug #80747.
4276 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
4278 * ComboBox.cs: Remove warning (unused code).
4279 * ScrollableControl.cs: Remove warning for 1.1 profile.
4281 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
4283 * Form.cs: Remove a warning.
4285 2007-02-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
4287 * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
4288 'g' specifier, not documented anywhere, but seems to always show up
4289 as a single space (might have something to do with the DateTime 'g'
4290 specifier, which is the era format, but since DateTimePicker can't
4291 go earlier than 1753 it wouldn't matter) . Fixed quote handling,
4292 won't crash if the format has an unmatched quote. Now shows
4293 single-character formats correctly. Fixes #80744.
4295 2007-02-08 Jonathan Pobst <monkey@jpobst.com>
4297 * StatusStrip.cs: Stretch property needs to call base.Stretch,
4298 not this.Stretch to fix stack overflow. [Fixes bug #80760]
4300 2007-02-07 Chris Toshok <toshok@ximian.com>
4302 * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
4303 background color. it overwrites the background image we've
4304 already painted. Fixes #80599.
4306 2007-02-07 Chris Toshok <toshok@ximian.com>
4308 * DataGrid.cs: return immediately from Edit() when there are no
4309 columns. Fixes #80662.
4311 2007-02-07 Chris Toshok <toshok@ximian.com>
4313 * MessageBox.cs: fix #80625. don't always show the Help button in
4314 2.0. use the displayHelpButton parameter to determine if we
4315 should show it. Also, make the internal show_help field private.
4317 2007-02-07 Chris Toshok <toshok@ximian.com>
4319 * Control.cs (SetVisibleCore): check in the proposed patch for
4320 80604, and set is_visible before calling CreateControl.
4322 2007-02-07 Jonathan Pobst <monkey@jpobst.com>
4324 * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to
4325 MonoInternalNote. This is added automagically by VS2005, so let's not crash
4328 2007-02-06 Everaldo Canuto <everaldo@simios.org>
4330 * MenuAPI.cs: hotkey_active internal field added, it is required because
4331 we need to know when hotkeys must be draw, before this change a keystate
4332 Navigating was used but we can have menu in navigating state without
4333 hotkeys. Fixes #80694.
4335 * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
4337 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
4339 * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
4340 corresponding events and methods to be internal for 1.1 profile and
4341 public for 2.0 profile (required by SizeGrip).
4342 * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
4343 implicit control list). Don't set the size nor the location of the
4344 SizeGrip anymore as it's not needed.
4345 * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
4346 draw directly on the captured control (fixes #80656). Removed
4347 ShowGrip (it wasn't used anywhere), redraw (always true), added
4348 GetDefaultSize and GetDefaultRectangle to calculate defaults.
4349 * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
4350 be called from SizeGrip.
4352 2007-02-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
4354 * Timer.cs: Throw ArgumentException if Interval <= 0.
4356 2007-02-05 Jackson Harper <jackson@ximian.com>
4358 * TreeView.cs: We need to check scrollbar visibility when window
4359 visibility is updated, because non visible trees don't ever add
4361 * Cursor.cs: We want the override cursor to be reset to NULL when
4362 we set current cursor to the default cursor.
4364 2007-02-05 Jackson Harper <jackson@ximian.com>
4366 * TextControl.cs: Don't have crlfs when we are non multiline.
4367 - Consolidate the line position.
4369 2007-02-05 Jackson Harper <jackson@ximian.com>
4371 * X11Keyboard.cs: BACK+CTRL gets a special char code.
4373 2007-02-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
4375 * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
4376 handling LeaveNotify->NotifyUngrab in order to send
4377 WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
4378 after calling XUngrabPointer, so we call WindowUngrabbed directly
4379 from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
4380 * Control.cs: Handle WM_CAPTURECHANGED in order to raise
4381 MouseCaptureChanged correctly. Also create handles if changing
4382 Capture (matches MS behaviour).
4384 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
4386 * SizeGrip.cs: Make the last change 2.0 only.
4388 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
4390 * SizeGrip.cs: If resizing and the capture is lost, revert any size
4391 changes to initial size (fixes #80597).
4393 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
4395 * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
4397 2007-02-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
4399 * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
4400 background) and only allow dragging if enabled. This way the
4401 sizegrip can be used to fill the open square that otherwise would
4402 have been shown in the bottom right corner of ScrollableControl
4403 when ScrollableControl is not suppose to support sizing.
4404 * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
4405 sizegrip is shown and enabled, and hook up with necessary events.
4407 2007-02-01 Chris Toshok <toshok@ximian.com>
4409 * DataGridTextBoxColumn.cs: clean up the
4410 GetFormattedString/GetColumnValueAtRow combination of functions.
4411 Also fix UpdateUI, and the initial state of
4412 IsInEditOrNavigateMode.
4414 * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
4415 aren't supposed to scroll the textbox here, we're supposed to
4416 scroll the datagrid.
4418 2007-02-01 Chris Toshok <toshok@ximian.com>
4420 * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
4421 setting the position.
4423 2007-02-01 Chris Toshok <toshok@ximian.com>
4425 * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
4426 here, since the most recent focus fixes keep us from generating
4427 the Leave event when our textbox gets focus.
4428 (Edit): we should be passing null for the column style's
4429 instantText parameter.
4431 2007-02-01 Jonathan Pobst <monkey@jpobst.com>
4433 * ToolStripDropDownItem.cs: Make sure DropDownOpening event is
4434 raised. Fixes menu text/icons not showing up in PDN.
4436 2007-02-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
4438 * Control.cs: Remove code in constructor that makes every
4439 control with WS_CHILD set have initial location -1, -1.
4441 2007-01-31 Jackson Harper <jackson@ximian.com>
4443 * X11Dnd.cs: Take the keyboard on init to reduce coupling with
4445 * XplatUIX11.cs: Give teh keyboard to teh dnd.
4447 2007-01-31 Jackson Harper <jackson@ximian.com>
4449 * X11Dnd.cs: Use IDataObject instead of the DataObject class.
4450 - Remove some debug code.
4452 2007-01-31 Jackson Harper <jackson@ximian.com>
4454 * XplatUIX11.cs: If you set the override cursor during a grab, it
4455 should actually override the grab cursor. This comes into play
4456 when you are setting custom cursors in a DND feedback method.
4458 2007-01-31 Jackson Harper <jackson@ximian.com>
4460 * X11Dnd.cs: Add support for handling the QueryContinue and
4461 GiveFeedback events.
4462 - Cancel drag and drop actions when the escape key is clicked.
4463 * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
4464 can handle the ESCAPE key.
4465 - Allow dnd to swallow BUTTONUP messages if it needs to. This is
4466 done when dnd events are continued after the button is released.
4467 - Add a new helper method so that dnd can translate key events.
4469 2007-01-31 Alexander Olk <alex.olk@googlemail.com>
4471 * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
4472 make it more obvious what is happening.
4474 2007-01-30 Jackson Harper <jackson@ximian.com>
4476 * XplatUIX11.cs: Don't break when handling button release in drag
4477 and drop operations. We need that BUTTONUP message to get through
4478 so capture is released.
4479 * X11Dnd.cs: We don't need to manually grab the pointer anymore,
4480 this is handled automatically when the mouse is down.
4482 2007-01-30 Jackson Harper <jackson@ximian.com>
4484 * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
4485 is closed, so we need to make sure that we aren't changing the
4486 dialog result when the OK (Open or Save) button has been clicked
4487 and we are closing the window ourselves. Note we don't need to
4488 worry about the cache being written in this case, because it was
4489 already done in the previous FilOk call.
4491 2007-01-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
4493 * DateTimePicker.cs: Remove a warning.
4494 * ComboBox.cs: Remove a couple of warnings.
4496 2007-01-29 Chris Toshok <toshok@ximian.com>
4498 * XplatUIX11.cs: don't crash, and remove the icon if the user has
4499 set one, if SetIcon is passed a null icon.
4501 2007-01-29 Andreia Gaita <avidigal@novell.com>
4503 * TextBox.cs: Redraw when the password characters changes
4504 * TextControl.cs: Check if textbox has a password char and draw
4505 a line of password chars instead of the text in the line. LineTag gets
4506 an extra Draw() method which allows document.Draw to override the text
4507 that will be drawn. Removes 1024 char limitation on length of passworded
4510 2007-01-29 Jackson Harper <jackson@ximian.com>
4512 * TextBoxBase.cs: Deleting sections of text is undoable. Deleting
4513 single chars is not.
4515 2007-01-28 Jonathan Pobst <monkey@jpobst.com>
4517 * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
4518 one pixel. Fix a StackOverflowException caused by an overload wrongly
4521 2007-01-26 Everaldo Canuto <everaldo@simios.org>
4523 * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
4524 also remove ProcessArrowKey and put the code inside ProcessKeys.
4526 2007-01-26 Jonathan Pobst <monkey@jpobst.com>
4528 * PaddingConverter.cs: Added.
4530 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
4532 * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
4533 ShowPanels is false (fixes #80600). Only draw up to 127 characters
4534 of text (fixes #80601). For panels clip the text to draw to the
4535 panel (fixes #80603).
4537 2007-01-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
4539 * ComboBox.cs: Fixed implementation of ResetText.
4541 2007-01-25 Jackson Harper <jackson@ximian.com>
4543 * TextControl.cs: For the last char of a line we need to use the
4544 line size, not that chars width, since it won't actually be
4545 computed since the right side of a char is based on the start of
4546 the left side of the next char, and the next char does not exist.
4548 2007-01-25 Chris Toshok <toshok@ximian.com>
4550 * Splitter.cs: fix the new unit tests, and reindent some switch
4553 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
4555 * ComboBox.cs: Implemented 2.0 methods and events.
4556 * TextBoxBase.cs: Added OnTextUpdate, so that
4557 ComboBox.ComboTextBox can inform ComboBox of it.
4559 2007-01-25 Jackson Harper <jackson@ximian.com>
4561 * TextControl.cs: Respect ShowSelection when deciding whether or
4562 not to display the caret, this allows comboboxes to have carets
4563 when the combotextbox does not have focus.
4565 2007-01-25 Jackson Harper <jackson@ximian.com>
4567 * TextControl.cs: Add a Suspend/Resume for updating, basically the
4568 same as the Suspend/Resume for recalc, except this will do actual
4570 - New Undo manager, works much like the MS version.
4572 * TextBoxBase.cs: The Cut operation is undoable.
4574 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
4576 * TextBoxBase.cs: Don't antialias text. Makes it look way better
4577 on Windows (no difference on Linux).
4579 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
4581 * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
4582 we don't want to activate any windows. Fixes #79433.
4584 2007-01-25 Jonathan Pobst <monkey@jpobst.com>
4586 - ButtonBase.cs: Fix capitalization of parameter: disposing.
4589 2007-01-25 Alexander Olk <alex.olk@googlemail.com>
4592 - Move to using System.ComponentModel.EventHandlerList
4593 - Replace Refresh with Invalidate
4594 - Clear the mime filecache on closing
4595 - Some other memory reducing work. After beeing closed FD now uses
4596 only about 300 KB for the fdo mime stuff plus the memory of the
4598 * Mime.cs: Changed coding style and removed unnecessary commented
4599 code. Some more memory memory reducing work.
4601 2007-01-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
4603 * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
4604 a few other missing 2.0 properties.
4605 * Theme.cs: Added DrawFlatStyleComboBox.
4606 * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
4608 2007-01-24 Chris Toshok <toshok@ximian.com>
4610 * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
4611 wake_waiting flag, not just when there's data to be read. if we
4612 don't, then future wakeup's won't reach us and we'll be doomed to
4613 wait for the entire 1 second timeout forever (unless there are X
4616 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
4618 * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
4619 until you pass Items.Count, not Items.Count - 1 like 1.1.
4621 2007-01-24 Gert Driesen <drieseng@users.sourceforge.net>
4623 * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
4625 2007-01-24 Jonathan Pobst <monkey@jpobst.com>
4627 * ToolStripContainer.cs: The recent Dock fix exposed that I was
4628 adding the panels in the wrong order.
4630 2007-01-24 Jackson Harper <jackson@ximian.com>
4632 * TextBoxBase.cs: When we move the caret we also need to move the
4633 selection, this fixes some random crashing after doing select
4634 text, unselect, delete a char, paste.
4636 2007-01-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
4638 * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
4640 2007-01-23 Everaldo Canuto <everaldo@simios.org>
4642 * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
4643 OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553.
4644 * ToolBar.cs: Force redraw in BackgroundImageChanged.
4646 2007-01-23 Everaldo Canuto <everaldo@simios.org>
4649 - Implement support for vertical toolbars. Fixes #80539;
4650 - Call LayoutToolBar when resize, it fix some other problems in layout.
4651 - Rename requested_height to requested_size, as we can have width on it
4652 when toolbar is vertical.
4653 - Create a private property "Vertical" that uses Dock to verify when
4654 toolbar is vertical or not.
4655 - Set ControlStyles when change Dock property.
4656 - Refactory in LayoutToolBar to have better variables names and to support
4658 - Fixes default value for ButtonSize when button count is equal zero, size
4659 must be (39, 36) test case writed.
4661 2007-01-23 Chris Toshok <toshok@ximian.com>
4663 * Control.cs: fix the checks so that they work correctly for mdi
4666 2007-01-23 Chris Toshok <toshok@ximian.com>
4668 * Control.cs: ControlCollection seems to have super-secret
4669 abstraction breaking knowledge of Mdi containers. allow MdiClient
4670 to add toplevel controls.
4672 2007-01-23 Chris Toshok <toshok@ximian.com>
4674 * Control.cs: throw an ArgumentException if a toplevel control is
4675 added to our control collection from ControlCollection.Add, as
4676 well as from ControlCollection.IList.Add. This fixes the
4677 ControlSetTopLevelTest.TestTopLevelAdd unit test.
4679 Also, in ControlCollection.IList.Add, don't through an
4680 ArgumentNullException, throw an ArgumentException, when value ==
4681 null. This matches MS.
4683 2007-01-23 Chris Toshok <toshok@ximian.com>
4685 * BindingSource.cs: initial, incomplete, implementation of
4688 2007-01-23 Jackson Harper <jackson@ximian.com>
4691 * TextBoxBase.cs: Checking in some pieces of the undo stuff so
4692 that I can fix a broken unit test (TextBoxTest::ClearUndo)
4694 2007-01-23 Everaldo Canuto <everaldo@simios.org>
4696 * ToolBar.cs: Add status fields to ToolBarButtonInfo.
4698 2007-01-23 Andreia Gaita <avidigal@novell.com>
4700 * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
4701 * TreeNodeCollection.cs: New Add() methods, ContainsKey and
4702 IndexOfKey() for 2.0
4704 2007-01-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
4706 * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
4707 to prevent it from changing z-order.
4708 * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
4709 leave UI updates in MdiWindowManager.
4710 * InternalWindowManager.cs: Check for 0 sized nc areas and make them
4711 1 sized (NC handling goes weird on Linux otherwise).
4712 * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
4713 necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
4714 remove a few NCRequestRecalcs. Changed calculations in IconicBounds
4715 to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
4716 and SetWindowState(s) to allow for changing the size of an activated child
4717 before activating it (reduces a lot of flicker).
4719 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
4721 * Form.cs: Changing FormBorderStyle has different semantics based
4722 on whether the Form is visible or not. If not visible, don't change
4723 the Size. But InvalidateNC needs to be called to force the window
4724 to pick up the changes and redraw itself. [Fixes bug #80574]
4726 2007-01-22 Jonathan Pobst <monkey@jpobst.com>
4729 * ContainerControl.cs: ProcessCmdKey.
4730 * ErrorProvider.cs: new constructor.
4731 * Form.cs: fix AutoValidateEvent compiler warning.
4732 * Label.cs: fix OnAutoSizeChanged compiler warning.
4733 * MenuStrip.cs: fix CanOverflow compiler warning.
4734 * TabControl.cs: SelectTab, OnSelected methods, Selected event.
4735 * TextBox.cs: Dispose.
4736 * ToolStrip.cs: CanOverflow, re-enable double buffering.
4737 * ToolStripControlHost.cs: fix CausesValidation compiler warning.
4738 * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
4739 * ToolStripItem.cs: Overflow, RightToLeft properties.
4741 2007-01-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
4743 * Form.cs: Move the layout of the main form to MdiWindowManager.
4744 * MdiWindowManager.cs: If WindowState changes from or to Maximized,
4745 do a layout of the main window to update MdiClient's client area to
4746 the right area. Fixes #80533. Remove the calculation of nc size,
4747 it was just wrong and the correct one is the same as for
4748 InternalWindowManager.
4750 2007-01-20 Jonathan Pobst <monkey@jpobst.com>
4752 * Control.cs: Setting Anchor or Dock needs to reset the other
4753 to its default. [Fixes bug #80556]
4755 2007-01-20 Chris Toshok <toshok@ximian.com>
4757 * CheckedListBox.cs: class status changes.
4759 * ScrollableControl.cs: same.
4761 * RichTextBox.cs: same.
4763 * ContainerControl.cs: same.
4765 * ListView.cs: same.
4767 * NotifyIcon.cs: same.
4769 * MenuStrip.cs: same.
4771 * RadioButton.cs: same.
4773 * CheckBox.cs: same.
4775 * PrintPreviewDialog.cs: same.
4779 2007-01-19 Jonathan Pobst <monkey@jpobst.com>
4781 * TreeNode.cs: Apply Alan's patch for Name property.
4783 2007-01-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
4785 * Form.cs: Implemented SizeGripStyle.
4786 * SizeGrip.cs: Check for minimum and maximum size for the
4787 control being resized and only resize if size has actually
4790 2007-01-19 Chris Toshok <toshok@ximian.com>
4792 * DataGridColumnStyle.cs: stop setting _readonly in the
4793 PropertyDescriptor setter. fixes a unit test failure.
4795 also, rename ParentReadOnly to TableStyleReadOnly, and have it
4796 just consult our table style (if we have one). We don't need to
4797 consult the datagrid readonly attribute because that's passed in
4798 as the _ro arg to Edit. this simplifies things a little.
4800 * DataGrid.cs: use CurrentColumn instead of
4801 current_cell.ColumnNumber just to simplify some of the code.
4803 switch the order of some things in the CurrentCell setter to keep
4804 the previous cell from getting a textbox again -
4805 EnsureCellVisibility causes scrolling to happen, which calls Edit.
4806 So we need to set the new cell before calling it.
4808 call Edit in OnEnter, as does Microsoft.
4810 also, make sure the current table style isn't the one we create
4811 initially when checking to see if it's different than the one
4812 we're setting it to in BindColumns (this fixes #80421).
4814 * GridTableStylesCollection.cs: table styles can have "" for a
4815 mapping name. part of the fix for #80421.
4817 * DataGridTextBoxColumn.cs: simplify the readonly calculation in
4820 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
4822 * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
4823 and less GDI object leaky-er.
4825 2007-01-18 Andreia Gaita <avidigal@novell.com>
4827 * LinkLabel.cs: Add opaque control style
4829 2007-01-18 Jackson Harper <jackson@ximian.com>
4831 * TextControl.cs: Calculate width properly.
4832 - Don't store the tag's X offset, this can be figured out very
4834 - When getting the caret tag make sure to get the last empty tag.
4836 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
4838 * Form.cs: Recalculate our size after setting a new FormBorderStyle.
4841 * Control.cs: Color.Empty shouldn't count for previous transparent
4844 2007-01-18 Jackson Harper <jackson@ximian.com>
4848 * TextControl.cs: Starting to merge in some pieces of my older
4849 undo work. Basically just some slight cleanup of the undo API.
4851 2007-01-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
4853 * TrackBar.cs: Fix signature of RightToLeftLayout.
4854 * StatusBar.cs: Implemented missing 2.0 methods and attributes.
4855 * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
4856 * Application.cs: Implemented UseWaitCursor.
4858 2007-01-18 Jackson Harper <jackson@ximian.com>
4860 * TextControl.cs: We can't skip tags if any part of the tag is
4863 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
4865 * ContainerControl.cs: Override OnLayout.
4867 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
4869 * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
4871 * ContextMenuStrip.cs: Make sure context menu is shown on top of
4874 2007-01-18 Chris Toshok <toshok@ximian.com>
4876 * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
4877 (leftover from the container_selected days, I'd wager). fixes bug
4880 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
4882 * Control.cs: Apply patch from George to fix the new testcase on
4883 bug #80451. We can't just check for Color.Transparent, we need
4884 to check if the back color's alpha channel is < 255.
4886 2007-01-18 Jonathan Pobst <monkey@jpobst.com>
4888 * Form.cs: Move setting show_icon = true to before the constructor
4889 so that the base constructor has that information when it calculates
4890 the form's size. Was causing forms to be (6, 6) bigger than they
4891 were supposed to be. Thanks for catching this Rolf!
4893 2007-01-18 Jackson Harper <jackson@ximian.com>
4895 * TextControl.cs: When replacing a selection we need to invalidate
4896 from the initial selection start, because selection start is moved
4897 to the end of the replacement.
4899 2007-01-18 Andreia Gaita <avidigal@novell.com>
4901 * LinkLabel.cs: Missing ControlStyles. Fixes #80482
4903 2007-01-18 Chris Toshok <toshok@ximian.com>
4905 * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
4908 2007-01-17 Everaldo Canuto <everaldo@simios.org>
4910 * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every
4911 layout methods and properties from ToolBarButton must be available
4912 into ToolBarButtonInfo.
4914 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
4916 * Control.cs: If the control has a transparent background, we
4917 need to refresh it when it moves and when it's parent's background
4918 image changes. [Fixes bug #80451]
4920 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
4922 * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code! Doh!
4924 2007-01-17 Jonathan Pobst <monkey@jpobst.com>
4926 * XplatUIWin32.cs: Implement proper double buffering for Windows.
4927 [Fixes bug #80447, and probably speeds up things as well]
4929 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
4931 * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
4932 * XplatUIWin32.cs: We need to recalculate NC size after changing
4933 window style to toolwindow (otherwise the client rectangle will be
4934 3 pixels to small for some reason).
4935 * MdiWindowManager.cs: Revert NC size calculations to match how
4936 they are calculated only based on window styles (to match
4937 Win32AdjustWindowRectEx, since otherwise when setting size or
4938 location, Control will call Win32AdjustWindowRectEx to update client
4939 size, which would provoke a paint, then we'd get a NCCALCSIZE and
4940 calculate a different value of client size causing another paint
4942 * InternalWindowManager.cs: When moving or resizing a window only
4943 update size or location if they actually changed.
4944 * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
4945 (seems to match Windows behaviour better). Cleaned up
4946 ManagedWindowDecorations to draw what's needed and nothing else
4947 (was drawing borders and lines where they shouldn't be)
4948 * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
4949 (style = 0xFFFF) and takes into account caption height when
4950 calculating window rectangle.
4952 2007-01-16 Everaldo Canuto <everaldo@simios.org>
4954 * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button
4955 can be added to toolbar multiple times, we need to maintain a list of
4956 button information for each positions.
4958 2007-01-16 Everaldo Canuto <everaldo@simios.org>
4960 * ToolBar.cs: Some small stetic changes.
4962 2007-01-16 Jackson Harper <jackson@ximian.com>
4964 * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
4965 that allow us to have nested recalc = false blocks.
4966 - Add paste support for images in the RichTextBox
4967 * RichTextBox.cs: flush the text after the color is changed, so
4968 the change takes effect.
4970 - Some extra debugging info
4971 * TextControl.cs: Tags no longer track their length, it is just
4972 computed from the next tags length, this makes things a little
4973 simpler and reduces places that we have to track length changes.
4974 - Refactored the linetag class a little so we could make it
4975 a base class for different kinds of tags
4976 - Created a image tag, a tag that can have a single image inserted
4978 - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
4979 that we can call suspend multiple times.
4980 - Add some debugging methods
4982 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
4984 * MdiClient.cs: Add ActivatePreviousChild for
4985 mdi child window navigation.
4986 * Form.cs: Use MdiClient.ActivateNextChild/
4987 ActivatePreviousChild instead of Form.SelectNextControl
4988 to select the next/previous child since
4989 SelectNextControl doesn't do it in the same order
4990 as mdi children should do it.
4992 2007-01-16 Chris Toshok <toshok@ximian.com>
4994 * Control.cs: remove container_selected field.
4996 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
4998 * MdiClient.cs: Update main form's ActiveChild when
4999 updating keyboard focus for the mdi child.
5001 2007-01-16 Jonathan Pobst <jpobst@novell.com>
5003 * Control.cs: PreferredSize fix.
5005 * Form.cs: Add several 2.0 events, properties, and methods.
5007 2007-01-16 Gert Driesen <drieseng@users.sourceforge.net>
5009 * Form.cs: Provide meaningful message when MdiParent is assigned a
5010 Form that is not an MdiContainer.
5012 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
5014 * MdiClient.cs: Update main form's ActiveChild when
5015 activating a mdi child.
5017 2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
5019 * MdiWindowManager.cs: Fix NRE when merging menus and main form
5020 doesn't have a menu.
5022 * Form.cs: Request NCRecalc after creating a mdi child window.
5023 Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab,
5024 Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
5026 * MdiClient.cs: Add new method SendFocusToActiveChild that either
5027 sends keyboard focus to the active child, or to the MdiClient
5028 if there are no child forms.
5030 2007-01-15 Chris Toshok <toshok@ximian.com>
5032 * ListView.cs: drop the *Internal overrides, just do our work in
5033 ItemControl's WndProc instead.
5035 * UpDownBase.cs: a few large changes. Fix up the Selectable state
5036 of the various controls, and forward the events properly (in the
5037 same manner as MS) from the textbox to the UpDown. Also the
5038 ActiveControl of the UpDownBase gets set properly now. Finally,
5039 we don't call UpdateEditText from the ctor. Fixes bug #79957.
5041 * NumericUpDown.cs: set Text in the ctor.
5043 * DomainUpDown.cs: call UpdateEditText in the ctor.
5045 * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
5046 so even a Selectable = false textbox can be focused if you click
5049 * Control.cs: remove On{Got,Lost}FocusInternal. Subclasses can
5050 just add their handling in their respective WndProc's. Also add
5051 an explicit FocusInternal method that doesn't consult CanFocus
5052 before calling Select(this).
5054 * TextBoxBase.cs: deal with removal of the FocusInternal calls -
5055 do our work in WndProc instead.
5057 * TabControl.cs: same.
5059 * ComboBox.cs: same.
5061 2007-01-15 Everaldo Canuto <everaldo@simios.org>
5063 * Menu.cs: implement MergeItems and Replace for MenuMerge method.
5066 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5069 * ThemeWin32Classic.cs: Don't draw the item text outside
5070 item bounds in Details view, as well as use trimming.
5073 2007-01-15 Jonathan Pobst <jpobst@novell.com>
5075 * Form.cs: Implement Form.ShowIcon.
5077 * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
5078 null, which when combined with the DlgModalFrame window style removes
5079 the icon from the title bar.
5081 2007-01-15 Jonathan Pobst <jpobst@novell.com>
5083 * Control.cs: Call OnMouseClick after OnClick. (2.0)
5085 2007-01-15 Everaldo Canuto <everaldo@simios.org>
5087 * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
5088 menu when mdi child windows theres a menu, uses insert to get icon
5089 at first position. Partially fix #80006.
5091 2007-01-15 Jonathan Pobst <jpobst@novell.com>
5093 * Clipboard.cs: Implement 2.0 methods.
5095 2007-01-15 Everaldo Canuto <everaldo@simios.org>
5097 * Menu.cs: Implement Insert method of MenuItemCollection class
5100 2007-01-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5102 * ListView.cs: Implement 2.0 FindItemWithText method.
5104 2007-01-11 Everaldo Canuto <everaldo@simios.org>
5106 * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
5107 to calculate menu bar size. Fixes #80290.
5109 2007-01-11 Everaldo Canuto <everaldo@simios.org>
5111 * ThemeWin32Classic.cs: Fix position of menuitem check mark.
5113 2007-01-11 Chris Toshok <toshok@ximian.com>
5115 * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
5118 2007-01-11 Chris Toshok <toshok@ximian.com>
5120 * LinkLabel.cs: make sure to call base.Select in our Select method
5121 if it turns out we're going to be selected (i.e. if we have a link
5122 that is going to receive focus). That way our container's
5123 ActiveControl is updated properly.
5125 2007-01-11 Chris Toshok <toshok@ximian.com>
5127 * LinkLabel.cs: turns out that LinkLabels are only Selectable if
5128 they have 1 or more links. this fixes the crash gert reported.
5130 2007-01-11 Andreia Gaita <avidigal@novell.com>
5132 * ContainerControl.cs: Remove ContainerSelected flag, not needed
5135 * Control.cs (Controls.Add): Check if control to be added to the collection
5136 is a top level control, and throw an ArgumentException if it is.
5137 Remove ContainerSelectedFlag, not needed anymore.
5139 * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
5140 top most control doesn't activate the form. This fixes a problem in the
5141 MessageBox, where the default button wouldn't get focus because the form
5142 was activated before being Loaded - when the Owner is set, SetTopMost is
5143 called, and it would activate it.
5145 2007-01-11 Jonathan Pobst <jpobst@novell.com>
5147 * Button.cs: When clicked and setting the parent form's DialogResult,
5148 use FindForm instead of Parent, since parent could be a container
5149 control and not the Form. Fixes bug #80495.
5151 2007-01-10 Chris Toshok <toshok@ximian.com>
5153 * Form.cs: move the call to SendControlFocus into the same
5156 2007-01-10 Chris Toshok <toshok@ximian.com>
5158 * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
5159 It breaks in the face of the new ActiveControl stuff, and should
5162 * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
5163 activecontrol's focus if it's not already set, after we set
5164 ActiveControl, but before we call OnActivated. Re-fixes #79667
5165 after the previous focus/active control fixes regressed it.
5167 * Control.cs: reindent some code.
5169 2007-01-10 Chris Toshok <toshok@ximian.com>
5171 * Splitter.cs: clearing some outstanding changes from my tree.
5172 Replace all accesses (not writes) to the internal dock_style field
5173 with the Dock property.
5175 2007-01-10 Chris Toshok <toshok@ximian.com>
5177 * Control.cs: make FireEnter, FireLeave, FireValidating, and
5178 FireValidated virtual.
5180 * Form.cs: override and don't chain up calls to FireEnter and
5183 2007-01-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5185 * ListView.cs: Add more text padding space when using
5186 auto resize for columns (the previous value didn't work fine).
5188 * ThemeWin32Classic.cs: Update text position inside columns,
5189 to match the appeareance of .Net.
5191 * ColumnHeader.cs: When using auto resize, only the Width should
5192 depend on the sub items, not the Height. Also, set width after
5193 auto resizing (the value of Width should never remain as -1 or -2).
5195 2007-01-10 Chris Toshok <toshok@ximian.com>
5197 * Application.cs: fix compilation errors when debug is enabled.
5199 2007-01-10 Chris Toshok <toshok@ximian.com>
5201 * ContainerControl.cs (set_ActiveControl): rework this a bit (and
5202 add some nice ascii art pictures and explanation of the process).
5203 (GetMostDeeplyNestedActiveControl): new utility function we need
5204 because our ActiveControl can refer to a child container with its
5207 * Form.cs (OnActivated): remove the call to SelectActiveControl
5208 from here, since you can override this method and not chain up,
5209 and winforms still sets the active control.
5210 (OnCreateControl): also remove the unnecessary SelectActiveControl
5212 (WndProc): it's actually called from the WM_ACTIVATE block, just
5213 before calling OnActivated.
5215 * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
5216 inside the else. the ActiveControl setter will end up setting
5217 focus on @control. This keeps us from setting it again (and
5218 generating an extra LostFocus/GotFocus pair).
5219 (Select (bool, bool)): reindent.
5221 2007-01-10 Jonathan Pobst <jpobst@novell.com>
5223 * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
5224 StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
5225 ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
5226 ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
5227 ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
5228 ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
5229 ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
5230 ToolStripTextBox.cs: Another wave of corcompare work.
5232 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5234 * ColumnHeader.cs: Implement 2.0 AutoResize method using
5237 * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
5238 methods by callling Column.AutoResize method on columns.
5240 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
5242 * Control.cs: Provide proper implementations of PreferredSize
5243 and GetPreferredSize (2.0).
5245 2007-01-09 Jonathan Pobst <monkey@jpobst.com>
5247 * Form.cs: Remove one character (!) to make my previous OnClosing
5248 stuff work for modal windows like MessageBox.
5250 2007-01-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5253 * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
5254 ListView.Columns to get the last displayed column. Fixes #80452.
5256 2007-01-09 Everaldo Canuto <everaldo@simios.org>
5258 * Label.cs, LinkLabel.cs: Source code identation fixes.
5260 2007-01-08 Everaldo Canuto <everaldo@simios.org>
5262 * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
5263 we dont need to invalidate only borders because when we invalidate four
5264 border lines the invalidate's generates a complete redraw of button,
5265 because it now invalidate a complete rect some other redraws operations
5266 are fixed. Fixes #80196.
5268 * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
5269 Remove ToolBarInvalidateEntireButton as it is not used.
5271 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
5273 * Form.cs: Make sure that both OnClosing and OnFormClosing are
5274 called for 2.0 profile.
5275 * CloseReason.cs: Make class internal for 1.1.
5277 2007-01-08 Jonathan Pobst <monkey@jpobst.com>
5279 * ToolStripManager.cs: Implement FindToolStrip functionality.
5280 * ToolStrip.cs: Register and unregister with ToolStripManager.
5282 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
5284 * Control.cs: This was messy. 2.0 moves much of ControlCollection
5285 to ArrangedElementCollection. Implemented this with as few #if's as
5286 possible (which is still too many).
5288 2007-01-07 Jonathan Pobst <monkey@jpobst.com>
5290 * Control.cs: Implement SizeFromClientSize() [2.0].
5292 2007-01-07 Everaldo Canuto <everaldo@simios.org>
5294 * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
5295 use Theme.BorderSize to calculate area instead of static value 1,
5296 by the way use new BorderStaticSize instead Border3DSize when
5297 border_static is true. Fixes #79537.
5299 * XplatUIOSX.cs: Fix call to GetClientRectangle.
5301 * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
5304 2007-01-06 Everaldo Canuto <everaldo@simios.org>
5306 * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
5308 2007-01-06 Everaldo Canuto <everaldo@simios.org>
5310 * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
5311 WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
5314 - border_static field added, it will used to define when a control
5315 theres 3D border but it must be static (thin).
5316 - In GetWindowRectangle use Theme.BorderSize to calculate area
5317 instead of static value 1, by the way use new BorderStaticSize instead
5318 Border3DSize when border_static is true.
5320 * XplatUIX11.cs, XplatUIOSX.cs:
5321 - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
5323 * Theme.cs: BorderStaticSize field added.
5325 2007-01-05 Everaldo Canuto <everaldo@simios.org>
5327 * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
5329 2007-01-05 Everaldo Canuto <everaldo@simios.org>
5331 * Control.cs: Under InternalBorderStyle call RecreateHangle to
5332 mimic same behavior than win32 that set border only in CreateParams,
5333 it fix problems under CreateParams overrides. Fix #79442 and partial
5336 * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
5337 of thi control you must call recreate handle.
5339 * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
5340 need to do anything as RecreateHangle will take care about borders.
5342 2007-01-05 Mike Kestner <mkestner@novell.com>
5344 * ListView.cs: hack to eliminate Lost/Got focus notifications on
5345 cycles between the ItemControl and parent. Fixes #80388.
5347 2007-01-05 Gert Driesen <drieseng@users.sourceforge.net>
5349 * Control.cs: Lazy init layout engine. Do not directly use
5350 layout_engine since LayoutEngine may be overridden (on 2.0 profile).
5352 2007-01-05 Chris Toshok <toshok@ximian.com>
5354 * DataGrid.cs: don't forceably rebind columns in SetDataSource
5355 unless our list manager has changed (i.e. unless we have reason to
5356 believe our columns have changed). Fixes #80422.
5358 also, disable the call do BindColumns in
5359 OnListManagerMetaDataChanged. this breaks this test in 2.0 (in
5360 1.1 the event isn't raised in response to a column addition on a
5363 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
5365 * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
5366 that inheritors can not call it if they choose. Fixes bug #80456.
5368 2007-01-05 Andreia Gaita <avidigal@novell.com>
5370 * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it
5371 doesn't blow up with a null exception on marshalling.
5373 2007-01-05 Jonathan Pobst <monkey@jpobst.com>
5375 * Control.cs: Implement several 2.0 protected properties and methods.
5376 Ensure that all necessary events are being called when properties
5379 2007-01-05 Mike Kestner <mkestner@novell.com>
5381 * ListView.cs: implement PgUp/PgDn for Details view. Also
5382 fixes First/LastVisibleIndex to use the item_control.ClientRect
5383 instead of the parent control. Fixes #80378.
5385 2006-01-05 Atsushi Enomoto <atsushi@ximian.com>
5387 * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
5388 determine whether to use yard-pound or not (bug #78399).
5390 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
5392 * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
5393 problems. So it is time to bring back the old popupbutton colors.
5395 2006-01-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5398 * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
5399 property by using the internal information of the
5400 columns order in ListView.
5402 2007-01-04 Jonathan Pobst <monkey@jpobst.com>
5404 * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
5405 Add 2.0 Tag properties.
5407 * LinkArea.cs: Add 2.0 ToString method.
5409 2007-01-03 Chris Toshok <toshok@ximian.com>
5411 * DataGrid.cs: the Alt+0 handling was wrong, it should have been
5412 Ctrl+0. Fixes bug #80367. Also, don't eat the Delete keypress
5413 when we're editing, which fixes #80047.
5415 2007-01-03 Chris Toshok <toshok@ximian.com>
5417 * Form.cs: apply patch contributed by Dominik Seichter. fixes
5420 2007-01-03 Jonathan Pobst <monkey@jpobst.com>
5422 * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
5423 property and implementation.
5425 * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
5426 for MdiWindowListItem property.
5428 * ToolStripDropDown.cs: Don't consider hidden menu items while
5429 laying out the menu.
5431 2007-01-03 Andreia Gaita <avidigal@novell.com>
5433 * SendKeys.cs: window handle is not needed in win32, so just
5434 get the active window for X after parsing keys and don't use
5435 it when building the message; it is passed by parameter to the
5436 Xplat method and used there to build the message instead. Also,
5437 wait for events to be processed on SendWait, as opposed to Send,
5438 which doesn't wait :) Playing with threads and Send() completely
5439 hangs on ms.net, only SendWait() works.
5442 X11Display.cs: Check for valid window handle.
5444 2007-01-03 Jackson Harper <jackson@ximian.com>
5446 * TextControl.cs: Need to prevent wrap calculations when replacing
5447 text (this was there before i removed it accidently).
5448 - Don't update the cursor during the positioning, just set it to
5449 selection_start at the end of the operaion.
5451 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
5454 * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
5456 2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
5458 * MonthCalendar.cs: Added Click and DoubleClick events again,
5459 but this time they only hide Control's Click and DoubleClick.
5461 2007-01-03 Gert Driesen <drieseng@users.sourceforge.net>
5463 * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
5464 System.Drawing assembly. Spaces to tabs. Removed extra tabs.
5466 2007-01-02 Jackson Harper <jackson@ximian.com>
5468 * TextBoxBase.cs: We move the caret with the split now, so we
5469 don't need to explicitly move the caret after splitting. This
5470 fixes the caret bumping down an extra line on Enter.
5472 2007-01-02 Miguel de Icaza <miguel@novell.com>
5474 * ContainerControl.cs: Add AutoValidateChanged event (for PDN
5477 * ScrollableControl.cs: Add Scroll event.
5479 2007-01-02 Mike Kestner <mkestner@novell.com>
5481 * ListView.cs: one more try with help from georgegiolfan@yahoo.com
5482 to fix all hdr height padding codepaths. Fixes #80207.
5484 2007-01-02 Chris Toshok <toshok@ximian.com>
5486 * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
5487 setting it to the Control defaults anyway, and it being after the
5488 Dock set was screwing up layout.
5489 (set_Dock): don't short circuit out of setting base.Dock. Also,
5490 no need to call UpdateStatusBar here, as it'll be re-layed out if
5493 2007-01-02 Mike Kestner <mkestner@novell.com>
5495 * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
5496 to header height for width == -1. Fixes the rest of #80207.
5498 2007-01-02 Mike Kestner <mkestner@novell.com>
5500 * ListView.cs: rework the mouse event forwarding everaldo added
5501 to translate the coordinates to the parent control not
5502 raise the parent events until after we've done our work. Hover
5503 needs more work, in the case where HoverSelection is on, because
5504 the item control receives more than one MouseHover per Enter
5505 event, so we need to ensure only the "first" hover gets forwarded.
5506 Opening a minor bug for that.
5508 2007-01-02 Gert Driesen <drieseng@users.sourceforge.net>
5510 * CheckedListBox.cs: Fixed SelectionMode to match MS.
5511 * ListControl.cs: Implemented AllowSelection property. Removed extra
5513 * ListBox.cs: Implemented AllowSelection property.
5515 2007-01-02 Everaldo Canuto <everaldo@simios.org>
5517 * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
5518 SelectedItem, it prevent for errors when you must disable item
5519 before perform click. Fixes #80409.
5521 2007-01-02 Everaldo Canuto <everaldo@simios.org>
5523 * MenuAPI.cs: Prevent second level and beyond submenus to close
5524 until first level when move out side of popup.
5526 2007-01-02 Everaldo Canuto <everaldo@simios.org>
5529 - Down submenu positin in three pixels.
5530 - Closes sub menu when mouse leaves from menu. Fixes #80402.
5532 2007-01-02 Everaldo Canuto <everaldo@simios.org>
5534 * ThemeWin32Classic.cs:
5535 - Fix popup menu size adding one pixel on the top.
5536 - Down menu item border from two to one to mimic Win32.
5537 - Some source identation fixes.
5539 2007-01-01 Everaldo Canuto <everaldo@simios.org>
5541 * ThemeWin32Classic.cs: Use float numbers to calculate size and
5542 position of menu arrows, it fix wrong arrow size.
5544 2007-01-01 Everaldo Canuto <everaldo@simios.org>
5546 * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
5547 instead of line, it simplify draw operation and fix it using 3D
5548 borders to mimic Win32.
5550 2007-01-01 Jonathan Pobst <monkey@jpobst.com>
5552 * StatusStrip.cs: Add implementation of the sizing grip.
5554 * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
5555 StatusStrip rendering.
5557 2006-12-31 Chris Toshok <toshok@ximian.com>
5559 * ToolBar.cs: don't assign to dock_style in the .ctor. it doesn't
5560 override the layout style (anchor/dock) of the control. assign to
5561 Dock instead. Fixes bug #80416.
5563 * ToolStrip.cs: same.
5565 2006-12-31 Andreia Gaita <avidigal@novell.com>
5567 * ContainerControl.cs: Use ContainerSelected flag to check if
5568 a Container is directly selected, or if Select is called on a
5569 non-container. If a container is directly selected, focus events
5570 should not be raised.
5571 Apply #80411 patch to throw exception on set_ActiveControl if
5572 control is the same as the current one.
5574 * Control.cs: Use ContainerSelected flag (see above).
5575 Add invalidation check to raise event but not invalidate if
5580 2006-12-31 Everaldo Canuto <everaldo@simios.org>
5582 * MenuAPI.cs: After click, dont close popup menu when menu is
5583 ContextMenu. Fixes #80399.
5585 2006-12-30 Chris Toshok <toshok@ximian.com>
5587 * ContainerControl.cs: make sure we throw the exception if the
5588 container control doesn't contain the control we're setting
5591 2006-12-30 Chris Toshok <toshok@ximian.com>
5593 * Control.cs (SetTopLevel): fix the exception raised by
5594 SetTopLevel for child controls.
5595 (set_Anchor): call UpdateDistances when setting the anchor type.
5596 This fixes bug #80336.
5598 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
5600 * Theme.cs: For now, revert back to 8pt font.
5602 2006-12-29 Everaldo Canuto <everaldo@simios.org>
5604 * MenuAPI.cs: Set popup as active when open a ContextMenu.
5607 2006-12-29 Chris Toshok <toshok@ximian.com>
5609 * Control.cs: reorder the code in OnResize to give the same event
5612 2006-12-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
5614 * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
5615 TileHorizontally and TileVertically.
5617 2006-12-29 Alexander Olk <alex.olk@googlemail.com>
5619 * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
5620 FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
5621 SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
5622 Corrected copyright and email adress.
5624 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
5626 * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
5627 of Exception in FullPath property if no TreeView is associated with
5630 2006-12-29 Gert Driesen <drieseng@users.sourceforge.net>
5632 * Theme.cs: Marked default_font as private, and initialize it in ctor
5633 with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
5635 * ThemeGtk.cs: Removed default_font intialization.
5636 * ThemeWin32Classic.cs: Removed default_font initialization.
5638 2006-12-28 Chris Toshok <toshok@ximian.com>
5640 * Control.cs: fix a couple of place where we were creating handles
5641 more aggressively than we should be. Fixes ControlRefresh unit
5644 2006-12-28 Chris Toshok <toshok@ximian.com>
5646 * Control.cs: contrary to what the comment said, Control.Dock does
5647 not supercede Control.Anchor - the last one you assign to decides
5648 the layout behavior. so we need to keep track of which was the
5649 last set. Also, fix some of the affected property arguments in
5650 PerformLayout calls, and remove an redundant parent.PerformLayout
5653 Add a VisibleInternal property, which returns is_visible. We
5654 can/should get rid of all the usage of this field elsewhere.
5656 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
5658 * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
5659 control style, not DoubleBuffer. Added UseDoubleBuffering property
5660 that indicates whether doublebuffering is enabled and supported.
5661 (comment from and code based on Gert Driesen's patch in #80324).
5664 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
5666 * Control.cs: Fixed a NRE.
5668 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
5670 * TrackBar.cs: Fix SmallChange and LargeChange exceptions
5673 2006-12-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
5675 * Control.cs: Rewrote double buffering, now a seperate
5676 class handles all the buffering, no Graphics is disposed of
5677 until the painting is finished (earlier implementation
5678 would crash if the control was resized in the OnPaint,
5679 since it would cause the double buffer to be recreated
5680 and the old one disposed), a separate Graphics is
5681 created for every paint (MS behaviour and anyways the state
5682 of the Graphics would have to be saved and restored otherwise)
5686 * XplatUI.cs: Added and implemented GetOffscreenGraphics
5687 so that we can get the graphics for the back buffer without
5688 having to create a new one and remove the offscreen_dc parameter
5689 from CreateOffscreenDrawable and DestroyOffscreenDrawable.
5691 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5693 * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
5694 Also make virtual all the key-related methods.
5696 * ListViewItem.cs: Make virtual the key related methods for
5697 ListViewSubItemCollection.
5699 2006-12-27 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5703 * ThemeWin32Classic.cs:
5704 * Theme.cs: Initial support for Tile view in ListView,
5705 as well as the implementation of the required bits for it (Item
5708 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
5710 * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
5711 of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
5712 Provide useful exception messages.
5714 2006-12-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
5716 * TrackBar.cs: Remove a warning.
5717 * MonthCalendar.cs: Moved back to using Capture to hide the calendar
5718 when used by DateTimePicker, fixes #80287. This also requires that
5719 MonthCalendar implements it's own drawing for the yearly updown control,
5720 otherwise the Capture tracking would be too complicated. Removed the Click
5721 and DoubleClick events (according to comments they were hiding the base class
5722 event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
5723 raise these events, not that they cannot be raised. It is possible to raise
5724 them by calling OnClick and OnDoubleClick). Added two internal fields in
5725 HitTestInfo in order to track give more tracking info needed by MonthCalendar.
5726 * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
5727 * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
5728 event, no longer needed.
5730 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
5732 * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
5733 true if new value differs from current value.
5735 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
5737 * Control.cs: ControlCollection.Count must be public. Fixed build of
5740 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
5742 * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
5744 2006-12-27 Gert Driesen <drieseng@users.sourceforge.net>
5746 * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
5748 2006-12-26 Everaldo Canuto <everaldo@simios.org>
5750 * Control.cs: Invalidates control including when Width and Height is
5751 equal zero or is not visible, only Paint event must be care about
5754 2006-12-26 Chris Toshok <toshok@ximian.com>
5756 * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
5757 more corcompare work.
5759 * DataGridView.cs: fix compiler warning.
5761 * ColumnHeader.cs: some corcompare work, and also take the
5762 opportunity to make the internal fields private.
5764 * ListView.cs: fix the fallout from the above field change.
5766 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
5768 * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
5769 ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
5770 ToolStripTextBox.cs: Fixes to events and corcompare.
5772 2006-12-26 Everaldo Canuto <everaldo@simios.org>
5774 * ListView.cs: Call owner.OnMousexx event to propagate events from
5775 item to ListView. Fixes #80367.
5777 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
5779 * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
5780 if value is less than one. ItemHeight should not be set to a value
5781 less than 1, and throw ArgumentOutOfRangeException on 2.0 profile.
5784 2006-12-26 Jonathan Pobst <monkey@jpobst.com>
5786 * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
5787 * ToolStripStatusLabel.cs: Add Spring for Moma.
5789 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
5791 * DataGridView.cs: Fixed several NullReferenceException in On* methods.
5792 Fixed code formatting. Removed debug code.
5793 * DataGridViewTextBoxEditingControl.cs: Removed debug code.
5795 2006-12-26 Gert Driesen <drieseng@users.sourceforge.net>
5797 * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
5798 RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
5799 ArgumentOutOfRangeException if ColumnCount is negative. In
5800 ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
5801 less than 4 or higher than 32768.
5802 * DataGridViewCellStyle.cs: Fixed default value for NullValue.
5803 Fixed FormatProvider to return CurrentCulture unless explicitly set.
5804 Fixed IsFormatProviderDefault to return true if FormatProvider has
5805 not been explicitly set.
5807 2006-12-25 Chris Toshok <toshok@ximian.com>
5809 * Application.cs: add a couple of 2.0 events.
5811 2006-12-25 Chris Toshok <toshok@ximian.com>
5813 * Control.cs: fix compiler warning.
5815 * AxHost.cs: corcompare fixes.
5817 * ApplicationContext.cs: corcompare fixes.
5819 2006-12-25 Chris Toshok <toshok@ximian.com>
5821 * Control.cs: only update dist_right/dist_bottom if the
5822 width/height is > 0. this fixes anchored controls being resized
5823 smaller until they disappear and then resized larger again.
5825 2006-12-25 Chris Toshok <toshok@ximian.com>
5827 * Control.cs: a couple of changes. Remove dist_left and dist_top,
5828 since they're nothing more than X/Left and Y/Top, respectively.
5830 Also, move back to a per-control Bitmap/Graphics for
5831 DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
5832 MT case. Go with a tiny bitmap though, 1x1, instead of Width x
5835 2006-12-25 Miguel de Icaza <miguel@novell.com>
5837 * MessageBox.cs: Implemented overload that takes a new "bool
5838 displayHelpButton" by adding a new internal field "show_help".
5839 When clicked this will raise the HelpRequested on the owner or the
5842 From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
5843 From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
5845 * ListView.cs: Add support ColumnWidthChanged and
5846 ColumnWidthChanging.
5848 Add support for ColumnReordered event.
5849 (ReorderColumn): Add NET_2_0 specific support for cancelling the
5854 * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
5856 This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
5858 2006-12-24 Chris Toshok <toshok@ximian.com>
5860 * GridTablesFactory.cs: 2.0 corcompare work.
5862 * ToolStripContainer.cs: add "override" to
5863 ContextMenuStripChanged, and remove the local event object.
5865 * ToolStripDropDown.cs: same with a couple properties.
5867 * ToolStripPanel.cs: same with AutoSizeChanged event.
5869 * TextBoxBase.cs: add "override" to AutoSizeChanged.
5871 * Form.cs: add the remaining 2.0 events, and do some corcompare
5874 * DateTimePicker.cs: add "new" to padding.
5876 * ButtonBase.cs: use Control's use_compatible_text_rendering.
5878 * ToolStripContentPanel.cs: use base.AutoSizeChanged.
5880 * DataGridView.cs: PaddingChanged is overridden.
5882 2006-12-24 Chris Toshok <toshok@ximian.com>
5884 * Control.cs: corecompare work here too.
5886 * DataGridViewElement.cs, DataGridView.cs,
5887 DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
5888 DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
5889 DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
5890 DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
5893 2006-12-24 Miguel de Icaza <miguel@novell.com>
5895 * Control.cs: Switched the error message on the console for a
5896 todo. A review of the code will have to cope with this anyways
5897 (since its a large feature, it is in our radar) and it was
5898 producing too much output when running PDN.
5900 * ToolStripComboBox.cs: Set the text when the SelectedIndex
5901 changes. Applications depend on this (PDN 2.72)
5903 2006-12-23 Chris Toshok <toshok@ximian.com>
5905 * TableLayoutSettings.cs: finish up the corcompare work for this
5908 2006-12-23 Chris Toshok <toshok@ximian.com>
5910 * Control.cs: make SetImplicitBounds internal, do some futzing
5911 with LayoutEngine so that it's available in 1.1, and remove the
5912 entire duplicated code mess from PerformLayout. Use
5913 System.Windows.Forms.Layout.DefaultLayout instead.
5915 * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
5917 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
5919 * Form.cs: Add MainMenuStrip property.
5921 2006-12-23 Jonathan Pobst <monkey@jpobst.com>
5923 * Control.cs: Add ContextMenuStrip property and implementation.
5924 Fix ContextMenu implementation to show menu centered on control when
5925 activated using the keyboard instead of showing at screen (0,0).
5927 * ToolStripDropDown.cs: Fix needed overload of Show ().
5929 2006-12-23 Everaldo Canuto <everaldo@simios.org>
5931 * Menu.cs: Name property added for 2.0 profile.
5933 2006-12-23 Everaldo Canuto <everaldo@simios.org>
5935 * Menu.cs: Update information about FindMenuItem, method to be
5938 2006-12-23 Everaldo Canuto <everaldo@simios.org>
5940 * MenuAPI.cs: When deselect items deselect also selected subitems.
5942 2006-12-23 Everaldo Canuto <everaldo@simios.org>
5944 * MenuAPI.cs: When hides menu set Wnd to null, it prevents
5945 FindSubItemByCoord to found itens that is not active, also an
5946 cheking added to FindSubItemByCoord to search for items only
5947 in visible popup windows. Fixes #80274.
5949 2006-12-22 Everaldo Canuto <everaldo@simios.org>
5951 * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
5952 internal property, it be care about change ExStyle.
5954 2006-12-22 Andreia Gaita <avidigal@novell.com>
5956 * ContainerControl.cs: set activeControl for parent forms up the
5957 tree when the new activecontrol is a container.
5958 When validating the active control, if it is a container, also
5959 raise up the validation for it's active control. Fixes #80280
5961 * Control.cs: Add internal property flag and check to prevent
5962 Focus events from getting raised when Select() is called for
5963 a ContainerControl. There are still too many focus events being
5964 raised at the moment though.
5965 Cleaned up the code a bit.
5967 2006-12-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
5969 * Control.cs: Added all missing 2.0 events.and
5970 fixed a couple of corcompare issues.
5971 * TrackBar.cs: Implemented missing 2.0 bits.
5973 * DateTimePicker.cs,
5974 * MdiClient.cs: Fixed some corcompare issues.
5976 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
5978 * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
5979 SplitterPanel.cs: corecompare work.
5981 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
5983 * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
5984 Clean up warnings for BackgroundImageChanged and PaddingChanged
5985 events now that they are implemented in Control.cs.
5987 2006-12-21 Jonathan Pobst <monkey@jpobst.com>
5989 * Control.cs: Make sure layout_engine isn't null before using it (2.0).
5991 * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
5992 TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
5993 of TableLayoutPanel and supporting cast.
5995 2006-12-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
5998 - GrabWindow now confines the mouse pointer to the confine window.
5999 - Added Win32ClipCursor and Win32GetClipCursor.
6002 - Added CaptureWithConfine to be able to capture and confine
6005 * InternalWindowManager.cs:
6006 - Call CaptureWithConfine instead of Capture if we're an
6007 MdiChild (fixes #79982).
6009 2006-12-21 Chris Toshok <toshok@ximian.com>
6011 * DataGrid.cs: guard against the initial state of selection, where
6012 selection_start == -1. make sure we only select from index >= 0.
6015 2006-12-21 Chris Toshok <toshok@ximian.com>
6017 * Control.cs: we don't need to be so draconian with
6018 UpdateDistances, and we thusly don't need to call it before
6019 calling PerformLayout in ResumeLayout. Fixes bug #80289.
6021 2006-12-21 Daniel Nauck <dna@mono-project.de>
6024 TextBox.cs: Implemented AutoComplete properties.
6026 2006-12-20 Chris Toshok <toshok@ximian.com>
6028 * DataGridView*.cs: some corecompare work.
6030 2006-12-20 Jackson Harper <jackson@ximian.com>
6032 * XplatUIX11.cs: We need to hide the caret when deleting it,
6033 otherwise you get carets left lying around everywhere.
6034 * TextBoxBase.cs: Kill then redraw the caret when scrolling. This
6035 prevents getting some weird half drawn caret tracers when
6037 * TextControl.cs: Attempt to reduce the number of times we need to
6040 2006-12-20 Gert Driesen <drieseng@users.sourceforge.net>
6042 * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
6044 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
6046 * DateTimePicker.cs:
6047 - Implemented missing 2.0 bits.
6048 - Changed some default values to match MS.
6050 2006-12-20 Jackson Harper <jackson@ximian.com>
6052 * TextBoxBase.cs: When changing the font across the document we
6053 can't recalculate after changing each line, since that will cahnge
6055 - PreferredHeight is a little different than i thought.
6056 - When backspacing, move the caret before we do the actual char
6057 delete, because when that delete crosses a wrap boundary the
6058 positional information will change.
6060 2006-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
6062 * Control.cs: Added some missing 2.0 bits:
6063 BackgroundImageLayout, BackgroundImageLayoutChanged,
6064 OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and
6065 add IBindableComponent and IDropTarget implementation.
6068 - Added all missing 2.0 features:
6069 BackgroundImageLayout, RightToLeftLayout,
6070 OnHandleDestroyed, RightToLeftLayoutChanged,
6071 BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
6073 - Rewrote all the BoldDate code, it was completely broken.
6074 - Fixed all the tests (the tests can now be re-enabled, the
6075 problems were not with the tests, but with the control, it was
6078 * DateTimePicker.cs: Changed the location where the
6079 MonthCalendar is shown.
6081 2006-12-19 Chris Toshok <toshok@ximian.com>
6083 * DataGridView.cs: add IDropTarget implementation.
6085 * ToolStripPanel.cs: add IDropTarget implementation.
6087 2006-12-19 Jackson Harper <jackson@ximian.com>
6089 * TextControl.cs: soft now means something different than what it
6090 used to mean, we want to move the caret regardless of whether or
6091 not this break was soft (would we really have wanted the caret
6092 to not move with the break in the old context?)
6093 * TreeView.cs: Make sure we factor in the vert scrollbar when
6094 calculating the horizontal scrollbar's maximum.
6096 2006-12-19 Andreia Gaita <avidigal@novell.org>
6098 * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
6099 check for keywords in alternate casing, close bug #80049.
6101 2006-12-19 Chris Toshok <toshok@ximian.com>
6103 * ToolStripItem.cs: add the implementation of the 4 IDropTarget
6104 methods (which all do nothing).
6106 * IDropTarget.cs: add the 4 missing methods.
6108 2006-12-19 Chris Toshok <toshok@ximian.com>
6110 * TableLayoutRowStyleCollection.cs: corcompare work.
6112 * TableLayoutSettings.cs: same.
6114 * TableLayoutStyle.cs: same.
6116 * TableLayoutColumnStyleCollection.cs: same.
6118 2006-12-19 Jonathan Pobst <monkey@jpobst.com>
6120 * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
6121 TableLayoutPanel I've had in my local tree for way too long.
6123 2006-12-19 Miguel de Icaza <miguel@novell.com>
6125 * TableLayoutSettings.cs: Finish the public API (still needs all
6126 the logic to update on changes).
6128 * TableLayoutPanelCellPosition.cs: new file.
6130 * TableLayoutRowStyleCollection.cs,
6131 TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
6132 TableLayoutSettings.cs: Track the final 2.0 table api.
6134 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6136 * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
6137 and Image List 2.0 members for ColummnHeader.
6138 * ListView.cs: Add key-related 2.0 methods for
6139 ColumnHeaderCollection.
6141 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
6143 * ListViewItem.cs: Changed AddRange overloads to match MS: throw
6144 ArgumentNullException if items argument is null. Ignore null item in
6145 arrays. Removed extra tabs.
6147 2006-12-19 Gert Driesen <drieseng@users.sourceforge.net>
6149 * MonthCalendar.cs: Fixed InvalidCastException.
6151 2006-12-19 Jackson Harper <jackson@ximian.com>
6153 * TextControl.cs: Don't increment the position here.
6154 - When calculating char positions only add in the line break size
6155 for hard line breaks.
6157 2006-12-19 Andreia Gaita <avidigal@novell.org>
6159 * SendKeys.cs: Changed some things to match ms.net behaviour
6160 when parsing shifted capital letters.
6162 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX:
6163 Add window handle as parameter to SendInput. X11 needs the
6164 window handle, and the handle being passed to it in the keys
6165 queue is the active control handle (which windows needs), not
6168 XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput
6169 to support SendKeys on X.
6171 * X11Keyboard: Implement helper method to lookup a linux keycode
6172 given the virtual keycode. Added table of keycode-2-virtualkey
6173 values to support this.
6175 2006-12-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6177 * ListView.cs: Add support for SelectedIndexCollection
6178 and SelectedItemCollection 2.0 methods. Implement support
6180 * ListViewItem.cs: Add support for ListViewSubItemCollection
6181 2.0 methods. Also, fix an incorrect behavior of AddRange method
6182 (it shouldn't call Clear).
6183 * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
6185 2006-12-19 Jackson Harper <jackson@ximian.com>
6188 * TextBoxBase.cs: New args for FormatText
6189 * TextControl.cs: Rewrote the main drawing method, this version
6190 feels a little easier to understand and debug to me. Hopefully it
6192 - Fix FormatText to OR in the new formating values. Added
6193 FormatSpecified param, basically this works in the same way as
6194 BoundsSpecified in Control.
6195 - Set the caret properties when the caret is positioned.
6196 - When wrapping text make sure that we calculate the width of the
6198 - when calculating alignments we might have wrapped down to the
6199 next line, so don't search for an individual tag, search for the
6201 - We need to invalidate the selection area when we replace the
6204 2006-12-19 Daniel Nauck <dna@mono-project.de>
6206 * Application.cs: add Restart () 2.0 support
6208 2006-12-18 Everaldo Canuto <everaldo@simios.org>
6210 * MenuItem.cs: Invalidate menu item rectangle after change Enable
6211 property. Fixes #80268.
6213 2006-12-18 Everaldo Canuto <everaldo@simios.org>
6215 * MenuAPI.cs: Dont trigger select event when closes top menu
6218 2006-12-18 Everaldo Canuto <everaldo@simios.org>
6220 * MenuAPI.cs: When you click on menuitem only trigger onselect
6221 event for top menu itens. Fixes #80271.
6223 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
6225 * MdiWindowManager.cs: Make IconicBounds depend on
6226 the bottom of MdiClient, not the top (fixes #80267)
6228 2006-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
6230 * MdiClient.cs: Added missing 2.0 attribute
6232 2006-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6234 * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
6235 as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
6237 2006-12-18 Everaldo Canuto <everaldo@simios.org>
6239 * MenuAPI.cs: Fix click when menuitem is not popup,
6240 this regression was caused by last commit (#80272).
6242 2006-12-17 Everaldo Canuto <everaldo@simios.org>
6244 * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
6245 fire click event or close menu. Fixes #80272.
6247 2006-12-17 Daniel Nauck <dna@mono-project.de>
6249 * ListViewHitTestInfo.cs: add
6251 2006-12-17 Daniel Nauck <dna@mono-project.de>
6253 * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
6254 * FlatButtonAppearance.cs: add
6255 * DockingAttribute.cs: add
6257 2006-12-17 Chris Toshok <toshok@ximian.com>
6259 * DataGrid.cs: hook up MetaDataChanged event on the list manager,
6260 and rebind our columns when it does - this way, if you make
6261 changes to the DataTable (or set the Table attribute on a DataView
6262 after setting it as the DataGrid's DataSource, the changes are
6263 made visible.) Fixes bug #80107.
6265 2006-12-17 Daniel Nauck <dna@mono-project.de>
6267 * ListViewGroup.cs: add internal Location property for layouting.
6268 * Theme.cs: add abstract ListViewGroupHeight function.
6269 * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
6271 2006-12-16 Andreia Gaita <avidigal@novell.com>
6273 * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
6274 Added reset of selected index to 0 when adding first tab page.
6277 * NumericUpDown.cs: Fix NET_2_0 check
6279 2006-12-16 Daniel Nauck <dna@mono-project.de>
6281 * ListViewGroup.cs: fixed DefaultValueAttribute value
6283 2006-12-16 Daniel Nauck <dna@mono-project.de>
6285 * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
6287 2006-12-15 Miguel de Icaza <miguel@novell.com>
6289 * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
6290 TextBoxBase.cs, ListView.cs, ContainerControl.cs,
6291 ScrollableControl.cs: Add a handful of methods that are
6294 2006-12-15 Chris Toshok <toshok@ximian.com>
6296 * XplatUIWin32.cs: initial implementation of the Reversible
6297 drawing functions. there are some problems. DrawReversibleFrame
6298 doesn't seem to work at all for Dashed FrameStyle, and in the
6299 Thick case there are drawing errors at the corners (we probably
6300 need to bind Rectangle instead of doing moveto/lineto's.)
6302 2006-12-16 Andreia Gaita <avidigal@novell.com>
6304 * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput,
6305 to send blocks of key messages. Send accumulates keys to send with Flush,
6306 while SendWait sends all keys immediately.
6308 * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
6309 XplatUIX11.cs, XplatUIX11-new.cs:
6310 - Define SendInput and stubs for OSX and X11, implements Win32 with a call
6312 - Added INPUT support structures to XplatUIWin32 for Win32SendInput
6314 Tests: It seems ms.net is hooking the keyboard to implement this, so doing unit
6315 testing for ms.net on this class is very tricky, as the tests run too fast
6316 to allow the hook to release, essentially freezing the keyboard and the
6317 test. So, barring a win32 miracle, they'll be commited in the ms-notworking
6320 2006-12-16 Daniel Nauck <dna@mono-project.de>
6322 * Padding.cs: fixed serialization compability to MS ("_var" field names),
6323 added missing attributes.
6325 2006-12-15 Daniel Nauck <dna@mono-project.de>
6327 * ListViewGroup.cs: Added missing attributes.
6328 * ListViewGroupCollection.cs: Added missing attributes.
6330 2006-12-15 Daniel Nauck <dna@mono-project.de>
6332 * ListViewItem.cs: fixed ListViewSubItem text property.
6334 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
6336 * Control.cs: Added missing 2.0 attributes
6338 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
6340 * MdiClient.cs: Added missing 2.0 attribute.
6341 * MonthCalendar.cs: Added some missing 2.0 attributes
6344 2006-12-15 Daniel Nauck <dna@mono-project.de>
6346 * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
6348 2006-12-15 Jonathan Pobst <monkey@jpobst.com>
6350 * MainMenu.cs: Add the new 2.0 constructor to help out people
6351 using the MainMenu in VS2005.
6353 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
6355 * MdiChildContext.cs: Removed it, no longer used.
6356 * MdiClient.cs: Added missing 2.0 attributes.
6358 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
6360 * InternalWindowManager.cs: Fix a NullRef with previous
6361 changes for toolwindows.
6363 2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
6366 - Added AfterTopMostControl to allow for certain controls
6367 to always stay on top when normal controls are brought to
6371 - (DrawInversibleRectangle): Get window rectangle from Win32
6372 in stead of from control, since Win32 doesn't calculate
6373 screen coords correctly from control's Location if it
6374 have docked siblings.
6376 * MdiWindowManager.cs:
6377 - Correct the control menu popup location when clicked on
6378 the maximized form icon. (fixes #80223.1)
6379 - Don't show moving rectangle if mouse hasn't moved from
6380 the original clicked point.
6381 - Removed FormGotFocus handler (not used).
6382 - Calculate the control buttons location from the main
6383 window's size and not client size (fixes #79770).
6384 - Form is now closed when the form icon is double-clicked
6386 - Correct NCCalcSize numbers a little bit (fixes #80223.2)
6388 * InternalWindowManager.cs:
6389 - Moved some MDI-only methods to MdiWindowManager.
6390 - Removed unused properties and methods.
6391 - Unified method naming for methods handling wm messages.
6392 - Moved all message handling to seperate methods for
6395 * ThemeWin32Classic.cs:
6396 - DrawManagedWindowDecorations now draws the title bar
6397 with a gradient brush.
6398 - Add a CPDrawButtonInternal that allows us to specify
6399 light, normal and dark colors for the buttons (control
6400 buttons for MDI children were drawn with the same light
6401 color as the background, therefore loosing the 3D effect).
6404 - Add a CapturedControl property that is used to
6405 determine the control to resize (defaults to parent).
6406 Needed for MdiClient, since its SizeGrip's parent is
6407 MdiClient, but the control to resize is the main form.
6410 - Set SizeGrip's CapturedControl to the main form in order
6411 to resize the main form and not the MdiClient.
6412 - Override AfterTopMostControl to leave the scrollbars
6415 2006-12-15 Daniel Nauck <dna@mono-project.de>
6417 * ListView.cs: fixed ListViewItemCollection AddRange and
6418 implemented ListViewItemCollection AddRange 2.0 support.
6420 2006-12-15 Daniel Nauck <dna@mono-project.de>
6422 * ListViewGroup.cs: Add.
6423 * ListViewGroupCollection.cs: Add
6424 * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
6425 * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
6426 stub for ImageKey 2.0 support.
6428 2006-12-14 Mike Kestner <mkestner@novell.com>
6430 * ListView.cs: add text padding to the autocalculation for columns
6431 of width -2. Fixes #80207.
6433 2006-12-14 Mike Kestner <mkestner@novell.com>
6435 * ListView.cs: add some index guarding for partial row navigation
6436 logic. Fixes #80250.
6438 2006-12-14 Mike Kestner <mkestner@novell.com>
6440 * ListView.cs: throw ArgumentExceptions when parented ListViewItems
6441 are added or inserted to the collection. Fixes #81099.
6443 2006-12-13 Everaldo Canuto <everaldo@simios.org>
6445 * MenuAPI.cs: Closes menu when right click out side of popup
6446 it fix problem in ContextMenu and MainMenu. Fixes #80252.
6448 2006-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6450 * ListViewItem.cs: Fix dumb error.
6452 * ListView.cs: Add Find and ContainsKey methods in
6453 ListViewItemCollection, and also return true for IsReadOnly
6454 and IsFixedSize (changes for 2.0).
6456 2006-12-13 Gert Driesen <drieseng@users.sourceforge.net>
6458 * Control.cs: Allow Region to be set to null.
6460 2006-12-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
6462 * MdiWindowManager.cs: Remove unused (commented out) code.
6463 * Form.cs: When the MdiChild is maximized, the form needs
6464 WM_NCMOUSELEAVE, so request it.
6465 * InternalWindowManager.cs:
6466 - Added tooltips to control buttons.
6467 - Removed duplicated control button handling code.
6468 - Removed unused (commented out) code.
6470 2006-12-12 Everaldo Canuto <everaldo@simios.org>
6472 * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor
6473 was used because we must set cursor without trigger ChangeCursor event
6474 and without change Cursor control property. Fixes #79963.
6476 2006-12-12 Andreia Gaita <avidigal@novell.com>
6478 * Control.cs: Check if Region setter value is null, and ignore
6480 2006-12-12 Jackson Harper <jackson@ximian.com>
6482 * TextControl.cs: We were almost always drawing one more line then
6483 needed, since the GetLineByPixel will return the last line found
6484 at that pixel. In most cases though, we were invalidating up to
6485 the junction between two lines.
6486 - Improve debug code.
6488 2006-12-12 Chris Toshok <toshok@ximian.com>
6490 * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
6491 and FillReversibleRectangle.
6493 * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
6494 and FillReversibleRectangle.
6496 * XplatUIWin32.cs: add stubs which do nothing for
6497 DrawReversibleFrame, DrawReversibleLine, and
6498 FillReversibleRectangle.
6500 * XplatUIOSX.cs: add stubs which raise NIE for
6501 DrawReversibleFrame, DrawReversibleLine, and
6502 FillReversibleRectangle.
6504 * XplatUIX11.cs: add working implementation for
6505 DrawReversibleFrame, DrawReversibleLine, and
6506 FillReversibleRectangle.
6508 * ControlPaint.cs: implement DrawReversibleFrame,
6509 DrawReversibleLine, and FillReversibleRectangle, by calling into
6510 the appropriate XplatUI method.
6512 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
6514 * Form.cs: Make MdiClient have the focus even if it's
6515 not selectable, since it should receive WM_KEY* and WM_MOUSE
6516 messages. Fixes #79907.
6518 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
6520 * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
6521 queried after the window is created.
6523 * XplatUIX11.cs: Added SendParentNotify to implement
6524 WM_PARENTNOTIFY logic. Fixes #79965.
6526 * Control.cs: Added MakeParam.
6528 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
6530 * MdiClient.cs: Resume Layout before setting window
6531 states (fixes #80201).
6533 2006-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
6535 * MenuAPI.cs: Deselect a menu item after performing
6536 the click (fixes #80197).
6538 2006-12-11 Jackson Harper <jackson@ximian.com>
6540 * TextBoxBase.cs: We need to cap this value, since Maximum -
6541 ViewPortHeight can be less than zero.
6542 - Only do selection with the left mouse button.
6543 * TextBox.cs: Don't tell the world that we have a context menu.
6544 * Control.cs: New method so that we can control whether or not the
6545 context menu is visible outside MWF.
6547 2006-12-11 Everaldo Canuto <everaldo@simios.org>
6549 * ToolBarButton.cs: Fix text positon.
6551 2006-12-11 Miguel de Icaza <miguel@novell.com>
6553 * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
6555 * Control.cs (DoubleBuffered): Add implementation.
6557 * Application.cs (OpenForms): Add.
6559 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
6561 * Form.cs: Use opacity instead of Opactiy to determine if we need
6562 to set the WS_EX_LAYERED bit. [Fixes bug #80185]
6564 2006-12-11 Jonathan Pobst <monkey@jpobst.com>
6566 * Control.cs: Fix NRE if Control.Site was set to null.
6568 2006-12-11 Chris Toshok <toshok@ximian.com>
6570 * Control.cs: ControlCollection.Remove should return if the arg is
6571 null, and ControlCollection.SetChildIndex should raise a ANE.
6573 2006-12-11 Gert Driesen <drieseng@users.sourceforge.net>
6575 * Control.cs: Verify value set for Dock property. Code formatting
6578 2006-12-11 Jackson Harper <jackson@ximian.com>
6580 * TextControl.cs: Draw the caret and the selection when a flag is
6582 * TextBoxBase.cs: We want to draw the caret and the selection for
6583 TextBox but not for TextBoxBase.
6584 - If the window is resized and scrolling is no longer needed (the
6585 whole doc is visible) set the scroll position to zero.
6586 - The default SelectWord (the one TextBox uses) should move the
6587 caret to the end of the word.
6588 - SelectAll moves the caret to the end of the selection.
6589 * TextBox.cs: We don't selectall on focus, we just do it when the
6592 2006-12-11 Mike Kestner <mkestner@novell.com>
6594 * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
6596 2006-12-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
6598 * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer
6600 * ListViewItem.cs: Add Name 2.0 property.
6602 2006-12-11 Andreia Gaita <avidigal@novell.com>
6604 * TabControl.cs: Set visibility on selected or default tab
6605 when tabcontrol handle is created, so that it's contents
6606 actually show up (duh). Fixes #80193
6607 Don't redraw the control if there is no handle created, as
6608 the selected index might be completely invalid. Added some tests
6611 2006-12-11 Everaldo Canuto <everaldo@simios.org>
6613 * ToolBar.cs: Uses maximun width and height of all buttons as
6614 button rectangle when ButtonSize specified, it looks strange but
6615 is what happens in Win32. Fixes #80189.
6617 2006-12-11 Jackson Harper <jackson@ximian.com>
6619 * TextControl.cs: Need to track undo levels ourself, since
6620 compound actions will mess them up.
6622 2006-12-10 Andreia Gaita <avidigal@novell.com>
6624 * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
6625 SelectedIndex value is changed (even if it's not valid).
6626 Reset SelectedIndex to 0 when the handle is created and if
6627 the current index is invalid.
6628 Fixes SelectdeIndex unit tests and #80128
6630 2006-12-08 Chris Toshok <toshok@ximian.com>
6632 * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
6633 calls EndEdit, it needs to be called before we set current_cell to
6634 its new value. Otherwise, we end up committing the value in the
6635 textbox to the new cell as well. Fixes bug #80160.
6637 2006-12-08 Chris Toshok <toshok@ximian.com>
6639 * Form.cs (set_CancelButton): if the button's DialogResult is
6640 None, set it to Cancel. Fixes bug 80180.
6642 2006-12-08 Jackson Harper <jackson@ximian.com>
6644 * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
6645 to watch ourselves when setting the canvas size and setting the
6648 2006-12-08 Chris Toshok <toshok@ximian.com>
6650 * DataGrid.cs: comment out the two MakeTransparent calls for the
6651 time being so people using trunk (and not 1.2.2) on windows can
6652 actually use the datagrid. This deals with bug #80151.
6654 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
6656 * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
6657 Graphics.DrawImage (image, int, int, int, int) overload instead
6658 of Graphics.DrawImage (image, int, int). GDI+ can't figure out
6659 the dpi difference and was blurring images it drew.
6662 2006-12-08 Chris Toshok <toshok@ximian.com>
6664 * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
6665 rowcnt is 0 (such as with an empty datasource), and make sure we
6666 initialize not_usedarea.Y to cells.Y, so we don't draw over the
6667 other areas (caption, parent row, etc, etc). Fixes bug #80095.
6669 2006-12-08 Chris Toshok <toshok@ximian.com>
6671 * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
6674 2006-12-08 Chris Toshok <toshok@ximian.com>
6676 [ Fixes bug #80167 ]
6678 * ThemeWin32Classic.cs: don't draw the image if the button's flat
6679 style is FlatStyle.System.
6681 * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
6682 ButtonBase.flat_style private, and switch uses of it to the public
6685 2006-12-08 Chris Toshok <toshok@ximian.com>
6687 [ Fixes bug #80121 ]
6689 * ThemeWin32Classic.cs: center the caption text in the datagrid
6692 * DataGrid.cs: lessen the amount we add to the caption height from
6693 6 to 2. 6 was making it huge.
6695 2006-12-08 Andreia Gaita <avidigal@novell.com>
6697 * UpDownBase: Handle MouseWheel call directly instead of capturing
6698 the inner textbox's OnMouseWheel. Fixes #80166
6700 2006-12-08 Jackson Harper <jackson@ximian.com>
6702 * TextControl.cs: We need to invalidate the textbox when we empty
6703 it (how had this not been discovered before?)
6705 2006-12-08 Jackson Harper <jackson@ximian.com>
6707 * TextBoxBase.cs: Reworked the mouse down code so I could get it
6708 to behave like MS, we now ignore the eventargs.Click and just
6709 track state ourself, which we were already doing anyways.
6710 - Constrain the double click handler to the double click size.
6712 2006-12-08 Chris Toshok <toshok@ximian.com>
6714 * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
6715 direction if that scrollbar isn't shown. fixes bug #80158.
6717 2006-12-08 Andreia Gaita <avidigal@novell.com>
6719 * NumericUpDown.cs: Update value on getter. Fixes #79950
6721 2006-12-08 Chris Toshok <toshok@ximian.com>
6723 * MenuItem.cs: add back in the event cloning code. I didn't know
6724 how to do it in the face of the EventHandlerList work i'd done
6725 last week. Fixes bug #80183.
6727 2006-12-08 Jonathan Pobst <monkey@jpobst.com>
6729 * Control.cs: Add an invalidate to the BackgroundImage setter.
6732 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
6734 * ToolStrip*: Add some small properties reported by MoMA, fix event
6735 firing and default properties based off of unit tests, and add some
6736 attributes based off of the class status page.
6738 2006-12-07 Jackson Harper <jackson@ximian.com>
6740 * TextBoxBase.cs: Take HideSelection into account when determining
6741 whether or not to show the selection.
6742 * RichTextBox.cs: After inserting the RTF into the document move
6743 the cursor to the beginning of the document.
6745 2006-12-07 Jonathan Pobst <monkey@jpobst.com>
6747 * Control.cs: Remove static ArrayList "controls" which maintained
6748 a reference to every control created.
6749 * Application.cs: Create a static FormCollection to maintain a reference
6750 to every form created. Use it in places that formerly enumerated through
6751 the controls one looking for forms.
6752 * Form.cs: Add and remove self from above FormCollection.
6754 2006-12-07 Alexander Olk <alex.olk@googlemail.com>
6756 * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
6757 not libgdk (though it makes me wonder why I didn't have any
6760 2006-12-07 Chris Toshok <toshok@ximian.com>
6762 [ you had to know this was coming after that last commit...]
6764 * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
6765 XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
6766 DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
6769 2006-12-07 Chris Toshok <toshok@ximian.com>
6771 * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
6772 DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
6773 all the behavior we need for double buffering.
6775 * XplatUIDriver.cs: implement the 3 double buffer methods using a
6776 client side Bitmap, just like the old Control-based double buffer
6777 code did. The methods are virtual, so each XplatUI driver
6778 subclass can replace the implementation to use a faster, platform
6781 * Control.cs: make use of the 3 Offscreen XplatUI calls in the
6782 double buffer code, and clean things up a bit in the process.
6784 2006-12-06 Chris Toshok <toshok@ximian.com>
6786 * Control.cs: reindent WndProc.
6788 2006-12-06 Chris Toshok <toshok@ximian.com>
6790 [ I wanna be like BenM when I grow up ]
6792 * Hwnd.cs: create a single static Graphics object on the static
6793 Bitmap we create. use this for our text measurements.
6795 * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
6796 This was causing us to allocate a backbuffer for every control,
6797 even when it wasn't flagged as double buffered. Instead use the
6798 single graphics instance. This might have implications for
6799 multithreaded applications. If we run into problems we can switch
6800 to creating 1 Graphics per control, on the static Hwnd bitmap.
6802 this change nets us a 7M savings in private dirty mappings when
6803 running FormsTest.exe.
6805 2006-12-06 Chris Toshok <toshok@ximian.com>
6807 * ListView.cs: the BackgroundImage override is just to set
6808 attributes. chain up to base.BackgroundImage.
6810 * RichTextBox.cs: same.
6812 * ToolBar.cs: same, but we need to also redraw the toolbar when it
6813 changes, so instead a handler for BackgroundImageChanged.
6815 * Control.cs: make background_image private.
6817 2006-12-06 Chris Toshok <toshok@ximian.com>
6819 * ScrollBar.cs: change the assignment of cursor to Cursor. not
6820 sure we even need this assignment, but roll with it for now.
6822 * Control.cs: make the cursor field private.
6824 2006-12-06 Chris Toshok <toshok@ximian.com>
6826 * Form.cs: we don't need to explicitly set ImeMode to
6827 ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
6828 behavior in the face of ImeMode.Inherit.
6830 * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
6831 change the ctor's assignment to use ImeMode instead of ime_mode.
6833 * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
6834 ImeModeInherit. Only check for the parent's imemode (and return
6835 NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
6836 This fixes the button unit test, which sets both ImeMode and
6837 DefaultImeMode to ImeMode.Disable.
6839 also make the ime_mode field private.
6841 2006-12-06 Chris Toshok <toshok@ximian.com>
6843 * Control.cs: make control_style private.
6845 * TextBoxBase.cs: fix the HandleClick override. it was explicitly
6846 setting the styles to true, then setting them to false instead of
6847 reverting to their previous values.
6849 also, call SetStyle on the scrollbars instead of using
6850 control_style directly.
6852 2006-12-06 Jonathan Pobst <monkey@jpobst.com>
6854 * FormCollection.cs: Implement. [2.0]
6856 2006-12-06 Chris Toshok <toshok@ximian.com>
6858 * Control.cs: make tab_stop private.
6860 * Label.cs: set TabStop, not tab_stop. reformat some event
6861 add/remove methods to make them more compact.
6863 2006-12-06 Chris Toshok <toshok@ximian.com>
6865 * RadioButton.cs: fix TabStop handling.
6867 2006-12-06 Chris Toshok <toshok@ximian.com>
6869 * TextBox.cs: remove the explicit assignments to has_focus.
6872 * ButtonBase.cs: remove the assignment to has_focus. Control will
6875 2006-12-06 Chris Toshok <toshok@ximian.com>
6877 * ButtonBase.cs: remove all uses of is_enabled from this code.
6878 it's always true when any of the code containing the checks is
6881 2006-12-06 Chris Toshok <toshok@ximian.com>
6883 * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
6884 with different semantics (some are present in both 1.1 and 2.0
6885 profiles) so that we match MS's behavior in our unit tests.
6887 2006-12-06 Jackson Harper <jackson@ximian.com>
6889 * TextControl.cs: Make this operation undoable.
6890 * TextBoxBase.cs: Factor the border width into the preferred
6892 - implement Modified as per the spec.
6894 2006-12-06 Chris Toshok <toshok@ximian.com>
6896 * Timer.cs, Control.cs, Menu.cs: make control_tag private.
6898 2006-12-06 Chris Toshok <toshok@ximian.com>
6900 * Control.cs: make right_to_left and context_menu fields private.
6902 2006-12-06 Chris Toshok <toshok@ximian.com>
6904 * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
6905 XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
6906 Control.child_controls private. switch all uses over to
6909 2006-12-06 Chris Toshok <toshok@ximian.com>
6911 * System.Windows.Forms/GroupBox.cs,
6912 System.Windows.Forms/AccessibleObject.cs,
6913 System.Windows.Forms/ErrorProvider.cs,
6914 System.Windows.Forms/Control.cs,
6915 System.Windows.Forms/UpDownBase.cs,
6916 System.Windows.Forms/ScrollBar.cs,
6917 System.Windows.Forms/DateTimePicker.cs,
6918 System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
6919 System.Windows.Forms/ToolTip.cs,
6920 System.Windows.Forms/RadioButton.cs,
6921 System.Windows.Forms/LinkLabel.cs,
6922 System.Windows.Forms/Splitter.cs,
6923 System.Windows.Forms/TextBoxBase.cs,
6924 System.Windows.Forms/ToolStripTextBox.cs,
6925 System.Windows.Forms/ContainerControl.cs,
6926 System.Windows.Forms/ThemeWin32Classic.cs,
6927 System.Windows.Forms/SizeGrip.cs,
6928 System.Windows.Forms/ToolStripDropDown.cs,
6929 System.Windows.Forms/ScrollableControl.cs: Make Control.parent
6930 private. switch all uses over to Control.Parent.
6932 2006-12-06 Chris Toshok <toshok@ximian.com>
6934 * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
6935 Control does this before calling emitting these events.
6937 * TabControl.cs: same.
6939 * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
6940 Control.client_rect.
6942 * ButtonBase.cs: use the ClientSize property instead of the
6945 * ScrollableControl.cs: same.
6947 * Control.cs: another pass at making properties private. also,
6948 move the initialization of tab_stop to the ctor.
6950 2006-12-05 Andreia Gaita <avidigal@novell.com>
6952 * TabControl.cs: Let the selected index be set freely if the
6953 control handle is not yet created.
6955 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
6957 * Control.cs: Revert dist_top, dist_right, and dist_bottom to
6958 internal until I can rewrite DefaultLayout.
6959 * ToolStrip.cs: Fix build error and some general cleaning.
6960 * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
6961 Fix build errors caused by making some of Control's fields private.
6963 2006-12-05 Jackson Harper <jackson@ximian.com>
6965 * TextControl.cs: Redo Insert a little so that it use IndexOf
6966 instead of Split, this prevents it from messing up on things like
6967 \n\n\n. Also more effecient since the split array doesn't need to
6969 * TextBoxBase.cs: AppendText doesnt handle multiline and non
6970 multiline text differently, this is the first of many fixes that
6971 will make multiline/non-multiline the same thing as far as the
6972 TextBoxBase is concerned.
6973 - Don't split the text and insert lines, this can lose some line
6974 endings (like is the last line a soft or hard break). Instead use
6976 - Fix an off by one when combining all the lines in the Text
6978 - Remove separate multiline handling from the Text getter/setter.
6980 2006-12-05 Chris Toshok <toshok@ximian.com>
6982 * ButtonBase.cs: a few changes:
6984 - don't reinitialize internal Control fields in the ctor when they
6985 have the same values as Control sets them.
6987 - don't set has_focus in OnGotFocus/OnLostFocus. Control does
6988 this before calling those methods.
6990 - we don't need to call Refresh for anything. use Invalidate
6993 - OnEnabledChanged doesn't need to redraw at all - Control.cs
6994 calls Refresh in its OnEnabledChanged.
6996 - several of the events we were registered for in the ctor to
6997 redraw ourselves already include calls to Invalidate in the
6998 property setters that raise the events. remove the extra
7001 - reformat a switch statement that was 83274658 columns wide.
7003 2006-12-05 Mike Kestner <mkestner@novell.com>
7005 * ComboBox.cs: fix a unit test regression from a TextBox
7006 SelectionLength return of -1 when there's no selection.
7008 2006-12-05 Chris Toshok <toshok@ximian.com>
7010 * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
7011 ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
7012 cleaning up some of the internal Control fields being used by
7015 2006-12-05 Mike Kestner <mkestner@novell.com>
7017 * ComboBox.cs: fix some Simple mode regressions. Set Visible on the
7018 listbox after AddImplicit calls since it defaults to hidden. Add a
7019 hack to preserve requested heights across DropDownStyle changes.
7021 2006-12-05 Jonathan Pobst <monkey@jpobst.com>
7023 * PropertyGrid.cs: Hide FindFirstItem method from public API.
7025 2006-12-05 Chris Toshok <toshok@ximian.com>
7027 * DataGridView.cs: fix compiler warnings.
7029 * PrintControllerWithStatusDialog.cs: same.
7033 * FolderBrowserDialog.cs: same.
7035 * Splitter.cs: same.
7037 * DataGridViewComboBoxCell.cs: same.
7039 * XplatUIWin32.cs: same.
7041 * PictureBox.cs: same.
7043 * Win32DnD.cs: same.
7045 * PageSetupDialog.cs: same.
7047 * FileDialog.cs: same.
7049 * PrintDialog.cs: same.
7051 * DataGridTextBoxColumn.cs: same.
7053 * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
7055 2006-12-05 Chris Toshok <toshok@ximian.com>
7057 * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
7058 MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
7059 System.ComponentModel.EventHandlerList work.
7061 2006-12-05 Jonathan Chambers <joncham@gmail.com>
7063 * DrawTreeNodeEventArgs.cs: Added.
7065 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
7067 * InternalWindowManager.cs: Remove an unused field.
7069 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
7071 * InternalWindowManager.cs:
7072 - Save the point where the title bar is clicked.
7074 * MdiWindowManager.cs:
7075 - Only allow moving of the window as long as the
7076 clicked point on the title bar does not get out of
7077 MdiClient's rectangle. Fixes #79982.
7080 - Added Horizontal/VerticalScrollbarVisible.
7081 - Simplified the scrollbar sizing algorithm.
7082 - Cache the difference in scrolled value in
7083 H/VBarValueChanged and move the calculation out
7086 2006-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
7088 * Control.cs: Make the Console.WriteLine in WndProc
7091 2006-12-05 Chris Toshok <toshok@ximian.com>
7093 * ToolStripManager.cs, ToolStripButton.cs,
7094 ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
7095 ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
7096 ToolStripSplitButton.cs, ToolStripSeparator.cs,
7097 ToolStripRenderer.cs, ToolStripDropDownItem.cs,
7098 ToolStripProgressBar.cs, ToolStripContainer.cs,
7099 ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
7100 to using System.ComponentModel.EventHandlerList.
7102 2006-12-04 Chris Toshok <toshok@ximian.com>
7104 * LinkLabel.cs: fix up compiler warnings.
7106 * TableLayoutSettings.cs: same.
7108 * TreeView.cs: same.
7112 * TabControl.cs: same.
7114 * RichTextBox.cs: same.
7116 * ListViewItem.cs: same.
7118 * PropertyGrid.cs: same.
7120 * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
7124 * TextRenderer.cs: fix up compiler warnings.
7128 * Form.cs: corcompare fixes.
7130 * PictureBox.cs: fix up compiler warnings.
7132 * ImageListStreamer.cs: same.
7134 * TrackBar.cs: corcompare fix.
7136 * Control.cs: fix up compiler warnings.
7138 * SplitterPanel.cs: same.
7140 * NumericTextBox.cs: same.
7142 * ImageList.cs: same.
7144 * StatusStrip.cs: same.
7146 * ProgressBar.cs: corcompare fix.
7148 * ToolStripButton.cs: fix up compiler warnings.
7150 * ToolStripStatusLabel.cs: same.
7152 * ToolStripSplitButton.cs: same.
7154 * ToolStripSeparator.cs: same.
7156 * ToolStripProgressBar.cs: same.
7158 * ToolStripDropDownMenu.cs: same
7160 * ToolStripDropDown.cs: same.
7162 * ToolStripDropDownButton.cs: same.
7164 * ToolStrip.cs: same.
7166 * ToolStripControlHost.cs: same.
7168 * ToolStripContentPanel.cs: same.
7170 * ToolStripDropDown.cs: same.
7172 * ToolStripContainer.cs: same.
7174 * ToolStripPanel.cs: same, and add "new" where we need it to work
7175 with the new ArrangedElementCollection.
7177 * ToolStripItemCollection.cs: add "new" where we need it to work
7178 with the new ArrangedElementCollection.
7180 2006-12-04 Andreia Gaita <avidigal@novell.com>
7182 * TabControl.cs: Fix default tab selection to after TabControl
7183 gets focus and not before. Fixes #80128
7185 2006-12-04 Chris Toshok <toshok@ximian.com>
7187 * DataGridTableStyle.cs: remove the gross calling of
7188 datagrid.Refresh from here. It's a broken idea and it doesn't
7191 * DataGrid.cs: instead, just register/unregister from the
7192 DataGridTableStyle events in CurrentTableStyle. we play it
7193 conservatively and EndEdit + CalcAreasAndInvalidate on any event,
7194 even though some would most likely not require it. Fixes bug
7195 #80115 (and one portion of #80117 as a side effect).
7197 2006-12-04 Chris Toshok <toshok@ximian.com>
7199 * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
7200 so the textbox (if any) goes away. Fixes bug #80117.
7202 2006-12-04 Chris Toshok <toshok@ximian.com>
7204 * DataGridColumnStyle.cs: set the column's readonly property
7205 initially based on the property descriptor's IsReadOnly. Fixes
7208 2006-12-04 Chris Toshok <toshok@ximian.com>
7210 * ComboBox.cs: wrap the dropdown style changing work in
7211 SuspendLayout/ResumeLayout. Fixes bug #79968.
7213 2006-12-04 Jackson Harper <jackson@ximian.com>
7215 * TextBoxBase.cs: Fix off by one, since these are one-based.
7216 * TextBox.cs: Select all the text when we get focus. The TextBox
7217 does this but the RTB does not.
7219 2006-12-04 Chris Toshok <toshok@ximian.com>
7221 * DataGridTextBoxColumn.cs: remove some spew.
7223 * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
7224 but some part of me is saying "it shouldn't be here.." At any
7225 rate, it fixes bug #80046. Call IEditableObject.EndEdit after
7228 2006-12-04 Chris Toshok <toshok@ximian.com>
7230 * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
7231 to reassign the propertydescriptor.
7233 2006-12-04 Jackson Harper <jackson@ximian.com>
7236 * TextControl.cs: Remove some unused variables. Maybe this will
7237 patch things up between mike and I.
7238 - don't split lines less then one char wide, if the viewport is
7239 that small text won't be visible anyways.
7241 2006-12-04 Jackson Harper <jackson@ximian.com>
7243 * TextBoxBase.cs: Default selection length is -1, need to do some
7244 more testing on windows to see when this is used for the property.
7245 - Redid the Lines [] property to that we properly remove soft line
7247 - added support for preserving carriage returns
7248 - CanUndo is not a variable like 'is undo enabled' it just returns
7249 true if there is undo operations available.
7250 - AppendText doesn't need to grab the last tag itself anymore,
7251 this happens automatically when we move the cursor.
7252 * TextControl.cs: Add CompoundActions to the undo class. This
7253 allows combining the other operations into one big option. ie a
7254 paste will combine { delete old, insert new, move cursor }
7255 - Add InsertString undo operation
7256 - New method for deleting multiline text
7257 - Add carriage returns to lines. So we can preserve carriage
7258 returns when text is 'roundtripped'
7260 2006-12-04 Chris Toshok <toshok@ximian.com>
7262 * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
7263 minimum 0. Fixes the scrollbar exception in bug #80136.
7265 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
7268 * MdiWindowManager: Removed unused fields and methods.
7270 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
7272 * StatusBar.cs: Update all panels when a AutoSize=Contents
7273 panel needs updating.
7275 * StatusBarPanel.cs: Remove twidth and only use initialize.
7278 2006-12-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
7280 * Form.cs: When a form's MdiParent is set add it directly
7281 on top of the z-order in stead of relying on MdiClient's
7282 ActivateChild to do it. Fixes #80135.
7285 - Remove original_order, mdi_child_list is already doing
7287 - Create mdi_child_list on construction in
7288 stead of first use (avoids a few null checks).
7290 * MenuItem.cs: Use an already existing list of mdi children
7291 to get the correct order of children and remove the other
7294 2006-12-04 Chris Toshok <toshok@ximian.com>
7296 * PropertyGridView.cs: cached_splitter_location is only used in
7299 * PropertyGrid.cs: implement the ComComponentNameChanged event
7300 using Events, hoping that would fix the warning. Looks like a
7301 compiler bug instead (#80144).
7303 * PropertyManager.cs: remove unused method.
7305 2006-11-04 Everaldo Canuto <everaldo@simios.org>
7307 * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar,
7308 include parentesis to fix expression evaluation. Fixes #79634.
7310 2006-11-02 Everaldo Canuto <everaldo@simios.org>
7313 - Changes to fix behavior in Menu control, some reported in #80097
7314 and other detected during behavior refactory like a select event
7316 - Remove unneded "if's" conditions.
7317 - Created an internal to flag when popup is active in control, we need
7318 it because in .NET you can have menu active but without popup active
7319 when you active menu using popup without visible items.
7320 - Mimic win32 behavior for Select and Popup events.
7321 - Dont open popup menu when you dont have visible subitems.
7322 - Do nothing when click on disabled menu item.
7323 - Some small changes to follow the coding style guidelines.
7324 - Unselect menu only when another control gives focus. Fixes #80097.
7325 - Remove unused code.
7327 * MenuItem.cs: internal VisibleItems method to check if menu
7328 theres visible subitems, it will be usefull to fix some
7329 behavior in Menu control.
7331 2006-11-01 Everaldo Canuto <everaldo@simios.org>
7333 * Timer.cs: Tag property for 2.0 profile.
7335 2006-12-01 Chris Toshok <toshok@ximian.com>
7337 [ after removing all warning suppressions, this cleans up over 100 warnings. ]
7339 * Win32DnD.cs: comment out some unused fields.
7341 * XplatUIWin32.cs: comment out some unused pinvokes, and remove
7342 some unused properties/methods.
7344 * XplatUIX11.cs: fix MousePosition so we override the base class's
7345 property instead of conflicting with it.
7347 * PictureBox.cs: comment out some unused fields
7349 * OSXStructs.cs: make some struct fields public.
7351 * XplatUIOSX.cs: comment out some unused pinvokes, and fix
7352 MousePosition so we override the base class's property instead of
7353 conflicting with it.
7355 * X11Dnd.cs: comment out some unused fields
7357 * X11DesktopColors.cs: fix some struct field visibility to quiet
7360 * X11Dnd.cs: remove some debug code.
7362 * ThemeClearlooks.cs: comment out unused field.
7364 * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
7366 * ThemeGtk.cs: comment out some unused pinvokes.
7368 * Timer.cs: remove some unused fields.
7370 * ThemeClearlooks.cs: comment out unused field.
7372 * UpDownBase.cs: comment out unused field.
7374 * DataObject.cs: comment out unused field.
7376 * DataGridBoolColumn.cs: reomve unused field.
7378 * DataGrid.cs: remove unused field.
7380 * Cursor.cs: remove old ToBitmap code.
7382 * ControlPaint.cs: remove unused method.
7384 * ScrollBar.cs: remove unused fields.
7386 * ComboBox.cs: remove unused field, and chain up to
7387 AccessibleObject ctor.
7389 * ListBox.cs: remove unused field.
7391 * ButtonBase.cs: wrap a couple fields in NET_2_0.
7393 * GridEntry.cs: remove unused fields.
7395 * Binding.cs: remove unused fields.
7397 * AxHost.cs: remove unused method.
7399 * ContainerControl.cs: remove unused field.
7401 * ScrollableControl.cs: remove unused fields.
7403 2006-12-01 Chris Toshok <toshok@ximian.com>
7405 * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
7406 the Where/WhereString stuff. it's easy enough to CWL
7407 Environment.StackTrace.
7409 * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
7410 unused private fields.
7412 2006-12-01 Jackson Harper <jackson@ximian.com>
7414 * TextControl.cs: Do not update the view while inserting multiline
7415 text. If we update the view we might wrap lines, before entering
7416 the new lines, which causes the new line insertion calculations to
7418 - Remove an old TODO
7419 - Make debug output a little nicer
7421 2006-12-01 Chris Toshok <toshok@ximian.com>
7423 * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
7425 2006-12-01 Chris Toshok <toshok@ximian.com>
7427 [ fix the majority of the CS0108 warnings we've been suppressing ]
7429 * TreeView.cs: mark BackgroundImageChanged as 'new'.
7431 * ToolBar.cs: ImeMode just passes stuff to Control. Rename Layout
7432 to "LayoutToolBar" to quiet mcs.
7434 * TabControl.cs: mark our ControlCollection class as 'new'.
7436 * TextBoxBase.cs: mark some events as 'new'.
7438 * Splitter.cs: TabStop is 'new'.
7440 * ControlBindingsCollection.cs: mark a few methods as new since
7441 they change the visibility from protected to public.
7443 * RadioButton.cs: DoubleClick -> base class, and remove unused
7446 * MonthCalendar.cs: ImeMode property -> base class, and mark many
7449 * NumericUpDown.cs: TextChanged -> base class.
7451 * CheckedListBox.cs: mark our ObjectCollection class as new to
7454 * FolderBrowserDialog.cs: make HelpRequest event new and have it
7455 muck with the base class.
7457 * StatusBar.cs: fix some mcs warnings about Update being the same
7458 name as a base class method.
7460 * RichTextBox.cs: mark some events as new, and make them do things
7461 to the base class impl.
7463 * UserControl.cs: mark TextChanged as new, and have it manipulate
7466 * UpDownBase.cs: mark some things new.
7468 * CheckBox.cs: mark DoubleClick "new", and add some text about
7469 what we need to look at.
7471 * Panel.cs: make the events "new", and manipulate the base
7472 version. these are just here for attributes.
7474 * AccessibleObject.cs: make owner private.
7476 * Control.cs: deal with AccessibleObject.owner being private.
7477 cache our own copy if we need it.
7479 * Button.cs: add "new" to the DoubleClickEvent.
7481 * ListBox.cs: no need to track our own has_focus here. let
7482 Control.has_focus do it for us. Also some other work to clear up
7483 warnings about not overriding base class methods of the same name.
7485 * ComboBox.cs: clear up some warnings about not override base
7486 class methods of the same name.
7488 2006-12-01 Chris Toshok <toshok@ximian.com>
7490 * Form.cs: flag a few things as "new" to quiet some of the mcs
7495 * PrintPreviewDialog.cs: same.
7497 * DataGridView.cs: fix a ton of corcompare warnings. not all, but
7498 now DGV isn't so horrible on the class status page. also, move
7499 all events to using System.ComponentModel.EventHandlerList. my
7502 2006-12-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
7504 * MdiWindowManager.cs:
7505 - Set form to active mdi child if shown,
7506 and update the active mdi child to the next
7507 remaining child in the z-order if the form is hidden.
7510 - Track if the form has been visible and if its
7511 visibility is beeing changed, so that the MdiClient
7512 can properly decide the ActiveMdiChild. The MdiClient
7513 cannot track this since the form can change visibility
7514 before MdiClient is created.
7517 - Don't activate anything of the parent form is changing
7519 - Rework ActiveMdiChild to only return visible mdi
7520 children and take into account several other corner
7523 2006-12-01 Chris Toshok <toshok@ximian.com>
7525 * IBindableComponent.cs: new 2.0 interface.
7527 2006-12-01 Gert Driesen <drieseng@users.sourceforge.net>
7529 * DataGrid.cs: Font for caption area is bold by default.
7531 2006-12-01 Everaldo Canuto <everaldo@simios.org>
7533 * Menu.cs: Tag property for 2.0.
7535 2006-11-01 Everaldo Canuto <everaldo@simios.org>
7537 * ThemeWin32Classic.cs: Adjust menu separator drawing.
7539 2006-12-01 Chris Toshok <toshok@ximian.com>
7541 * TreeView.cs: doh, the Begin* events should be
7542 TreeViewCancelEventHandler.
7544 2006-12-01 Chris Toshok <toshok@ximian.com>
7546 * Form.cs: Form.ControlCollection already stores off the
7547 form_owner field. don't access the base class's internal "owner"
7550 * Control.cs: make all the fields in Control.ControlCollection
7551 private. there's no need for any internal fields here.
7553 2006-12-01 Chris Toshok <toshok@ximian.com>
7555 * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
7556 OnHandleCreated. Fixes bug #80109.
7558 2006-12-01 Chris Toshok <toshok@ximian.com>
7560 * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
7561 SplitContainer.cs, Control.cs, StatusStrip.cs,
7562 DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
7563 NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
7564 DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
7565 DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
7566 Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
7567 LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
7568 MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
7569 TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
7570 PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
7571 DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
7573 do most of the work to convert our code over to use
7574 System.ComponentModel.Component.Events for
7575 adding/removing/dispatching events.
7578 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
7580 * DataGridView.cs: Fix an ArgumentNullException reported
7583 2006-11-30 Mike Kestner <mkestner@novell.com>
7585 * ComboBox.cs: fix the scrollbar mouse event forwarding in the
7586 grabbed listbox. Fixes #80036 and #80101.
7588 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
7590 * Message.cs: Changed ToString() to match MS.
7592 2006-11-30 Jackson Harper <jackson@ximian.com>
7594 * TextBoxBase.cs: You can still change the selected text on a read
7596 * TextControl.cs: Lower magic number for wrap calculations. This
7597 lets text get closer to the right (far) edge.
7599 2006-11-30 Jonathan Pobst <monkey@jpobst.com>
7601 * Control.cs: Tweak 2.0 layout properties.
7602 * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
7603 * TextRenderer.cs: Add a new overload.
7604 * ToolStrip*: Huge amount of changes and new features.
7606 2006-11-30 Mike Kestner <mkestner@novell.com>
7608 * ComboBox.cs: fixes for LargeChange and Maximum to get the
7609 scroll range correct. Fixes #79994.
7611 2006-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
7613 * MdiWindowManager.cs: Update main form's text when
7614 a form is closed. (fixes #80038)
7616 2006-11-30 Everaldo Canuto <everaldo@simios.org>
7619 - Fix an regression in ButtonSize.
7620 - Get ImeMode default value change to "Disable".
7621 - Get ShowTooltips default value change to true, default value is
7622 "false" but after make a test in .NET we get "true" result as default.
7624 2006-11-29 Jonathan Pobst <monkey@jpobst.com>
7626 * ToolStripDropDown.cs: Fix for SupportsTransparency change.
7628 2006-11-29 Chris Toshok <toshok@ximian.com>
7630 * XplatUIWin32.cs (GetWindowTransparency): check return value of
7631 GetLayeredWindowAttributes. if it's 0, return 1.0, as
7632 SetWindowTransparency hasn't been called.
7634 2006-11-29 Chris Toshok <toshok@ximian.com>
7636 * Form.cs (set_TransparencyKey): only call SetWindowTransparency
7638 (set_AllowTransparency): reorder things a little so that the
7639 WS_EX_LAYERED style is removed properly.
7641 2006-11-29 Chris Toshok <toshok@ximian.com>
7643 [ totally cosmetic eye-candy feature, fixes bug #80089 ]
7645 * Form.cs: only call the XplatUI transparency method (get/set) if
7646 SupportsTransparency says it's supported. Otherwise fallback to
7647 doing nothing (in the set case) or returning the instance field we
7648 cache (in the get case).
7650 * XplatUIStructs.cs: add TransparencySupport flag enum.
7652 * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
7653 change to SupportsTransparency.
7655 * XplatUIOSX.cs: stub out GetWindowTransparency, and return
7656 TransparencySupport.None from SupportsTransparency.
7658 * XplatUIX11.cs: Stub out GetWindowTransparency, and return
7659 TransparencySupport.Set from SupportsTransparency.
7661 * XplatUIWin32.cs: implement GetWindowTransparency calling
7662 GetLayeredWindowAttributes, and implement SupportsTransparency by
7663 checking whether or not both
7664 GetWindowTransparency/SetWindowTransparency are available
7665 entrypoints. We need to do this since SetWindowTransparency is
7666 available as of win2k, but GetWindowTransparency requires winxp.
7669 * XplatUI.cs: Add GetWindowTransparency, and change
7670 SupportsTransparency to allow for either/both Get/Set.
7672 2006-11-29 Chris Toshok <toshok@ximian.com>
7674 * DataGrid.cs: keep from going into an infinite loop redrawing a
7675 datagrid that has no datasource. Fixes bug #80033.
7677 2006-11-29 Chris Toshok <toshok@ximian.com>
7679 * MenuItem.cs: fix the NRE when we assign text (and therefore call
7680 Invalidate) before the mainmenu has been assigned to a control.
7682 2006-11-29 Chris Toshok <toshok@ximian.com>
7684 * DataGrid.cs: detect when we should be double the double click
7685 row/column autosize stuff, although that codepath has yet to be
7686 written. part of the work for bug #79891.
7688 2006-11-29 Chris Toshok <toshok@ximian.com>
7690 * Binding.cs (SetControl): fix unit test.
7692 2006-11-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
7694 * PageSetupDialog.cs: Validate the margins and set them in
7696 * NumericTextBox.cs: New class to mimic the behavior of the
7697 textboxes used in the printing dialogs.
7699 2006-11-29 Andreia Gaita <avidigal@novell.com>
7701 * Form.cs: Revert previous change (remove call UpdateBounds
7702 from form constructor), because it messes with the handle creation
7703 order, and that one needs lots and lots of love.
7704 * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
7705 for valid printer and throw InvalidPrinterException if document
7706 is set but printer not valid), adding a MonoTODO. Once
7707 handle creation is done properly, we can put this back in.
7709 2006-11-28 Everaldo Canuto <everaldo@simios.org>
7711 * MenuItem.cs: Create a invalidate method for menu item, to be
7712 calling from set text, it make text changes to imadiate update
7713 on screen. Fixes #80013.
7715 2006-11-28 Everaldo Canuto <everaldo@simios.org>
7717 * ToolBar.cs: Fixes and simplify toolbar button layout, it
7718 fixes bug #80070 and some other problem on toolbar buttons
7721 2006-11-28 Everaldo Canuto <everaldo@simios.org>
7723 * ThemeWin32Classic.cs: Paint toolbar toggle button background
7724 with dotted brush. Fixes #79564
7726 2006-11-28 Andreia Gaita <avidigal@novell.com>
7728 * Form.cs: Removed call to UpdateBounds on Form
7729 constructor, it was causing a call to CreateHandle
7730 before it was supposed to.
7731 * PrintControllerWithStatusDialog: Applied patch
7732 by Chris Toshok to hide controller when there are
7733 no printers available.
7734 PrintDialog.cs: initialize printer settings to
7735 null - correct DefaultValues test #5
7736 * PrintPreviewControl.cs: Move PrintController
7737 initialization to GeneratePreview
7738 * PrintPreviewDialog.cs:
7739 - Remove Preview generation from Document_set(). It is
7741 - Throw InvalidPrinterException on CreateHandle if
7742 a Document is set but there are no printers or
7743 printer is not valid.
7744 * ThemeWin32Classic: don't paint PrintPreviewControl
7745 if there is nothing to paint
7747 2006-11-28 Miguel de Icaza <miguel@novell.com>
7749 * Form.cs: Add another popular method.
7751 * TabPage.cs: ditto.
7753 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
7755 * MenuItem.cs: Fixed a warning.
7756 * InternalWindowManager: Fixed a warning.
7758 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
7761 - When cloning a menu also clone MdiList and clone the
7762 window menu items properly (as the forms and menuitems
7763 are kept in an internal hashtable, these need updating
7765 - Rewrote the window menu code, menu items are added in the
7766 order the forms were added to their parent, and they are
7767 updated every time the window menu is shown (before the
7768 list was only generated once, in the current order of the
7769 forms, and would never be updated). A checkmark is shown
7770 next to the item corresponding to the active mdi child.
7772 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
7774 * XplatUIStructs.cs:
7775 - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
7778 - Added TME_NONCLIENT to TMEFlags.
7779 - Handles WM_NCMOUSEMOVE in GetMessage to
7780 generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
7783 - Now merges mdi child menu to parent menu when maximized.
7784 - Recalculate NC areas of both mdi child and mdi parent.
7786 on window state and size changes.Fixes #79844 (3).
7787 - Handle WM_NCCALCSIZE to properly calculate borders.
7790 - Add/remove to the mdi containers list of mdi children
7791 in the order they are added.
7792 - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE
7793 to the maximized mdi child.
7795 * InternalWindowManager.cs:
7796 - Only execute a click on the control buttons on the mouse up,
7797 not on the mouse down. Show the state of the button
7798 (was only showing Normal state, never Pressed state). The
7799 pressed button now follows the mouse (if you click the Close
7800 button and move the mouse over the Maximize button, the
7801 Maximize button will be shown as pressed). Since Win32 does
7802 not generate WM_NCLBUTTONUP if you release the button outside
7803 of the nc area, we need to handle WM_NCMOUSELEAVE and treat
7806 * ThemeWin32Classic.cs:
7807 - Draw a missing border around mdi child forms. Fixes #79844 (2).
7810 - Added a list of forms which contains the order the forms are
7811 added to the mdi parent.
7812 - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
7813 - Handle WM_NCCALCSIZE to properly calculate the 3D border.
7814 - If the active form changes set the scrollbars to the top
7815 of the Z order, otherwise the form could hide them.
7816 - Scrollbars are now sized according to ClientSize, not
7817 to Size, and they take into account the other scrollbar
7818 to determine maximum.
7820 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
7827 - Added RequestAdditionalWM_NCMessages for windows to
7828 opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
7829 Currently only implemented in XplatUIWin32.
7831 2006-11-27 Chris Toshok <toshok@ximian.com>
7833 * Hwnd.cs: only add the hwnd to the windows hash in
7834 set_WholeWindow and set_ClientWindow if whole_window/client_window
7835 are not IntPtr.Zero. also, remove the unused SetObjectWindow.
7837 2006-11-27 Mike Kestner <mkestner@novell.com>
7839 * ComboBox.cs: remove redundant OnDropDown call. It is called
7840 from the ComboListBox.ShowWindow code. Fixes #79969.
7842 2006-11-27 Chris Toshok <toshok@ximian.com>
7844 * Hwnd.cs: remove the setters for ExposePending and
7845 NCExposePending - noone uses them.
7847 2006-11-27 Jackson Harper <jackson@ximian.com>
7849 * TextControl.cs: new param for ReplaceSelection which determines
7850 whether we select the new selection, or set the cursor to the end
7851 of the new selection.
7852 * TextBoxBase.cs: Use new param for ReplaceSelection. When
7853 pasting, select the new text.
7854 * RichTextBox.cs: Use new param for ReplaceSelection.
7856 2006-11-27 Jackson Harper <jackson@ximian.com>
7858 * TextBoxBase.cs: Set the selection to the caret after the caret
7859 is moved, otherwise they get out of sync.
7861 2006-11-26 Everaldo Canuto <everaldo@simios.org>
7863 * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
7866 2006-11-26 Everaldo Canuto <everaldo@simios.org>
7868 * ThemeWin32Classic.cs:
7869 - Fix toolbar drop down arrow position.
7870 - Fix drop down appearance when ToolBar.Appearance is normal,
7873 2006-11-26 Gert Driesen <drieseng@users.sourceforge.net>
7875 * ProgressBar.cs: GetStyle fixes for 2.0 profile.
7877 * UpDownBase.cs: Same.
7878 * ButtonBase.cs: Same.
7879 * ScrollBar.cs: Same.
7880 * TrackBar.cs: Same.
7881 * PictureBox.cs: Same.
7882 * UserControl.cs: Same.
7884 * ListControl.cs: Same.
7885 * TextBoxBase.cs: Same.
7886 * ListView.cs: Same.
7887 * RichTextBox.cs: Same.
7888 * TreeView.cs: Same.
7890 2006-11-25 Jordi Mas i Hernandez <jordimash@gmail.com>
7893 - Text label for where
7894 - Text label comment was not shown
7896 2006-11-23 Everaldo Canuto <everaldo@simios.org>
7898 * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
7900 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
7902 * InternalWindowManager.cs:
7903 - Handle WM_PARENTNOTIFY to activate the form
7904 if any child control is clicked.
7905 - The form is only sizable if not minimized.
7907 * MdiWindowManager.cs:
7908 - Save the IconicBounds if the form is moved.
7909 - Rework SetWindowState, now the window bounds
7910 are stored only if the old window state is Normal.
7913 - In SetWindowStates store the old window state if
7914 the window is maximized and restore window state if
7915 the window looses focus.
7916 - Don't handle any scrollbar value changes if
7917 initializing the scroll bars. Fixes #79771.
7918 - Reworked ArrangeIconicWindows. Current algorithm
7919 tests bounds agains all other minimized windows, if
7920 any intersections create new bounds (going left to
7921 right, bottom to top) and then test again. When
7922 successful the bounds are saved and never computed
7923 again. Fixes #79774.
7925 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
7927 * InternalWindowManager.cs: Added HandleTitleBarUp.
7929 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
7931 * NumericUpDown.cs: In .NET 1.1, user entered text is still
7932 hexadecimal in ParseUserEdit.
7935 2006-11-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
7937 * MdiWindowManager.cs:
7938 - Handle a click on the form's icon to show the
7939 system menu (when maximized). Fixes #79775.
7940 - Change the existing click handler for the form's
7941 icon when not maximized to show on MouseUp.
7944 * Form.cs: In OnResize only layout the mdi child's
7945 parent if it actually has a parent. Might not if
7946 the window is closing.
7949 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
7951 * MdiClient.cs: Ignore active MDI client for text of parent, if
7952 child has no text set.
7954 2006-11-23 Gert Driesen <drieseng@users.sourceforge.net>
7956 * ToolBar.cs: Fixed ToString to match MS.
7958 2006-11-22 Andreia Gaita <avidigal@novell.com>
7961 - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to
7962 update inner values on set. Fixes #79966.
7963 - Override OnLostFocus to update value on NET 2. Fixes #79950.
7964 - Fix hexadecimal parsing.
7966 * UpDownBase: Override OnGotFocus and OnLostFocus to notify
7967 parent. Fixes #79957
7969 2006-11-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
7971 * Control.cs: After calling SetWindowsPos in SetBoundsCore
7972 the actual size has to be queried, since if height /
7973 width is negative Win32 changes it to 0.
7974 Fixes #79999 on Windows.
7976 * XplatUIX11.cs: Set height / width to 0 if negative
7977 in SetWindowPos. Fixes #79999 on Linux.
7979 2006-11-22 Everaldo Canuto <everaldo@simios.org>
7981 * ThemeWin32Classic.cs: Fix text redenring when button is
7984 2006-11-22 Everaldo Canuto <everaldo@simios.org>
7986 * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
7987 and later navigate by mouse. Fixes #79528.
7989 2006-11-21 Everaldo Canuto <everaldo@simios.org>
7991 * ToolBar.cs: Set default value for TabStop to false in
7992 constructor, it fixes remaining behavior of bug #79863.
7994 2006-11-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
7996 * MdiWindowManager.cs:
7997 * InternalWindowManager.cs:
7998 - Moved a few methods specific to Mdi from
7999 InternalWindowManager to MdiWindowManager.
8002 2006-11-21 Chris Toshok <toshok@ximian.com>
8004 * XplatUIOSX.cs: stub out InvalidateNC.
8006 * XplatUIWin32.cs: implement InvalidateNC using the call I found
8007 at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
8009 * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
8011 * XplatUIDriver.cs: add InvalidateNC abstract method.
8013 * XplatUI.cs: add InvalidateNC.
8015 2006-11-21 Everaldo Canuto <everaldo@simios.org>
8017 * ToolBar.cs: Invalidate complete button area when pressed status
8019 * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
8020 * ThemeWin32Classic.cs: Increase vertical and horizontal position
8021 by 1 when button is pressed.
8023 2006-11-20 Everaldo Canuto <everaldo@simios.org>
8025 * ToolButton.cs: Invalidate middle of DropDown button when
8026 ToolBar theres DropDownArrows.
8027 * ThemeWin32Classic.cs: Change position of DropDown arrow and
8028 fix DropDown drawing operations.
8030 2006-11-20 Chris Toshok <toshok@ximian.com>
8032 * NativeWindow.cs: fix the formatting of functions ('{' on the
8033 following line), and enable the thread exception dialog.
8035 * Application.cs: remove the duplicate exception catching from
8038 2006-11-20 Everaldo Canuto <everaldo@simios.org>
8040 * Toolbar.cs: Triggers button click event when click on icon
8041 of dropdown ToolBarButton. Fixes #79912.
8043 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
8046 * ThemeWin32Classic.cs:
8047 - Added a property WindowBorderFont to enable themeing
8048 of mdi child windows' Text.
8050 2006-11-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
8052 * InternalWindowManager.cs:
8055 * MdiWindowManager.cs:
8056 - If mdi child is maximized, set mdi parent's
8057 text to "Parent - [Child]". Fixes #79770.
8058 - If there is any maximized mdi child windows, only the active
8059 window (and any new windows) is maximized, the rest are normal.
8060 - On a WindowState change only save mdi child's window bounds
8061 if the old window state was normal. Fixes #79774.
8062 - The scroll bars are now calculated on hopefully all
8063 necessary events. Fixed #79771 / #79844->6 / #79906.
8064 - MdiClient.SizeScrollBars() now takes into account docked
8065 controls in the parent when calculating available space.
8066 - InternalWindowManager now always repaints the entire title
8067 area. Fixes #79844->1/4/5.
8068 - Added RequestNCRecalc on mdi child windowstate changes.
8071 2006-11-20 Mike Kestner <mkestner@novell.com>
8073 * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
8074 in the MouseUp handler of the listbox and move the return handling
8075 code to FireMouseUp to avoid scrolling on ups. Fixes #79952.
8077 2006-11-20 Everaldo Canuto <everaldo@simios.org>
8079 * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855.
8081 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
8083 * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
8084 working in 1.2.x anymore. So, updated.
8086 2006-11-19 Gert Driesen <drieseng@users.sourceforge.net>
8088 * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
8089 NumberGroupSeparator of current culture instead of assuming en-US.
8092 2006-11-17 Mike Kestner <mkestner@novell.com>
8094 * Control.cs: Add the concept of implicit bounds setting so that
8095 dock/undock round trips preserve explicitly set size/locations.
8098 2006-11-17 Alexander Olk <alex.olk@googlemail.com>
8100 * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
8101 can't handle those filters. (Fixes bug #79961)
8103 2006-11-17 Chris Toshok <toshok@ximian.com>
8105 [ fixes the exit/crashes associated with #79835. it's clearly
8106 suboptimal though, we need to figure out a better way to solve
8109 * PrintPreviewControl.cs: deal with the new invalid printer
8112 * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
8113 and return false (so CommonDialog.ShowDialog doesn't actually show
8116 * PrintDialog.cs: enable/disable the Ok button depending on
8117 whether or not the printer is valid.
8119 * CommonDialog.cs (ShowDialog): only actually show the form if
8120 RunDialog returns true.
8122 2006-11-17 Jackson Harper <jackson@ximian.com>
8124 * TextControl.cs: When soft splitting a line, mark it as a soft
8125 split line. Also carry over the current line break to the next
8128 2006-11-17 Chris Toshok <toshok@ximian.com>
8130 * XplatUIX11.cs: when scrolling a window with an invalid area, we
8131 only want to shift the part of the invalid area that overlaps the
8132 area we're scrolling. we also don't want to clear the invalid
8133 area unless the invalid area was entirely contained within the
8136 2006-11-16 Chris Toshok <toshok@ximian.com>
8138 * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
8139 also make sure to free the memory returned by XGetWindowProperty
8142 * X11Structs.cs: remove the TimerEvent stuff, it's unused.
8144 2006-11-16 Chris Toshok <toshok@ximian.com>
8146 * XplatUI.cs: add a new super secret way to get at the totally
8147 unsupported X11 backend.
8149 2006-11-16 Gert Driesen <drieseng@users.sourceforge.net>
8151 * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
8153 2006-11-16 Jackson Harper <jackson@ximian.com>
8155 * TreeView.cs: Allow more explicit setting of top node position
8156 for scrollbars. Slower algo, but more accurate.
8157 - CollapseAll should maintain the current top node.
8158 * TextBoxBase.cs: When positioning the caret, use the line, pos
8159 method, since the x, y method does not grab the correct tag, and
8160 the caret height never gets set correctly. (Maybe I should just do
8161 away with the caret having its own height, and always use the
8162 carets current tag for height).
8164 2006-11-16 Jonathan Pobst <monkey@jpobst.com
8166 [Fixes 79778, 79923]
8168 * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
8169 Parent to the FosterParent instead.
8171 2006-11-16 Jackson Harper <jackson@ximian.com>
8173 * TreeView.cs: Need to recalc the topnode when we expand or
8174 collapse. The scrolling methods can't handle this on their own,
8175 since they use differences between the last scroll position, and
8176 those difference get completely messed up since we are expanding
8177 nodes. This problem should probably be fixed in the scrolling
8178 methods, so they can figure out exactly where they are, but this
8179 will slow things down a little.
8180 * ThemeWin32Classic.cs: Special case for groupboxes with empty
8181 strings, makes nunit-gui look a lot nicer.
8183 2006-11-16 Chris Toshok <toshok@ximian.com>
8185 * XplatUIX11.cs: nasty, nasty, nasty changes required because of
8186 the broken multithreaded event handling we have in here. File
8187 this entry under "Why we should move to the new X11 backend".
8189 Any thread can make it into UpdateMessageQueue, which gets events
8190 from the X socket - some of which could belong to hwnds being
8191 managed by a different thread. We can also have multiple threads
8192 in UpdateMessageQueue at the same time, with each one reading from
8193 the X socket. This leads to many problems, with the following
8196 We can't use hwnd.Queue.Enqueue anywhere in here and must use
8199 The MotionNotify compression we do can't work across threads
8200 (without locking the entire queue, perhaps) since we call
8201 hwnd.Queue.Peek, so we just punt and don't compress motion events
8202 unless the owning thread is the one which got the X event.
8204 ConfigureNotify is another fun one, since it modifies the hwnd's
8205 bounds and then enqueues the event. We add a lock to Hwnd which
8206 is held when setting configure_pending to true (and enqueuing the
8209 There is a race wrt the wake socket. we need to make sure that
8210 only 1 thread is waiting on that socket, or else a thread could
8211 sleep waiting for data that never comes. It's difficult (but not
8212 impossible) to make happen, because it seems to require something
8215 1. Thread 1 polls on wake_receive
8217 2. poll returns saying there's data to be read on
8220 3. Thread 2 polls on wake_receive and immediately returns
8221 saying there's data to be read.
8223 4. Thread 2 reads the wakeup byte from wake_receive
8225 5. Thread 1 attempts to read the wakeup byte from
8228 6. Thread 2 exits (due to a form closing, perhaps).
8230 7. Thread 1 blocks forever.
8234 Fixing the Expose handling isn't done yet, and the races inherent
8235 in that piece of code are responsible for the drawing mistakes you
8236 see when generating expose events in a MT app (like NPlot). This
8237 one is the likely to be the hardest to bandaid, and it doesn't
8238 appear to cause anything but drawing problems. The other issues
8239 caused apps to exit or hang.
8241 * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
8242 called from a different thread than the one that should be calling
8245 * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
8247 2006-11-15 Chris Toshok <toshok@ximian.com>
8249 * Application.cs: null out the context's MainForm when we exit
8250 RunLoop. Fixes a newly checked in unit test as well as the last
8251 ODE from bug #79933.
8253 2006-11-15 Chris Toshok <toshok@ximian.com>
8255 * Form.cs (set_Owner): allow a null value so we can clear the
8257 (Dispose): set all our owned_form's Owner properties to null, and
8258 clear the owned_forms collection.
8259 (WM_CLOSE): clean up this a little bit.. still not right though.
8261 * ApplicationContext.cs: OnMainFormClosed should only call
8262 ExitThreadCore if the main form isn't recreating. Fixes unit
8265 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
8269 * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
8271 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
8275 * Hwnd.cs: Add a flag to show a window, but not activate it, to
8276 keep popup window types from stealing focus from the main form
8279 * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
8281 * MenuAPI.cs: Set above flag to true.
8283 2006-11-15 Chris Toshok <toshok@ximian.com>
8285 * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
8286 the button being released is not in wParam.
8288 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
8290 * Form.cs: Add the released button to MouseEventArgs.Button
8291 for the OnMouseUp call to the MenuTracker. Fixes menu clicking
8294 2006-11-15 Chris Toshok <toshok@ximian.com>
8296 * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
8297 GetText(). untested because it's unused in our implementation.
8298 Control.Text always caches the text, even if
8299 ControlStyles.CacheText is not set.
8303 2006-11-15 Chris Toshok <toshok@ximian.com>
8307 * Form.cs: in Close() don't do anything after we send the WM_CLOSE
8308 message. no hiding, no disposing.
8310 in the WM_CLOSE handler, hide the form if it's modal.
8312 2006-11-15 Chris Toshok <toshok@ximian.com>
8314 * XplatUIX11.cs: use AddExpose instead of sending a message.
8315 fixes textbox border drawing.
8317 2006-11-15 Chris Toshok <toshok@ximian.com>
8319 * PropertyGridView.cs: keep from crashing on mouse move/down when
8320 the property grid is empty.
8322 2006-11-14 Jackson Harper <jackson@ximian.com>
8324 * TextControl.cs: Make PageUp and PageDown more like the MS
8326 * TextBoxBase.cs: When we set the text property position the
8327 cursor at the beginning of the document.
8329 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
8331 * Form.cs: if a mdi child's WindowState has changed
8332 before it's creation, it would display wrong control
8335 2006-11-14 Alexander Olk <alex.olk@googlemail.com>
8337 * TreeView.cs: De-uglify TreeView checkbox checkmarks.
8340 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
8342 * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that
8343 the window gets to paint its borders even if the window is
8346 * Form.cs: on a WM_NCPAINT invalidate the entire menu,
8347 otherwise the old control buttons would still be painted
8348 if the window gets bigger.
8350 * PaintEventArgs.cs: add an internal method so that the clip
8351 rectangle can be changed.
8353 2006-11-13 Chris Toshok <toshok@ximian.com>
8355 [ fixes bug #79745 ]
8357 * NotifyIcon.cs: lots of cleanup.
8359 * X11Structs.cs: add an enum for XEMBED messages.
8361 * XplatUIX11.cs: reindent one of the giant switch statements, it
8362 was taking up an additional tab stop, and this file is already way
8363 too wide for my laptop's screen.
8365 Also, add handling for the XEmbed EMBEDDED_NOTIFY message. When
8366 we get it, resize the hwnd to the WMNormalHints max_width/height.
8368 2006-11-13 Jackson Harper <jackson@ximian.com>
8370 * TextBoxBase.cs: Compute the value changes for the mouse wheel
8373 2006-11-13 Chris Toshok <toshok@ximian.com>
8375 * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
8376 #79898. force a reference to the Region to stick around so the
8377 unmanaged object isn't collected (rendering our handle in the MSG
8380 2006-11-13 Chris Toshok <toshok@ximian.com>
8382 * XplatUIX11.cs: fix #79917 for window managers which support
8384 using XStoreName on the raw utf8, and we need to convert to
8385 COMPOUND_TEXT if it's non-latin1.
8387 2006-11-13 Chris Toshok <toshok@ximian.com>
8389 * Form.cs (set_DialogResult): we need to set closing to false if
8390 we're setting our result to None. fixes bug #79908.
8392 2006-11-13 Jackson Harper <jackson@ximian.com>
8394 * TextControl.cs: When formatting text, compute the adjusted tag
8395 lengths correctly, using FindTag for the end tag instead of trying
8396 to figure it out outselves.
8397 * TreeNode.cs: Use ActualItemHeight, which is the actual height of
8398 the item, ItemHeight doesn't work, because trees with large
8399 imagelists use those for their height
8400 * TreeView.cs: ActualItemHeight factors in the image height
8401 - compute left edge of checkboxes correctly
8402 - when expanding/collapsing move the bottom down one pixel, so we
8403 aren't moving part of the node
8405 2006-11-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
8407 * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
8408 stack in PaintEventStart so that it won't get disposed by the gc
8409 before reaching PaintEventEnd.
8411 2006-11-13 Jackson Harper <jackson@ximian.com>
8413 * TextBoxBase.cs: Don't select the word if we are on a line with
8415 - We don't need to position the caret on mouse up, since the mouse
8416 move handler should be doing this
8417 - When double clicking a blank line, the caret is advanced to the
8420 2006-11-13 Gert Driesen <drieseng@users.sourceforge.net>
8422 * TreeNodeCollection.cs: Avoid duplicating indexer code.
8424 2006-11-12 Gert Driesen <drieseng@users.sourceforge.net>
8426 * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
8427 Fixes part of bug #79910.
8429 2006-11-11 Alexander Olk <alex.olk@googlemail.com>
8431 * ColorDialog.cs: Fix a NRE when adding a color to custom colors
8432 (bug #79903). Some minor string updates to match ms.
8434 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
8436 * FileDialog.cs: Don't add an extension if the filename
8437 already ends with that extension.
8439 2006-11-10 Jackson Harper <jackson@ximian.com>
8441 * TreeView.cs: Use the currently highlighted node for the
8443 * TextBoxBase.cs: There is no need to expand selection on
8445 - CanUndo means 'is there any undo operations', not 'is undo
8446 allowed on this textcontrol. Fixed ClearUndo unit test.
8448 2006-11-10 Andreia Gaita <shana.ufie@gmail.com>
8450 * Button.cs: only perform click when button is Selectable (so as
8451 not to activate default buttons when they're disabled)
8453 * Control.cs: Rewrite of the SelectNextControl and related
8454 methods. HandleClick now selects next control if the current one
8457 * Form.cs: OnActivated selects next active control only if Load
8458 has already occurred. If Load hasn't run, there's no point in
8459 selecting here, Load might change the state of controls.
8461 * FocusTest.cs: Tests marked as working again for these fixes
8463 2006-11-10 Chris Toshok <toshok@ximian.com>
8465 * XplatUIX11.cs: a couple of fixes.
8467 - use XInternAtoms with almost all the atoms we need to register,
8468 instead of many, many calls to XInternAtom. should help a bit on
8469 startup time, at the expense of making the code look a little
8472 - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
8473 isn't reparented (which seems to be a clue that we're running fon
8474 compiz) and they have an Owner form. This fixes the tool windows
8475 in paint.net when running under compiz.
8477 - when setting the opacity of a window, support both the case
8478 where the window has been reparented and also when it hasn't been.
8479 Since compiz/beryl doesn't seem to reparent windows, and these are
8480 the only window managers which support translucency, I'm not sure
8481 why we need the hwnd.reparented case at all.. but leave it in.
8482 now we get translucent windows in paint.net under compiz/beryl.
8484 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
8486 * FileDialog.cs: Always return the value for FilterIndex that
8487 was set. Internally convert it to values that make sense.
8489 2006-11-10 Everaldo Canuto <everaldo@simios.org>
8491 * ThemeWin32Classic.cs: Fix drowp down arrow borders.
8493 2006-11-10 Everaldo Canuto <everaldo@simios.org>
8495 * Toolbar.cs: Change default value of DropDownArrows to true, the
8496 signature still using false to make it compatible with MS but the
8497 initial value is true. Fixes #79855.
8499 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
8501 * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
8502 only available on Linux.
8504 2006-11-09 Everaldo Canuto <everaldo@simios.org>
8506 * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
8507 reduce number of calls to redraw method during toolbar creation.
8509 2006-11-09 Mike Kestner <mkestner@novell.com>
8511 * ListView.cs : raise SelectedIndexChanged when an item is selected
8512 programmatically via the Item.Selected property. Gert's nice
8513 ListViewSelectedIndexChanged test fixture now runs clean.
8515 2006-11-09 Mike Kestner <mkestner@novell.com>
8517 * ListView.cs : raise SelectedIndexChanged when a selected item is
8518 removed from the item collection using Remove or RemoveAt.
8520 2006-11-09 Mike Kestner <mkestner@novell.com>
8522 * ListView.cs : raise SelectedIndexChanged once per selected item
8523 for compat with MS. Fixes #79849+.
8525 2006-11-09 Chris Toshok <toshok@ximian.com>
8527 * TabControl.cs: initialize row_count to 0, and set it to 1 when
8528 we need to (if we have any tab pages). Fixes unit test.
8530 2006-11-09 Chris Toshok <toshok@ximian.com>
8532 * Label.cs (CalcPreferredWidth): if Text == "", our preferred
8533 width is 0, not 3. Fixes a unit test.
8535 2006-11-09 Mike Kestner <mkestner@novell.com>
8537 * ListView.cs : use Implicit scrollbars so that focus isn't
8538 stolen from the listview when they are clicked. Fixes #79850.
8540 2006-11-09 Chris Toshok <toshok@ximian.com>
8542 * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
8543 have a root item. Fixes #79879.
8545 2006-11-09 Alexander Olk <alex.olk@googlemail.com>
8549 - An ArgumentException is now thrown if a wrong filter
8550 is applied (matches ms). The previous filter doesn't change
8551 anymore if an exception is thrown.
8552 - Changing the FileName property also affects FileNames
8553 * ColorDialog.cs: The length of the CustomColors array is always
8554 16. It doesn't matter if we use a smaller array or null to update
8555 or change the custom colors property.
8556 * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
8557 for RootFolder if we get a undefined value.
8559 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
8561 * StatusBarPanel.cs:
8562 - Width is set to MinWidth if Width is smaller than
8563 MinWidth. Fixes #79842.
8564 - MinWidth now always overrides Width (MSDN says MinWidth
8565 is set to Width when AutoSize = None, but they do not
8567 - Style has now the the correct default value.
8569 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
8572 - The control is completely invalidated on
8573 Got/LostFocus to draw the focus rectangle correctly.
8574 - When AutoSize then height is always 45 (width for
8577 * ThemeWin32Classic.cs: The TrackBar thumb is now centered
8578 on the mouse when moved and it doesn't move when grabbed
8579 until the mouse moves as well. Also fixed some wrong
8580 calculations when clicking on the thumb (control thought
8581 click was outside of thumb and didn't grab it).
8582 Fixes some of the issues in #79718.
8584 2006-11-08 Everaldo Canuto <everaldo@simios.org>
8586 * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
8588 2006-11-08 Chris Toshok <toshok@ximian.com>
8590 * PropertyGridView.cs: only call ToggleValue if the item is not
8593 2006-11-08 Jackson Harper <jackson@ximian.com>
8595 * TextBoxBase.cs: The RichTextBox and textbox have very different
8596 word selection methods. Implement the textbox's simple word
8597 selection here, and let the RichTextBox override and provide it's
8599 - Don't do extra selection on mouseup
8600 * RichTextBox.cs: Use the documents word selection algorithm, I
8601 think ideally, this function will be pulled into the
8602 RichTextBox.cs code someday.
8604 2006-11-08 Chris Toshok <toshok@ximian.com>
8606 * RootGridEntry.cs: new class to represent GridItemType.Root.
8608 * CategoryGridEntry.cs: reformat, and add boilerplate.
8610 * GridEntry.cs: remove the UIParent stuff - turns out .Parent
8611 returns the UI parent anyway, and we need special handling to
8612 implement the GetTarget method in the face of it. Also, implement
8615 * PropertyGrid.cs, PropertyGridView.cs: a number of fixes. create
8616 a root grid item, and use that instead of PropertyGrid.grid_items.
8617 Also, make use of TypeConverters (and add limitted support for
8618 ICustomTypeDescriptors) when initially populating the grid.
8619 Arrays now show up more or less properly.
8621 2006-11-08 Chris Toshok <toshok@ximian.com>
8623 * Application.cs: set the modal dialog to non modal after we close
8624 it. Fixes bug #79866.
8626 2006-11-08 Jackson Harper <jackson@ximian.com>
8628 * TextControl.cs: When combining lines carry over the line end
8629 style from the end line.
8630 - Invalidate the selected area when setting it, if it is visible.
8631 * TextBoxBase.cs: Only rich text box can do full line selects.
8632 - Make sure to set the cursor position when there is a click,
8633 otherwise two clicks in separate areas could cause a large chunk
8636 2006-11-07 Everaldo Canuto <everaldo@simios.org>
8638 * Toolbar.cs: Release flat button borders when Toolbar lost focus.
8641 2006-11-07 Everaldo Canuto <everaldo@simios.org>
8643 * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
8644 time. Remove tooltips when ToolButton click events. Fixes #79856.
8646 2006-11-07 Everaldo Canuto <everaldo@simios.org>
8648 * MenuAPI.cs: Ignore right click for menu actions and fixes
8649 menu border when clicked. Fixes #79846.
8651 2006-11-07 Everaldo Canuto <everaldo@simios.org>
8653 * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
8654 MouseState after create wParam for message, this fixes mouse button
8655 equal none in mouse up events.
8657 2006-11-07 Andreia Gaita <shana.ufie@gmail.com>
8659 * Control.cs : Focus() now calls Select to set the Container's
8660 Active Control and to give it focus. To avoid infinite recursion
8661 (because ActiveControl also calls Focus at one point), a check
8662 is made in Focus with the help of a new internal variable
8665 2006-11-07 Mike Kestner <mkestner@novell.com>
8667 * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
8668 if there's a selection. Fixes #79849.
8670 2006-11-07 Gert Driesen <drieseng@users.sourceforge.net>
8672 * PropertyGrid.cs: Avoid fixed height of help description label.
8673 Fixes part of bug #79829.
8675 2006-11-07 Chris Toshok <toshok@ximian.com>
8677 * XplatUIX11.cs: fix #79790 again, by using the
8678 _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
8680 2006-11-07 Everaldo Canuto <everaldo@simios.org>
8682 * ToolBar.cs: Fix left click checking.
8684 2006-11-07 Chris Toshok <toshok@ximian.com>
8686 * ProgressBar.cs: fix a typo in ToString(). fixes a unit test.
8688 2006-11-07 Chris Toshok <toshok@ximian.com>
8690 * RelatedPropertyManager.cs: set property_name in our ctor. fixes
8691 PropertyManager unit tests.
8693 * PropertyManager.cs: make property_name internal.
8695 2006-11-07 Chris Toshok <toshok@ximian.com>
8697 * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
8698 pass a unit test. Also, don't set image_index to anything in
8699 response to setting the ImageList property.
8701 2006-11-07 Everaldo Canuto <everaldo@simios.org>
8703 * ToolBar.cs: Ignore click events when mouse button is not a
8704 left button, only accepts other button for dropdown menus.
8707 2006-11-07 Chris Toshok <toshok@ximian.com>
8709 * DataGrid.cs: make the back and parent row buttons a little less
8712 2006-11-07 Jackson Harper <jackson@ximian.com>
8714 * TextBoxBase.cs: When converting to Text don't put line breaks in
8715 for soft line breaks.
8716 * TextControl.cs: There is an initial "fake" line in the document,
8717 this is now a soft break line, so that an extra line feed doesn't
8718 get added to the end of documents.
8720 2006-11-07 Chris Toshok <toshok@ximian.com>
8724 * CurrencyManager.cs: if the list is readonly, don't bother
8725 checking if IBindingList.AllowNew is true.
8727 * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
8728 for non-DataRowView datasources.. or rather, make it not crash.
8729 (DataGridPaintRelationRow): make sure we limit the row painting to
8730 the area not covered by the row header, and make our cell width at
8731 least large enough to cover the relation area. This allows grids
8732 that have relations but no rows to render correctly.
8733 (DataGridPaintRowContents): same type of changes here.
8734 (SetDataSource): move back to always calling
8735 CalcAreasAndInvalidate. this fixes a crash/drawing problem when
8736 navigating back through relations.
8737 (HitTest): handle the case where we have no cells but have
8738 relations. Right now we generate a hit in cell 0 of whatever the
8739 row is, not sure if this is strictly correct, but it works for our
8742 * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
8743 bother doing anything.
8745 2006-11-07 Jonathan Pobst <monkey@jpobst.com>
8747 * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
8748 early version of StatusStrip. Not responsible for eaten
8749 application or firstborn children.
8751 2006-11-06 Chris Toshok <toshok@ximian.com>
8753 * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
8754 call GetTabRect with a -1 index. Fixes #79847.
8756 2006-11-06 Jackson Harper <jackson@ximian.com>
8758 * TreeNodeCollection.cs: Update scrollbars after clearing.
8760 2006-11-06 Chris Toshok <toshok@ximian.com>
8762 * NumericUpDown.cs: fix the ToString method for some unit test
8765 2006-11-06 Chris Toshok <toshok@ximian.com>
8768 - set the initial SelectedGridItem if we can.
8770 - Exclude non-mergable properties only if we're merging > 1
8771 object. Merging 1 object isn't really merging, obviously.
8773 - Handle PropertySort.NoSort just like Alphabetical, which is
8774 wrong of course, but at least gets things on the screen.
8776 * PropertyGridView.cs:
8777 - Add method "FindFirstItem" which finds the first property grid
8778 item, so we can select it by default.
8780 - make use of GridEntry.CanResetValue.
8782 - Don't call RedrawBelowItemOnExpansion here anymore, the
8783 individual GridEntry's will do that.
8785 - Remove the ITypeDescriptorContextImpl internal class.
8788 - this class needs to implement ITypeDescriptorContext, as it's
8789 what MS's PropertyDescriptorGridEntry does, which means we can
8790 remove the ITypeDescriptorContextImpl internal class from
8791 PropertyGrid.cs. This fixes the crashing portion of bug #79829.
8793 - keep a reference to our PropertyGridView, and move the call to
8794 RedrawBelowItemOnExpansion here from PGV. This means
8795 programmaticly setting Expanded actually does something visible.
8797 - add a CanResetValue() function which takes into account our
8798 possibly multiple "selected_objects" in the merged case. Shifting
8799 PropertyGridView to use this method fixes another unreported
8800 crasher found running the test for #79829.
8802 - when Top or Bounds is updated, make sure the PropertyGridTextBox
8803 is updated to reflect this.
8805 * CategoryGridEntry.cs: the ctor takes the PGV now.
8807 2006-11-06 Jackson Harper <jackson@ximian.com>
8809 * TextControl.cs: These are 1 based.
8810 * TextBoxBase.cs: When setting the selected text, don't change the
8811 selected text tags, this is done by ReplaceText, just position the
8812 cursor at the end of the new text.
8814 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
8816 * ListView.cs: Allow label edit only when, when LabelEdit is
8819 2006-11-06 Jackson Harper <jackson@ximian.com>
8821 * TextControl.cs: If a suitable wrapping position isn't found,
8822 just wrap right in the middle of a word.
8824 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
8826 * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
8829 2006-11-06 Jackson Harper <jackson@ximian.com>
8831 * TreeView.cs: Can't use the VisibleCount property when setting
8832 scrollbar heights, because this doesn't take into account whether
8833 or not the horz scrollbar just came visible.
8835 2006-11-05 Everaldo Canuto <everaldo@simios.org>
8837 * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
8838 activated. Fixes #79369, #79832.
8840 2006-11-05 Alexander Olk <alex.olk@googlemail.com>
8842 * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
8843 had to remove support for links that point to a directory. FileInfo
8844 returns no usefull information (means, the directory they point to)
8845 for such links. Replaced some empty string ("") with String.Empty.
8847 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
8849 * TreeNodeCollection.cs: To match MS, in 1.0 profile throw
8850 NullReferenceException when attempting to remove node that is not in
8851 collection. Throw NullReferenceException when null is passed to
8852 Remove. Allow first element of the collection to be removed. Fixes
8853 bug #79831. In GetEnumerator ().Current return null if positioned
8854 before the first element of the collection. In GetEnumerator ().Reset,
8855 position before first element of the collection.
8857 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
8859 * PropertyGrid.cs: To match MS, remove default title and description
8860 for panel. Fixed tooltips for Categorized and Alphabetic toolbar
8863 2006-11-04 Chris Toshok <toshok@ximian.com>
8865 * Theme.cs: add a Clamp method, just for kicks.
8867 * ThemeWin32Classic.cs: clamp all color components to [0..255].
8869 2006-11-04 Chris Toshok <toshok@ximian.com>
8871 * Form.cs: if the form isn't visible, Close() does nothing.
8873 2006-11-03 Chris Toshok <toshok@ximian.com>
8875 * Form.cs (Close): if the form is modal, don't Dispose of it, only
8877 (WndProc): don't Dispose after handling the WM_CLOSE message.
8879 * Application.cs (RunLoop): toplevels is a list of Forms, so treat
8880 them as such, instead of using casts from Control to Form. Also,
8881 don't Dispose of the modal dialog when we fall out of the loop -
8886 2006-11-03 Chris Toshok <toshok@ximian.com>
8888 * Control.cs (Dispose): only go through the dispose thing if we're
8889 @disposing, and we haven't already been disposed. Fixes bug
8892 * Form.cs: no reason to call "base.Dispose()" here instead of
8895 2006-11-03 Mike Kestner <mkestner@novell.com>
8897 * ComboBox.cs : use ToString instead of casts in AddItem for
8898 sorting functionality. Fixes #79812.
8900 2006-11-03 Chris Toshok <toshok@ximian.com>
8902 * Application.cs: pave the way for actually using the thread
8903 exception dialog. it's ifdefed out at the moment.
8905 2006-11-03 Chris Toshok <toshok@ximian.com>
8907 * ThreadExceptionDialog.cs: until we get a better layout, actually
8908 hide the details textbox and label when we shouldn't see them.
8910 2006-11-03 Jackson Harper <jackson@ximian.com>
8912 * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
8913 multiline textboxes anymore. This method also determines the
8914 width/height of a textboxes canvas area.
8915 - Sorta a revert of the last patch. For multiline just position
8916 the controls, then bail. This way the scrollbar width won't be
8919 2006-11-03 Everaldo Canuto <everaldo@simios.org>
8921 * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
8922 it dont need. Fixes #79537.
8924 2006-11-02 Jackson Harper <jackson@ximian.com>
8926 * X11Dnd.cs: We always allow copy, since XDND implies Copy. Also
8927 send the status after firing the DndOver event.
8929 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
8931 * TrackBar.cs: Now orientation only switches height / width if
8932 the control's handle is created (Win32 does it like this). Also
8933 fixed a typo in ToString() for a test to pass, changed the
8934 exception thrown in set_LargeChange and set_SmallChange to
8935 match Win32 behaviour, and added TrackBar tests to the unit
8938 2006-11-02 Chris Toshok <toshok@ximian.com>
8940 * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
8941 not _NET_WM_STATE_NO_TASKBAR.
8943 2006-11-02 Jackson Harper <jackson@ximian.com>
8945 * TextControl.cs: Increment count by one, since in the update view
8948 2006-11-02 Jackson Harper <jackson@ximian.com>
8950 * TextBoxBase.cs: Use client rectangle not bounds for checking if
8951 the mouse is in the client rectangle (duh).
8953 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
8955 * TrackBar.cs: Fixed trackbar jumping around when clicking
8956 on it - the trackbar was not detecting correctly at which
8957 side of the thumb the click was done. (fixes #79718)
8959 2006-11-02 Everaldo Canuto <everaldo@simios.org>
8961 * ListBox.cs: scroll visible area when change SelectedIndex to
8962 a non visible area. Fixes #79481.
8964 2006-11-01 Jackson Harper <jackson@ximian.com>
8966 * TextControl.cs: When replacing the selection move the selection
8967 start/end/anchor to the end of the new text.
8969 2006-11-01 Jackson Harper <jackson@ximian.com>
8971 * XplatUIWin32.cs: When setting the parent change the controls
8972 visibility to it's visibility flag, not to it's old parents
8973 visibility (.Visible walks the parent chain).
8975 2006-11-01 Chris Toshok <toshok@ximian.com>
8977 * XplatUIX11.cs: revert the #79790 fix, as the simple.
8978 XSetTransientForHint fix breaks paint .net's tool windows. more
8979 work needed for that one.
8981 2006-11-01 Chris Toshok <toshok@ximian.com>
8983 * ScrollBar.cs: throw ArgumentException instead of Exception in
8984 LargeChange/SmallChange setters. fixes unit tests.
8986 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
8988 * ContainerControl.cs: reverted rev.67183 (which was itself
8989 a reversion of rev.66853... eh).
8991 * Control.cs: Fixes Reflector hang by changing Focus() call
8992 to what it was before rev.66643 (calling Select() here sets
8993 ActiveControl, which in some situations calls back Focus and
8994 eventually does a stack overflow). Temp fix.
8995 Changes to GetNextControl() to not look for children to select when
8996 parent cannot be selectable (so it looks for siblings instead)
8998 2006-10-31 Mike Kestner <mkestner@novell.com>
9000 * CheckedListBox.cs : off by one error in returned index from
9001 ObjectCollection.Add. Fixes #79758.
9003 2006-10-31 Chris Toshok <toshok@ximian.com>
9005 * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
9006 calls for the textbox/spinner, to keep from recursing to the point
9007 where we crash. Fixes #79760.
9009 2006-10-31 Chris Toshok <toshok@ximian.com>
9011 * ListControl.cs (set_SelectedValue): don't throw exceptions on
9012 null/"" value, just return. matches ms's behavior and fixes some
9015 2006-10-31 Chris Toshok <toshok@ximian.com>
9017 * Control.cs (set_Capture): make a logic a little easier to
9020 * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
9021 if it's being destroyed. A necessary fix surely, but a bandaid
9022 also, to fix the stuck capture problem in bug #78413.
9024 2006-10-31 Chris Toshok <toshok@ximian.com>
9026 * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
9027 convention of clearing hwnd.ClientRect when we set the
9028 width/height (so it'll be recalculated by Hwnd).
9030 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
9032 * ContainerControl.cs: reversed Contains check from
9033 ActiveControl due to hanging problems. This fix
9034 partly regresses #79667 (button does not have
9035 initial focus), so this might be a symptom for
9036 a larger parenting problem (set_ActiveControl
9037 is being called but the child control does
9038 not have the parent set yet?)
9040 2006-10-31 Mike Kestner <mkestner@novell.com>
9042 * MenuAPI.cs : fix keynav when menu is click activated.
9044 2006-10-31 Jonathan Pobst <monkey@jpobst.com>
9046 * ToolStrip*: Version 0.2.
9048 * MenuStrip.cs: Version 0.1.
9050 * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
9052 2006-10-30 Chris Toshok <toshok@ximian.com>
9054 [ fixes the oversized notify icon issue in bug #79745 ]
9056 * NotifyIcon.cs: scale the icon down to the size we're given by
9057 the XplatUI layer (this would be faster if we did it once instead
9058 of whenever we paint..) Also, remove the WM_NCPAINT handling,
9059 since it's never invoked.
9061 * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
9062 pixels high by default, so let's hardcode our systray icon to that
9063 size. The SYSTEM_TRAY protocol should really have a way for
9064 client apps to query for the correct icon size.. but oh well. A
9065 couple of patches to deal with the screwy client_window ==
9066 whole_window notifyicon stuff (we don't want to PerformNCCalc, for
9067 instance, and also make sure we don't XSelectInput twice).
9069 2006-10-30 Chris Toshok <toshok@ximian.com>
9071 * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
9072 recreating forms. Control recreation is the bane of my existence.
9073 Fix it in a way that keeps everyone happy.
9075 2006-10-30 Chris Toshok <toshok@ximian.com>
9077 * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
9078 just non-CHILD ones. otherwise sometimes scrollbars end up with
9079 client_windows not being resized to the proper size (ReportBuilder
9080 shows this extremely well).
9082 2006-10-30 Chris Toshok <toshok@ximian.com>
9084 * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
9085 for non-WS_EX_APPWINDOW windows. This is what keeps them from
9086 showing up in the gnome taskbar. Fixes bug #79790.
9088 2006-10-30 Chris Toshok <toshok@ximian.com>
9090 * ApplicationContext.cs: guard against a NRE.
9092 * Application.cs: null out the old MainForm for the context, so we
9093 don't try to use it again once it's disposed. Fixes bug #79783.
9095 2006-10-30 Chris Toshok <toshok@ximian.com>
9097 * DataGrid.cs (set_DataSource, set_DataMember): if we have a
9098 BindingContext, set the data source directly, otherwise do the
9099 lazy approach - the actual ListManager will be created when we get
9100 a BindingContext. Fixes bug #79700.
9102 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
9104 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
9105 XplatUIX11.cs: Remove old 2 parameter SetVisible.
9107 * Control.cs: Use the new 3 parameter SetVisible with activate = true.
9109 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
9111 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
9112 of SetVisible that allows a window to be shown, but not activated.
9113 This is needed on Windows for MenuStrip, and can probably be used
9114 with MainMenu and ComboBox to fix the focus stealing issues on
9117 * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
9119 2006-10-30 Alexander Olk <alex.olk@googlemail.com>
9121 * PictureBox.cs: Fix the output of the ToString method.
9123 2006-10-29 Chris Toshok <toshok@ximian.com>
9125 * Control.cs (get_TopLevelControl): fix bug #79781.
9127 2006-10-29 Chris Toshok <toshok@ximian.com>
9129 * ListControl.cs (set_DataSource): throw Exception here, not
9130 ArgumentException, to match MS behavior.
9132 2006-10-29 Chris Toshok <toshok@ximian.com>
9134 * Form.cs: remove the try-catch's around calls to GetWindowState.
9135 We can just check the return value.
9137 * XplatUIX11.cs: don't throw exceptions from GetWindowState.
9140 * XplatUI.cs: Add note about additional return value for
9143 2006-10-29 Chris Toshok <toshok@ximian.com>
9145 * Control.cs (CreateHandle): when we create our handle, we also
9146 create the handles of our child controls. Fixes one of the
9147 Control unit tests (CH11).
9149 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
9151 * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
9153 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
9155 * ThemeClearlooks.cs: A little speedup.
9157 2006-10-27 Chris Toshok <toshok@ximian.com>
9159 * Control.cs: implement Control.FromChildHandle in a way that
9160 matches the docs (and fixes the failed test.)
9162 2006-10-27 Chris Toshok <toshok@ximian.com>
9164 * DataGridTableStyle.cs: reproduce buggy MS behavior (with
9167 * DataGrid.cs: implement ResetForeColor such that the tests
9170 2006-10-27 Chris Toshok <toshok@ximian.com>
9172 * ToolBarButton.cs: setting text/tooltiptext to null results in it
9173 being set to "". Fixes bug #79759.
9175 2006-10-27 Jackson Harper <jackson@ximian.com>
9177 * TextControl.cs: We need to clear the entire selection area when
9178 setting the start, otherwise multiline selections are still
9181 2006-10-26 Chris Toshok <toshok@ximian.com>
9183 * PropertyGridView.cs:
9185 - ifdef all the code specific to the double
9186 buffer case, and provide some alternatives in the non-doublebuffer
9187 code, which makes heavy use of XplatUI.ScrollWindow to move things
9188 around without having to invalidate (and cause flicker). There
9189 are still some drawing problems in the non-doublebuffered case, so
9190 DOUBLEBUFFER is defined by default.
9192 - Fix the way dropdowns are handled. now we explicitly watch for
9193 the events which might cause the dropdown to close, and break out
9194 of the nested event loop there. This gets rid of all Capture
9195 code, at the expense of the Msg special casing. Seems to work,
9196 though, and fixes bug #79743.
9198 2006-10-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
9199 * Control.cs: SetIsRecreating now recreates implicitly added
9200 child controls as well. Finally fixes #79629. The flag passed to
9201 SetIsRecreating has also been removed since it wasn't used.
9203 2006-10-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9205 * PageSetupDialog.cs: Clean some code, fix some bits,
9206 add some checks, and add a printer sub-dialog.
9208 2006-10-26 Chris Toshok <toshok@ximian.com>
9210 * PropertyGrid.cs: make set_SelectedObject call
9211 set_SelectedObjects, and move the duplicate logic to the
9212 SelectedObjects setter. Also, raise SelectedObjectsChanged.
9214 * PropertyGridView.cs: hide the textbox when we get a
9215 SelectedObjectsChanged event.
9219 2006-10-26 Chris Toshok <toshok@ximian.com>
9221 * PropertyGridView.cs: deal with the type converter not supporting
9222 GetStandardValues() or GetStandardValues() returning null, which
9223 is does in the default case. Fixes #79742.
9225 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
9227 * CheckedListBox.cs: nunit no longer crashes when selecting
9228 Project/Edit menu option
9230 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
9232 * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
9233 is no menu selected. fixes #79739
9235 2006-10-25 Chris Toshok <toshok@ximian.com>
9237 * PropertyGridView.cs: factor out the splitter invalidation code
9238 into the SplitterPercent setter, and for kicks implement the
9239 Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
9240 amount in either direction.
9242 2006-10-25 Chris Toshok <toshok@ximian.com>
9244 * PropertyGridView.cs: do some cleanup of the brush used to draw
9245 text - read only fields should be grayed out. not sure how to do
9246 this with the textbox, though. but the textbox's should also be
9247 readonly now at least. Also, hide/show the textbox when resizing
9250 * CursorConverter.cs: use System.Reflection when getting the
9251 properties of Cursors, as TypeDescriptor.GetProperties isn't
9252 returning static properties.
9254 2006-10-25 Chris Toshok <toshok@ximian.com>
9256 * PropertyGridView.cs: factor out the up/down handling, and reuse
9257 it for page up/down. also add End/Home support.
9259 2006-10-25 Chris Toshok <toshok@ximian.com>
9261 * PropertyGridView.cs:
9263 - ensure the selected grid item is visible in the scrolled area,
9266 - fix Keys.Down handling when you're on the last item in the
9269 2006-10-25 Mike Kestner <mkestner@novell.com>
9271 * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup
9272 clicks too. Fixes #79725.
9274 2006-10-24 Chris Toshok <toshok@ximian.com>
9276 * PropertyGrid.cs: use property.Converter instead of
9277 TypeDescriptor.GetConverter(property.PropertyType), so we catch
9278 TypeConverters declared on the property as well as on the
9279 PropertyType. Fixes bug #79678.
9281 2006-10-24 Alexander Olk <alex.olk@googlemail.com>
9283 * MimeIcon.cs, Mime.cs:
9284 Fallback to the default platform handler if no shared mime info
9285 stuff exists (fixes #79693).
9287 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
9288 * ContainerControl.cs: Incorrect contains check in ActiveControl
9289 from previous fix (duh).
9291 2006-10-20 Chris Toshok <toshok@ximian.com>
9293 * PropertyGridView.cs: the dropdown should be MIN(number of items
9294 in list, 15). Fixes #79551.
9296 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
9297 Fixes #79384, #79394, #79652, #79667
9300 - Modal windows are now destroyed in the proper order for windows
9302 * ContainerControl.cs:
9304 - ActiveControl setter has more conditions on when to return:
9305 - if we're reselecting the active control, but it actually
9306 didn't have focus (window hidden or some such), it runs
9307 - if the active control being selected doesn't actually
9308 exist in the container, it returns
9312 - The ShowDialog now gets the current form as the owner when
9313 invoking without parameters, and correctly activates the owner
9318 - MessageBox now catches the Escape key to exit
9320 2006-10-20 Chris Toshok <toshok@ximian.com>
9322 * PropertyGridView.cs: fix a number of issues (bug #78565, and
9323 most of bug #79676):
9325 - you can navigate around the property grid with the arrow keys.
9327 - the dropdown is sized properly when the pg has a vertical
9330 - fix the indentation for subentries, and properly select the
9333 - fix the gray bar's drawing (only draw it to the last element,
9334 not for the height of the control. Also make sure we draw that
9335 last horizontal grid line.
9337 - use the same mechanism the datagrid uses wrt the editing textbox
9338 when scrolling/resizing/etc. Namely, we hide it first, do the
9339 operation, then show it again (if it's still visible).
9341 - aggressively remove a lot of unnecessary refreshes (and also
9342 calls to Invalidate(). call more limited variants, and only redraw
9347 - when we're populating the merged collection, fill in the UI
9348 parent with either the passed in item, or the category item we
9351 - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
9353 * GridItem.cs: drop some fully qualified names.
9355 * GridEntry.cs: add a "UIParent", which is basically the parent
9358 * GridItemCollection.cs: add an IndexOf method.
9360 2006-10-20 Mike Kestner <mkestner@novell.com>
9362 * MainMenu.cs : go back to Draw in OnMenuChanged. Until we get
9363 a working win32 NC invalidation mechanism, we can't invalidate
9364 menus. [Fixes #79705]
9366 2006-10-20 Mike Kestner <mkestner@novell.com>
9368 * ListBox.cs : don't update the VScrollbar if the list is empty,
9369 just hide it. [Fixes #79692]
9371 2006-10-20 Jackson Harper <jackson@ximian.com>
9373 * RichTextBox.cs: Handle some special chars better, and don't skip
9374 the entire group when we encounter a special char that we don't
9377 2006-10-18 Chris Toshok <toshok@ximian.com>
9379 * PropertyGridView.cs: address a number of issues from bug #79676,
9380 mostly of the cosmetic variety.
9382 - The highlight rectangle for indented items not extends all the
9385 - Indented items aren't indented so much.
9387 - the dropdown is properly sized width-wise if the pg has a
9390 2006-10-18 Chris Toshok <toshok@ximian.com>
9392 * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
9393 systray stuff is rather convoluted to begin with.
9395 systray icons are a single window for some reason (that I haven't
9396 figured out yet), and for them, client_window == whole_window.
9397 Given the way the tests are structured elsewhere to determine
9398 which paints are pending (client vs. nc), that situation will
9399 always yield PAINT, not NCPAINT. So, if we have a pending
9400 nc_expose and no pending expose, remove the hwnd from the paint
9401 queue, and also set nc_expose_pending to false, to keep us from
9402 blocking further expose's adding the hwnd to the paint queue.
9404 phew. like i said, a rather convoluted change. Fixes the
9405 notifyicon repaint issues in bug #79645.
9407 2006-10-18 Chris Toshok <toshok@ximian.com>
9409 * Form.cs: when getting the backcolor of the form, don't get
9410 base.BackColor, as this allows parents to influence the background
9411 color. This breaks mdi forms. Instead, if the background_color
9412 is empty, return the default.
9414 2006-10-18 Chris Toshok <toshok@ximian.com>
9416 * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
9417 to being private instead of internal static.
9419 * Control.cs: remove all the stupid ParentWaitingOnRecreation
9420 crap, it wasn't working for more deeply nested controls anyway,
9421 and we already have the is_recreating flag - use that instead.
9422 Before calling DestroyHandle in RecreateHandle, recurse through
9423 the control tree setting it to true. this returns the recreate
9424 code to much of its original simplicity, while now guaranteeing we
9425 actually recreate everything we're supposed to. This change gets
9426 fyireporting actually showing mdi children.
9428 2006-10-17 Chris Toshok <toshok@ximian.com>
9430 * Form.cs: remove some debug spew, and collapse some duplicate
9431 code at the end of SetClientSizeCore.
9434 - add some more debug spew here too wrt Destroy handling.
9435 - don't call hwnd.Dispose in DestroyWindow, it's effectively done
9436 in Control's handling of WM_DESTROY.
9437 - Remove the handling of zombie window DestroyNotifies from the
9438 event loop - we don't need it. Now the only DestroyNotifies we
9439 actually handle are ones generated by X.
9440 - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
9441 match gtk's (functioning) handling of this. This keep metacity
9442 from leaving droppings in the form of wm borders with no window
9443 contents all over the place.
9446 - add a bunch of debug spew wrt control recreation.
9447 - fix a bug where we weren't tracking Visible properly on
9449 - fixed the WM_PAINT double buffer handling to support re-entrant
9450 calls (yes, i know it's gross, but it's happening to us).
9452 2006-10-17 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
9453 * ThemeWin32Classic.cs: changed drawing of selected days
9454 to make them look better.
9456 2006-10-16 Chris Toshok <toshok@ximian.com>
9458 * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
9459 drawing_stack. Nuke the ClientDC/NonClientDC properties.
9461 * XplatUIX11.cs: move away from using hwnd.client_dc and
9462 hwnd.non_client_dc and on to a stack of dc's (and in window's
9463 case, PAINTSTRUCT's), so we can deal with nested Paint calls
9464 without puking or not disposing of Graphics objects.
9466 * XplatUIOSX.cs: same.
9468 * XplatUIWin32.cs: same.
9470 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
9472 * FileDialog.cs: Don't call on_directory_changed inside
9473 OnSelectedIndexChanged (it changes the SelectedIndex too).
9474 Instead move it to OnSelectionChangeCommitted.
9476 2006-10-13 Chris Toshok <toshok@ximian.com>
9478 * XplatUIX11.cs: more Destroy work. the current code does the
9479 following things, in order:
9481 1. Enumerates all handles of all controls at or below the one
9482 being destroyed, in pre-order. As it is doing this, it marks the
9483 handles as zombie and clears all references to them.
9485 2. calls XDestroyWindow on the window passed in.
9487 3. SendMessage's WM_DESTROY to all he handles in the accumulated
9490 2006-10-13 Chris Toshok <toshok@ximian.com>
9492 * XplatUIX11.cs: set hwnd.zombie to true before calling
9493 SendMessage (WM_DESTROY). this keeps us from marking the new
9494 window a zombie, and also keeps us from calling sendmessage at
9497 2006-10-13 Jackson Harper <jackson@ximian.com>
9499 * TextControl.cs: Do not show the caret and selection at the same
9500 time. Reduces ugliness by 35%.
9502 2006-10-13 Chris Toshok <toshok@ximian.com>
9504 * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
9505 zombie after we do the recursive call, so we actually do call
9506 SendMessage on the children controls.
9507 (GetMessage): if we find a pending paint event for a zombie hwnd,
9508 remove the hwnd from the paint queue, or else it will always be
9509 there (and we'll effectively loop infinitely)
9511 2006-10-13 Mike Kestner <mkestner@novell.com>
9513 * MenuItem.cs : add Selected format under keynav too.
9516 2006-10-13 Gert Driesen <drieseng@users.sourceforge.net>
9518 * PropertyGrid.cs: Fixed some NRE's and small difference between our
9519 implementation and that of MS.
9521 2006-10-13 Chris Toshok <toshok@ximian.com>
9523 * Control.cs (OnInvalidated) only futz with the invalid_region if
9524 the control is double buffered. this fixes the apparent hang in
9525 the ListView unit tests. Someone needs to make the
9526 BeginEndUpdateTest not call OnInvalidated 15004 times, though..
9528 2006-10-13 Chris Toshok <toshok@ximian.com>
9530 * PropertyGridView.cs:
9532 - do a little refactoring so that only one place calls
9533 dropdown_form.Hide, and that is CloseDropDown. make everywhere
9534 else call that. Also make it Refresh, since there are redraw bugs
9535 otherwise (we should take a look at that...)
9537 - do a little more refactoring work to share the body of code
9538 involved with the drop down. it was duplicated in the code
9539 dealing with the listbox handling and in the code dealing with the
9542 - add a Capture to the dropdown form's control once it's
9543 displayed, and add a MouseDown handler that checks to make sure
9544 the position is inside the control. If it's not, close the
9545 dropdown. This fixes #78190.
9547 - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
9548 if the value is different than the initial value.
9550 2006-10-13 Andreia Gaita <shana.ufie@gmail.com>
9552 * Control.cs: see #78650
9553 - Fixed GetNextControl for several cases:
9554 - Changed FindFlatForward to return
9555 correct sibling control when more than one
9556 control has same TabIndex as the currently
9558 - Changed FindFlatBackward to loop children
9559 from last to first and apply same logic as in
9561 - Changed FindControlForward to search for
9562 children when control is not a container
9563 but has children, or search for siblings if
9564 control is a container...
9565 - Changed FindControlBackward to continue
9566 searching for child controls when hitting
9569 - Fixed Focus method to update ActiveControl
9570 (FocusTest.FocusSetsActive failure)
9573 - Focus rectangle now refreshes when gaining
9575 - Removed grab for Tab key on IsInputKey that
9576 was keeping tab navigation from working (#78650)
9578 2006-10-13 Chris Toshok <toshok@ximian.com>
9580 * PropertyGridView.cs:
9581 - Rewrite SetPropertyValue to loop over SelectedGridItem's
9584 - Deal with GridItem.Value == null a few places.
9587 - replace the PopulateGridItemCollection with a pair of methods
9588 which compute the intersection of all the properties in the
9589 SelectedObjects array. Fixes #79615.
9591 - Throw ArgumentException from set_SelectedObjects if there's a
9594 - Add GetTarget method which can be used to traverse up the
9595 GridItem.Parent chain. It depends on the assumption that
9596 selected_objects for different GridEntries are always in the same
9597 order (a safe assumption). Use this method and loop over all the
9598 selected objects in the entry when calling RemoveValueChanged and
9601 * GridEntry.cs: Make this handle multiple selected objects.
9602 .Value returns null if not all the selected objects share the same
9605 2006-10-12 Jonathan Pobst <monkey@jpobst.com>
9606 * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
9607 ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
9608 ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
9609 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
9610 ToolStripTextBox.cs: Add accessibility, fix attributes/API and
9611 add additional functionality.
9613 2006-10-12 Mike Kestner <mkestner@novell.com>
9615 * ErrorProvider.cs : new ToolTipWindow ctor sig.
9616 * HelpProvider.cs : new ToolTipWindow ctor sig.
9617 * ToolTip.cs : remove ToolTip param from Window sig since it is
9619 * ToolBar.cs : add tooltip support. Fixes #79565.
9621 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
9623 * ComboBox.cs: move the events in set_SelectedIndex to
9624 after the call to HighlightIndex in order to avoid
9625 possible recursion and subsequent problems with the call
9626 to HighlightIndex and include a range check in
9627 set_HighlightIndex. Fixes #79588
9629 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
9631 * MonthCalendar.cs: When FirstDayOfWeek is default set firstday
9632 to ui thread's settings instead of sunday.
9633 * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
9635 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
9639 * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
9640 and implement missing functionality (selecting different parts
9641 of the date and edit them individually with the keyboard).
9643 2006-10-11 Chris Toshok <toshok@ximian.com>
9645 * Control.cs (OnInvalidated): fix NRE relating to last change.
9647 2006-10-11 Chris Toshok <toshok@ximian.com>
9649 * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
9650 atoms in _NET_WM_STATE here if the window is maximized. We need
9651 to do this because we're *replacing* the existing _NET_WM_STATE
9652 property, so those atoms will be lost otherwise, and any further
9653 call to GetWindowState will return Normal for a window which is
9654 actually maximized. Fixes #79338.
9656 2006-10-11 Jackson Harper <jackson@ximian.com>
9658 * TextControl.cs: Special case for setting selection end to
9659 selection start, we basically kill the anchor.
9660 - some todo comments.
9662 2006-10-11 Chris Toshok <toshok@ximian.com>
9664 * Control.cs: switch to using an "invalid_region" to track which
9665 parts of the image buffer need updating. This is more code than
9666 the simple fix from r66532. That version just attempted to always
9667 fill the entire buffer on redraw, which turns out to be
9668 inefficient when invalidating small rectangles. This version
9669 simply adds the invalid rectangle to the invalid region. When we
9670 get any WM_PAINT message we see if it can be filled using the
9671 image buffer, and if it can't (if the paint event's clip rectangle
9672 is visible in the invalid region) we first fill the image buffer.
9673 So, the image buffer is still a cache, we just fill it lazily.
9675 * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
9678 2006-10-11 Chris Toshok <toshok@ximian.com>
9680 * XplatUIX11.cs (SetWindowPos): we need to update both position as
9681 well as size after calling XMoveResizeWindow. This keeps us from
9682 ignoring future SetWindowPos calls. Fixes the disappearing
9683 DateTimePicker in the ToolBarDockExample from bug #72499.
9685 2006-10-11 Chris Toshok <toshok@ximian.com>
9687 * TextBoxBase.cs: reorder things a bit when it comes to
9688 resizing-causing-recalculation. we were recalculating the
9689 document when our position was changed, which shouldn't happen.
9690 We only care about size changes. Clear up some more redundant
9691 recalculation calls while I'm at it. This makes the toolbar dock
9692 example snappy when you're just dragging toolbars around (since it
9693 causes a relayout whenever you move one.)
9695 2006-10-11 Chris Toshok <toshok@ximian.com>
9697 * ToolBarButton.cs (get_Rectangle): this only returns
9698 Rectangle.Empty if Visible == false, or Parent == null.
9699 Parent.Visible doesn't matter.
9701 2006-10-10 Chris Toshok <toshok@ximian.com>
9703 * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
9704 by .net 1.1, so switch to an internal method instead.
9706 2006-10-10 Chris Toshok <toshok@ximian.com>
9708 * Control.cs (WM_PAINT): when a control is double buffered we draw
9709 initially to the ImageBuffer and then copy from there. But when a
9710 parent control which has child controls is double buffered, the
9711 initial drawing doesn't encompass the entire ClientRectangle of
9712 the parent control, so we end up with uninitialized bits (this is
9713 easily seen by dragging the top toolbar in
9714 wf-apps/ToolBarDockExample to the right, quickly). The fix is to
9715 manually set the ClipRectangle of the paint_event (only the one we
9716 use to populate the ImageBuffer) to ClientRectangle. Fixes more
9717 of the nastiness in bug #72499.
9719 * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
9720 which we use in Control.cs's WM_PAINT handling.
9722 2006-10-10 Jackson Harper <jackson@ximian.com>
9724 * TextBoxBase.cs: Finish off the autoscrolling stuff.
9726 2006-10-10 Chris Toshok <toshok@ximian.com>
9728 * Cursor.cs: Apply a slightly different patch to the one suggested
9731 2006-10-10 Jackson Harper <jackson@ximian.com>
9733 * MenuItem.cs: Make sure to put the mdi child in the hashtable,
9734 not the parent form.
9735 * TextControl.cs: use difference in old line count vs new count to
9736 calculate how many lines were added, this takes into account soft
9737 line breaks properly.
9739 2006-10-10 Chris Toshok <toshok@ximian.com>
9741 * LinkLabel.cs: don't call MeasureCharacterRanges against a
9742 rectangle located at 0,0 and the size of the text. Use
9743 ClientRectangle instead. This fixes rendering of non-left aligned
9746 2006-10-10 Jackson Harper <jackson@ximian.com>
9748 * TextBoxBase.cs: When we set the selection start position the
9750 * TextControl.cs: Need to update the caret when we decrement it to
9752 - Make sure that the selection_visible flag gets reset to false if
9753 the selection isn't visible. Before this you could get it set to
9754 visible by changing the selection start, then changing the end to
9757 2006-10-09 Jackson Harper <jackson@ximian.com>
9759 * TreeView.cs: Don't update scrollbars when we aren't visible.
9760 * TreeNodeCollection.cs: Only need to update scrollbars if being
9761 added to an expanded visible node or the root node.
9763 2006-10-09 Chris Toshok <toshok@ximian.com>
9765 * XplatUIX11.cs (SendMessage): fix NRE.
9767 2006-10-09 Jackson Harper <jackson@ximian.com>
9769 * TextBoxBase.cs: Implement horizontal autoscrolling.
9770 * TextControl.cs: Add a movement types that allows moving forward
9771 and backwards without wrapping.
9773 2006-10-09 Mike Kestner <mkestner@novell.com>
9775 * ListViewItem.cs : layout changes for wrapped LargeIcon labels
9776 with focus "expansion" of labels. Fixes #79532 and then some.
9777 * ThemeWin32Classic.cs : add LineLimit to ListView label format
9780 2006-10-09 Jackson Harper <jackson@ximian.com>
9782 * TextBoxBase.cs: Set the default max values to MaxValue since
9783 we use the scrollbar for autoscrolling and the default value is
9784 100. If we don't do this the caret won't keep up with typing
9785 after about 18 characters.
9786 * TextControl.cs: Make sure the selection is offset by the
9787 viewport x. This fixes selection when using auto scrolling.
9789 2006-10-07 Andreia Gaita <shana.ufie@gmail.com>
9791 * Form.cs: The active control should be selected after the
9792 OnLoad so that any child control initialization that affects
9793 the selection is done. Fixes #79406
9795 2006-10-06 Chris Toshok <toshok@ximian.com>
9797 * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
9798 to have no evil effects.
9800 - Stop selecting StructureNotifyMask on non-toplevel windows.
9802 The only way children should be resized is by using the SWF api,
9803 and we already send WM_WINDOWPOSCHANGED messages in those cases.
9804 Toplevel windows can be interacted with via the window manager,
9805 and so we keep the input mask there.
9807 The other event StructureNotifyMask gives us (that we care
9808 about) is DestroyNotify. The code is already structured such
9809 that it assumes we won't be getting a DestroyNotify event for
9810 the window we pass to XDestroyWindow (which is what
9811 StructureNotifyMask is supposed to guarantee.) So, that code
9812 shouldn't be affected by this either.
9814 - Stop selecting VisibilityChangeMask altogether.
9816 We weren't doing anything with the resulting events anyway.
9818 This vastly reduces the number of X requests and events we see
9819 when resizing/laying out a large ui.
9821 2006-10-06 Chris Toshok <toshok@ximian.com>
9823 * ScrollableControl.cs (DisplayRectangle): we need to take into
9824 account the DockPadding regardless of whether or not auto_scroll
9825 == true. rework this slightly to this effect, and fix bug #79606,
9826 and part of #72499 (you can now see the drag handles and drag
9829 2006-10-06 Gert Driesen <drieseng@users.souceforge.net>
9831 * ListViewItem.cs: Collections of selected and checked items are now
9832 dynamically rebuilt. Whenever an item is (un)checked or (de)selected
9833 we mark the collection "dirty".
9834 * ListView.cs: Marked collections readonly. Modified UpdateSelection
9835 to only clear SelectedItems when a new item is selected and MultiSelect
9836 is enabled. CheckedItems and SelectedItems now subscribe to Changed
9837 event of ListViewItemCollection, and mark its list dirty whenever
9838 that event is fire. This allows us to return selected/checked items
9839 in the same order as they are in the Items collection. This matches
9842 2006-10-06 Chris Toshok <toshok@ximian.com>
9844 * NotifyIcon.cs (HandleMouseUp): only show the context menu on
9845 right mouse clicks. Fixes bug #79593.
9847 2006-10-06 Chris Toshok <toshok@ximian.com>
9849 * Splitter.cs: doh, fix splitters that don't want to cancel the
9850 movement when you drag them. Also, impose the limits on the
9851 values we send to the SplitterMovingEvent. Fixes #79598.
9853 2006-10-06 Jackson Harper <jackson@ximian.com>
9855 * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
9856 since we use this for auto scrolling also.
9858 2006-10-05 Chris Toshok <toshok@ximian.com>
9860 * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus. I'm
9861 beginning to think that most datagrid column types don't need this
9862 method. Fixes bug #79392.
9864 2006-10-05 Chris Toshok <toshok@ximian.com>
9866 * DataGrid.cs: move back to a more lazy scheme for creating the
9867 CurrencyManager, so we aren't updating it every time you set
9868 either DataSource or DataMember. Also, don't call
9869 RecreateDataGridRows if the currency manager hasn't changed.
9871 2006-10-05 Chris Toshok <toshok@ximian.com>
9873 * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
9874 emitted, SelectedIndex should already be updated. Fixes bug
9877 2006-10-05 Jonathan Pobst <monkey@jpobst.com>
9879 * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
9880 ToolStripTextBox.cs: Initial commit.
9881 * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
9883 2006-10-05 Jackson Harper <jackson@ximian.com>
9885 * TabControl.cs: We need to invalidate the tab control area when
9886 new ones are added (duh).
9888 2006-10-03 Chris Toshok <toshok@ximian.com>
9890 * Form.cs (ProcessDialogKey): if the focused control is in this
9891 form and is a button, call its PerformClick method here. Fixes
9894 2006-10-04 Jackson Harper <jackson@ximian.com>
9896 * TabPage.cs: Ignore setting of Visible, and add an internal
9897 method for setting the controls visibility. TabPage's Visible
9898 property is a little strange on MS, this seems to make us
9899 compatible, and fixes cases where people set all the tab pages to
9901 * TabControl.cs: Use the new internal setting on tab pages
9904 2006-10-03 Mike Kestner <mkestner@novell.com>
9906 * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
9908 2006-10-03 Mike Kestner <mkestner@novell.com>
9910 * ListView.cs : use is_visible instead of Visible to check if
9911 scrollbars should be placed/sized. Also some max_wrap_width
9912 love for LargeIcon view. [Fixes #79533]
9914 2006-10-03 Atsushi Enomoto <atsushi@ximian.com>
9917 Make set_TextAlign() do actually update the align. Fixed #78403.
9919 2006-10-03 Chris Toshok <toshok@ximian.com>
9921 * DataGrid.cs: fix a crash when switching datasources if the
9922 vertical scrollbar is at someplace other than Value = 0. Also,
9923 reduce the number of recalculation passes we do in SetDataSource
9926 2006-10-03 Jackson Harper <jackson@ximian.com>
9928 * TextBoxBase.cs: Move the if value the same bail check up, we
9929 don't want to empty the document if it is already empty, this
9930 seems to severly mess up the caret. TODO: I should probably fix
9931 the empty statement to update teh caret somehow.
9933 2006-10-03 Chris Toshok <toshok@ximian.com>
9935 * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
9936 incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
9937 reflection, an internal row type, properties on said type, etc.)
9938 will work with our datagrid. Fixes #79531.
9940 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
9942 * FileDialog.cs: Don't crash if a path is not accessible
9943 (System.UnauthorizedAccessException). Fixes #79569.
9944 * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
9945 a ':' too. Return unknown icon for those paths/files.
9947 2006-10-03 Sebastien Pouliot <sebastien@ximian.com>
9949 * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when
9950 GetContainerControl returns null.
9952 2006-10-02 Chris Toshok <toshok@ximian.com>
9954 * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
9955 call to XGetWindowAttributes instead of "handle". fixes an X
9956 error using notifyicon after the NotifyIconWindow to Form base
9959 2006-10-02 Chris Toshok <toshok@ximian.com>
9961 * XplatUIX11.cs (QueryPointer): new function, encapsulating the
9962 server grab and looping we need to do to get down to the most
9963 deeply nested child window.
9964 (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
9965 QueryPointer again after the WarpPointer so we can generate a
9966 proper (fake) MotionNotify event to be enqueued in the destination
9968 (GetCursorPos): call QueryPointer.
9972 2006-10-02 Jackson Harper <jackson@ximian.com>
9974 * NotifyIcon.cs: Derive the notify icon from a form, so things
9975 like FindForm work on it.
9976 - Swallow the WM_CONTEXTMENU message, since that is generated on
9977 mouse down, and context menu is a mouse up kinda guy. I believe
9978 the correct fix here is probably to make the notify icon entirely
9979 NC area, but this seems to work fine for anyone not manipulating
9982 2006-10-02 Jonathan Pobst <monkey@jpobst.com>
9984 * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
9985 ToolStripItemCollection.cs, ToolStripLabel.cs,
9986 ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
9987 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
9988 Initial implementation.
9989 * TextRenderer.cs: Provide padding to MeasureText.
9991 2006-10-02 Sebastien Pouliot <sebastien@ximian.com>
9993 * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
9994 of ButtonBaseAccessibleObject. Fix bug #79552.
9996 2006-10-02 Jackson Harper <jackson@ximian.com>
9998 * MdiWindowManager.cs: When maximizing use the containers client
9999 rect, not it's bounds, so nc area is accounted correctly.
10000 - Use the parent form's size for the menu position, since the
10001 client isn't always the full form size.
10003 2006-10-01 Chris Toshok <toshok@ximian.com>
10005 * ScrollableControl.cs: make sure neither right_edge or
10006 bottom_edge are < 0, since they're used as LargeChange for the
10007 horiz/vert scrollbars respectively. Fixes #79539.
10009 2006-10-01 Chris Toshok <toshok@ximian.com>
10011 * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
10012 the xplatuix11 code can cause us to destroy/recreate our handle.
10016 - this code can be invoked many times for the same Hwnd. Make
10017 sure we only destroy the client window once (the first time this
10018 method is called). This fixes bug #79544.
10019 - Remove the call to the improperly bound XSync. why we had two
10020 bindings to this, I will never know, but this call resulted in
10021 events being discarded from the queue(!).
10022 - correct a misunderstanding of _XEMBED_INFO - the second atom is
10023 not our current state but the state we wish to be in. So, 0 if
10024 we don't want to be mapped. Change it to 1.
10025 (SystrayRemove): The XEMBED spec makes mention of the fact that
10026 gtk doesn't support the reparent of client windows away from the
10027 embedder. Looking at gtksocket-x11.c seems to agree with this.
10028 The only avenue we have for removing systray icons is to destroy
10029 them. We don't want the handle to go away for good, though, so
10030 call InternalRecreateHandle on the NotifyIconWindow. Fixes
10033 2006-10-01 Chris Toshok <toshok@ximian.com>
10035 * Form.cs (WndProc): inline the native_enabled variable usage into
10036 the cases in which it's used. Fixes #79536.
10038 2006-09-29 Mike Kestner <mkestner@novell.com>
10040 * ListView.cs : toggle the selection state for ctrl clicks in
10041 multiselect mode. [Fixes #79417]
10043 2006-09-29 Mike Kestner <mkestner@novell.com>
10045 * ListView.cs : kill CanMultiSelect and refactor the selection
10046 code to support multiselection in the absence of mod keys. Steal
10047 arrow/home/end keys by overriding InternalPreProcessMessage to
10048 restore regressed keynav behavior.
10051 2006-09-29 Jackson Harper <jackson@ximian.com>
10053 * MdiClient.cs: Repaint the titlebars when the active window is
10056 2006-09-29 Chris Toshok <toshok@ximian.com>
10058 * Application.cs: when entering a runloop with a modal, make sure
10059 the hwnd is enabled. Fixes #79480.
10061 2006-09-29 Chris Toshok <toshok@ximian.com>
10063 * DataGrid.cs (CurrentCell): if we try to navigate to the add row
10064 when ListManager.CanAddRows == false, bump us back one.
10066 * DataGridColumnStyle.cs (ParentReadOnly): remove the
10067 listmanager.CanAddRows check. This makes ArrayLists uneditable
10068 using a datagrid, which is not right.
10069 (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
10070 is an IEditable, but call property_descriptor.SetValue regardless.
10073 2006-09-29 Chris Toshok <toshok@ximian.com>
10075 * DataGridBoolColumn.cs: we need to test equality in the face of
10076 possible null values (as is the case with the default NullValue).
10077 This patch keeps us from crashing in that case.
10079 2006-09-29 Jackson Harper <jackson@ximian.com>
10081 * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
10082 here, since it will get called for every node collection in the
10083 tree. This is now done in the treeview once the sorting is
10085 * TreeView.cs: Recalculate the visible order, and update the
10086 scrollbars after sorting, set the top nope to the root so that the
10087 recalc actually works.
10089 2006-09-29 Chris Toshok <toshok@ximian.com>
10091 * LinkLabel.cs: more handling of the default link collection in
10092 the face of LinkArea manipulation. The default link collection
10093 contains 1 element (start=0,length=-1). If the user sets LinkArea
10094 to anything and the links collection is the default, clear it.
10095 Then only add the link if its nonempty. Fixes #79518.
10097 2006-09-29 Chris Toshok <toshok@ximian.com>
10099 * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
10100 piece correctly when we hit a '\n'. Fixes #79517.
10102 2006-09-29 Chris Toshok <toshok@ximian.com>
10104 * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
10105 change the binding of gdk_init_check to take two IntPtr's, and
10106 pass IntPtr.Zero for both of them. Fixes #79520.
10108 2006-09-29 Mike Kestner <mkestner@novell.com>
10110 * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
10113 2006-09-28 Jackson Harper <jackson@ximian.com>
10115 * XplatUIX11.cs: When translating NC messages make sure we go from
10116 whole window to screen, not client window to screen.
10117 * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
10118 method doesn't exist
10119 - Skip over controls that aren't forms when arranging.
10121 2006-09-28 Jackson Harper <jackson@ximian.com>
10123 * XplatUIWin32.cs: Clip the rect to the parent window.
10124 * XplatUIStructs.cs: Add clipping modes struct.
10125 * InternalWindowManager.cs: New private method that factors title
10126 bar heights in when calculating the pos of an NC mouse message.
10127 - Use SendMessage to force a paint when the form's size is changed
10128 instead of painting the decorations immediately.
10129 - Don't let the NC button click messages get to DefWndProc,
10130 because they will attempt to handle windowing themself, and this
10131 messes up z-order (it will put them in front of the scrollbars).
10132 * XplatUIX11.cs: Make sure that we don't reset window managers if
10133 we already have one (ie the window is an MDI window).
10135 2006-09-28 Chris Toshok <toshok@ximian.com>
10137 * MainMenu.cs: fix #79405 by way of a disgusting hack. all the
10138 menu code really needs going over.
10140 2006-09-27 Chris Toshok <toshok@ximian.com>
10142 * XplatUIX11.cs (SetWMStyles): more metacity wonderment. turns
10143 out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
10144 window is maximizable. So, we need to make sure that even if we
10145 clear the border/wm frame of those functions, they're still
10146 available (basically, we remove the decoration without removing
10147 the function). Half the fix for #79338.
10149 2006-09-27 Chris Toshok <toshok@ximian.com>
10151 * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
10154 2006-09-27 Chris Toshok <toshok@ximian.com>
10156 * Splitter.cs: reorder things a bit so that we don't actually
10157 draw/move the splitter until after calling OnSplitterMoving. This
10158 lets users cancel/disallow the movement by explicitly setting
10159 event.SplitX/SplitY. Fixes #79372.
10161 2006-09-27 Jackson Harper <jackson@ximian.com>
10163 * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
10164 because it is most likely on a window being destroyed, and that
10165 will give us an X11 error.
10167 2006-09-27 Chris Toshok <toshok@ximian.com>
10169 * PropertyGridView.cs: half of the fix for #78190. Clicking on
10170 the dropdown button now toggles between showing and hiding the
10171 dropdown. Also, get rid of dropdown_form_showing and just use
10172 dropdown_form.Visible. We still don't do a grab, but I'll leave
10173 that part to someone who has handled Capture-fu before.
10175 2006-09-27 Chris Toshok <toshok@ximian.com>
10177 * DataGrid.cs: return false if alt isn't pressed when '0' is
10178 pressed. this keeps the '0' key from being swallowed, and fixes
10181 2006-09-27 Chris Toshok <toshok@ximian.com>
10183 * ComboBox.cs: use Invalidate when scrolling the dropdown list.
10184 Calling Refresh (in response to a scrollbar event) screws up the
10185 scrollbar painting. Fixes bug #78923.
10187 2006-09-27 Chris Toshok <toshok@ximian.com>
10189 * Theme.cs (SystemResPool): make the "if hashtable[key] == null
10190 then insert into hashtable" blocks threadsafe.
10192 2006-09-27 Chris Toshok <toshok@ximian.com>
10194 * MessageBox.cs (CreateParams): the styles should be |'ed with our
10195 baseclass's, since otherwise the
10196 ControlBox/MinimizeBox/MaximizeBox assignments above have no
10197 effect. This gets the close button back in messageboxes.
10199 2006-09-27 Chris Toshok <toshok@ximian.com>
10201 * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
10202 flag, not just != 0. this makes flags that are actually multiple
10203 bits (like WS_CAPTION) work. fixes bug #79508.
10205 2006-09-27 Jordi Mas i Hernandez <jordimash@gmail.com>
10207 * PageSetupDialog.cs: add support for getting and settings the
10208 paper size, source and orientation.
10210 2006-09-26 Chris Toshok <toshok@ximian.com>
10212 * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
10213 and caption == "", we need to remove the resize handles as well as
10216 * Control.cs (set_Text): turns out that setting Text on a form
10217 should change the WM styles on the window, since if ControlBox ==
10218 false, the only way to get a window border is to have a non-""
10219 Text property. check winforms/forms/text.cs for an example. so,
10220 call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
10221 update both window styles and title. This fixes a lot of dialogs
10222 (including the preferences dialog in MonoCalendar.)
10224 2006-09-26 Chris Toshok <toshok@ximian.com>
10226 * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
10227 control isn't a Form), call Win32ShowWindow to hide the window,
10228 but don't update the control Visible property. When we reparent
10229 back to a parent control, call SetVisible in order for the
10230 window's visibility to be reinstated.
10232 * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
10235 * Control.cs (ControlCollection.Remove): remove that value.Hide()
10236 call for good, since it breaks MonoCalendar (and other things I'm
10237 sure.) Also, set all_controls to null *after* the owner calls,
10238 which end up regenerating it.
10239 (ChangeParent): allow new_parent to be == null, passing
10240 IntPtr.Zero down to XplatUI.
10242 this fixes #79294 the right way.
10244 2006-09-26 Mike Kestner <mkestner@novell.com>
10246 * GridEntry.cs : internal SetParent method.
10247 * PropertyGrid.cs : attach to property changed on the proper
10248 target if we have a hierarchical grid with subobjects. Setup
10249 GridItem.Parent for hierarchical items.
10250 * PropertyGridView.cs : Set value on the correct target for
10251 hierarchical grids. [Fixes #78903]
10253 2006-09-26 Chris Toshok <toshok@ximian.com>
10255 * Control.cs (ChildNeedsRecreating): this should return true if
10256 either we're being recreated and the child is in our list, or our
10257 parent is waiting for our recreation.
10259 2006-09-26 Chris Toshok <toshok@ximian.com>
10261 * Control.cs (ControlCollection.Remove): reinstate the
10262 value.Hide() call as suggested in bug #79294.
10264 2006-09-26 Sebastien Pouliot <sebastien@ximian.com>
10266 * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
10267 coordinates (versus a relative move).
10269 2006-09-26 Chris Toshok <toshok@ximian.com>
10271 * Control.cs: rework child recreation a little bit. It turns out
10272 that we race between the DestroyNotify the WM_DESTROY message. If
10273 the parent gets its DestroyNotify before the child gets the
10274 WM_DESTROY message, the child ends up not recreating (since the
10275 parent finishes its recreation on DestroyNotify, and the child
10276 checks ParentIsRecreating.)
10278 So, instead we store off a list of all the child controls which
10279 need to be recreated when the parent control starts to recreate
10280 itself. Then, when child controls get their WM_DESTROY message we
10281 check to see if they're in the parent's pending recreation list,
10282 and if so, we recreate. This removes all dependency on ordering
10283 from the code and fixes the initial MonoCalendar upgrade dialog.
10285 2006-09-26 Jackson Harper <jackson@ximian.com>
10287 * TextControl.cs: Use the Line to get the length of the line,
10288 since soft line breaks can change the end line.
10290 2006-09-26 Chris Toshok <toshok@ximian.com>
10292 * Control.cs (ControlCollection.AddImplicit): don't add the
10293 control again if it's already in one of our lists. This keeps us
10294 from adding controls over and over again for comboboxes when their
10295 handle gets recreated (as the combobox adds implicit controls in
10296 OnHandleCreated). Fixes the X11 errors in bug #79480.
10298 2006-09-26 Jackson Harper <jackson@ximian.com>
10300 * TextControl.cs: When deleting characters make sure that any
10301 orphaned zero lengthed tags get deleted.
10302 - Fix ToString for zero lengthed tags.
10304 2006-09-25 Jackson Harper <jackson@ximian.com>
10306 * TextControl.cs: When getting a tag at the location there can be
10307 multiple tags at the same spot, these are 0-lengthed tags that
10308 appear when extra formatting has been stuck in a location. We
10309 need to pull out the last of these 0 lengthed tags.
10311 2006-09-25 Jackson Harper <jackson@ximian.com>
10313 * TextControl.cs: Fix print out in debug method.
10314 * TextBoxBase.cs: When text is set bail if we are setting to the
10317 2006-09-24 Alexander Olk <alex.olk@googlemail.com>
10319 * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
10320 It is now possible to change the selected index in a FontXXXListBox
10321 with the up and down arrow keys from the FontXXXTextBoxes.
10322 Also, send the FontXXXTextBox mouse wheel event to the corresponding
10323 FontXXXListBoxes to match ms.
10325 2006-09-22 Sebastien Pouliot <sebastien@ximian.com>
10327 * SystemInformation.cs: Return a clone of the theme's MenuFont because
10328 anyone can dispose it, anytime. All other properties returns enums,
10329 structs or basic types so they don't need such tricks.
10331 2006-09-22 Jackson Harper <jackson@ximian.com>
10338 * XplatUIDriver.cs: Update interface to add a primary selection
10339 flag, so the driver can use the primary selection buffer if
10341 * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
10343 * RichTextBox.cs: We need to supply the data object to paste now
10344 (so we can choose to supply CLIPBOARD or PRIMARY).
10345 * TextBoxBase.cs: Supply data object to paste (see above).
10346 - Middle click uses the primary selection data object.
10348 2006-09-21 Chris Toshok <toshok@ximian.com>
10350 * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
10351 of SetWMStyles. It's still a rat's nest and is largely
10352 order-dependent which I dislike immensely. This also fixes the X
10353 button disappearing from toplevel forms.
10355 2006-09-21 Mike Kestner <mkestner@novell.com>
10357 * ListBox.cs: move Jordi's click/dblclick raising code to the
10360 2006-09-21 Jordi Mas i Hernandez <jordimash@gmail.com>
10362 * ListBox.cs: Fixes 79450
10364 2006-09-21 Mike Kestner <mkestner@novell.com>
10366 * TreeView.cs: guard against disposed conditions in UpdateScrollbars
10367 to deal with people updating the TreeNodeCollection after the tree
10368 is disposed. "Fixes" 79330.
10370 2006-09-20 Jackson Harper <jackson@ximian.com>
10372 * TextControl.cs: Push the cursor record onto the undo stack
10373 before the delete action. This fixes 78651.
10375 2006-09-20 Jonathan Chambers <joncham@gmail.com>
10377 * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
10378 CreateParams. Fixes 79329.
10380 2006-09-19 Chris Toshok <toshok@ximian.com>
10382 * XplatUIX11.cs: a couple of blanket code massage passes to clean
10383 things up a bit. First, get rid of the NetAtoms array (and the NA
10384 enum), and just embed the atoms as static fields. Also, add a
10385 couple of functions (StyleSet and ExStyleSet) to clean up all the
10386 bitmask testing of styles.
10388 * X11Structs.cs: remove the NA enum, not needed anymore.
10390 2006-09-19 Chris Toshok <toshok@ximian.com>
10392 * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
10393 (mapping them to _NET_WM_WINDOW_TYPE_UTILITY). and add a little
10394 added cleanup to get MessageBox titles appearing again, which were
10395 broken by my earlier fix for caption-less/ControlBox-less windows.
10397 2006-09-18 Jonathan Pobst <monkey@jpobst.com>
10399 * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
10400 ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
10401 ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
10402 ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
10403 ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
10404 ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
10405 ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
10406 ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
10407 ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
10408 ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
10409 ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
10411 * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
10412 ToolStripButton.cs: Stubs needed for above.
10413 * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
10415 2006-09-15 Chris Toshok <toshok@ximian.com>
10418 - make the MessageQueues hashtable Synchronized.
10420 - SendMessage: if the Hwnd is owned by a different thread, use the
10421 AsyncMethod stuff to dispatch the SendMessage on the hwnd's
10422 thread. Fixes bug #79201.
10424 2006-09-15 Chris Toshok <toshok@ximian.com>
10426 * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly. If
10427 ControlBox == false, we disallow maximize/minimize/close. If the
10428 form Caption is "" we also disallow move (and get rid of the Title
10429 decoration). Unfortunately, regardless of how things are set,
10430 we're stuck with the Title and WM menu.
10432 2006-09-15 Chris Toshok <toshok@ximian.com>
10434 * Application.cs: add locking around the static message_filters
10435 ArrayList, part of #79196.
10437 2006-09-15 Chris Toshok <toshok@ximian.com>
10439 * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
10440 Form.ControlBox == false, the window has no titlebar nor resize
10441 handles. fixes bug #79368.
10443 2006-09-15 Chris Toshok <toshok@ximian.com>
10445 * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
10446 >= 0. Fixes bug #79370.
10448 2006-09-15 Jonathan Pobst <monkey@jpobst.com>
10449 * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
10451 Add properties: LayoutEngine, Margin, DefaultMargin.
10452 Add method: GetPreferredSize.
10453 Move layout logic from PerformLayout to layout engines.
10455 2006-09-13 Chris Toshok <toshok@ximian.com>
10457 * XplatUIX11.cs: more destroy work. Jackson pointed out that my
10458 fix for #79326 broke #78718, so this change addresses that.
10460 - in SendWMDestroyMessages remove the call to
10461 CleanupCachedWindows, since we might be recreating the control and
10462 need to maintain the references to right Hwnd handles. Also, set
10463 the zombie flag to true for each of the children in the hierarchy
10464 instead of calling hwnd.Dispose. This will cause GetMessage to
10465 ignore all events for the window except for DestroyNotify.
10467 - In GetMessage, ignore messages except for DestroyNotify for
10470 * Control.cs: revert the is_recreating fix from the last
10471 ChangeLog. It's definitely "right", but it breaks switching from
10472 an MDI form to a non-MDI form. Will need to revisit that.
10474 * Hwnd.cs: add a zombie flag, which means "the
10475 client_window/whole_window handles are invalid, but we're waiting
10476 for the DestroyNotify event to come in for them". Set the flag to
10477 false explicitly if setting WholeWindow/ClientWindow, and also
10480 2006-09-13 Chris Toshok <toshok@ximian.com>
10482 * XplatUIX11.cs: rework window destruction slightly.
10484 - when destroying the windows associated with a control, we don't
10485 need 2 separate XDestroyWindow calls. Just the one for the
10486 whole_window (or for client_window if whole_window is somehow
10487 IntPtr.Zero -- can this happen?) is enough.
10489 - reworked SendWMDestroyMessages slightly, so we always dispose
10490 the child control hwnd's after sending the messages.
10492 - refactored out the ActiveWindow/FocusWindow/Caret clearing from
10493 the two places it was used (one was even using hwnd.Handle and the
10494 other hwnd.client_window. ugh), adding another call in
10495 SendWMDestroyMessages. We need this new call because now the
10496 DestroyNotify events in the queue will be ignored for the child
10497 controls (as their hwnd's were disposed, and the window id's
10498 removed from the hashtable in SendWMDestroyMessages.) fun, eh?
10500 - this fixes bug #79326.
10502 2006-09-13 Chris Toshok <toshok@ximian.com>
10504 * Control.cs: don't always set is_recreating to false at the end
10505 of RecreateHandle, since sometimes we're not done (and won't be
10506 until WndProc handles the WM_DESTROY message). Also, set
10507 is_recreating to false in the WM_DESTROY handling code. Part of
10508 the fix for bug #79326.
10510 2006-09-13 Miguel de Icaza <miguel@novell.com>
10512 * X11DesktopColors.cs: Start the droppage of debugging messages.
10514 * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
10516 2006-09-13 Jonathan Pobst <monkey@jpobst.com>
10518 * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
10520 2006-09-12 Chris Toshok <toshok@ximian.com>
10522 * DataGrid.cs (get_ListManager): if the list_manager is null, try
10523 to create it using SetDataSource. Fixes bug #79151.
10525 2006-09-11 Chris Toshok <toshok@ximian.com>
10527 * XEventQueue.cs: add a DispatchIdle property.
10529 * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
10530 either the queue is null, or the queue has DispatchIdle set to
10532 (DoEvents): set queue.DispatchIdle to false around the
10533 peek/translate/dispatch message loop in this method. This keeps
10534 Application.Doevents from emitting idle events. Part of the fix
10537 2006-09-11 Chris Toshok <toshok@ximian.com>
10539 * DataGrid.cs (set_DataSource): make this work for both the
10540 winforms/datagrid test and ReportBuilder. It seems as though when
10541 we've created a ListManager (or maybe it's if we have a
10542 BindingContext?), when we set the DataSource it clears the
10543 DataMember to "". otherwise we reuse the datamember. Fixes bug
10546 2006-09-11 Chris Toshok <toshok@ximian.com>
10548 * XplatUIX11.cs: deal with queue being null, which happens in all
10549 the Clipboard functions. Fixes one of the two problems mentioned
10552 2006-09-11 Chris Toshok <toshok@ximian.com>
10554 * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
10555 button on various spots (including outside the menu) works closer
10556 to MS, and doesn't crash. Fixes #79343.
10558 2006-09-11 Gert Driesen <drieseng@users.sourceforge.net>
10560 * ListView.cs: Do not initialize item_sorter in init. To match MS,
10561 return null for ListViewItemSorter if View is SmallIcon or LargeIcon
10562 and the internal comparer is set. When a new ListViewItemSorter is set,
10563 sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
10564 was specified. No further processing is necessary if SortOrder is set
10565 to it's current value. If Sorting is modified to None, and View is
10566 neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
10567 (either custom or our internal ItemComparer) to null, on 1.0 profile
10568 only set item_sorter to null if its our internal IComparer. If Sorting
10569 is modified to Ascending or Descending, then use our internal IComparer
10570 if none is set, and if the current IComparer is our internal one then:
10571 on 2.0 profile always replace it with one for new Sorting, and on 1.0
10572 profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
10573 Enum.IsDefined to verify whether a valid View value is specified in
10574 its setter. Automatically sort listview items when listview is
10575 created. In Sort, do nothing if ListView is not yet created, or if
10576 no item_sorter is set (no Sorting was set, Sorting was explicitly set
10577 to None or ListViewItemSorter was set to null). Added Sort overload
10578 taking a bool to indicate whether the ListView should be redrawn when
10579 items are sorted (we use this in ListViewItemCollection to avoid double
10580 redraws). Modified our internal IComparer to take the sort order into
10581 account. In Add and AddRange methods of ListViewItemCollection, also
10582 call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
10583 view), but use overload with noredraw option to avoid double redraw.
10584 On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
10585 true when View is Tile, and do the same when attempting to set View to
10586 Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
10587 for selected/checked indices, as it involves overhead when sorting is
10588 done while these collections are not used all that often. Instead
10589 we'll build the indices on demand. Modified IList implementation of
10590 CheckedIndexCollection to use public methods if object is int.
10591 Modified CheckedListViewItemCollection to hide checked items if
10592 ListView.CheckBoxes is false. Removed LAMESPEC remark in
10593 ListViewItemCollection as the .NET SDK docs have been fixed. Modified
10594 IList implementation in SelectedIndexCollection to use public methods
10595 if object is int. Modified SelectedListViewItemCollection to hide
10596 selected items if listview is not yet created.
10597 * ListViewItem.cs: CheckedIndices list no longer needs to be
10598 maintained separately (see ListView changes). Also clone font, fixes
10601 2006-09-11 Mike Kestner <mkestner@novell.com>
10603 * ComboBox.cs: if we are updating the contents of the currently
10604 selected index, refresh the control or the textbox selection.
10607 2006-09-11 Mike Kestner <mkestner@novell.com>
10609 * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since
10610 the 'specified' logic has been moved there. This seems like a bug
10611 in Control.cs, since our current SetBoundsCore completely ignores
10612 the specified parameter. Peter's commit seems to indicate that is
10613 the way the MS control implementation works. [Fixes #79325]
10615 2006-09-10 Jonathan Chambers <joncham@gmail.com>
10617 * XplatUI.cs: Set default_class_name to be composed
10618 of current domain id. This allows MWF to be loaded in multiple
10621 2006-09-09 Miguel de Icaza <miguel@novell.com>
10623 * X11Keyboard.cs: If we are unable to obtain the input method, do
10624 not call CreateXic to create the input context. Should fix
10627 2006-09-08 Alexander Olk <alex.olk@googlemail.com>
10629 * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
10630 Simplified gnome support by adding more pinvokes to get the
10631 icon for a file or mime type.
10633 2006-09-08 Jackson Harper <jackson@ximian.com>
10635 * MenuAPI.cs: Deslect popup context menu items before closing the
10636 window, so that you don't see the previously selected item
10637 selected when you reopen the menu.
10638 * TextControl.cs: Update the cursor position even if we don't have
10639 focus. This fixes typing in things like the ComboBox. I'm not
10640 totally sure we should always set the visibility if we don't have
10641 focus, but couldn't find any corner cases where the cursor showed
10642 up when it shouldn't.
10644 2006-09-08 Chris Toshok <toshok@ximian.com>
10646 * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
10647 our arrays are length 256. & 0xff before indexing. Fixes the
10648 crash in bug #78077.
10650 2006-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10652 * ThemeWin32Classic.cs:
10653 * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
10654 is true. Handle that check box too.
10656 2006-09-07 Chris Toshok <toshok@ximian.com>
10658 * MenuAPI.cs: move the PerformClick call to OnMouseUp. Fixes bug
10661 2006-09-07 Chris Toshok <toshok@ximian.com>
10663 * Control.cs: in set_BackColor only do the work if
10664 background_color != value.
10666 * XplatUIX11.cs: move the clearing of invalid areas (both client
10667 and nc) to the same block of code where we set (nc_)expose_pending
10668 to false. That is, move it from PaintEventEnd to PaintEventStart,
10669 so things that cause invalidates from within OnPaint will trigger
10670 another call to OnPaint. Fixes bug #79262.
10672 2006-09-07 Alexander Olk <alex.olk@googlemail.com>
10674 * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
10675 * FileDialog.cs: Fix typo
10677 2006-09-07 Jackson Harper <jackson@ximian.com>
10679 * ThemeWin32Classic.cs: oops, forgot to commit. Draw the images
10680 for tab pages if they have any.
10682 2006-09-06 Mike Kestner <mkestner@novell.com>
10684 * Splitter.cs: use the "current" rect when finishing drag handle
10685 to avoid an artifact demonstrated by resedit.exe. [Fixes #79251]
10687 2006-09-06 Mike Kestner <mkestner@novell.com>
10689 * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
10690 support offset splitters. [Fixes #79298]
10692 2006-09-06 Alexander Olk <alex.olk@googlemail.com>
10694 * Mime.cs: Fixed a bug that could override the global mime type
10697 2006-09-05 Jackson Harper <jackson@ximian.com>
10699 * TabControl.cs: Better calculation method for setting the slider
10700 pos. Prevents crashes on really wide tabs.
10701 - Draw Image on tab pages if an image list is used.
10703 2006-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10705 * MonthCalendar.cs: When Font changes, the Size should be
10706 updated to fit the new font's space requirements.
10708 2006-09-02 Alexander Olk <alex.olk@googlemail.com>
10710 * ListBox.cs: If the items are cleared with Items.Clear set
10713 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10715 * MonthCalendar.cs: Handle arrow keys as input keys. Also
10716 fire DateChanged event instead of DateSelected event when
10717 the date was changed by keyboard interaction.
10719 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10721 * DateTimePicker.cs: Handle DateChanged for the associated
10722 month_calendar control, and set month_calendar.Font from
10723 OnFontChanged method, as well as resize the height of the
10724 control when needed. Make PreferredHeight proportional.
10726 2006-09-01 Chris Toshok <toshok@ximian.com>
10728 * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
10731 * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
10733 2006-09-01 Peter Dennis Bartok <pbartok@novell.com>
10735 * FileDialog.cs: Set ClientSize instead of window size, to allow space
10736 for decorations (Fixes #79219)
10738 2006-09-01 Mike Kestner <mkestner@novell.com>
10740 * ComboBox.cs: first stab at sorting plus some selection handling
10741 fixes to bring us more in line with MS behavior. Also switches back
10742 to index based selection. Alternative patches for index-based
10743 selection were provided by Jackson Harper, Carlos Alberto Cortez,
10744 and latency@gmx.de on bug 78848. I assume they were similar to this
10745 code I've had simmering in my tree forever.
10748 2006-09-01 Chris Toshok <toshok@ximian.com>
10750 * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
10751 when setting list position guard against ending up with a -1 index
10752 (the other part of the fix for #78812). Should probably make sure
10753 we don't need the analogous fix in the ItemDeleted case.
10756 - in SetDataSource, work around the fact that the way
10757 OnBindingContextChanged is invoked will cause us to re-enter this
10758 method. I'll remove the hack once I investigate
10759 OnBindingContextChanged.
10761 - fix the logic in set_DataSource and set_DataMember (basically
10762 what to do if the other of the two is null.)
10764 - in OnListManagerItemChanged, we need to take into account the
10765 edit row when deciding whether or not to call RecreateDataGridRows
10766 (part of the fix for #78812).
10768 2006-09-01 Jackson Harper <jackson@ximian.com>
10770 * Splitter.cs: Don't do anything if there is no control to affect
10771 (prevents us from crashing in weird tet cases).
10772 * TreeView.cs: Bounding box for the mouse movement reverting
10773 focus/selection back to previously selected node. This matches
10774 MS, and makes the tree a lot more useable.
10775 * GroupBox.cs: Instead of drawing over the lines of the groupbox,
10776 use clipping so they are not drawn. This fixes when the control
10777 is set to have a transparent background, or if it was over an
10780 2006-09-01 Alexander Olk <alex.olk@googlemail.com>
10782 * MimeIcon.cs: Improved handling for reading default icons when
10783 using gnome (2.16 made it necessary). Check and read svg icons
10784 first, then 48x48 and then 32x32 icons.
10786 2006-08-31 Chris Toshok <toshok@ximian.com>
10788 * DataGridTextBoxColumn.cs: only hide the textbox if it's still
10791 * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
10792 ProcessKeyPreview. Fixes part of #77806.
10794 * DataGrid.cs: big patch.
10796 - revert the queueing up of DataSource/DataMember if inside
10797 BeginInit/EndInit calls. That's not the way the datagrid achieves
10798 its delayed databinding. Instead, call SetDataSource in
10799 OnBindingContextChanged. This mimic's MS's behavior, and fixes
10802 - Also, it wasn't mentioned in #78811, but the test case exhibits
10803 behavior that was lacking in our datagrid implementation - Columns
10804 that have mapping names that don't exist in the datasource's
10805 properties aren't shown. Yuck. To fix this I added the bound
10806 field to the column style, and basically any calculation to figure
10807 out anything about columns uses a loop to find the bound columns.
10808 still need to investigate if I can cache an array of the bound
10809 columns or if the indices must be the same.
10811 - When setting CurrentCell, we no longer abort if the cell being
10812 edited was in the add row. This fixes the other part of #77806.
10814 - The new code also fixes #78807.
10816 * ThemeWin32Classic.cs: perpetrate the same disgusting
10817 column.bound field hack, and only render bound fields.
10819 2006-08-31 Chris Toshok <toshok@ximian.com>
10821 * DataGridColumnStyle.cs: add bound field. this field is true if
10822 the datasource has a property corresponding to the mapping name.
10824 * DataGridTableStyle.cs: set the bound field on the column styles
10825 depending on whether or not we have a column for that property.
10827 2006-08-31 Peter Dennis Bartok <pbartok@novell.com>
10829 * Splitter.cs (SetBoundsCore): Don't ignore width/height of the
10830 splitter control (fixes #79228)
10832 2006-08-31 Chris Toshok <toshok@ximian.com>
10834 * DataGridColumnStyle.cs: we need to delay the assignment of
10835 property descriptor until the last possible moment due to the lazy
10836 databinding stuff in the datagrid. Also, fix the exceptions
10837 thrown by CheckValidDataSource to match MS.
10839 2006-08-31 Jackson Harper <jackson@ximian.com>
10841 * Form.cs: When activated select the active control, if there is
10842 no active control, we select the first control.
10843 * XplatUIX11.cs: If there is no focus control when we get a
10844 FocusIn event, find the toplevel form and activate it. This
10845 occurs when you popup a window, it becomes the focus window, then
10846 you close that window, giving focus back to the main window.
10848 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10850 * MonthCalendar.cs:
10851 * ThemeWin32Classic.cs: Cache Font in bold style, as well
10852 as StringFormat with Center alignments in MonthCalendar,
10853 instead of creating new ones when drawing the control.
10854 Also, draw the month name in bold style.
10856 2006-08-30 Peter Dennis Bartok <pbartok@novell.com>
10859 - PerformLayout(): It would seem MS performs the fill even if the
10860 control is not visible (part of #79218 fix)
10861 - ResetBackColor(): Use the setter to reset the color, to allow
10862 overriders to catch the change.
10864 - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
10865 - CreateHandle(): dito (part of $79218 fix)
10866 - Don't set an icon if we have a dialog
10867 * ScrollableControl.cs:
10868 - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
10869 - ScrollIntoView(): No need to scroll if control is already visible
10870 (resolves fixme and fixes #79218)
10872 2006-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10874 * MonthCalendar.cs: Change proportions in SingleMonthSize
10875 to match the aspect of the original control.
10877 2006-08-29 Alexander Olk <alex.olk@googlemail.com>
10879 * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
10880 get updated when they get maximized.
10882 2006-08-29 Peter Dennis Bartok <pbartok@novell.com>
10884 * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
10886 2006-08-29 Chris Toshok <toshok@ximian.com>
10888 * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
10890 2006-08-29 Jackson Harper <jackson@ximian.com>
10892 * TreeView.cs: Need to track selected node and highlighted node,
10893 they aren't always the same thing, when the mouse is down on a
10894 node it is hilighted, but not selected yet.
10895 - Do the HideSelection stuff right
10896 - Need to focus on rbutton mouse down. And redraw selection when
10897 right click is mouse upped.
10899 2006-08-29 Mike Kestner <mkestner@novell.com>
10901 * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
10902 when SubItems.Count < Columns.Count. [Fixes #79167]
10904 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
10906 * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
10908 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
10910 * XplatUIX11.cs: Preempt the roundtrip for getting the location back
10911 from X. Only send based on ConfigureNotify if we don't have the
10912 correct location in hwnd (if the window manager moved us)
10914 2006-08-28 Mike Kestner <mkestner@novell.com>
10916 * ListView.cs: remove a TODO.
10917 * ThemeWin32Classic.cs: implement HideSelection support for ListView.
10918 [Fixes ListView part of #79166]
10920 2006-08-28 Mike Kestner <mkestner@novell.com>
10922 * ListView.cs: move wheel handler to parent since it is focused
10923 instead of the item_control now. [Fixes #79177]
10925 2006-08-28 Mike Kestner <mkestner@novell.com>
10927 * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
10928 when the control is focused. [Fixes #79171]
10930 2006-08-28 Mike Kestner <mkestner@novell.com>
10932 * ListView.cs: size the item and header controls for empty and
10933 unscrollable views.
10934 * ThemeWin32Classic.cs: draw disabled backgrounds.
10937 2006-08-28 Chris Toshok <toshok@ximian.com>
10939 * Form.cs: remove unused "active_form" static field.
10941 * Hwnd.cs: lock around accesses to static windows collection.
10943 * Application.cs: lock threads in Exit ().
10945 2006-08-28 Chris Toshok <toshok@ximian.com>
10947 * NativeWindow.cs: lock around accesses to window_collection.
10949 2006-08-28 Chris Toshok <toshok@ximian.com>
10951 * Control.cs: err, fix this the right way, by locking on controls
10952 when using it. not by making it synchronized.
10954 2006-08-28 Chris Toshok <toshok@ximian.com>
10956 * Control.cs: make the static "controls" field synchronized, as it
10957 gets updated from multiple threads.
10959 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
10961 * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
10962 Prevent other threads from exiting when calling thread sets quit state.
10963 * XEventQueue.cs: Added PostQuitState property
10965 2006-08-27 Chris Toshok <toshok@ximian.com>
10967 * AsyncMethodData.cs: add a slot for the window handle.
10969 * XplatUIX11.cs (SendAsyncMethod): send the event to the right
10970 window (the destination control's window, not the foster window).
10972 * Control.cs (BeginInvokeInternal): store the window's handle in
10973 the AsyncMethodData.
10976 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
10979 - PostQuitMessage: Removed resetting S.D display handle, we might have
10980 another loop started after calling PostQuitMessage (Fixes #79119)
10981 - Created destructor to reset S.D handle
10983 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
10985 * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
10987 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
10989 * TextControl.cs (Insert): Update the caret position even if we don't
10990 have a handle yet, just don't call the driver in that case.
10991 * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
10992 to the end of the new selection text (Fixes #79184)
10994 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
10996 * Form.cs (Activate): Only activate if the handle is created)
10998 - Mark window as invisible when it's disposed
10999 - Check if window handle is created when setting window visible,
11000 instead of relying just on the is_created variable
11001 - Check if object is disposed when creating the control (Fixes #79155)
11003 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
11005 * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
11006 when allowing layout again. Otherwise we re-generate the anchoring
11007 distance to the border again and actually alter what the user wanted
11008 This is ugly, it'd be better if we used DisplayRectangle instead of
11009 ClientRectangle for Control.UpdateDistances, but that causes us to
11010 have other problems (initial anchoring positons would be wrong)
11013 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
11016 - The size and location setters shouldn't go directly to
11017 SetBoundsCore, but to SetBounds, which triggers layout on the
11018 parent, then calls SetBoundsCore. (Related to fix for #78835)
11019 - SetBounds: Moved actual location update code into this function
11020 from SetBoundsCore, to match MS. Added call to PerformLayout if
11021 we have a parent (to trigger resizing of anchored parents if the
11022 child size has changed (see testcase for #78835)
11023 * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match
11025 * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
11027 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
11029 * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
11030 System.Drawing when a toplevel window gets closed; there might
11031 be other toplevel windows belonging to the same app (Fixes #78052)
11033 2006-08-26 Alexander Olk <alex.olk@googlemail.com>
11035 * FileDialog.cs: After reading FileDialog settings from mwf_config
11036 use Desktop prefix only if a real folder doesn't exist anymore.
11037 * FontDialog.cs: Added char sets.
11038 It is now possible to select the font, size or style with the
11041 2006-08-25 Kornél Pál <kornelpal@gmail.com>
11043 * PrintPreviewDialog.cs: Use assembly name constants.
11045 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
11047 * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
11048 scrollbar from whacking it's buttons)
11050 2006-08-24 Chris Toshok <toshok@ximian.com>
11052 * ScrollableControl.cs: fix #78271. There's a lot of misc stuff
11053 in this patch (aggregating setting Left/Top/Width/Height to
11054 setting Bounds on the scrollbars), but the crux of the fix is in
11055 Recalculate, where we scroll by the remaining scroll_position if
11056 we're hiding a scrollbar. The 2*$5 reward in the comment is
11059 2006-08-24 Jackson Harper <jackson@ximian.com>
11062 * MdiWindowManager.cs: If the form is made a non-mdi window we
11063 need to remove the form closed event so that closing forms works
11066 2006-08-24 Jackson Harper <jackson@ximian.com>
11068 * Control.cs: Make IsRecreating internal so that the driver can
11070 - Temporarily remove the Hide when controls are removed, its
11071 making a whole bunch of things not work because visibility isn't
11072 getting reset elsewhere correctly
11073 * Form.cs: Need to do a full handle recreation when the mdi parent
11075 * XplatUIX11.cs: If we are recreating handles don't dispose the
11076 HWNDs. What was happening is the handles were being recreated in
11077 SendWMDestroyMessages, but then flow continued on in that method
11078 and destroyed the new handles.
11080 2006-08-23 Jackson Harper <jackson@ximian.com>
11082 * Form.cs: MdiClient is always at the back of the bus
11083 * Control.cs: When the order of items in the collection is changed
11084 we need to reset the all_controls array
11085 - do the same sorta setup thats done when adding a control when a
11086 control is set on the collection.
11088 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
11090 * TextBoxBase.cs (get_Text): Return an empty array if our document
11091 is empty (fixes #79052)
11093 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
11095 * Control.cs: We should call IsInputChar on only on WM_CHAR but not
11096 on WM_SYSCHAR messages (fixes #79053)
11098 2006-08-23 Chris Toshok <toshok@ximian.com>
11100 * DataGrid.cs: fix flickering when scrolling vertically.
11102 2006-08-23 Chris Toshok <toshok@ximian.com>
11104 * DataGrid.cs (EndEdit): only invalidate the row header when we
11107 2006-08-23 Chris Toshok <toshok@ximian.com>
11109 * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
11110 methods. fixes the flicker when scrolling around.
11112 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
11114 * FileDialog.cs: Making sure the control is created before we get a
11115 chance to use it with BeginInvoke (Fixes #79096)
11117 2006-08-23 Chris Toshok <toshok@ximian.com>
11119 * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
11120 width to use when painting the rows.
11122 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
11125 - Throw ArgumentException if a negative value is passed to SelectionLength
11126 - Update the selection end if start is moved. end needs to be always
11127 after start. (Fixes #79095)
11128 - Track selection length; MS keeps the selection length even if start
11129 is changed; reset on all other operations affection selection
11131 2006-08-22 Jackson Harper <jackson@ximian.com>
11133 * TreeView.cs: Make sure both scrollbars get displayed and sized
11134 correctly when the other bar is visible.
11135 - Use the original clip rectangle for checking if the area between
11136 the two scrollbars is visible, not the viewport adjusted clipping
11139 2006-08-22 Jackson Harper <jackson@ximian.com>
11141 * Binding.cs: We don't use IsBinding because it requires the
11142 control to be created, which really shouldn't be necessary just to
11143 set a property on the control.
11145 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11147 * ComboBox.cs: Some CB.ObjectCollection methods must throw
11148 ArgumentNullReferenceException when the argument is null.
11150 2006-08-21 Jackson Harper <jackson@ximian.com>
11152 * Timer.cs: Track the thread that the timer is started in (NOT
11153 CREATED), this way messages for it will only be triggered on its
11155 * XEventQueue.cs: Track the timers here, this makes timers per
11157 * XplatUIX11.cs: The timers are moved to the XEventQueue.
11159 2006-08-19 Chris Toshok <toshok@ximian.com>
11161 * XplatUIX11.cs: after further communication with pdb, we get the
11162 best of both worlds. SetZOrder working for un-Mapped windows, and
11163 no X errors for un-mapped windows.
11165 2006-08-19 Chris Toshok <toshok@ximian.com>
11167 * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
11168 as it was causing pdn toolbars to not have the correct stacking.
11170 2006-08-18 Mike Kestner <mkestner@novell.com>
11172 * ListView.cs : guard against negative ClientArea.Width in scrollbar
11173 calculation. Not sure why control should ever be setting a negative
11174 width though. Fixes #78931.
11176 2006-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11178 * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
11179 null items in ObjectCollection class.
11180 * ListBox.cs.: Likewise.
11182 2006-08-18 Atsushi Enomoto <atsushi@ximian.com>
11184 * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
11185 as the base method in ThemeWin32Classic should work fine.
11188 2006-08-18 Jackson Harper <jackson@ximian.com>
11190 * Binding.cs: When validating if the value entered doesn't convert
11191 properly reset to the old value.
11192 * RadioButton.cs: Don't fire click when we get focus.
11194 2006-08-18 Jackson Harper <jackson@ximian.com>
11196 * FileDialog.cs: Paint the selection on the directory combobox the
11199 2006-08-17 Jackson Harper <jackson@ximian.com>
11201 * ErrorProvider.cs: Don't allow the error control to be selected.
11202 * Control.cs: Don't send the SetFocus messages, the control
11203 activation will do this, and if we do it blindly here validation
11206 2006-08-17 Jackson Harper <jackson@ximian.com>
11209 * ContainerControl.cs: Make validation events fire in the correct
11210 order. TODO: For some reason the first validation event is not
11213 2006-08-17 Mike Kestner <mkestner@novell.com>
11215 * ComboBox.cs : some null guarding for ComboListBox.Scroll.
11217 2006-08-17 Mike Kestner <mkestner@novell.com>
11219 * ComboBox.cs : implement scroll wheel support for popped-down
11220 state. Fixes #78945.
11222 2006-08-17 Jackson Harper <jackson@ximian.com>
11224 * TreeView.cs: Specify treeview actions (old patch that didn't get
11225 committed for some reason).
11226 - Don't let the mouse wheel scroll us too far. Just want to make
11227 the bottom node visible, not scroll it all the ways to the top.
11229 2006-08-17 Jackson Harper <jackson@ximian.com>
11231 * XplatUIX11.cs: Mouse wheel events go to the focused window.
11233 2006-08-17 Mike Kestner <mkestner@novell.com>
11235 * ComboBox.cs : don't do mouseover selection in simple mode.
11237 2006-08-16 Jackson Harper <jackson@ximian.com>
11239 * Form.cs: Fire the closing events for all the mdi child windows
11240 when a window is closed. If the cancel args are set to true, the
11241 main window still gets the event fired, but it doesn't not close.
11242 * MdiWindowManager.cs: Do this closing cleanup in a Closed
11243 handler, instead of when the button is clicked, so cancelling the
11244 close works correctly.
11245 * ComboBox.cs: Send the mouse down to the scrollbar.
11247 2006-08-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11249 * ListBox.cs: When passing 'null' to SelectedItem,
11250 set SelectedIndex to -1, to unselect items. This is the
11251 observed behaviour in .Net.
11253 2006-08-16 Peter Dennis Bartok <pbartok@novell.com>
11255 * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
11256 MS flags saying there won't be any. (fixes #78800)
11257 * Control.cs (HandleClick): Made virtual
11259 2006-08-16 Atsushi Enomoto <atsushi@ximian.com>
11261 * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
11262 cultures. Fixed bug #78399.
11264 2006-08-16 Jackson Harper <jackson@ximian.com>
11266 * Form.cs: Use the MdiClients MdiChildren property to access
11267 MdiChildren instead of creating the array from the child controls.
11268 * MdiClient.cs: Maintain a separate array of the mdi children, so
11269 that insertion order is maintained when the Z-order is changed.
11271 2006-08-16 Mike Kestner <mkestner@novell.com>
11273 * ListView.cs : add an ItemComparer and default to it for sorting.
11274 Fixes #79076, but sorting needs a complete overhaul to be compat with
11277 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
11279 * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
11281 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
11283 * Hwnd.cs (Mapped): Properly traverse the tree
11285 2006-08-15 Chris Toshok <toshok@ximian.com>
11287 * Binding.cs: fix PullData/SetPropertyValue. We don't want to
11288 pass manager.Current.GetType() to ParseData. It has to be the
11289 property type. So, hold off doing the ParseData until we're in
11290 SetPropertyValue where we know the type. This fixes the crash in
11291 #78821 but the textbox is still empty.
11293 2006-08-15 Chris Toshok <toshok@ximian.com>
11296 - when we're scrolling, only call Edit() again if the
11297 current cell is still unobscured. Fixes bug #78927.
11298 - when handling mousedown on a cell, ensure the cell is visible
11299 before calling Edit.
11300 - remove the properties from DataGridRow, and remove the
11301 DataGridParentRow class altogether.
11304 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
11306 * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
11307 fire OnTextChanged by ourselves. There's no point calling base,
11308 we don't set the base value anywhere else. Fixes #78773.
11310 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11312 * ListBox.cs: Call CollectionChanged when modifying
11313 an item from Items indexer, to update the actual items
11316 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11318 * PrintDialog.cs: Small fixes for focus and a pair of checks,
11319 to match .Net behaviour.
11321 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
11323 * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
11325 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
11327 * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
11329 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
11331 * MessageBox.cs: Prevent potential NRE exception.
11332 * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
11334 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
11336 * MessageBox.cs: Calculate the owner of a messagebox, also make
11337 it topmost. Fixes #78753
11339 2006-08-14 Chris Toshok <toshok@ximian.com>
11341 * XplatUIX11.cs: A couple of fixes so that metacity will let us
11342 programmatically move windows. first, set the PPosition hint as
11343 well as the USPosition hint. Second include some code from pdb
11344 that sets the window type to NORMAL when we set the transient for
11345 hint. This is because, in the absence of a window type, metacity
11346 thinks any window with TransientFor set is a dialog, and refuses
11347 to let us move it programmatically. fascists.
11349 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
11351 * XplatUIX11.cs: When setting normal hints, take into consideration
11352 an different hints previously set so we don't delete them (fixes #78866)
11354 2006-08-12 Chris Toshok <toshok@ximian.com>
11356 * ToolBarButton.cs: make Layout return a boolean, if something to
11357 do with the button's layout changed.
11360 - add another parameter to Redraw, @force, which all existing
11362 - make the Layout function return a boolean which is true if the
11363 layout has actually changed. Redraw now uses this (and @force)
11364 to determine when to invalidate. At present the only place
11365 where @force can be false is the call from OnResize, when
11366 background_image == null. So, resizing a toolbar when the
11367 layout doesn't change results in no drawing.
11369 2006-08-12 Chris Toshok <toshok@ximian.com>
11371 * ThemeWin32Classic.cs: fix the bottom right corner painting. had
11372 the VScrollBar and HScrollbar reversed. oops.
11374 * DataGrid.cs: fix the logic that assigns sizes to the implicit
11375 scrollbars. we were assigning them twice (once in
11376 Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
11377 therefore causing two scrollbar resizes (and redraws?) to happen
11380 2006-08-12 Chris Toshok <toshok@ximian.com>
11382 * ToolBarButton.cs: redraw the entire button if the theme tells us
11385 * Theme.cs: add ToolBarInvalidateEntireButton.
11387 * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
11388 buttons, just the border.
11390 * ThemeNice.cs: redraw the entire toolbar button since we need to
11391 draw the highlight image.
11393 * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
11394 we need to redraw the entire button (not just the border).
11396 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
11398 * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
11399 for vertical bars. Fixes the mismatches shown by #78513
11401 2006-08-11 Alexander Olk <alex.olk@googlemail.com>
11403 * FileDialog.cs: If a saved/remembered path doesn't exist
11404 anymore, fall back to "Desktop".
11406 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
11408 * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
11409 parent. It's apparently legal to not have one
11411 - SetZOrder: Don't try to set Z-Order on an unmapped window
11412 - CreateWindow: 0,0 are legal coordinates for a window. don't move
11413 it unless the coordinates are negative
11415 2006-08-10 Mike Kestner <mkestner@novell.com>
11417 * ListControl.cs: allow null for DataSource. Clear DisplayMember
11418 when setting to null per msdn docs. Fixes #78854.
11420 2006-08-10 Chris Toshok <toshok@ximian.com>
11422 * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
11423 flickering by setting a clip rectangle on the Graphics when we
11424 need to redraw just a particular menuitem. Also, rename "OnClick"
11425 to "OnMouseDown" to reflect what it actually is.
11427 * Form.cs: track the OnMouseDown change.
11429 2006-08-10 Peter Dennis Bartok <pbartok@novell.com>
11431 * CommonDialog.cs: Properly inherit the CreateParams from the form
11432 and only change what we need. Fixes #78865
11434 2006-08-10 Chris Toshok <toshok@ximian.com>
11436 * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
11437 flickering in flat mode (and most of the flickering in general) by
11438 only invalidating the button border (and not the entire rectangle)
11439 when the state changes. A couple of cases still flicker:
11440 ToggleButtons, and the dropdown arrow case when the user mouse
11443 2006-08-10 Alexander Olk <alex.olk@googlemail.com>
11445 * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
11446 for german keyboards. Numlock state shouldn't affect the behaviour
11447 of the Del key. Fixes bug #78291.
11449 2006-08-10 Chris Toshok <toshok@ximian.com>
11451 * ListControl.cs: remove the items.Clear line from BindDataItems,
11452 as this is the first thing done by both subclasses in their
11453 SetItemsCore overrides. Also, add a ItemChanged handler, and when
11454 passed -1, refresh the list. This gets databinding working when
11455 the datasource is set on the list before the datasource is
11456 populated (as in wf-apps/ReportBuilder.)
11458 * ComboBox.cs: remove the argument to BindDataItems. This call
11459 should really go away, and be initiated by the ListControl code.
11461 * ListBox.cs: same.
11463 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
11465 * TextControl.cs (Document.ctor): Initialize caret so we don't crash
11466 if no data is in the document when the control is displayed
11468 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
11470 * TextBoxBase.cs: Don't try moving the caret if we don't have a window
11473 - PositionCaret: Allow positioning of caret but don't call methods
11474 requiring a handle if the window isn't created yet
11475 - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
11476 - owner_HandleCreated: Don't position the caret, just update it's
11477 location. User might have already set a different position
11479 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
11481 * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
11482 windows. Screws up the returned coordinates for child windows.
11483 Fixes #78825. I'm hoping this doesn't break something, since the
11484 code was explicitly put in 8 months ago, but no bug was attached.
11485 Menus still seem to work properly.
11487 2006-08-08 Chris Toshok <toshok@ximian.com>
11489 * DataGrid.cs: make BeginInit/EndInit actually do what they're
11490 supposed to do - delay data binding until the EndInit call. Also,
11491 make the table style collection's CollectionChangeAction.Refresh
11494 * GridTableStylesCollection.cs: raise a CollectionChangeEvent
11495 (with action = Refresh) when a consituent table's MappingName is
11498 2006-08-08 Chris Toshok <toshok@ximian.com>
11500 * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
11501 Invalidate, since changing the text can change the size of the all
11504 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
11506 * Form.cs (AddOwnedForm): Still need to add the form to our listif
11507 we don't have it yet
11509 2006-08-08 Chris Toshok <toshok@ximian.com>
11511 * PrintControllerWithStatusDialog.cs: don't .Close() the status
11512 dialog, as this causes X errors later on, since we actually
11513 destroy the window. Instead, .Hide() it.
11515 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
11517 * ComboBox.cs: Added focus reflection for popup window
11519 - Removed transient setting for non-app windows for now, not sure it
11521 - Fixed logic checking if we have captions when deciding
11522 override_redirect, WS_CAPTION is two bits and a 0 check was not
11524 - Removed the WINDOW_TYPE stuff, it was unneeded and making things
11527 - AddOwnedForm: Don't just add the form to the list, call the property
11528 to ensure the driver is informed about the ownership as well
11529 - CreateHandle: Set the TopMost status in the driver if we have an owner
11530 * XplatUI.cs: Fixed debug statement
11532 2006-08-08 Jonathan Pobst <monkey@jpobst.com>
11533 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
11534 GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
11535 ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs,
11536 TrackBarRenderer.cs: Make constructor private.
11537 * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
11538 * ProfessionalColorTable.cs: Make properties virtual.
11540 2006-08-06 Duncan Mak <duncan@novell.com>
11542 * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
11545 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
11546 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
11547 GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
11548 ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
11549 TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
11550 Initial import of new 2.0 classes.
11552 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
11553 * Application.cs: Add 2.0 VisualStyles properties.
11555 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
11556 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
11557 XplatUIX11.cs: Create property to allow access to existing private
11558 variable "themes_enabled"
11560 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11562 * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
11563 file size, as otherwise our class libraries fail using windows. Fixes
11566 2006-08-04 Jackson Harper <jackson@ximian.com>
11569 * XplatUIX11.cs: Move the toolwindow window manager creation into
11570 the X11 driver, this way on win32 we can let windows create/handle
11573 2006-08-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11575 * PrintDialog.cs: Remove some redundant checks, add some others,
11576 clean some code, and move the focus to the text boxes when the
11577 values are incorrect.
11579 2006-08-04 Alexander Olk <alex.olk@googlemail.com>
11581 * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
11583 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
11585 * NumericUpDown.cs: Setting the Minimum and Maximum is now
11586 handled correctly. Fixes bug #79001.
11588 2006-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11590 * PrintDialog.cs: The "Copies" numeric up down must have
11591 set the Minimum property to 1; only if the value is bigger
11592 than 1, activate "Collate" check box. This is the behaviour of .Net.
11593 Also modify the Document elements only if it is not null.
11595 2006-08-03 Jackson Harper <jackson@ximian.com>
11597 * TreeNodeCollection.cs: Fix copyto to use the correct nodes
11598 length. (We have a larger array then actual node count).
11600 2006-08-03 Jackson Harper <jackson@ximian.com>
11602 * ComboBox.cs: Don't show selection by default.
11603 - The SelectAll isn't needed here, since the focus code should do
11605 - DDL style lists to manual selection drawing, so when they
11606 get/lose focus they have to invalidate.
11608 2006-08-03 Peter Dennis Bartok <pbartok@novell.com>
11610 * TextBoxBase.cs: Don't always show all selections by default.
11612 2006-08-03 Jonathan Pobst <monkey@jpobst.com>
11613 * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
11614 HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
11615 Fixed various typos.
11617 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
11619 * Control.cs: Removing the controls in a ControlCollection with
11620 Clear now hides the controls as expected. Fixes bug #78804.
11622 2006-08-03 Jackson Harper <jackson@ximian.com>
11624 * Control.cs: Revert previous focus patch, it breaks reflector.
11626 2006-08-03 Jackson Harper <jackson@ximian.com>
11628 * ComboBox.cs: Cleanup selection and focus with the combobox.
11629 This also eliminates some duplicated keyboard code, since now
11630 everything is handled by the main class.
11631 - Make list selection work on mouse up instead of down, to match
11634 2006-08-02 Jackson Harper <jackson@ximian.com>
11636 * Control.cs: Setting focus needs to go through the whole
11637 selection mechanism.
11639 2006-08-02 Chris Toshok <toshok@ximian.com>
11641 * PrintPreviewDialog.cs: change MinimumSize to use
11642 base.MinimumSize so it works.
11644 2006-08-02 Peter Dennis Bartok <pbartok@novell.com>
11647 - UpdateCaret: Added sanity check in case caret isn't defined yet
11648 - Line.Delete: Now updating selection and caret markers if we're
11649 transfering a node (Properly fixes #78323)
11650 - SetSelectionEnd: Added sanity check
11651 * TextBoxBase.cs: Removed broken attempt to fix #78323
11653 2006-08-01 Chris Toshok <toshok@ximian.com>
11655 * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
11656 Close() call is handled in Form, not here.
11658 2006-08-01 Chris Toshok <toshok@ximian.com>
11660 * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
11663 * PrintPreviewDialog.cs: add scrollbars, and add an image cache
11664 for sizes < 100% zoom. The code now aggressively attempts to keep
11665 from calling document.Print (), and tries not to use the scaling
11666 g.DrawImage whenever possible (it still does if you scale to >
11667 100%, since usually that involves huge images).
11669 * PrintPreviewControl.cs: hook up the close button.
11671 2006-08-01 Jonathan Pobst <monkey@jpobst.com>
11672 * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
11673 ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
11674 ItemDragEventHandler.cs, LabelEditEventHandler.cs,
11675 LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
11676 MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
11677 PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
11678 SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
11679 Removed [Serializable] for 2.0 Event Handlers.
11681 2006-07-31 Jackson Harper <jackson@ximian.com>
11683 * TextBoxBase.cs: Make ShowSelection invalidate when changed.
11684 * TextControl.cs: Uncomment out the body of this method.
11686 2006-07-31 Alexander Olk <alex.olk@googlemail.com>
11688 * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
11691 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
11693 * TextBoxBase.cs: Added internal property ShowSelection to allow controls
11694 that embed TextBox and need selections visible even if textbox is not
11695 focused to enforce that behaviour.
11696 * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
11699 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
11702 - Added new SetSelectionStart/SetSelectionEnd overloads
11703 - Fixed viewport width assignment to be accurate
11704 - Adjusted alignment line shift calculations to allow cursor on right
11705 aligned lines to be always visible at the right border (like MS)
11707 - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
11708 - TextBoxBase_SizeChanged: recalculating canvas on size changes
11709 - CalculateScrollBars: Use ViewPort size instead of window size, to
11710 properly consider space occupied by the border and scrollbars
11712 - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll
11713 calculations; no longer leaves artifacts
11714 - CaretMoved: Adjusted window scrolling to match MS and fixed several
11715 calculation bugs (Still missing right/center align calculations)
11717 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
11719 * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
11720 use of both scroll rect and clip rect, as they do the same.
11722 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
11724 * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key
11725 in the event handler (fixes #78912)
11727 2006-07-31 Chris Toshok <toshok@ximian.com>
11729 * ThemeWin32Classic.cs: use grid.RowsCount here instead of
11730 grid.ListManager.Count, since grid.ListManager might be null.
11731 This of course begs the question "why are we drawing rows for a
11732 grid with no list manager (and therefor no rows)?" Fixes the
11733 crash in bug #78929.
11735 2006-07-31 Chris Toshok <toshok@ximian.com>
11737 * RelatedPropertyManager.cs: Don't always chain up to the parent
11738 ctor. instead, call SetDataSource if the parent's position is !=
11739 -1. Fixes the crash in #78822.
11741 2006-07-31 Chris Toshok <toshok@ximian.com>
11743 * DataGrid.cs (get_ListManager): use field instead of property
11744 accessors for datasource and datamember.
11745 (RowsCount): make internal again.
11746 (OnMouseDown): end edits before resizing columns/rows.
11747 (OnMouseUp): restart edits after resizing columns/rows.
11749 2006-07-30 Peter Dennis Bartok <pbartok@novell.com>
11751 * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
11752 This fixes the situation where the last set cursor is displayed
11753 whenever the mouse is over scrollbars.
11755 2006-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11757 * PrintDialog.cs: Fix the behaviour of PrinterSettings and
11758 Document properties, as well as initial values.
11760 2006-07-29 Peter Dennis Bartok <pbartok@novell.com>
11762 * XplatUIWin32.cs (SetBorderStyle): Setting both border
11763 and ClientEdge results in a 3-pixel border, which is
11766 2006-07-28 Jackson Harper <jackson@ximian.com>
11768 * TreeNodeCollection.cs: Fix the clear method.
11769 - Fix the Shrink also
11771 2006-07-27 Jackson Harper <jackson@ximian.com>
11773 * TreeView.cs: Make sure the visible order is computed when we
11774 attempt to size the scrollbars (for trees that mess with the
11775 scrolling when they shouldn't.
11776 - Make sure to give the scrollbars valid values.
11778 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
11780 * XplatUIX11.cs: Move motion compression code to where it
11781 has less performance impact
11783 2006-07-26 Jackson Harper <jackson@ximian.com>
11785 * UpDownBase.cs: When the control is selected make the child
11786 controls non selectable, so that a click on them won't do a
11787 focus/unfocus cycle.
11788 - Don't give focus to the text box when the spinner is selected.
11789 * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
11791 2006-07-26 Chris Toshok <toshok@ximian.com>
11793 * ThemeWin32Classic.cs: add print preview rendering. I'm not
11794 satisfied with this solution. If the bitmaps are small, we should
11795 just cache them in the PrintPreviewDialog and draw them here.
11796 Also, the layout is broken for the 2-up and 3-up cases.
11798 * Theme.cs: add PrintPReviewControlPaint.
11800 * PrintPreviewDialog.cs: first pass implementation.
11802 * PrintPreviewControl.cs: first pass implementation. No
11805 * PrintDialog.cs: only validate fields if that particular portion
11806 of the UI is enabled. Also, set the document's controller to a
11807 PrintControllerWithStatusDialog wrapping the document's print
11810 * PrintControllerWithStatusDialog.cs: if we're printing to a file,
11811 bring up a SaveFileDialog (i hope we don't want to match the
11812 behavior of the crappy windows file entry) and set the
11813 PrinterSettings.PrintFileName accordingly.
11815 2006-07-26 Jackson Harper <jackson@ximian.com>
11817 * ContainerControl.cs: Add a field that disables auto selecting
11818 the next control in a container when the container is activated.
11819 * UpDownBase.cs: Don't select the text box when the up down is
11822 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
11824 * XEventQueue.cs: Added methods for peeking (used for compression
11825 of successive events)
11826 * XplatUIX11.cs (GetMessage): We're now compressing consecutive
11827 mouse move events (fixes #78732)
11829 2006-07-25 Jackson Harper <jackson@ximian.com>
11831 * UpDownBase.cs: Use an internal class for the textbox so that we
11832 can control focus. the updown control should always have focus,
11833 if either the text area or the buttons are clicked.
11834 - Send the key messages to the textbox, since it never actually
11836 - Activate and decativate the textbox caret.
11838 2006-07-24 Jackson Harper <jackson@ximian.com>
11840 * Control.cs: Use the directed select when selecting a control,
11841 this way the container controls override will get called and the
11842 whole ActiveControl chain will get triggered. TODO: probably need
11843 to make sure this gets done everywhere instead of the old
11845 * ContainerControl.cs: Implement the directed Select method to
11846 find and activate the correct child control.
11848 2006-07-22 Mike Kestner <mkestner@novell.com>
11850 * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
11851 menu handling code so that clicks without a grab work too.
11854 2006-07-22 Alexander Olk <alex.olk@googlemail.com>
11856 * FileDialog.cs: Enable the BackButton when dirstack has one element.
11857 Added some small optimizations.
11859 2006-07-21 Matt Hargett <matt@use.net>
11861 * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
11863 2006-07-21 Peter Dennis Bartok <pbartok@novell.com>
11865 * Control.cs (GetNextControl): Fixes to make all of Jackson's unit
11866 tests pass and match MS in some strange border cases.
11868 2006-07-21 Chris Toshok <toshok@ximian.com>
11870 * ThemeWin32Classic.cs: handle drawing of the relation links and
11871 parent row buttons.
11873 * Theme.cs: change args to DataGridPaintParentRow.
11875 * DataGrid.cs: Don't use controls for the relation links and
11876 parent buttons, so we have to handle all their interactions in
11877 MouseMove, MouseDown, MouseUp, etc. Also, store a lot more stuff
11878 when we're navigating through child tables, so we can reinstate
11879 selection, expanded state, current cell, etc.
11881 2006-07-20 Chris Toshok <toshok@ximian.com>
11883 * ToolBar.cs: When we redraw a button, for whatever reason,
11884 there's no reason to redraw the entire toolbar. Also, don't call
11885 Control.Refresh from within Redraw, as it's much heavier than
11886 Invalidate (which is really what we want).
11888 2006-07-20 Chris Toshok <toshok@ximian.com>
11890 * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
11891 DataGridTextBoxColumn.cs, DataGridTextBox.cs,
11892 ThemeWin32Classic.cs, ListControl.cs: After staring at stack
11893 traces from within a debug IBindingList datasource
11894 (in mono/winforms/datagrid) for *days*, I've finally gotten things
11895 to work in a similar fashion.
11897 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11899 * ListBox.cs: Don't call Sort () when setting
11900 the Sorted property to false (avoid an unnecessary sort).
11902 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11904 * ListControl.cs: DataSource should throw an ArgumentException
11905 instead of a normal exception when the argument is not of the
11908 2006-07-20 Mike Kestner <mkestner@novell.com>
11910 * Control.cs: add InternalPreProcessMessage to allow us to steal
11911 key events before MWF gets its paws on them. Adapted from a
11913 * ToolBar.cs: add GotLostFocus handing for flat toolbars, with
11914 up/down/left/right navigation. Override the new internal control
11915 method to steal the events since they never make it to WndProc.
11916 * ToolBarButton.cs: don't worry about pushed when setting hilight
11917 since the drawing code prefers pushed to hilight. Invalidate on
11918 Hilight changes. Fixes #78547 and #78525.
11920 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
11922 * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
11923 the canvas size. Fixes #78868
11925 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
11927 * Splitter.cs: Track requested split position until first layout
11928 is performed. Fixes #78871
11930 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
11932 * Application.cs: Removed code that forces 1.x for the version
11933 number if the version started with 0. Not sure why that code was
11934 there and I couldn't find any bugs that indicated we needed it.
11937 2006-07-20 Alexander Olk <alex.olk@googlemail.com>
11939 * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
11940 ResetDefaults(), just write some output to the console until it's
11941 implemented. Fixes bug #78907 for now. Eliminated two warnings.
11943 2006-07-19 Jonathan Chambers <joncham@gmail.com>
11945 * PropertyGridView.cs: set StartPosition of drop down forms
11946 so they appear in correct initial spot. Fixes #78190.
11948 2006-07-19 Mike Kestner <mkestner@novell.com>
11950 * ThemeWin32Classic.cs: use parent background color when drawing
11951 flat toolbars. Restructure the conditionals to make sure non-flat
11952 non-Divider toolbars are filled too. Fixes #78837.
11954 2006-07-19 Mike Kestner <mkestner@novell.com>
11956 * ListBox.cs: Sort on collection changes even if the handle
11957 isn't created yet. Fixes #78813.
11959 2006-07-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
11961 * ListControl.cs: DisplayMember should never be null,
11962 and now we assign String.Empty when null is passed to it (this
11965 2006-07-17 Mike Kestner <mkestner@novell.com>
11967 * ListViewItem.cs: restructure Font and subitem Font handling
11968 to hold a specific font and refer back to owner on null.
11971 2006-07-17 Mike Kestner <mkestner@novell.com>
11973 * ToolBar.cs: bandaid for side-effect of previous patch which was
11974 discarding explicit heights for non-AutoSize toolbars. Need to
11975 extend my format tester to deal with AutoSize=false. Fixes #78864.
11977 2006-07-15 Jackson Harper <jackson@ximian.com>
11979 * LabelEditTextBox.cs:
11980 * TreeView.cs: Use a new LabelEdit class for node editing, this
11981 class automatically 'closes' itself when it gets the enter key or
11983 - Use the client rectangle when setting the trees scrollbars, so
11984 border style is taken into account.
11986 2006-07-14 Jackson Harper <jackson@ximian.com>
11989 * TreeView.cs: Make the editing work similar to MSs, firing the
11990 events correctly and ending edits correctly.
11992 2006-07-14 Mike Kestner <mkestner@novell.com>
11994 * ToolBarButton.cs:
11995 * ToolBar.cs: layout restructuring and redraw enhancements to support
11996 formatting changes gracefully, like setting TextAlign, ImageList,
11997 ButtonSize, and Appearance. Handles explicit button sizing quirks
11998 of the MS controls. Things like flat toolbars ignoring button size
11999 but becoming constant sized at the largest button's size. Normal
12000 toolbars with an image set cannot be shrunk smaller than the image,
12001 but text can be clipped/ignored.
12002 * ThemeWin32Classic.cs: don't draw text if text_rect height or width
12003 is zero. Seems like DrawString should be smart enough to not put
12004 anything on screen though. Also trim labels and ellipsize at the char
12005 boundary, not word.
12006 Fixes #78711 and #78483.
12008 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
12010 * FolderBrowserDialog.cs: Disable "New Folder" button and
12011 "New Folder" contextmenu menuitem if a folder like "My Computer"
12014 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
12016 * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
12017 * FolderBrowserDialog.cs:
12018 - Use MWFConfig to store and read size and position settings
12019 - Added code to create a new folder (button or context menu).
12020 Use TreeView labeledit to change the name of the new folder.
12022 2006-07-14 Jackson Harper <jackson@ximian.com>
12024 * TreeView.cs: Raise the OnAfterLabelEdit event correctly. Also,
12025 when the tree is scrolled we end editing.
12027 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
12029 * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
12032 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
12034 WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
12035 BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
12036 BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
12037 CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
12038 ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
12039 ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
12040 ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
12041 FormClosedEventHandler.cs, FormClosingEventArgs.cs,
12042 FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
12043 ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
12044 ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
12045 ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
12046 ListViewItemSelectionChangedEventHandler.cs,
12047 ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
12048 ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
12049 MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
12050 PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
12051 PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
12052 RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
12053 SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
12054 SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs,
12055 TabControlCancelEventHandler.cs, TabControlEventArgs.cs,
12056 TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
12057 TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
12058 ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
12059 ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
12060 TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
12061 TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
12062 TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
12063 WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
12064 WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
12065 WebBrowserNavigatingEventHandler.cs,
12066 WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
12068 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
12070 MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
12071 RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
12072 SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
12073 TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
12074 ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
12075 ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
12076 ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
12077 ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
12078 ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
12079 ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
12080 ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
12081 ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
12082 TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
12083 WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
12084 ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
12085 AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
12086 BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
12087 ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
12088 FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
12089 HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
12090 ListViewItemStates.cs, MaskFormat.cs: Added
12092 2006-07-13 Jonathan Chambers <joncham@gmail.com>
12094 * PropertyGridView.cs: Fix keyboard navigation of drop down.
12095 Patch from eno for bug 78558.
12097 2006-07-13 Jackson Harper <jackson@ximian.com>
12099 * TreeView.cs: When an edit is finished make sure that the
12100 selected node is visible.
12101 - When setting the top/bottom use the scrollbars is_visible, so
12102 everything will be set correctly even if the tree isn't visible
12105 2006-07-13 Jackson Harper <jackson@ximian.com>
12107 * ComboBox.cs: Revert the item->index part of my previous patch.
12108 * TreeView.cs: Use LostFocus instead of Leave for detecting when
12109 the edit box has lost focus (duh).
12110 - Just make the edit box not visible when we get return, that will
12111 take the focus, which will call EndEdit
12112 * TreeNode.cs When we start editing, notify the treeview.
12114 2006-07-12 Jackson Harper <jackson@ximian.com>
12116 * ComboBox.cs: Clear out old items before setting the item list.
12117 This prevents databound controls from having their items added
12119 - Switch the combobox to use indices whereever possible instead of
12120 using Item's. This allows usto navigate through lists that have
12121 more then one item with the same string value (ie a, b, b, a).
12122 - Scroll the listboxes scrollbar when a non visible item is
12124 - Allow keypress to cycle through all the possible values. For
12125 example if you have b1, b2, b3 and hold down the B key all the
12126 values will be cycled through.
12128 2006-07-12 Jackson Harper <jackson@ximian.com>
12131 * ListView.cs: Don't need to override SETFOCUS anymore, we can do
12132 this using the internal methods.
12133 * Control.cs: Add OnGotFocusInternal. A new method that allows
12134 controls to "override" OnGotFocus and change focus behavior if
12136 - Same thing for LostFocus
12137 * ComboBox.cs: Pass off focus to the text control properly.
12139 2006-07-12 Alexander Olk <alex.olk@googlemail.com>
12141 * FileDialog.cs: Added GetFoldersOnly to MWFVFS
12142 * FolderBrowserDialog.cs: Almost a complete rewrite.
12143 - Better support for Environment.Specialfolders
12144 - Added support for MWFVFS
12145 - Made setting SelectedPath work
12147 2006-07-12 Jackson Harper <jackson@ximian.com>
12149 * Control.cs: Optimze getting all the controls.
12151 2006-07-11 Jackson Harper <jackson@ximian.com>
12153 * ContainerControl.cs: Override SETFOCUS in the container control,
12154 so that it is not selected on mouse click.
12156 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
12158 * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel.
12159 Hopefully we will have a better way once all of focus is complete.
12161 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
12163 * ThemeWin32Classic.cs: Commented out some debug code and fixed
12164 a compile error with csc.
12166 2006-07-11 Jackson Harper <jackson@ximian.com>
12168 * Control.cs: When hiding a control only select the next control
12169 if the current control was focused.
12170 - Don't handle enter/leave when setting/killing focus, this is
12171 done by the container control.
12172 - Remove is_selected, it's not needed anymore.
12173 - Add utility methods for selecting a child control, and for
12174 firing the Enter/Leave events.
12175 * ContainerControl.cs: When a control is activated fire the
12176 enter/leave events.
12177 - Don't wrap when processing the tab key, so that focus can be
12178 moved outside of the container.
12179 - Use the correct active control
12181 2006-07-11 Jackson Harper <jackson@ximian.com>
12183 * ComboBox.cs: Remove some debug code that was blinding me.
12184 * UpDownBase.cs: These controls actually aren't implicit, they are
12185 visible to the user.
12187 2006-07-10 Chris Toshok <toshok@ximian.com>
12189 * DataGrid.cs: move back to the is_adding boolean field. god i
12190 hate this is_editing/is_adding/is_changing stuff.
12192 2006-07-10 Chris Toshok <toshok@ximian.com>
12194 * DataGridTableStyle.cs: just check if the property type is bool.
12195 if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
12196 Don't use CanRenderType.
12198 * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
12199 if our text == NullText. Remove CanRenderType.
12201 * DataGridBoolColumn.cs: nuke CanRenderType.
12203 * DataGrid.cs: reenable some code to end the current edit inside
12204 of set_CurrentCell. This fixes the other 1.1.16 regression.
12205 Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
12206 Also, remove the visible_row_count arg from CalcRowHeaders, since
12207 we don't need to worry about the actual height of the area.
12209 2006-07-10 Chris Toshok <toshok@ximian.com>
12211 * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
12214 * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
12215 the real sense of the IsInEditOrNavigateMode property (true =
12216 navigate, false = edit). Also, update OnKeyPress to reflect this.
12218 * DataGridTableStyle.cs (CreateColumnsForTable): even if the
12219 column style exists, we still need to set its property descriptor
12220 to match up with our list manager.
12222 2006-07-10 Chris Toshok <toshok@ximian.com>
12224 * ThemeWin32Classic.cs: implement the new row/header painting
12225 approach. The parent row painting will likely go away and
12226 replaced with label controls, but the rest seems to work ok (and
12229 * Theme.cs: change the way we draw datagrid rows. we don't draw
12230 the row headers as a block now. Instead we draw them in the
12231 normal draw-row loop. Add some calls for drawing parent rows and
12234 * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
12235 a default table style. Set the defaults from ThemeEngine.Current,
12236 not SystemColors. Fix lots of misc issues with property setters.
12238 * DataGrid.cs: move loads of style information out of this class
12239 as it's being duplicated with DataGridTableStyle. keep track of a
12240 special DataGridTableStyle for the properties we used to mirror
12241 here. Switch all the style properties to access this table style
12242 instead of instance fields of this class. Also add a internal
12243 class to represent parent rows (more needs to be stored here, like
12244 the selection state from the parent table, as well as the
12245 expansion state.) Also, for datasources with relations, do the
12246 right thing for collapse/expand, and add support for the
12247 navigation/parent row buttons.
12249 Lastly, fix the crash in the 1.1.16 build.
12251 * GridTableStylesCollection.cs: make the explicit interface
12252 implementations call the class's methods as opposed to duplicating
12255 * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
12256 0 so the text doesn't jump around when we move the cursor.
12258 2006-07-10 Jackson Harper <jackson@ximian.com>
12261 * ListBox.cs: Match MS's ToString (this makes debugging focus
12262 stuff infinitely easier).
12264 2006-07-10 Jackson Harper <jackson@ximian.com>
12266 * Control.cs (SelectNextControl): When checking the control's
12267 parent use this instead of ctrl.parent so that null can be passed
12268 to SelectNextControl. (I have unit tests for this).
12269 - Remove unused var.
12271 2006-07-10 Chris Toshok <toshok@ximian.com>
12273 * CurrencyManager.cs: correct one regression, the removal of the
12274 finalType field. Also, add a MonoTODO on CanAddRows, implement
12275 Refresh() correctly, and fix some event emission in
12276 ListChangedHandler.
12278 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
12280 * FileDialog.cs: Don't use brackets for new folders if they exist
12281 under *nix. Instead use -(number of existing folders +1).
12283 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
12286 - Fixed really nasty bug #78771
12287 - Don't block the whole GUI when reading directories with a lot of
12288 entries. Use an other thread instead and call BeginInvoke to
12289 update the ListView in MWFFileView
12291 2006-07-07 Chris Toshok <toshok@ximian.com>
12293 * Control.cs (Dispose): release any Capture when disposing.
12295 2006-07-07 Chris Toshok <toshok@ximian.com>
12297 * LinkLabel.cs (Select): if we chain up to the parent, set
12298 focused_index to -1 so we'll search for the first available link
12299 the next time the user tabs into us. Also, if the direction is
12300 backward and focused_index == -1, start the search from the last
12303 2006-07-07 Chris Toshok <toshok@ximian.com>
12305 * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
12306 is beyond the end of the text, don't do anything.
12307 (CreateLinkPieces): set our ControlStyles.Selectable based on
12308 whether or not we have any links.
12309 (Link.Invalidate): use a loop instead of foreach.
12310 (Link.set_Start): null out owner.sorted_links so it'll be
12311 recreated by CreateLinkPieces.
12313 2006-07-06 Chris Toshok <toshok@ximian.com>
12315 * LinkLabel.cs: revert the SetStyle change.
12317 2006-07-06 Chris Toshok <toshok@ximian.com>
12319 * LinkLabel.cs (.ctor): SetStyle Selectable to true.
12320 (OnEnableChanged): s/Refresh/Invalidate
12321 (OnGotFocus): if we have a focused index already, refocus it (so
12322 if we mouse out/in to the window it'll focus the right link).
12323 (OnKeyDown): move the tab handling out of here.
12324 (OnLostFocus): don't set focused_index to -1, so we can refocus it
12325 when we lose focus.
12326 (OnMouseDown): don't Capture here - Control handles it. Also,
12327 focus the active link.
12328 (OnMouseUp): don't deal with Capture.
12329 (OnPaintBackgroundInternal): remove.
12330 (OnTextAlignChanged): CreateLinkPieces before calling the
12331 superclass's method.
12332 (OnTextChanged): call CreateLinkPieces before calling superclass's
12334 (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
12336 (Select): implement this, moving the selection between different
12337 links, and call parent.SelectNextControl if we don't have another
12338 link to focus in the given direction.
12339 (CreateLinkPieces): call Invalidate instead of Refresh.
12341 2006-07-06 Chris Toshok <toshok@ximian.com>
12343 * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
12344 new LinkLabel internals.
12346 * LinkLabel.cs: fairly major rewrite. get rid of all the loops
12347 over pieces looking for active/focused/etc links. also, deal with
12348 runs of text (and links) with embedded \n's in them, and use
12349 MeasureCharacterRanges instead of MeasureString to figure out the
12350 regions text occupies. Lastly, do the usual s/Refresh/Invalidate
12353 2006-07-04 Jackson Harper <jackson@ximian.com>
12355 * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
12356 XKB or key auto repeat, do it manually. Without key auto repeat,
12357 when a key is held down we get key press, key release, key press,
12358 key release, ... with auto repeat we get key press, key press, key
12359 press ..., and then a release when the key is actually released.
12361 2006-07-03 Jackson Harper <jackson@ximian.com>
12364 * ThemeWin32Classic.cs: Tabs do not obey normal background color
12365 rules, they are always control color regardless of the background
12368 2006-07-02 Alexander Olk <alex.olk@googlemail.com>
12370 * FileDialog.cs: Added internal class MWFConfig.
12371 Removed Registry support and replaced it with support for the new
12372 MWFConfig class. See MWFConfig comments for more information.
12374 2006-06-30 Alexander Olk <alex.olk@googlemail.com>
12376 * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
12377 rectangle. Added some patches from eno from bug #78490 and fixed
12378 the arrow position for small up and down CPDrawScrollButtons.
12380 2006-06-30 Jackson Harper <jackson@ximian.com>
12382 * InternalWindowManager.cs: Remove some debug code.
12383 * Form.cs: When an MdiParent is set to null, the window is
12384 "detatched" and becomes a normal window.
12385 * MdiClient.cs: Don't bring the new child form to the front until
12386 it is activated (setting it as active does this), this makes the
12387 previously active forms titlebar get redrawn as inactive.
12389 2006-06-29 Peter Dennis Bartok <pbartok@novell.com>
12391 * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
12392 with later controls
12394 2006-06-29 Mike Kestner <mkestner@novell.com>
12396 * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
12397 arrow in keynav state. Fixes #78682.
12399 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
12401 * PrintDialog.cs: Reorder, relayout, remove extra code, set tab
12402 order (fixes #78393)
12404 2006-06-28 Jonathan Pobst <monkey@ipobst.com>
12406 * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs,
12407 ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
12408 ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
12409 FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
12410 GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
12411 ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs,
12412 PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
12413 Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
12414 TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
12415 ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
12416 enumerations (FlagsAttribute, SerializableAttribute, added/removed
12419 2006-06-28 Mike Kestner <mkestner@novell.com>
12421 * ComboBox.cs: implement scroll wheel support. Fixes #78360.
12423 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
12426 PropertyGridTextBox.cs : explicitly set BackColor to differentiate
12427 item lines from other area (It also makes BackColor consistent and
12428 compatible with .NET). Fixed bug #78564.
12430 2006-06-28 Jonathan Chambers <jonathan.chambers@ansys.com>
12432 * PropertyGrid.cs: refresh toolbar when PropertySort is set.
12433 Patch from Eno for #78555.
12435 2006-06-27 Chris Toshok <toshok@ximian.com>
12437 * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
12439 * DataGridColumnStyle.cs: same.
12441 * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
12443 * DataGridDrawingLogic.cs: nuke.
12445 2006-06-27 Chris Toshok <toshok@ximian.com>
12447 * DataGridTableStyle.cs: clean up the constructors, and build the
12448 list of child relations for this table. I have no idea if this is
12449 where we should be doing it (it probably isn't), but since we're
12450 already iterating over the properties..
12452 * DataGrid.cs: add row resizing. for now we add a DataGridRow
12453 struct and array for keeping track of row information, similar to
12454 what's shown in a hack on
12455 http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
12457 * Theme.cs: be consistent about the naming of DataGrid methods,
12458 prefering ColumnWidths and RowHeights over columnsWidths and
12461 * ThemeWin32Classic.cs: same, and also add support for variable
12462 sized rows (and the +/- expansion icons for related rows).
12464 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
12466 * TextBoxBase.cs: Applied Eno's patch from #78660
12468 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
12470 * Form.cs (ScaleCore): We don't want to scale our form if it's
12471 state is minimized or maximized, but we still need to scale our
12472 child windows. Also, added try/finally block to ensure layout
12473 gets reset (Fixes #78697)
12475 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
12477 * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
12479 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
12481 * Form.cs: Fixed c+p error and added check to resize form if minimum
12482 size is bigger than current size (Fixes #78709)
12484 2006-06-26 Peter Dennis Bartok <pbartok@novell.com>
12486 * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
12488 2006-06-26 Mike Kestner <mkestner@novell.com>
12490 * ComboBox.cs: only do Keypress handling in the combo when there
12491 are items in the collection. Fixes #78710.
12493 2006-06-26 Chris Toshok <toshok@ximian.com>
12495 * Binding.cs: make this work bi-directionally. also, clear up
12496 other mixups between Push/Pull Data (e.g. we're supposed to pull
12497 data when validating).
12499 * BindingManagerBase.cs: trim some fully qualified collection
12502 * PropertyManager.cs (get_IsSuspended): oops, fix this check.
12504 2006-06-23 Chris Toshok <toshok@ximian.com>
12506 * PropertyManager.cs: It appears (according to the unit tests)
12507 that PropertyManager doesn't use
12508 PropertyDescriptor.AddValueChanged to track propery value changes
12509 in its datasource, but uses the same scheme as Binding, where it
12510 looks for a <Property>Changed event and binds to it.
12512 Also, according to the docs, IsSuspended always returns false for
12513 a property manager with a non-null datasource.
12515 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
12517 * Form.cs: (ShowDialog): If we're returning a forced cancel we still
12518 need to update the actual DialogResult. (Fixes #78613)
12520 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
12522 * Form.cs (ShowDialog): Release any captures before running the
12523 new message pump (fixes #78680)
12525 2006-06-22 Mike Kestner <mkestner@novell.com>
12527 * ListView.cs: Layout column widths properly in details mode even
12528 if HeaderStyle.None is set. Fixes #78691.
12530 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
12532 * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
12534 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
12536 * Control.cs (ContainsFocus): Using new driver method to get focused
12537 window, instead of trying to use internal tracking var, which can
12538 recursion issues (Fixes #78685)
12539 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
12540 XplatUIWin32.cs: Added GetFocus method to return focused window
12542 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12544 * ColorDialog.cs: when the mouse button is pressed inside the color
12545 matrix, don't let the cursor move out of it until the button is
12546 released, which is the behavior on windows. Changed 'colours' by
12547 'colors' to use the same word consistently.
12549 2006-06-21 Chris Toshok <toshok@ximian.com>
12551 * DataGrid.cs: add in some basic navigation stuff (navigating to a
12552 child relation and back, using a stack). Also, remove
12553 GetDataSource and the code that calls it - it's not needed. Also,
12554 track CurrencyManager.ListName's removal.
12556 2006-06-21 Chris Toshok <toshok@ximian.com>
12558 * CurrencyManager.cs: push some of the original type checking from
12559 BindingContext.CreateBindingManager to here, and remove some of
12560 the finalType stuff. Need more tests to make sure I've got the
12561 ListName part right, and we might need more in SetDataSource.
12563 * PropertyManager.cs: add a ctor that takes just the datasource,
12564 and no property name. Make SetDataSource work with a null
12565 property_name, and make Current return the data_source if the
12566 property descriptor is null. this makes 'string foo = "hi";
12567 BindingContext[foo].Current' return "hi" as it should.
12569 * RelatedCurrencyManager.cs: make this code more generic - there's
12570 no reason the parent manager has to be CurrencyManager, and
12571 there's no reason to pass the DataRelation. It suffices to use a
12572 BindingManagerBase and PropetyDescriptor.
12574 * RelatedPropertyManager.cs: make a similar change here.
12576 * BindingContext.cs: make CreateBindingManager the beautiful, tiny
12577 flower I knew it could be.
12579 2006-06-20 Chris Toshok <toshok@ximian.com>
12581 * PropertyManager.cs: the PropertyChangedHandler is invoked when
12582 data in the source has changed and we need to update the control,
12583 so s/PullData/PushData.
12585 * CurrencyManager.cs: Refresh is meant to update the control from
12586 data in the datasource. So, s/PullData/PushData.
12588 * BindingContext.cs: add more ugliness (we weren't handling the
12589 case where data_source = DataTable and data_member = column_name).
12591 * Binding.cs: fix PushData/PullData mixup. Both are interpreted
12592 from the perspective of the datasource. PullData pulls from the
12593 control, PushData pushes to the control.
12595 2006-06-20 Chris Toshok <toshok@ximian.com>
12597 * BindingContext.cs: rewrite the CreateBindingManager code to
12598 handle navigation paths more or less properly. This could
12599 definitely stand some more work, in particular to push the
12600 recursion up to the toplevel. But that relies on fixes in other
12601 places (System.Data comes to mind).
12603 Also, move to a flat hashtable (and encode the twolevel nature of
12604 the dictionary into the hash key). This lets us implement the
12605 IEnumerable.GetEnumerator method.
12607 * RelatedCurrencyManager.cs: new class. Update our view based on
12608 our relation and our parent CurrencyManager's position.
12610 * CurrencyManager.cs: split out some logic from the ctor into
12611 SetView, so it can be called from the new RelatedCurrencyManager
12614 * RelatedPropertyManager.cs: new class. Update our datasource
12615 based on the position of our parent CurrencyManager.
12617 * PropertyManager.cs: split out some logic from the ctor into
12618 SetDataSource, so it can be called from the new RelatedDataSource
12619 subclass. Also, make the Current getter return the value
12620 of the PropertyDescriptor, not the data_source.
12622 * Binding.cs: no need to duplicate the string splitting code here.
12624 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
12627 - set_Enabled: OnEnabledChanged is not called if the inherited state
12628 of the control is not altered, even though we might be changing the
12629 internal state of the control (#78458)
12630 - set_Enabled: (Re)Moved the enabling/disabling of the window to
12631 OnEnabledChanged, to allow easy altering of any child window state
12632 - OnEnabledChanged: Added code to enable/disable driver window state
12633 - OnParentEnabledChanged: Instead of firing the event, call
12634 OnEnabledChanged, which will fire the event and also a) set driver
12635 window state and pass the enabled state to any grandchildren (#78458)
12637 2006-06-19 Jackson Harper <jackson@ximian.com>
12639 * InternalWindowManager.cs: We don't set the cursor explicitly
12640 thats done via the response to NCHITTESTs.
12641 - Don't need to adjust for titlebar heights anymore, the
12642 coordinates are coming in the correct coordinates now (see peters
12646 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
12648 * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
12649 being translated relative to whole window, instead of client window.
12650 That caused broken offsets on mouseclick (and caused gas for our
12651 InternalWindowManager)
12653 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
12656 - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
12657 - Undo(): Added replay of cursor move on DeleteChars action; added
12658 calling Undo() again if a recorded cursor move is invalid (to
12659 ensure that some action is performed on Undo)
12660 * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
12662 2006-06-16 Jackson Harper <jackson@ximian.com>
12664 * MdiClient.cs: Instead of just sizing maximized windows when
12665 there is a resize we also have to adjust the Y of minimized
12666 windows, so they stay pinned to the bottom of the mdi container.
12667 - Eliminate separate tracking of the active control, we can just
12668 get this from the controls collection.
12669 - Paint the decorations for the newly activated titlebar so we get
12671 * InternalWindowManager.cs:
12672 * ThemeWin32Classic.cs: Minimized windows get all three buttons
12673 even if they are a tool window.
12675 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
12677 * TextControl.cs (Undo): Handle non-existent cursor locations in the
12678 undo buffer, these can happen when text was deleted and the cursor
12679 was recorded first. Since we will also have a recorded cursor
12680 after the delete this is not an issue. (Fixes #78651)
12682 2006-06-14 Peter Dennis Bartok <pbartok@novell.com>
12684 * AccessibleObject.cs: Remove dependence on Control.is_selected;
12685 instead properly track control states internally (allows us to
12686 remove is_selected from Control)
12688 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12690 * ImageListStreamer.cs: correctly generate the 1bpp mask for images
12691 whose width is not a multiple of 8.
12693 2006-06-13 Jackson Harper <jackson@ximian.com>
12695 * MdiClient.cs: Only maximize the next child if the current one
12698 2006-06-13 Chris Toshok <toshok@ximian.com>
12700 * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
12701 modified. Also, guard against grid or grid_drawing being null in
12704 * DataGrid.cs: Reformat tons of getters/setters. In the
12705 DataMember setter, just call SetNewDataSource instead of
12706 duplicating some of its functionality. In SetNewDataSource, don't
12707 check ListManager for null, since the property getter creates the
12710 * DataGridTableStyle.cs: don't set TableStyle or call
12711 SetDataGridInternal on the column here, it's done in
12712 GridColumnStylesCollection.Add.
12714 * GridColumnStylesCollection.cs: fix all the explicit interface
12715 implementations to just call our methods. Nuke AddInternal() and
12716 move the body of it to Add(). Also, add a call to
12717 column.SetDataGridInternal to Add().
12719 * DataGridTextBoxColumn.cs (.ctors): call this() instead of
12720 base()+duplicate code. Also, use the Format property instead of
12721 format to generate an Invalidate ala MS. Lastly, create the
12722 textbox here, unconditionally.
12723 (set_Format): call Invalidate.
12724 (get_TextBox): no need to call EnsureTextBox.
12725 (Commit): remove the message box.
12726 (Edit) remove the call to EnsureTextBox.
12727 (EndEdit): call HideEditBox instead of ReleaseHostedControl.
12728 (EnterNullValue): no need to check textbox for null.
12729 (HideEditBox): no need to check textbox for null.
12730 (SetDataGridInColumn): add the textbox to the grid's controls.
12731 (EnsureTextBox): nuke.
12733 2006-06-13 Jackson Harper <jackson@ximian.com>
12735 * MdiWindowManager.cs: Hook up to the maximized menus paint event
12736 and redraw the buttons when needed. Unhook when the window is
12738 * MainMenu.cs: Add an internal Paint event, the mdi window manager
12739 needs this so that it can redraw its buttons when the menu is
12741 * InternalWindowManager.cs:
12742 * Form.cs: The method order has changed for DrawMaximizedButtons,
12743 so that it can be a PaintEventHandler.
12745 2006-06-13 Jackson Harper <jackson@ximian.com>
12747 * MdiClient.cs: When we close a maximized mdi window, the next mdi
12748 window is activated and maximized, even if it wasn't before.
12749 - When a new window is activated repaint the decorations of the
12750 old one, so that it no longer has the Active "look" (the blue
12752 * InternalWindowManager.cs: Open up CreateButtons to base classes
12753 so they can recreate the buttons on state changes.
12754 - If a window is maximized give it all three buttons
12755 * MdiWindowManager.cs: Create the titlebar buttons when the state
12756 is changed, this is needed because a toolwindow will not have all
12757 three buttons until it is maximized.
12759 2006-06-13 Atsushi Enomoto <atsushi@ximian.com>
12761 * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
12764 2006-06-12 Jackson Harper <jackson@ximian.com>
12766 * KeysConverter.cs: Make sure we handle the Ctrl special case
12767 if its the only key.
12769 2006-06-12 Jackson Harper <jackson@ximian.com>
12771 * Theme.cs: Add a method to get the size of a managed window
12773 * InternalWindowManager.cs: Remove the ButtonSize property, this
12774 should be retrieved from the theme.
12775 * MdiWindowManager.cs: Get the button size from the theme
12776 * ThemeWin32Classic.cs: Make the method to get the managed window
12777 titlebar button size public.
12778 - Handle the different button sizes of maximized toolwindows
12779 (should match any maximized window).
12780 - Get the titlebar height from the theme, not the WM (which gets
12781 it from the theme).
12783 2006-06-12 Jackson Harper <jackson@ximian.com>
12785 * InternalWindowManager.cs: Handle NC Double Clicks, passing the
12786 event down to the mdi window manager.
12787 - Expose some extra stuff to base classes
12788 - Make sure to end the Capture on an NC Mouse up, so that we can
12789 get double clicks properly, and the sizing doens't stick.
12790 - When doing PointToClient contain it in the workable desktop
12791 area, this prevents windows from changing size when the cursor is
12792 pulled outside of the working area while sizing.
12793 * MdiWindowManager.cs: When we get a double click maximize the
12795 - Reset the cursor after handling mode changes.
12797 2006-06-12 Peter Dennis Bartok <pbartok@novell.com>
12799 * XplatUIX11.cs (WorkingArea): Read the actual workarea for the
12800 current desktop, instead of just assuming a 0, 0 origin. This
12801 is needed for our internal window manager, to know the top
12802 margin of the desktop
12804 2006-06-12 Chris Toshok <toshok@ximian.com>
12806 * DataGrid.cs (set_CurrentCell): concede focus as we move around.
12807 we need this to get rid of the selected background in the bool
12809 (CancelEditing): move the ConcedeFocus call to above the Abort
12810 call. Also, set is_changing to false and invalidate the row
12811 header if we were changing before.
12812 (ProcessKeyPreviewInternal): remove, since noone outside this
12813 class calls it anymore. Roll the code into ProcessKeyPreview.
12814 (EndEdit): remove the internal version.
12815 (InvalidateCurrentRowHeader): make private.
12817 * DataGridBoolColumn.cs: simplify this class a bunch. remove the
12818 Keys.Escape handling (and with it the last call to
12819 DataGrid.EndEdit from outside the class.)
12822 2006-06-12 Chris Toshok <toshok@ximian.com>
12824 * DataGridTextBox.cs (.ctor): isedit defaults to false.
12825 (OnKeyPress): set isedit to true.
12826 (ProcessKeyMessage): remove Keys.Enter handling from here. it's
12827 already handled by the grid.
12829 * DataGrid.cs (set_CurrentCell): more work here. it's still not
12831 (set_DataSource): SetDataSource always returns true, so stop
12832 putting it in an if statement.
12833 (EndEdit): get rid of some {}'s
12834 (ProcessGridKey): return true in case Keys.Escape.
12835 (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
12836 (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
12837 PositionChanged, stopped connecting to CurrentChanged.
12838 (GetDataSource): simplify this a bunch.
12839 (SetDataSource): change return type from bool to void.
12840 (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
12841 to this, and make sure we don't set ListManager.Position inside
12843 (OnListManagerItemChanged): if we're passed an actual index,
12846 * CurrencyManager.cs (set_Position): don't call PullData here.
12848 2006-06-09 Jackson Harper <jackson@ximian.com>
12850 * TreeNode.cs: Recalculate the visible order before doing the
12851 Expand/Collapse Below calls, because those calls generate an
12853 - Reduce calls to the TreeView property, which is mildly expensive
12854 by using a local var.
12855 * Form.cs: Layout the MDI child windows when creating the parent
12857 - Don't use the internal constructor anymore
12858 * MdiClient.cs: use the parent form width/height (if available)
12859 when laying out the child windows, we do this because the
12860 mdiclient isn't docked yet when the initial layout is done.
12861 - Don't need an internal constructor anymore.
12863 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12865 * FileDialog.cs: handle access errors when trying to create a folder
12866 or changing to a directory. No need to initialize out parameters.
12868 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
12870 * FileDialog.cs: Append a number when creating a new folder if the
12871 folder already exists (use parenthesis instead of square brackets)
12873 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
12876 - Disabled registry support for windows and added better registry
12877 error checking for other systems (need to investigate why it
12878 works perfectly on my system)
12879 - If a folder already exist show an error MessageBox instead of
12880 trying to create an indexed name.
12881 - Fixed a non intentional typo.
12883 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12885 * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
12887 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
12889 * FileDialog.cs: When creating a new folder don't crash if the
12890 folder already exists.
12892 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
12894 * FileDialog.cs: Allmost a complete rewrite.
12895 - added a "virtual" file system that handles the differences
12896 between unix and windows file systems (especially the directory
12897 structure). Moved most of the directory and file handling code
12899 Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
12900 UnixFileSystem and FSEntry.
12901 - Recently used folder/directory, size, location and used file names
12902 (file name ComboBox) are now stored in the registry and get read
12903 before the dialog shows up (fixes part 6 of bug #78446).
12904 - Creation of new folders/directories is now possible (context menu
12905 or ToolBar). Added TextEntryDialog for this that fills in the gap
12906 until ListView.LabelEdit works.
12907 - Fixed cursor handling (bug #78527) and focus handling for
12909 - Various "Search in" ComboBox enhancements. The content of the
12910 dropdown listbox now almost matches ms.
12911 - Changed the behaviour when the user switches to SpecialFolder
12912 Recent to show the ListView in View.Details.
12913 - Beside using the ToolBar to change the View property of the
12914 file ListView it is now possible to use the context menu too.
12916 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
12918 * ComboBox.cs: Don't create a new ObjectCollection when an item
12919 gets inserted. Just insert the item in the existing object_items
12922 2006-06-08 Jackson Harper <jackson@ximian.com>
12924 * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
12925 that the treeview and root node checks are done also, this fixes a
12926 regression i caused in the unit tests.
12928 2006-06-07 Wade Berrier <wberrier@novell.com>
12930 * RichTextBox.cs: More ISO8859-1 -> unicode
12932 2006-06-07 Mike Kestner <mkestner@novell.com>
12934 * ComboBox.cs : use items to hold highlight/selection so that
12935 collection insertions don't require synchronization.
12937 2006-06-07 Jackson Harper <jackson@ximian.com>
12939 * InternalWindowManager.cs: Simplify (and FIX) the window sizing
12940 routine. We now always keep the sized edge at the cursor instead
12941 of computing movement and adjusting rects. There is one buglet
12942 with this method though when the cursor is moved over area that
12943 the window can not expand too (such as the toolbars on the desktop).
12945 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12947 * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
12948 here. Fixes crash on startup in AlbumSurfer.
12950 2006-06-07 Peter Dennis Bartok <pbartok@novell.com>
12952 * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
12955 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12957 * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
12958 statement to avoid calling XNextEvent which will block if another thread
12959 took the event that we were expecting. Fixes bug #78605.
12961 2006-06-07 Mike Kestner <mkestner@novell.com>
12963 * ListView.cs : isolated checkbox clicking from the selection logic.
12964 Toggle check state on item doubleclicks. Really fixes #78454 part2.
12966 2006-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12968 * Form.cs: Check that the value passed to Form.DialogResult
12969 is a valid enum value.
12971 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12973 * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
12974 Computer'. Clicking it in the network view goes to 'My Computer'.
12975 Added CIFS filesystem type. Display the mount point of filesystems.
12976 Avoid duplicate mount points (happens for me with CIFS);
12978 2006-06-06 Jackson Harper <jackson@ximian.com>
12980 * InternalWindowManager.cs: Draw the maximized windows buttons
12983 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12985 * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
12986 all other dialogs. Fixes bug #78585.
12988 2006-06-06 Mike Kestner <mkestner@novell.com>
12990 * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
12991 Only invalidate checkbox on checkstate changes to avoid flicker.
12992 * ListBox.cs : avoid unselect/select when clicking selected item.
12993 avoid reselection flicker for already multiselected items.
12996 2006-06-06 Jackson Harper <jackson@ximian.com>
12998 * MdiWindowManager.cs: When the window is closed do an NCRecalc on
12999 the parent form so that the menu is removed if needed.
13001 2006-06-06 Mike Kestner <mkestner@novell.com>
13003 * ListBox.cs : add ScrollWindow call to UpdateTopItem. fix
13004 Prev/Next/PrevPage/NextPage/Home/End index calculation. Fixes #78559.
13006 2006-06-06 Mike Kestner <mkestner@novell.com>
13008 * CheckedListBox.cs : rebuild check collection on Add. Fixes #78426.
13011 2006-06-06 Jackson Harper <jackson@ximian.com>
13013 * Control.cs: Use the property (instead of the field) to get the
13014 default cursor so it is instantiated correctly.
13015 * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
13016 resizes so we need to manually repaint the window decorations here.
13017 - Set the titlebar button locations as soon as they are created,
13018 otherwise they are not set correctly on win32.
13020 2006-06-06 Chris Toshok <toshok@ximian.com>
13022 * CurrencyManager.cs (set_Position): call PullData before
13024 (AddNew): after calling IBindingList.AddNew, update our
13025 listposition, and call OnCurrentChanged/OnPositionChanged (without
13027 (OnCurrentChanged): remove the call to PullData from here.
13028 (OnItemChanged): remove the call to PushData from here.
13029 (OnPositionChanged): change the test from == null to != null to
13030 match the other methods.
13031 (ListChangedHandler): the grossest part of the patch. Implement
13032 this such that it passes the unit tests in CurrencyManagerTest and
13033 the output more or less matches that of MS's implementation.
13035 2006-06-06 Mike Kestner <mkestner@novell.com>
13037 * ListView.cs : only update check state on single click.
13038 * ThemeWin32Classic.cs : fix focus drawing for details view without
13039 fullrowselect. Fixes #78454.
13040 * XplatUIX11.cs : fix for double click emission.
13042 2006-06-05 Jonathan Chambers <jonathan.chambers@ansys.com>
13044 * PropertyGridView.cs : Applied Atsushi's patch to fix
13045 font dialog bug (#78197).
13047 2006-06-05 Jackson Harper <jackson@ximian.com>
13049 * TreeNode.cs: Compute the next node for expanding/collapsing
13050 correctly. We now factor in nodes without a NextNode
13051 correctly. (Fixes somes cases in nunit-gui).
13052 * InternalWindowManager.cs: Set the bounds when updating the
13053 virtual position of a tool window.
13055 2006-06-05 Chris Toshok <toshok@ximian.com>
13057 * DataGrid.cs: rename cached_currencymgr to list_manager.
13058 (set_CurrentCell): move SetCurrentCell code here, and clean it up
13060 (CurrentRow, CurrentColumn): single accessors so we can make the
13061 cursor movement code a lot easier to understand.
13062 (CurrentRowIndex): implement this in terms of CurrentRow.
13063 (BeginEdit): clean this up a bit.
13064 (CancelEditing): sort out the is_editing/is_changing/is_adding
13066 (EndEdit): minor changes.
13067 (OnKeyDown): add a comment about a (most likely) unnecessary
13069 (OnMouseDown): cancel editing when we click on a row header. And
13070 use the CurrentRow setter, not CurrentCell.
13071 (ProcessDialogKey): directly call ProcessGridKey.
13072 (UpdateSelectionAfterCursorMove): factor out this common block of
13073 code (it's used everywhere that we move the cursor by updating row
13075 (ProcessGridKey): pretty substantial overhaul. Use the
13076 CurrentRow/CurrentColumn properties to make the code a lot more
13077 readable. Only use the CurrentCell property when we have to
13078 modify both row and column at once. Tab behavior is still broken,
13079 and Delete is untested.
13080 (Select): if we have no selected rows, set selection_start to
13082 (EditCurrentCell): rename EditCell this. It was only ever invoked
13083 with CurrentCell as the arg, so drop the arg and rename it.
13085 * DataGridColumnStyle.cs: clean up the constructors a little, and
13086 drop CommonConstructor().
13088 * DataGridTextBox.cs (.ctor): set accepts_return to true so we
13089 actually get notified when the user hits it.
13090 (ProcessKeyMessage): *substantially* simplify this method.
13091 There's no reason (that I can see) for the textbox to be making
13092 calls into the datagrid at all. Remove all of them but the ones
13093 for Enter handling. those will take some more work.
13095 * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
13096 calling HideEditBox.
13097 (HideEditBox): if we have an active textbox, render it invisible
13098 without causing a re-layout of the datagrid.
13100 2006-06-05 Mike Kestner <mkestner@novell.com>
13102 * ListView.cs : fix NRE crasher when focuseditem is cleared by
13103 collection changes by resetting it to Items[0]. Fixes #78587.
13105 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
13107 * MessageBox.cs: if the height of the text is larger than the icon_size,
13108 use that. Fixes bug #78575.
13110 2006-06-05 Jackson Harper <jackson@ximian.com>
13112 * TreeView.cs: Fix line drawing when scrolling. To do this each
13113 node is basically responsible for drawing its entire horizontal
13114 area. When drawing a node it draws its parent node lines if
13116 - Adjust the clip area to the viewport rectangle
13117 - Fix Left/Right key handling to match MS. (It expand/collapses
13118 and moves to parents/first child but does not move selection to
13120 - Fix SetTop to work with new bound calculation code
13121 - When scrollbars are no longer needed we need to reset scrolling
13122 vars and recalculate the visible order so the redraw is correct
13123 * TreeNode.cs: We can't expand/collapse nodes with no children.
13125 2006-06-03 John Luke <john.luke@gmail.com>
13127 * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
13128 so the colors work without dev packages
13130 2006-06-02 Peter Dennis Bartok <pbartok@novell.com>
13133 - Select: Implemented to just use activate. Seems to match MS
13134 behaviour closest. Documented to only do actual control walking
13135 based on it's parameters if in a container control so I moved
13137 - Removed selection check logic from our internal Select() method
13138 * ContainerControl.cs:
13139 - Select: Moved selection logic from Control here, since MS documents
13140 that containers obey the bool arguments. No longer calling base
13142 2006-06-02 Jackson Harper <jackson@ximian.com>
13144 * TreeView.cs: If the selected node isn't changed when we get
13145 focus update the previously selected node so that we see the
13148 2006-06-02 Mike Kestner <mkestner@novell.com>
13150 * ComboBox.cs: restructure grab and general mouse event handling.
13151 Make the composite control raise mouse events like it was a single
13152 control for leaves/enters/motion/up/down events. fix dropdown list
13153 coordinate mangling and refactor it into the scrollbar subclass to
13154 reduce code duplication. Fixes #78282 #78361 and #78457.
13156 2006-06-02 Mike Kestner <mkestner@novell.com>
13158 * ScrollBar.cs: remove Capture setting/clearing, as it happens
13159 automatically in the Control.WndProc.
13161 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
13163 * FileDialog.cs: fix crash when running SharpChess, which sets the
13164 FilterIndex to 2 with only one Filter.
13166 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
13168 * ToolBar.cs: add SizeSpecified property.
13169 * ToolBarButton.cs: when the ButtonSize is calculated by the container,
13170 try to figure out our real size, otherwise fallback to what the
13173 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
13175 * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
13176 * Control.cs (WndProc): MS always calls the DefWndProc to pass
13179 2006-06-01 Mike Kestner <mkestner@novell.com>
13181 * ListView.cs: revamp the focus management in ListView. It still
13182 causes churn of LostFocus/GotFocus emissions on clicks, but it's
13183 better than not handling focus at all. Will revisit when pdb feels
13184 the general focus handling is solid. Fixes #78526.
13186 2006-06-01 Jackson Harper <jackson@ximian.com>
13188 * TreeView.cs: Set the default border style in the constructor.
13189 - Move painting to use OnPaintInternal instead of capturing
13190 WM_PAINT, this is the correct way of doing things
13191 - UpdateBelow shouldn't invalidate the scrollbar area
13192 - Cap the top on update below in case the node was above the top
13193 of the viewport rectangle.
13194 - ExpandBelow and Collapse below need to obey Begin/End Update.
13195 * TreeNode.cs: Make is_expanded internal so the treenode
13196 collection can change it without firing the whole event chain.
13197 * TreeNodeCollection.cs: When clearing all the child nodes make
13198 sure to recalc the visible order.
13199 - Improve algo for remove the top node
13201 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
13203 * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
13204 SendMessage directly calling window procedures, which in turn might
13207 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
13209 * Control.cs: Don't handle WM_SETFOCUS if the same window already
13210 has focus (works around X11 sending a FocusIn after our SetFocus)
13211 * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
13213 2006-06-01 Alexander Olk <alex.olk@googlemail.com>
13215 * Mime.cs: Fix for the NET_2_0 build.
13216 NameValueCollection needs StringComparer now.
13218 2006-05-31 Chris Toshok <toshok@ximian.com>
13220 * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
13221 return (via an out parameter) the starting X of the column.
13222 (UpdateVisibleColumn): track change to FromPixelToColumn.
13223 (HitTest): add a ColumnResize case here.
13224 (DrawResizeLine): new function, probably poorly named.
13226 * DataGrid.cs (.ctor): get rid of cached_currencymgr_events. We
13227 only need to keep one reference.
13228 (set_ListManager): same.
13229 (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
13230 Also, add support for HitTestType.ColumnResize.
13231 (OnMouseMove): add column resize behavior here, and change the
13232 cursor to the correct one as we move around the datagrid.
13233 (OnMouseUp): terminate the column resize if we're resizing.
13234 (ProcessGridKey): from the MS docs, Alt-0 enters the null value
13235 for the current cell.
13236 (ConnectListManagerEvents): use cached_currencymgr.
13237 (DisconnectListManagerEvents): fill this in, using
13238 cached_currencymgr.
13239 (SetCurrentCell): remove cached_currencymgr_events handling.
13240 (SetDataMember): only call DisconnectListManagerEvents if
13241 cached_currencymgr is != null.
13242 (SetDataSource): same.
13243 (OnListManagerCurrentChanged): cached_currencymgr_events ->
13244 cached_currencymgr.
13246 2006-05-31 Jackson Harper <jackson@ximian.com>
13248 * BindingManagerBase.cs: Remove somedebug code that creeped into
13250 * TreeNode.cs: We get the indent level dynamically right now, so
13251 don't track it as a member.
13252 * TreeNodeCollection.cs: Make sure all nodes added to the list
13253 have parents, treeviews/topnodes setup properly.
13254 - Don't attempt to track indent level.
13256 2006-05-30 Jackson Harper <jackson@ximian.com>
13258 * BindingContext.cs: Create the currency manager tables here.
13259 This allows us to more easily create null tables (when bad data
13260 members are used), and more easily create related currency
13262 * CurrencyManager.cs: All the table creation stuff is done by the
13263 binding context now.
13264 - Current should throw an exception if listposition is -1.
13265 - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
13268 2006-05-30 Mike Kestner <mkestner@novell.com>
13270 * ListView.cs: allow reexpansion of zero-width column headers.
13273 2006-05-28 Chris Toshok <toshok@ximian.com>
13275 * CurrencyManager.cs (get_Current): after the late binding
13276 listposition = -1 fix, we need to guard against it here and return
13277 null, otherwise we raise an exception (which is swallowed
13278 elsewhere, and breaks datagrid databinding.)
13280 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
13282 * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
13283 than WM_SYSKEY, don't throw if get something unexpected (#78507)
13285 2006-05-26 Jackson Harper <jackson@ximian.com>
13288 * ThemeWin32Classic.cs: For color comparisons just use the ARGB
13289 values, it's faster and it's all we care about (we don't care if
13290 the names aren't equal).
13291 * KeyboardLayouts.cs: Eliminate some dead code.
13293 * X11Keyboard.cs: Lazy init keyboard detection.
13294 - Cleanup access modifiers a little.
13296 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
13298 * XplatUIX11.cs: Once again, attempting to get layout just right.
13300 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
13302 * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
13303 the sizes of each link section, that will result in sizes that
13304 match DrawString's layout (Fixes #78391)
13306 2006-05-27 Alexander Olk <alex.olk@googlemail.com>
13308 * FileDialog.cs: If AddExtension property is true autocomplete the
13309 extensions in SaveFileDialog correctly. Fixes bug #78453.
13310 Set MyNetwork and MyComputer to "C:\" for windows. This should
13311 fix part 8 of bug #78446 for now.
13313 2006-05-26 Chris Toshok <toshok@ximian.com>
13315 * DataGrid.cs (ColumnStartedEditing): fill these in. for now just
13316 invalidate the current row header if we need to, but presumably
13317 we'll invalidate the row corrsponding to the bounds or
13319 (GridHScrolled): switch back to this method, as it's part of the
13320 public api. *sigh*.
13321 (GridVScrolled): same.
13322 (OnMouseWheel): hack up something that more or less works. Call
13323 GridHScrolled/GridVScrolled directly, instead of duplicating much
13324 of their code here.
13325 (EnsureCellVisibility): reinstate a bunch of this code, since we
13326 can't just set the scrollbar Value and expect to do all the work
13327 in the ValueChanged handler. Also, Call Update() after scrolling
13328 in one direction so the other XplatX11.ScrollWindow call has the
13329 proper stuff in the proper places.
13330 (EditCell): set is_editing to true before calling .Edit.
13332 * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
13333 don't bother comparing first.
13334 (OnKeyPress): call grid.ColumnStartedEditing before calling
13335 base.OnKeyPress. this will set is_changing and invalidate the row
13336 header if necessary.
13337 (ProcessKeyMessage): for WM_CHAR messages, call
13338 ProcessKeyEventArgs directly. swallow anything other than WM_CHAR
13341 * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
13342 it's done in the DataGrid.
13343 (NextState): call grid.ColumnStartedEditing, which takes care of
13344 invalidating the row header (and setting is_changing).
13346 * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
13347 here. it's done in the DataGrid.
13349 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
13351 * Control.cs: allow changing the cursor when the mouse position is
13352 out of bounds but Capture is set.
13353 * LinkLabel.cs: handle the case when the mouse button is pressed on the
13354 linklabel but released somewhere else.
13356 2006-05-25 Jackson Harper <jackson@ximian.com>
13358 * TreeView.cs: When we get focus if there is no selected node make
13360 - Remove some uneeded setup code from Draw.
13361 * TreeNodeCollection.cs: If the tree doesn't have a top node when
13362 a new node is inserted make the new node the top.
13364 * Timer.cs: Use Utc time so that no local time zone stuff needs to
13365 be used (should be faster).
13367 2006-05-25 Chris Toshok <toshok@ximian.com>
13369 * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
13370 problem with the last commit.
13372 2006-05-25 Chris Toshok <toshok@ximian.com>
13374 * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
13375 need the invalidate call here, while scrolling right-to-left via
13376 the left arrow key (i.e. moving the editing cell while scrolling).
13378 * DataGrid.cs (.ctor): remove the initialization of
13379 ctrl_pressed/shift_pressed. We no longer track them using key
13380 up/down handlers, but by using Control.ModifierKeys. Also, switch
13381 to using ValueChanged handlers on the scrollbars instead of
13382 Scrolled event handlers. This simplifies a bunch of the scrolling
13384 (GridHValueChanged): rename from GridHScrolled, and change it to
13385 work with the new event args.
13386 (GridVValueChanged): same.
13387 (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
13388 (OnMouseWheel): actually scroll the datagrid. Don't change the
13390 (ProcessGridKey): correct all the keyboard navigation stuff I
13391 could find. Ctrl up/down/left/right/home/end work now.
13392 (EnsureCellVisibility): correct method name spelling. Also,
13393 simplify this a touch by not explicitly calling the
13394 ScrollToRow/ScrollToColumnInPixels methods. We just set the
13396 (OnKeyUpDG): no need for this method now.
13398 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
13400 * LinkLabel.cs: display the OverrideCursor when hovering the label.
13403 2006-05-25 Chris Toshok <toshok@ximian.com>
13405 * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
13408 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
13410 * Application.cs: Moved setting of is_modal and closing to before
13411 we create the control, to allow the event handlers called as a
13412 result of creation affect closing. Also removed Gonzalo's previous
13413 change to setting DialogResult, the behaviour has been moved to
13416 - ShowDialog(): Removed explicit creation of the form, let RunLoop
13418 - ShowDialog(): If no dialog result is set, we need to return Cancel
13419 - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
13420 the close is cancelled
13422 2006-05-25 Jackson Harper <jackson@ximian.com>
13424 * StatusBar.cs: We only need to update the sizes of the other
13425 panels when we have auto size contents. Also we are only updating
13426 the contents of the panel, not the borders, so compensate for the
13427 border width (TODO: get this width from the theme somehow).
13428 * TreeView.cs: Scrollable is true by default
13429 - Use invalidate instead of refresh where needed
13430 - Factor the scrollable value into scrollbar updating
13431 - Update the scrollbars if the Scrollable property is altered
13432 - Update the selected node if its ImageIndex is changed
13433 - Handle null nodes in UpdateNode (mainly so we don't have to
13434 check if selected is null when updating it
13435 - Fix VisibleCount to use the ViewportRectangle so that scrollbars
13436 are factored into the visible count
13437 - Use VisibleCount for clarity in the code
13438 - When the font is changed we need to recurse through all the
13439 nodes and invalidate their sizes
13441 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
13443 * Application.cs: set the DialogResult to fixed when the main form is
13444 hidden or destroyed while being modal.
13446 2006-05-25 Miguel de Icaza <miguel@novell.com>
13448 * Theme.cs: Use Tangoified messagebox icons.
13450 (GetSizedResourceImage): Also cope with width = 0 and do not
13451 trigger a warning in that case (0 means "give me your icon from
13452 the resouce, no special size needed).
13454 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
13456 * Application.cs: Leave runloop if the the main modal form is
13457 hidden (fixes #78484)
13459 2006-05-25 Atsushi Enomoto <atsushi@ximian.com>
13461 * BindingContext.cs : reject null datasource in Contains() and
13463 * CurrencyManager.cs : check data_member validity when data_source
13464 is dataset. When it is late binding, the initial position is -1.
13466 2006-05-24 Jackson Harper <jackson@ximian.com>
13468 * TreeNodeCollection.cs: Dont't recalculate the visible order on
13469 inserted nodes that aren't visible. This changes the
13470 max_visible_order which confuses scrollbar settings.
13471 - Use the enumerator to get the prev node instead of duplicating
13473 * TreeView.cs: Use new method for setting scrollbar values
13474 - Don't set the bounds every time the scrollbar is updated
13475 - When updating below the root node use an invalidate instead of a
13476 refresh to prevent the child controls (scrollbars) from being
13477 refreshed. (UpdateBelow still needs to be reworked anyways).
13478 - Reenable SetBottom now that visible orders are set correctly,
13479 added some debug code incase we ever get bad values there again.
13480 - Set the scrollbar max to 2 less then the max value, this
13481 compensates for the max value being one above the node count, and
13482 for scrollbars adding one extra "notch".
13483 - When drawing image nodes if there is an imagelist we draw the
13484 first image in the list if the supplied image index is out of the
13485 image list's bounds.
13487 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
13489 * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when
13490 we receive a size change from the WM (Fixes #78503)
13492 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
13494 * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip
13495 rectangle (Fixes #78501)
13497 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
13500 - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button
13502 - Fixed MouseMove to no longer switch pressed state unless the left
13503 mouse button is pressed. Atsushi provided the original patch (#78485)
13505 2006-05-24 Jackson Harper <jackson@ximian.com>
13507 * ScrollBar.cs: New internal methods that allow us to change a
13508 couple values on the scrollbar (the most common case is maximum
13509 and large change) without getting multiple invalidates.
13511 2006-05-24 Chris Toshok <toshok@ximian.com>
13513 * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
13514 (Edit): save off the original state in oldState, and set
13515 grid.is_editing to true.
13516 (OnKeyDown): abort editing if escape is pressed. also, call
13517 NextState if space is pressed.
13518 (OnMouseDown): call NextState.
13519 (NextState): factor out shared code from OnKeyDown and OnMouseDown
13520 here. Also, only invalidate the row header once (on the initial
13521 is_changing switch) to save on redraws.
13523 2006-05-24 Chris Toshok <toshok@ximian.com>
13525 * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
13526 if the value in the cell is different than it was before. This
13527 keeps us from triggering a layout when we move around a datarid
13528 with a highlighted cell.
13529 (Edit): suspend layout when creating/positining the text box, and
13530 resume passing false so we don't ever actually re-layout.
13531 (ReleaseHostedControl): same.
13532 (EnsureTextBox): reformat slightly, and set WordWrap to false.
13534 * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
13535 control-key sequences should go to the datagrid - remove that
13536 lock. Also, modify the conditions under which we move between
13537 cells when moving the cursor within a cell, and remove the "this"
13538 and "base" from field accesses. We weren't even consistent, given
13539 they all were in the base class.
13541 2006-05-24 Atsushi Enomoto <atsushi@ximian.com>
13543 * Binding.cs : (.ctor)
13544 An obvious NRE fix for BindingTest.CtorNullTest().
13546 2006-05-23 Chris Toshok <toshok@ximian.com>
13548 * TextBoxBase.cs (get_Text): don't add a trailing newline, add
13549 them between lines. This fixes some quirks editing cells in the
13552 2006-05-23 Jackson Harper <jackson@ximian.com>
13554 * TreeView.cs: Use begin/end update when doing expand/collapse all
13555 so that we don't get flicker on the scrollbar.
13557 2006-05-23 Jackson Harper <jackson@ximian.com>
13559 * TreeNode.cs: Bounds are computed 'on the fly' now. This allows
13560 treenode calculations to be independant of the painting code. To
13561 do this nodes track a visible order which is calculated by the
13563 - Call new methods for expanding/collapsing nodes. These methods
13564 use scrollwindow so we don't have to update everything below the
13566 * TreeView.cs: Refactored drawing and scrolling code. We don't
13567 need to update nodes when drawing anymore or calculate scrollbar
13569 - Added new methods for expanding/collapsing nodes. These methods
13570 use ScrollWindow so as to not have to redraw all the nodes below.
13571 * TreeNodeCollection.cs: Recalc visible order and scrollbars when
13572 we add/remove nodes or sort.
13573 - Handle removing the selected and the top node properly.
13575 2006-05-23 Chris Toshok <toshok@ximian.com>
13577 * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
13578 maybe this should actually happen in the datagrid code?
13579 (EndEdit): no need to invalidate anything, given that
13580 ReleaseHostedControl causes the datagrid to relayout, which
13581 invalidates everything anyway.
13583 * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
13584 in SetCurrentCell).
13585 (set_SelectionBackColor): call InvalidateSelection instead of
13587 (set_SelectionForeColor): same.
13588 (BeginEdit): Flesh this out a bit.
13589 (CancelEditing): only do any of this if we're editing/adding.
13591 (OnMouseDown): there's no need to cancel editing here, it's done
13593 (SetCurrentCell): only invalidate the current row header if it's a
13594 different row than the new one.
13595 (ShiftSelection): fix this to work like MS does.
13596 (ResetSelection): factor out the invalidation of selected_rows to
13597 InvalidateSelection.
13598 (SetDataSource): cancel any editing that's going on.
13600 * DataGridColumnStyle.cs
13601 (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
13602 call the non-interface version.
13604 * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
13605 header rectangle with the clip rectangle so we don't redraw the
13606 entire header for just a small area. Gets rid of the last flicker
13607 when horizontally scrolling.
13608 (DataGridPaintRow): same.
13610 2006-05-23 Mike Kestner <mkestner@novell.com>
13612 * ListViewItem.cs: remove size for line hack from LargeIcon layout.
13613 * ThemeWin32Classic.cs: don't draw line. it's really the top of a
13614 poorly placed checkbox on the MS control. Fixes Alex's unfiled
13615 Critical bug report.
13617 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
13619 * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
13620 and this fixes #78493
13622 2006-05-23 Miguel de Icaza <miguel@novell.com>
13624 * Theme.cs (GetSizedResourceImage): Scale images if the proper
13627 * FileDialog.cs: Do not change the background for the side bar as
13628 it wont work nicely with the theme, and also reduces the artifacts
13629 in rendering the icons (which I want to fix too).
13631 * MimeIcon.cs (ResourceImageLoader): Load images from assembly
13632 resources, not resgen resources.
13634 (PlatformDefaultHandler): Pull images using the new API.
13636 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
13638 * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
13639 a reference to the hwnd and will not remove it unless there are
13640 no pending exposures (fixes #78341)
13641 * XplatUI.cs: Improved debug
13643 2006-05-23 Atsushi Enomoto <atsushi@ximian.com>
13645 * MenuAPI.cs : don't handle OnClick event when it was not the left
13646 button. Fixed bug #78487.
13648 2006-05-23 Mike Kestner <mkestner@novell.com>
13650 * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
13651 prefer submenus to the top menu for item lookup, to avoid popping down
13654 2006-05-23 Alexander Olk <alex.olk@googlemail.com>
13656 * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
13657 Graphics.FillRectangle as the visual results are really bad (even
13658 on win). We now draw perfect arrows (and perfect shadows when the
13659 scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
13660 Pen.DashPattern to draw the dots of each line.
13662 2006-05-22 Alexander Olk <alex.olk@googlemail.com>
13664 * FileDialog.cs: Update the filename combobox when navigating through
13665 the ListView with the cursor keys. Fixes part 7 of bug #78446.
13667 2006-05-22 Mike Kestner <mkestner@novell.com>
13669 * ListView.cs: raise SelectedIndexChanged on keyboard selection.
13672 2006-05-22 Mike Kestner <mkestner@novell.com>
13674 * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
13675 requests. Fix a misspelled parameter and a copy paste exception error
13678 2006-05-22 Peter Dennis Bartok <pbartok@novell.com>
13680 * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
13681 to get the same width/height (5/13) on X11 as the default font has on
13682 win32. This means that our DefaultFont emSize is smaller than the
13683 the MS SWF equivalent (even thought the width/height stays the same)
13685 2006-05-20 Jackson Harper <jackson@ximian.com>
13688 * MdiWindowManager.cs:
13689 * InternalWindowManager.cs: Make sure to use the border width from
13692 2006-05-20 Jordi Mas i Hernandez <jordimash@gmail.com>
13694 * PrintDialog.cs: Implements printer details
13696 2006-05-19 Alexander Olk <alex.olk@googlemail.com>
13698 * FileDialog.cs: Added focus handling for PopupButtonPanel.
13699 Fixes part 1 and 2 of bug #78446
13701 2006-05-19 Peter Dennis Bartok <pbartok@novell.com>
13703 * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
13704 instead of sticking to the first ever calculated value
13706 2006-05-19 Mike Kestner <mkestner@novell.com>
13708 * ComboBox.cs: fix mouse motion selection to use MousePosition and
13709 PointToClient, since Capture is set. Fixes #78344.
13711 2006-05-19 Mike Kestner <mkestner@novell.com>
13713 * ListView.cs: match MS behavior in Details view where items are not
13714 drawn if Columns.Count == 0.
13715 * ThemeWin32Classic.cs: only highlight ListView selection if focused.
13716 Use a separate pen to draw the check, since changing the width affects
13717 the box as well. Fixes #78454.
13719 2006-05-18 Miguel de Icaza <miguel@novell.com>
13721 * ListView.cs: ArgumentOutOfRangeException, single versions of the
13722 exception should throw the name of the invalid argument.
13724 * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
13725 there are no files listed.
13727 2006-05-18 Jackson Harper <jackson@ximian.com>
13729 * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
13732 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
13734 * Control.cs: Brought back our old UpdateZOrder method as a private
13735 function and switched our calls from UpdateZOrder to the new one.
13736 This fixes the Paint.Net canvas disappearing bug.
13738 2006-05-18 Jackson Harper <jackson@ximian.com>
13741 * ThemeWin32Classic.cs:
13742 * InternalWindowManager.cs: Move the drawing into the theme,
13743 expose everything the theme should need from the window manager.
13745 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
13747 * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value
13748 from the call to NativeWindow to avoid walking up the parent chain
13749 further than needed (speeds up setting cursors and avoids setting
13750 the wrong cursor if a parent has another cursor defined)
13751 * Cursor.cs: When loading an icon as cursor, MS uses the center of
13752 the icon as hotspot, not what's contained as hotspot in the icon
13753 file. This fixes the perceived drawing offset seen with Paint.Net
13755 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
13758 - Store the calculated rectangle in Hwnd object and use it when
13759 setting the client size
13760 - Force Toolwindows to always be type Dock, to ensure they're on top
13762 2006-05-18 Mike Kestner <mkestner@novell.com>
13764 * ComboBox.cs: first pass at ComboBox rework. Layout is more
13765 consistent with MS positioning. IntegralHeight, ItemHeight, Sizing.
13766 Correctly initialize textcontrol and ListBox on DropDownStyle changes.
13767 Substantial refactoring to remove confusing nested classes. Coding
13768 standard and Get+Set->property refactorings. Shift to index based
13769 highlighting in ComboListBox instead of constantly using IndexOf and
13770 Items[]. Add invalidations on resize for DropDownList to fix ugliness
13771 in FileDialog growth. Draw borders manually since Simple mode needs
13772 to look like two independent controls. Make listbox border
13773 conditional to DropDownStyle. Improved OwnerDraw support.
13775 2006-05-18 Sebastien Pouliot <sebastien@ximian.com>
13777 * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor.
13778 Don't set the disposed graphics to null, so we can throw the "right"
13779 exception if the graphics is reused later (added a flag to avoid
13780 double disposing). Some behaviours are different under 2.0 and are
13781 filled under bug #78448.
13783 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
13785 * Control.cs: When double-buffering is enabled, we need to reset
13786 our graphics context between paint calls. Otherwise, any
13787 transformations and other alterations on the context will
13788 become cumulative (#77734)
13790 2006-05-18 Mike Kestner <mkestner@novell.com>
13792 * ListView.cs: do focused item selection like MS on clicks.
13793 Rework focus handling for ItemControl so LostFocus invalidates as
13795 * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
13796 the ListView ItemControl has focus.
13798 2006-05-17 Peter Dennis Bartok <pbartok@novell.com>
13800 * XplatUIX11.cs: If client_window ends up being width or height zero
13801 due to border settings, move it off window inside whole_window (#78433)
13803 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
13805 * Mime.cs: Shrink the mime file cache correctly.
13807 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
13809 * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
13811 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
13813 * XplatUIX11.cs (AddExpose): More sanity checks
13815 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
13818 - AddExpose: Don't add expose ranges outside the size of our
13820 - Cast opacity values to Int32 to avoid crashes with certain
13822 - Added disabled code paths that protect against illegal cross-
13823 thread painting (Developers.exe)
13825 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
13827 * ProgressBar.cs: Invalidate the control when it's resized
13828 since block size is based on control size. (#78388)
13830 2006-05-16 Miguel de Icaza <miguel@novell.com>
13832 * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
13833 of setting the incoming argument to the "reset" value, we set the
13834 this.datamember to string.empty (before we were invalidating the
13839 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
13841 * Form.cs: Only apply transparency settings after the form
13842 is created. (Fixes #77800)
13844 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
13846 * ApplicationContext.cs: Grab the HandleDestroyed event so
13847 we know when to fire OnMainFormClosed
13849 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
13851 * Application.cs: Introduced sub-class to allow tracking of
13852 threads and centralized triggering of the event mess for
13853 ThreadExit, AppExit, etc.. (#76156)
13855 2006-05-16 Alexander Olk <alex.olk@googlemail.com>
13858 - Do not return a null icon index value for a mime subclass.
13859 Instead try the main mime type class too.
13860 - Seems that some newer distributions don't have a link to some
13861 gnome default icons anymore. So check the default gnome dir too.
13864 2006-05-16 Jackson Harper <jackson@ximian.com>
13866 * MdiClient.cs: Don't paint the parent background image if we have
13867 our own background image.
13869 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
13872 - PerformLayout: Do not shrink space filled by DockStyle.Fill
13873 controls, all filled controls are supposed to overlap (#78080)
13874 - UpdateZOrder is supposed to update the control's z-order in the
13875 parent's z-order chain. Fixed to behave like that
13876 - BringToFront: Removed obsolete code
13877 - SendToBack: Simplyfied
13878 - SetChildIndex: Trigger layout calculations when Z-order changes
13879 since layout is done by z-order
13881 2006-05-16 Chris Toshok <toshok@ximian.com>
13883 [ fixes bug #78410 ]
13884 * DataGrid.cs (set_AlternatingBackColor): use
13885 grid_drawing.InvalidateCells instead of Refresh().
13886 (set_BackColor): call grid_drawing.InvalidateCells.
13887 (set_BackgroundColor): use Invalidate instead of Refresh.
13889 * DataGridDrawingLogic.cs (InvalidateCells): new function, just
13890 invalidate the cell area.
13892 2006-05-15 Chris Toshok <toshok@ximian.com>
13894 [ fixes bug #78011 ]
13895 * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
13896 on to DataGridPaintRow.
13897 (DataGridPaintRow): take a clip argument, and only draw the cells
13898 which intersect it. same with the not_usedarea.
13900 * Theme.cs (DataGridPaintRow) add @clip parameter.
13902 * DataGrid.cs (ScrollToColumnInPixels): simplify, use
13903 XplatUI.ScrollWindow.
13904 (ScrollToRow): same.
13906 * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
13907 with last column which was causing a gray swath to appear with the
13908 XplatUI.ScrollWindow code.
13910 2006-05-15 Chris Toshok <toshok@ximian.com>
13912 * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
13913 use XplatUI.ScrollWindow.
13914 (VerticalScrollEvent): use XplatUI.ScrollWindow.
13916 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
13918 * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
13920 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
13922 * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
13923 file since there are no equivalent X11 cursors
13925 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
13927 * MonthCalendar.cs : DateTimePicker should reflect selected date
13928 on mouse*up*, not mouse*down*. Fixed originally reported part of
13931 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
13933 * TabControl.cs : When argument index is equal or more than tab
13934 count, just ignore. Fixed bug #78395.
13936 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
13938 * Control.cs: Dispose all child controls when control is diposed (#78394)
13940 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
13942 * ColorDialog.cs: Finally it is possible to select the color with
13945 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
13947 * PrintDialog.cs: Fix typo
13949 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
13951 * PrintDialog.cs: PrintDialog is not resizable
13952 * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
13953 color. Made some ToolBar drawing methods protected virtual.
13955 2006-05-13 Jordi Mas i Hernandez <jordimash@gmail.com>
13957 * PrintDialog.cs: Implementation of the PrintDialog
13959 2006-05-12 Chris Toshok <toshok@ximian.com>
13961 * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
13962 thumb, instead use MoveThumb. This has the side effect of making
13963 most of the other thumb moving machinery use MoveThumb as well.
13964 (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
13965 need to actually invalidate the rectangle where the new thumb will
13967 (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
13968 We force an Update() after, so it's not as fast as it could be,
13969 but at least there's zero flicker and no droppings.
13970 (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
13971 (UpdateThumbPos): add another argument (dirty), which says whether
13972 or not to calculate/add dirty regions which we later invalidate.
13973 For cases where we know we're going to use MoveThumb, we pass
13974 false for this. Otherwise, pass true.
13976 2006-05-12 Jackson Harper <jackson@ximian.com>
13978 * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
13981 2006-05-12 Peter Dennis Bartok <pbartok@novell.com>
13983 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
13984 and GetClipRegion methods and UserClipWontExposeParent property.
13985 * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
13986 overriding UserClipWontExposeParent property, setting to false, since
13987 Win32 handles the required expose messages to draw our clipped parent
13989 * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
13990 PaintEventStart to set the user clip region if set.
13992 - Now internally tracking the Region for the control since we need to
13993 store it if the handle is not yet created and only set it when it
13994 becomes created. Before setting the region forced handle creation
13995 - Added code to draw the parents underneath a user-clipped region
13996 * Hwnd.cs: Added UserClip property
13998 2006-05-12 Chris Toshok <toshok@ximian.com>
14000 * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
14001 (set_Maximum): same.
14002 (set_Minimum): same.
14003 (set_SmallChange): same.
14004 (OnMouseUpSB): remove the call to refresh when releasing the
14005 thumb. We shouldn't need it.
14007 2006-05-12 Miguel de Icaza <miguel@novell.com>
14009 * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
14010 AutoSize set to None, we do not need to relayout everything, we
14011 just need to invalidate the current region.
14013 (Draw): Do not draw the entire ClientArea, just redraw the
14014 clip area being passed.
14016 * MdiClient.cs: Make MdiClient constructor with the Form argument
14019 2006-05-12 Jackson Harper <jackson@ximian.com>
14021 * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
14022 parents background image, but strangely not their own.
14023 - (DrawStatusBarPanel): Take into account horizontal alignment
14024 when drawing the strings and icons.
14026 2006-05-12 Mike Kestner <mkestner@novell.com>
14028 * ListBox.cs: avoid invalidations for focus when the collection is
14031 2006-05-12 Chris Toshok <toshok@ximian.com>
14033 * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
14034 invalidate the entire thumb area. Call InvalidateDirty which
14035 limits the redraw to the thumb itself and surrounding pixels.
14037 * XplatUIX11.cs (ScrollWindow): optimize copying.
14039 2006-05-12 Chris Toshok <toshok@ximian.com>
14041 * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
14042 Figure out the positioning/layout in a single pass instead of
14043 multiple recursive invocations. Speeds up the initial display of
14044 the data grid. Also, make many things private that were
14045 originally public but unused outside this class.
14047 2006-05-11 Jackson Harper <jackson@ximian.com>
14049 * MdiClient.cs: Improved layout code.
14051 2006-05-11 Jonathan Chambers <jonathan.chambers@ansys.com>
14053 * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
14054 not SelectedObject.
14056 2006-05-11 Chris Toshok <toshok@ximian.com>
14058 * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
14059 union of that will always be {0,0,width,height}.
14061 2006-05-11 Jackson Harper <jackson@ximian.com>
14063 * Form.cs: Match MS's DefaultSize for forms (they must have
14064 changed the size in sp2).
14066 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
14068 * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
14070 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
14072 * TextControl.cs : Fixed bug #78109. This incorrect position
14073 comparison caused crash on automatic line split.
14074 * TextBoxBase.cs : reduce duplicate code.
14076 2006-05-10 Jackson Harper <jackson@ximian.com>
14078 * MdiClient.cs: Active form is only sent to the back when using
14079 the Next form functionality, when a form is clicked the current
14080 active shouldn't be sent to the back.
14081 - Layout the mdi windows when the container is first made visible.
14082 * Form.cs: Give the MdiClient a ref to the containing form when we
14085 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
14087 * LinkLabel.cs : link_font could be uninitialized, so populate one
14088 before actual use. Fixed bug #78340.
14090 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
14092 * XplatUIX11.cs : clipboard format native value is IntPtr.
14095 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
14098 - Instead of showing context menus directly we send WM_CONTEXTMENU,
14099 which is passed up the parent chain by DefWndProc
14100 - We now handle WM_CONTEXTMENU to display any menu, or pass it
14101 to DefWndProc (#77956)
14102 * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
14104 2006-05-10 Jackson Harper <jackson@ximian.com>
14106 * MdiClient.cs: We need to remove the controls from the mdi
14107 collection, when we close the window.
14108 * MdiWindowManager.cs: Special handling of closing mdi windows.
14109 * InternalWindowManager.cs: Make the close method virtual so the
14110 mdi window manager can handle it specially.
14112 2006-05-10 Jordi Mas i Hernandez <jordimash@gmail.com>
14115 - Recalculate grid when the data source has changed
14116 - Matches styles provided by user from all data sources types
14117 * DataGridTableStyle.cs: For columns that provided by the user set the
14118 with the preferred value is there was unassigned.
14119 * CurrencyManager.cs: throw OnItemChanged event
14121 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
14123 * PictureBox.cs: Don't animate until handle is created. Start animation
14124 when handle is created.
14126 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
14128 * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
14130 * XEventQueue.cs: We don't need to provide the extra info
14132 2006-05-10 Jackson Harper <jackson@ximian.com>
14134 * MdiClient.cs: If the mdi clients parent form has a background
14135 image set, we draw that background image for the mdi area's
14138 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
14140 * TextBoxBase.cs: Set IBeam cursor (#78347)
14142 2006-05-10 Mike Kestner <mkestner@novell.com>
14144 * ToolBar.cs: fix some text padding issues with ButtonSize
14145 calculation. Update the default size to match MS documentation.
14146 * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
14147 button size. Fixes #78296.
14149 2006-05-10 Mike Kestner <mkestner@novell.com>
14151 * ListBox.cs: use is_visible for scrollbar positioning in case the
14152 control isn't on screen yet. Fix off by one with Right vs Width
14153 usage. Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
14155 2006-05-10 Jackson Harper <jackson@ximian.com>
14157 * X11Dnd.cs: Drop to a control with another control on top of it.
14158 * ToolBar.cs: Work on a copy of the buttons list, so that it can
14159 be modified in click handlers. TODO: Look for similar problems in
14162 2006-05-09 Jackson Harper <jackson@ximian.com>
14164 * Form.cs: Window managers need the old window state when setting
14166 * InternalWindowManager.cs: Allow the base mdi window manager to
14167 handle more of the MDI only stuff (like maximize buttons).
14168 * MdiWindowManager.cs: Fix some snafus in changing the window
14169 state. Add all the menu functionality, for both popup and
14171 * MdiClient.cs: When a new form is selected the currently
14172 activated form is sent to the back, this matches MS.
14173 - Implement a new method to activate the next mdi child window.
14175 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
14178 - Added new InternalCapture method to allow controls to prevent
14179 the capture behaviour on the click handlers
14180 - Switched to use InternalCapture
14182 - Using InternalCapture to prevent mouse captures from being released
14183 on mouse button release (Fixes #78100)
14184 * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
14185 returns Form borders if a caption is present. (Fixes #78310)
14187 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
14189 * TreeNode.cs: Changed serialization .ctor to not require every field
14190 to be present. (#78265)
14191 * OwnerDrawPropertyBag.cs: Added serialization .ctor
14193 2006-05-05 Alexander Olk <alex.olk@googlemail.com>
14195 * MimeIcon.cs: for is faster than foreach for strings.
14197 2006-05-05 Mike Kestner <mkestner@novell.com>
14199 * CheckedListBox.cs: update check handling code to not use selected.
14200 * ListBox.cs: rewrite of mouse selection handling to correspond to MS
14201 behavior for visual feedback, motion response, shift/ctrl handling,
14202 and properly deal with all 4 selection modes. Updates to bounds
14203 handling logic. Add scroll wheel support. [Fixes #77842]
14205 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
14208 - Moved adding of Implicit controls into .ctor. That way, subsequent
14209 creation of the controls will not cause them to think they are
14210 toplevel windows (fixes #78200 header problem)
14211 - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
14212 - Switched visibility setting of header control to use internal field
14213 to avoid triggering handle creation
14214 - Now checking if handle is created before causing a refresh when items
14215 are added (This makes us now match handle creation time with MS)
14216 * Splitter.cs: Removed loading of private splitter cursor, switched to
14217 Cursors version now that that is loading the right ones
14218 * Cursors.cs: Load proper splitter cursors from resources
14219 * Cursor.cs: Added second method of loading resource cursors for the
14220 VS.Net users amongst us
14222 2006-05-05 Mike Kestner <mkestner@novell.com>
14224 * ListView.cs: give header_control a minimum size based on the
14227 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
14229 * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
14230 window seems to do that with metacity, so set that type. (#78120)
14232 2006-05-05 Mike Kestner <mkestner@novell.com>
14234 * ListViewItem.cs: fix Details mode checkbox layout bug.
14235 * ThemeWin32Classic.cs: draw a ListView column header for unused space
14236 at the end of the header, if it exists. [Fixes for #78200]
14238 2006-05-04 Jackson Harper <jackson@ximian.com>
14240 * MdiClient.cs: Add a helper property to get the container form.
14241 * MdiWindowManager.cs: We have to make sure to use the menu origin
14242 when drawing the icons and buttons, this fixes maximized window
14243 icons/buttons on win32.
14244 * InternalWindowManager.cs: Reset the restore captions when a
14245 window goes from Maximized to Minimized and vice versa. Move the
14246 DrawMaximizedButtons into the MdiWindowManager source, tool
14247 windows can't be maximized. NOTE: This could use a little
14248 refactoring if time ever permits.
14250 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
14252 * TextBox.cs: Add MWFCategoryAttributes
14253 * TextBoxBase.cs: Add MWFCategoryAttributes
14254 * Form.cs: Add MWFCategoryAttributes
14256 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
14258 * Control.cs: Add MWFCategoryAttributes
14259 * ScrollableControl.cs: Add MWFCategoryAttributes
14261 2006-05-03 Alexander Olk <alex.olk@googlemail.com>
14263 * ThemeWin32Classic.cs: Draw the ToolBar top border only if
14264 Divider is true. Fix a little glitch in PropertyToolBar
14267 2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
14270 - Dispose: Call base.Dispose, this causes the disposed event
14271 to be fired (and probably other, more important stuff)
14272 - SetVisibleCore: Set is_visible to true after creating the
14273 window so that the window still gets created invisible (if
14274 WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
14275 to generate a WM_ACTIVE message
14276 * Form.cs: Call Dispose when we want to destroy the window, instead of
14277 just destroying the handle (Dispose will do that for us)
14279 - RootWindow also needs a queue, so we can properly process the
14280 property change events from RootWindow (like Activate)
14281 - Generatic synthetic WM_ACTIVE message when the active window is
14284 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
14286 * LinkLabel.cs: Trigger a recalc of our label dimensions when
14289 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
14291 * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
14292 for determining width and height (image might not be assigned if
14293 we're drawing an imagelist)
14295 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
14297 * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
14298 * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
14300 * Theme.cs: No longer returns hardcoded menu height, instead calls
14302 * Form.cs (OnLoad): Scaling happens before triggering Load events
14305 2006-05-01 Mike Kestner <mkestner@novell.com>
14307 * MenuItem.cs: fix NRE for text == null. Fixes #78250.
14309 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
14311 * TextBoxBase.cs: Removed Fixme
14312 * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
14314 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
14317 - ScrollWindow: We were passing hwnd.ClientRectangle which returns
14318 the rectangle relative to the parent, considering borders. We
14319 don't really want that.
14320 - ScrollWindow: Fixed warning to be more understandable
14321 * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
14322 scrollbars and scroll only the visible area
14323 * RichTextBox.cs: Removed debug output
14325 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
14327 * NumericUpDown.cs (Text): Just use base
14328 * UpDownBase.cs: Ensure txtView is created before using it
14330 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
14332 * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
14333 casting to IntPtr to avoid 64bit overflow errors
14335 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
14338 - AllowDrop: Don't force handle creation.
14339 - CreateHandle: Added call to tell driver if we're allowed to drop
14341 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
14343 * FileDialog.cs: Remember the last directory not only for the
14344 current instance but also for new FileDialog instances.
14346 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
14348 * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
14349 broke sending async messages
14351 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
14354 - ScrollWindow: Fixed method. We finally generate expose events again
14355 for scrolled areas. This was causing 'garbage' when scrolling
14356 textbox and other controls that used ScrollWindow
14357 - Switched from using the regular queue for paint events to the MS
14358 model of 'generating' paint events when the queue is empty.
14359 We use the new XQueueEvent.Paint subclass to store which windows
14361 - AddExpose now takes the x/y/width/height of the exposed area
14362 and inserts the window into the paint queue if not already there
14363 - InvalidateWholeWindow: Switched to use new AddExpose method
14364 - UpdateMessageQueue: Added which queue to monitor for paint events
14365 - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
14366 the unlikely case nothing above handles it. We reset the expose
14367 pending states to get them off the queue.
14368 - GetMessage: Now pulls a paint event if no other events are in the
14370 - Invalidate: Switched to new AddExpose method
14371 - PeekMessage: Updated to understand pending paint events
14372 - UpdateWindow: Fixed logic bug. We were only updating if the window
14373 didn't need updating. Also switched to sending WM_PAINT directly,
14375 * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
14376 and random access Remove(). The random access is needed to handle
14377 UpdateWindow() where a WM_PAINT is sent directly without accessing
14379 * ScrollBar.cs: Added Update() calls to cause immediate updates to
14380 allow for better feedback when scrolling. Scrollbars are small and
14381 the immediate update should make it 'feel' more responsive without
14382 slowing things down. ScrollBar still needs it's invaliate logic
14383 updated to not always invalidate the whole bar on certain changes.
14385 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14388 (BackColor): if the control does not support a transparent background,
14389 return the default backcolor when the parent backcolor is transparent.
14391 2006-04-28 Peter Dennis Bartok <pbartok@novell.com>
14393 * Application.cs: Updated to new StartLoop/GetMessage API
14394 * RichTextBox.cs: Provide some output on RTF parsing errors
14395 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
14396 new queue_id argument to GetMessage and PeekMessage to allow faster
14397 handling of per-thread queues in drivers.
14398 * Hwnd.cs: Added Queue tracking and property
14399 * MenuAPI.cs: Updated to new StartLoop/GetMessage API
14400 * XEventQueue.cs: Added thread trackingA
14401 * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
14403 - Implemented new per-thread queue
14404 - GetMessage: Fixed return/break behaviour on several cases. We were
14405 returning stale messages in some cases, instead of just processing
14408 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
14410 * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
14412 2006-04-27 Peter Dennis Bartok <pbartok@novell.com>
14414 * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
14415 fixed off-by-one comparisons between Width/Height and Right/Bottom.
14417 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
14419 * PropertyGridView.cs: Fix drop down width.
14421 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
14423 * ThemeWin32Classic.cs: Peter thinks that three additional lines are
14424 a mess in DrawToolBar, so I removed one of them.
14426 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
14428 * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
14429 needed (clip). Otherwise we get artifacts.
14431 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
14433 * FixedSizeTextBox.cs: Added constructor to allow specifying which
14435 * UpDownBase.cs: Set the spinner control to be fixed height vertical,
14436 and switched FixedSizeTextBox to only be fixed vertical (#78116)
14437 * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
14438 if it matches the scale base font (avoids unneeded scaling)
14440 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
14442 * X11DesktopColors.cs: One gtk_init_check should be enough
14444 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
14446 * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
14449 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
14452 - Generate OnTextChanged for Backspace even if we're only deleting
14453 the current selection
14454 - When setting the Text property, only select all text if the
14455 control does not have focus when it is being set. Otherwise
14456 just place the cursor at the beginning of the control
14458 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
14460 * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
14461 Added a little helper to draw PropertyGrid ToolBar with a different
14462 border and a different BackColor.
14463 * PropertyGrid.cs: Some background parts didn't get painted with the
14464 correct background color. Added a class that helps us to draw the
14465 correct border for PropertyGridView and a class that helps us to
14466 draw ToolBars with a different backcolor
14467 * PropertyGridView.cs: Draw PlusMinus with the correct colors.
14469 2006-04-25 Jonathan Chambers <jonathan.chambers@ansys.com>
14471 * PropertyGrid.cs: Bug 78196, font size, and splitter location.
14472 * PropertyGridView.cs: Bug 78196, font size, and splitter location.
14474 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
14476 * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
14477 into the palette entries. Also, since we're working on a copy
14478 we needed to copy the palette back onto the bitmap.
14479 * Cursor.cs: Same fix as XplatUIWin32.cs.
14481 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
14483 * ImageListStreamer.cs: Need to read the var (or we're off)
14485 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
14487 * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs,
14488 XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
14489 TextBoxBase.cs: Unused var fixes
14490 * AxHost.cs: Small 2.0 fix
14491 * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms
14492 as it seems that is what at least Metacity expects. This will make
14493 icons show up on 64bit platforms. We still have some 64bit size
14494 issues, though, since the startup app window size still won't match.
14496 2006-04-25 Mike Kestner <mkestner@novell.com>
14498 * *.cs: cleanup newly reported exception var unused warnings.
14500 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
14502 * ThemeWin32Classic.cs: Button image alignment now matches exactly
14505 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
14507 * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
14508 image. The image position is always the same, no matter if the
14509 button is pressed or not.
14511 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
14513 * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
14514 selection and set the correct filename for SaveFileDialog.
14515 Patch by Emery Conrad.
14517 2006-04-24 Mike Kestner <mkestner@novell.com>
14519 * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
14520 check for item.X outside the ClientRect instead of item.Y. Fixes
14523 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14525 * ImageListStreamer.cs: some images store a wrong grow factor, so don't
14526 trust that value blindly and do some sanity check. Fixes bug #77814.
14528 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14530 * ImageListStreamer.cs: save the mask as a 1bpp image.
14532 2006-04-21 Mike Kestner <mkestner@novell.com>
14534 * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
14535 pass Checked and Indeterminate to the Theme Engine. Improve
14536 encapsulation with ListBox.
14537 * ListBox.cs: Keep a StringFormat instead of calculating it every item
14538 draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
14539 nested types. Move all CheckState functionality to CheckedListBox.
14540 Make IntegralHeight work like MS. Rewrite of Layout engine. Fix
14541 OwnerDrawVariable layout/rendering. Fix multicolumn rendering. Fix
14542 ScrollAlwaysVisible handling. Refactor "selected" collections to use a
14543 single base list. Fix scrollbar sizing and placement to mirror MS.
14544 * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
14546 * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
14547 for CheckedListBox by using new DrawItemState info. Center the
14548 checkboxes on the items. Use new StringFormat property.
14550 2006-04-18 Jackson Harper <jackson@ximian.com>
14552 * Form.cs: MdiChildren don't do default locations the same way as
14553 regular forms. This prevents a crash when trying to position the
14556 2006-04-17 Jonathan Chambers <jonathan.chambers@ansys.com>
14558 * PropertyGridTextBox.cs: Formatting, copyright
14559 * PropertiesTab.cs: Formatting
14560 * PropertyGrid.cs: Formatting
14561 * PropertyGridView.cs: Formatting, fix drop down, enabled double
14562 click toggling of values
14564 2006-04-17 Peter Dennis Bartok <pbartok@novell.com>
14566 * KeyPressEventArgs: Added 2.0 only setter for KeyChar
14567 * Control.cs (.ctor): verify_thread_handle is static, don't reset
14568 every time a control is created
14569 * Application.cs: Removed obsolete EnableRTLMirroring method
14571 2006-04-18 Gert Driesen <drieseng@users.sourceforge.net>
14573 * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
14574 SelectedIndex to -1. Fixes bug #78121.
14576 2006-04-17 Jackson Harper <jackson@ximian.com>
14578 * Binding.cs: Handle null values for Current and BindingContext.
14579 This occurs when binding is a little delayed.
14580 * CurrencyManager.cs: return null for Current when there are no
14582 - Hookup to the listchanged event on the DataView and update
14583 bindings when the list is changed. This fixes late binding of
14586 2006-04-17 Jackson Harper <jackson@ximian.com>
14589 * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
14592 2006-04-15 Alexander Olk <alex.olk@googlemail.com>
14594 * ThemeWin32Classic.cs: Draw disabled combo button in the correct
14596 * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
14597 with the correct ButtonState
14599 2006-04-14 Peter Dennis Bartok <pbartok@novell.com>
14601 * XplatUIX11.cs: Improved distinguishing between window types to
14602 tell the WM a type closer to what the app wants (Fixes #78107)
14604 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
14606 * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
14609 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
14611 * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
14612 drawing code to reflect the size grip changes
14614 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14616 * ImageListStreamer.cs: fix handling of the mask that follows the main
14617 bitmap when deserializing and serialize it properly. The generated mask
14618 should better be a 1bpp image, but I'll do that later.
14620 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
14622 * FileDialog.cs: Show something in the DirComboBox on *nix if the
14623 path doesn't fit into some of our Current.Places
14625 2006-04-13 Jackson Harper <jackson@ximian.com>
14627 * ComboBox.cs: Use borders instead of drawing our own decorations,
14628 try to obey correct rules for heights.
14631 * ThemeClearLooks.cs:
14632 * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
14633 this is now handled by borders.
14634 - Remove unused DrawListBoxDecorationSize method.
14636 2006-04-13 Mike Kestner <mkestner@novell.com>
14638 * MenuAPI.cs: null guarding for the disbled click check fixes crash
14641 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
14643 * ThemeWin32Classic.cs:
14644 - Fixed CPDrawStringDisabled
14645 - Corrected drawing of disabled menu items
14646 - Fixed drawing of disabled radio buttons (bug #78095)
14647 - Draw check in a disabled CheckBox with color ControlDark
14649 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
14651 * Form.cs: Use the provided width when calculating the menu size;
14652 when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
14653 and ClientSize.Width won't be updated yet
14654 * Application.cs: Use Visible instead of Show() to make form visible,
14655 this way we create the handle later and menusize is considered
14657 2006-04-12 Mike Kestner <mkestner@novell.com>
14659 * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
14662 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
14664 * TextBox.cs: Implemented context menu
14666 2006-04-12 Mike Kestner <mkestner@novell.com>
14668 * ListView.cs: implement box selection. fixes #77838.
14669 * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
14671 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
14673 * XplatUIX11.cs: Added setting of window type when transient window
14674 is created (metacity would move it otherwise)
14675 * X11Structs.cs: Added WINDOW_TYPE atoms
14676 * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
14677 background (the control is Opaque but still wants transparent
14680 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
14682 * Control.cs: Added OnPaintBackgroundInternal to allow controls
14683 that set Opaque but don't mean it (like all ButtonBase-derived
14684 controls) to still draw their background
14685 * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
14688 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
14690 * Control.cs (PaintControlBackground): Set the graphics object
14691 on our PaintEvent to null to prevent it from being disposed
14692 when the PaintEvent gets disposed
14694 2006-04-12 Alexander Olk <alex.olk@googlemail.com>
14696 * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
14697 * ThemeNice.cs, ThemeClearlooks.cs: fix typo
14699 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
14702 - Added transparency check to BackColor property. Transparent
14703 backgrounds are only allowed if the control styles permit it
14704 - Added recursive painting of parent control background and
14705 foreground if a control with a transparent backcolor is drawn
14706 (Thanks to Tim Ringenback for providing his 'hack' as a base
14707 for this patch) Fixes #77985 and #78026.
14708 - Added Opaque style check before calling OnPaintBackground, no
14709 need to draw the background if the control is opaque
14710 - Removed ControlAccessibleObject owner variable (inherited from
14711 base, no need to define again)
14712 - Added some documentation links explaining the drawing events
14715 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
14717 * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
14718 that the affected control is the located at the left border of our
14719 parent (Fixes #77936)
14721 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
14723 * TextBoxBase.cs: When rendering disabled or readonly controls,
14724 draw the background with 'Control' instead of 'Window' color as
14725 long as the user hasn't specifically set a color
14727 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
14729 * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
14730 since that won't be updated if the user types text (only if it's
14731 programatically set)
14733 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
14735 * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
14736 layout changes do to app-triggered resizes will have the proper
14737 display rectangle for layout
14739 2006-04-11 Alexander Olk <alex.olk@googlemail.com>
14741 * ThemeWin32Classic.cs:
14742 - Make use of the SystemBrushes and SystemPens wherever possible
14743 - Corrected some highlight colors
14744 - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
14746 * Theme.cs: Added Empty field to CPColor struct
14748 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
14750 * ScrollabeControl.cs: We need to consider whether or not a scrollbar
14751 is displayed when calculating the display rectangle. Thanks to Mike
14752 for teaching me the err of my ways.
14754 2006-04-10 Peter Dennis Bartok <pbartok@novell.com>
14756 * ScrollableControl.cs:
14757 - Rewrote DisplayRectangle code, now returning the proper x/y coords
14758 (instead of 0,0) and we now return the real width/height instead of
14759 just the clientrectangle, adjusted for padding. The rectangle is
14760 now cached and created by the new CalculateDisplayRectangle method.
14761 - Created new CalculateDisplayRectange method, which basically does
14762 what get_DisplayRectangle() did originally, but now using the
14763 right edge instead of DisplayRectangle to determine the size of
14765 - get_Canvas(): Fixed it to properly calculate canvas for
14766 right/bottom controls which seem to be placed to the right/bottom
14767 of any controls that have a fixed location
14768 - Removed TODO that's taken care of
14769 - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
14770 and SetDisplayRectLocation according to new MSDN2 docs
14771 - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
14772 event when that is called, this is added for compatibility
14773 - ScrollControlIntoView(): Implemented.
14774 - Switched scrollbars to be implicit, they shouldn't be selectable
14775 * ContainerControl: Now that ScrollControlIntoView is implemented, we
14776 call it when the active control is set/changed
14777 * ScrollBar.cs: Added support for generating Win32 scrollbar messages
14778 * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
14779 implicit_control variable (used for native Win32 message generation)
14780 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new
14781 HorizontalScrollBarHeight and VerticalScrollBarWidth properties
14782 * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
14783 * XplatUIStructs.cs: Added ScrollBarCommands enum
14785 2006-04-10 Jackson Harper <jackson@ximian.com>
14788 * CheckedListBox.cs:
14795 * PrintPreviewControl.cs:
14801 * UpDownBase.cs: Fixup base event overrides.
14803 2006-04-06 Mike Kestner <mkestner@novell.com>
14805 * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
14806 all user-initiated value changes to min <= value <= max-thumbsz+1.
14807 (set_Value): check for vert/horiz when calculating new thumb position.
14808 (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
14810 (OnMouseMoveSB): refactor the thumb dragging code and refine
14811 invalidation logic to reduce flicker.
14812 (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
14813 (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
14814 (UpdateThumbPosition): small code readability cleanup
14816 2006-04-10 Alexander Olk <alex.olk@googlemail.com>
14818 * ThemeNice.cs: Small UI polishing. Draw borders a little bit
14821 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
14823 * ThemeNice.cs: Use a better graphics effect when a button is pressed
14825 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
14827 * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
14828 * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
14829 This dramatically reduces the number of Pen.Dispose calls.
14830 Where possible call ResPool methods only once instead of calling it
14831 over and over again (for example for the same color).
14833 2006-04-06 Mike Kestner <mkestner@novell.com>
14835 * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
14836 Also remove an unused private field on the collection. Fixes #77972.
14838 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
14840 * ThemeNice.cs: Added ToolBar drawing code
14842 2006-04-06 Mike Kestner <mkestner@novell.com>
14844 * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
14845 I'm assuming that means we need to look up the toplevel for the
14846 provided control. Fixes the crash trace in #77911 but exposes another
14847 crash in some strange reflection usage in NDocGui.
14849 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
14851 * ThemeNice.cs: Gave it a little silver touch and added Images
14853 * FontDialog.cs: FontDialog is not resizable
14854 * FileDialg.cs: Added SizeGripStyle.Show
14856 2006-04-05 Jackson Harper <jackson@ximian.com>
14858 * KeyboardLayouts.cs: Remove warning.
14860 2006-04-05 Jackson Harper <jackson@ximian.com>
14862 * Control.cs: Enable OnPaintInternal so we can use it for drawing
14863 all of our controls instead of Paint +=.
14878 * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
14879 use OnPaintInternal. Remove Width/Height and Visible checks in
14880 paint handler, this is done at a higher level now.
14881 * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
14882 * PaintEventArgs.cs: Add a handled flag so controls that don't
14883 want anymore painting after OnPaintInternal can make sure OnPaint
14886 2006-04-05 Mike Kestner <mkestner@novell.com>
14888 * Form.cs: fix the menu WndProc hacks to respect the native enabled
14889 state of the form, so that we don't process events when Modal dialogs
14890 are up. Fixes #77922.
14892 2006-04-05 Alexander Olk <alex.olk@googlemail.com>
14894 * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
14897 2006-04-05 Mike Kestner <mkestner@novell.com>
14899 * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
14901 2006-04-05 Mike Kestner <mkestner@novell.com>
14903 * ListView.cs (HeaderMouseMove): null guarding for the over column
14904 when setting up the drag_to_index. Fixes #78015.
14906 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
14908 * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
14909 in the taskbar. Transient windows seem to accomplish that.
14911 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
14914 - Re-enabled CreateParams.X/Y code for FormStartPosition
14915 - Added code for manual placement when creating the Control
14916 - Incomplete patch to treat MDI forms differently when
14917 setting the ClientSizeCore. (Still need to figure out handling
14920 - When we're explicitly setting the X/Y position of a non-Child
14921 window, let the WM know. Metacity really wants this.
14923 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
14925 * ThemeNice.cs: Added CPDrawButton
14927 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
14929 * ThemeNice.cs: Changed the color for focused buttons and activated
14930 the arrows for small scroll buttons.
14932 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
14934 * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
14935 anymore. Changed some method modifiers to protected (virtual)
14936 * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
14938 * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
14939 Updated drawing of menus, buttons and progressbars; added
14942 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14944 * ImageListStreamer.cs: implemented serialization/deserialization
14947 2006-04-03 Alexander Olk <alex.olk@googlemail.com>
14949 * ThemeWin32Classic.cs:
14950 - Removed all the DrawFrameControl stuff; CPDrawButton,
14951 CPDrawCheckBox and CPDrawRadioButton are now handled directly
14953 - Updated and corrected the drawing code of CPDrawButton,
14954 CPDrawCheckBox and CPDrawRadioButton to better match ms
14955 - Updated theme checkbox and radiobutton code to use the CP*
14958 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
14960 * XplatUIX11.cs: Enable clipping again now that the libgdiplus
14963 2006-03-31 Jackson Harper <jackson@ximian.com>
14965 * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
14967 * UpDownBase.cs: Don't CreateGraphics manually, use a
14968 Refresh. Ideally we would invalidate the correct areas here.
14970 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
14973 - We now track the mapping state of windows. If a window (or
14974 one of it's parents) is not mapped we no longer permit
14975 WM_PAINT messages to be generated since we'd otherwise get
14976 lots of BadMatch X errors. Jackson did all the work figuring
14978 - Destroying the caret if the window it's contained in is
14979 destroyed. Can't use regular DestroyCaret method since it
14980 might fall into a drawing function (trying to remove the
14981 caret) and with that generate new BadMatch errors. Again,
14982 Jackson tracked this down.
14983 - Changed DestroyChildWindows to SendWMDestroyMessages, we now
14984 make sure we send the messages to all windows. (The old code
14985 would send the WM_DESTROY to the window, and then all child
14986 windows would be 'gone' because the WM_DESTROY handle lookup
14987 would no longer find the destroyed window)
14988 * Hwnd.cs: Added Mapping property to track mapping state of hwnd
14989 * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
14991 2006-03-31 Jackson Harper <jackson@ximian.com>
14993 * ScrollableControl.cs: Dont recalc if we are not visible.
14995 2006-03-31 Mike Kestner <mkestner@novell.com>
14997 * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
14998 the visibility branch.
15000 2006-03-31 Jackson Harper <jackson@ximian.com>
15002 * ScrollBar.cs: Cap values when incrementing/decrementing.
15004 2006-03-31 Mike Kestner <mkestner@novell.com>
15006 * MenuAPI.cs: setup menu.tracker for popup/context menus.
15007 * ToolTip.cs: guard against timer expirations with no active control.
15008 Not sure why it happened.
15010 2006-03-31 Mike Kestner <mkestner@novell.com>
15012 * ThemeWin32Classic.cs: add some horizontal padding space for the tip
15014 * ToolTip.cs: Position the tooltip based on where the cursor is at
15015 popup time, not at MouseEnter time. Add a Down state so that we don't
15016 redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
15017 positioning offset. Lookup DisplaySize at positioning time, since it
15018 can theoretically change during invocation.
15019 * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
15020 * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
15022 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
15024 * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
15025 Fixes behaviour when the Text property of the box is String.Empty
15027 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
15029 * XplatUIX11.cs: Only send mouseleave for our client windows, not
15030 for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
15033 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
15035 * FileDialog.cs: Visual enhancement for the popup buttons in
15038 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
15040 * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
15043 2006-03-30 Alexander Olk <alex.olk@googlemail.com>
15045 * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
15046 highlighted menu items to match ms
15048 2006-03-30 Peter Dennis Bartok <pbartok@novell.com>
15050 * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
15052 2006-03-30 Mike Kestner <mkestner@novell.com>
15054 * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
15055 * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
15056 go active to account for HotLight to Selected transition.
15057 * MenuItem.cs: add internal Selected prop. Fill out the Status
15058 property by calculating it from item info. Add HotLight,
15059 NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
15061 2006-03-30 Mike Kestner <mkestner@novell.com>
15063 * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
15065 2006-03-29 Jackson Harper <jackson@ximian.com>
15067 * Form.cs: Implement TODO.
15069 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
15071 * PrintPreviewDialog.cs: Implemented missing methods and events; still
15072 missing proper dialog setup in the constructor
15074 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
15076 * ProgressBar.cs: Added 2.0 Style property that apps seem to use
15078 - Implemented CheckForIllegalCrossThreadCalls, removed TODO
15079 - Fixed ResetBindings and removed TODO
15080 - Added check for cross-thread calls to get_Handle()
15081 - Added Marshaller attribute for set_Font to satisfy class status
15082 * FontDialog.cs: Removed TODOs that seemed implemented
15083 * UpDownBase.cs: Removed unneeded TODO and Fixme
15084 * MessageBox.cs: Implemented support for Default button and removed TODO
15085 * FileDialog.cs: Removed obsolete TODO
15086 * DomainUpDown.cs: Removed obsolete TODO
15087 * ButtonBase.cs: Removed obsolete TODO
15088 * XplatUIWin32.cs: Removed obsolete TODO
15090 - Removed obsolete TODO
15091 - Calling CheckAcceptButton when the acceptbutton is changed to allow
15092 internal status updates
15093 - Making sure the active control is selected when the control is created
15094 * CurrencyManager.cs: Removed obsolete TODO
15096 2006-03-29 Mike Kestner <mkestner@novell.com>
15098 * *.cs: fix remaining corcompare issues for 1.1 API with the exception
15099 of PrintPreviewDialog and RichTextBox.
15101 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
15103 * Theme.cs: Added a little helper to SystemResPool to get the Dark,
15104 DarkDark, Light and LightLight colors for a specific color
15105 * ThemeWin32Classic.cs:
15106 - Use Button drawing code to draw RadioButtons and CheckBoxes with
15107 Appearance = Button
15108 - Make use of the new ResPool helper CPColor
15109 - Draw ProgressBar and StatusBar with correct 3D borders
15111 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
15113 * ColorDialog.cs: Return selected color. Fixes bug #77940.
15115 2006-03-28 Mike Kestner <mkestner@novell.com>
15117 * ListView.cs: fix Icon layout to plan for scrollbar widths when
15118 calculating col/row counts.
15120 2006-03-28 Mike Kestner <mkestner@novell.com>
15126 switch to explicit interface method implementation for some methods
15127 corcompare identifies as inconsistent with MS.
15129 2006-03-28 Mike Kestner <mkestner@novell.com>
15133 add a few missing methods from the class status output.
15135 2006-03-28 Alexander Olk <alex.olk@googlemail.com>
15137 * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
15140 2006-03-28 Mike Kestner <mkestner@novell.com>
15142 * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
15144 2006-03-27 Mike Kestner <mkestner@novell.com>
15146 * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
15147 the Hilight state to adapt to Alex's CPDrawBorder3D changes.
15149 2006-03-27 Alexander Olk <alex.olk@googlemail.com>
15151 * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
15153 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
15155 * ThemeWin32Classic.cs:
15156 - GroupBox: Inserted a little gap between the text and the lines
15158 - Made the code in CPDrawBorder3D more readable
15159 - Corrected the drawing location of the up and down arrows in
15162 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
15164 * ControlPaint.cs: Corrected line widths in DrawBorder for
15165 ButtonBorderStyle Inset and Outset
15167 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
15169 * ThemeWin32Classic.cs:
15170 - Rewrote the totally broken CPDrawBorder3D method. That was
15171 one of the main problems for the terrific ThemeWin32Classic
15173 - Updated and corrected Button drawing
15174 - Correct the dimensions of the SizeGrip to match ms ones
15175 - Removed a small drawing glitch in DrawComboBoxEditDecorations
15176 * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
15177 Border3DStyle.Sunken to match ms.
15179 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
15181 * ThemeWin32Classic.cs: First small part of the "de-uglify
15182 ThemeWin32Classic" effort, SizeGrip
15184 2006-03-24 Jackson Harper <jackson@ximian.com>
15186 * XplatUIX11.cs: Give a max idle time of one second, this matches
15187 MS and forces an Idle event every second when there are no other
15188 events in the queue.
15190 2006-03-24 Mike Kestner <mkestner@novell.com>
15192 * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
15193 * ListView.Item.cs: fix layout issues with null image lists and images
15194 smaller than checkbox size.
15195 * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
15196 mode like MS does. It's weird, but consistent. ;-)
15199 2006-03-24 Mike Kestner <mkestner@novell.com>
15201 * ListView.cs: Scroll wheel support for the item control. Fixes
15204 2006-03-23 Jackson Harper <jackson@ximian.com>
15206 * ScrollableControl.cs: Special case negative sized areas, not
15208 * MonthCalendar.cs: Save the rect of the clicked date so we can
15209 use it for invalidation.
15210 - Try to cut down on the number of invalidates
15211 - Invalidate the rect the mouse is over and was over when moving
15212 the mouse, so we get the focus box following the cursor.
15214 2006-03-23 Mike Kestner <mkestner@novell.com>
15216 * ThemeWin32Classic.cs: fix FullRowSelect selection background and
15217 focus rectangle drawing. Fixes #77835.
15219 2006-03-23 Mike Kestner <mkestner@novell.com>
15221 * XplatUIX11.cs: rework the fix for #77828 by changing the order of
15222 the if and else if and reverting back to the original == check on the
15225 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
15227 * FontDialog.cs: Update the example panel if the selected index of
15228 the fontListBox changes.
15230 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
15232 * FileDialog.cs: Make FileDialog remember which directory it was in
15233 last in the same execution.
15235 2006-03-22 Mike Kestner <mkestner@novell.com>
15237 * FileDialog.cs: make the DropDownMenu on the toolbar display
15238 RadioChecks since they are mutually exclusive and that's what MS does.
15240 2006-03-22 Mike Kestner <mkestner@novell.com>
15242 * Theme.cs: add Color param to CPDrawMenuGlyph.
15243 * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
15244 checks and radio marks and arrows are visible on highlighted items.
15245 * ControlPaint.cs: update to use new Theme signature.
15247 2006-03-22 Mike Kestner <mkestner@novell.com>
15249 * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
15250 is active. Fixes #77870.
15252 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
15254 * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
15255 to be focused/selected after startup
15257 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
15260 - Corrected behaviour of Color, AllowFullOpen, FullOpen,
15261 CustomColors and ShowHelp properties
15262 - Some internal rewrites to get better results when using the
15265 2006-03-22 Mike Kestner <mkestner@novell.com>
15267 * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
15268 HoverSelection. Fixes #77836.
15270 2006-03-22 Mike Kestner <mkestner@novell.com>
15272 * FileDialog.cs: bugfixes for the toolbar. Use PushButtons instead of
15273 ToggleButtons. (De)Sensitize the Back button around a stack count of
15274 1, not 0. Update ButtonSize based on a pixel count of the win32
15275 control. Adjust the toolbar size/location for new button size.
15277 2006-03-22 Jackson Harper <jackson@ximian.com>
15279 * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
15281 * ScrollBar.cs: When doing increments and decrements we need to
15282 set the Value property so that ValueChanged gets raised. A
15283 possible optimization here would be to make an internal SetValue
15284 that doesn't invalidate immediately.
15285 * ToolTip.cs: Tooltips get added to their container (when
15286 supplied) so they get disposed when the container is disposed.
15287 - Don't create tooltips for String.Empty. This prevents all these
15288 little 2-3 pixel windows from showing up when running nunit-gui
15289 and driving me mad.
15290 * Form.cs: Don't set topmost when setting the owner if the handles
15291 haven't been created yet. The topmost set will happen when the
15292 handles are created.
15294 2006-03-22 Peter Dennis Bartok <pbartok@novell.com>
15297 - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
15298 - SetVisible: Sending WINDOWPOSCHANGED for all controls when made
15299 visible (to allow them to recalculate their sizes)
15301 2006-03-21 Mike Kestner <mkestner@novell.com>
15303 * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
15304 methods. Removed a ton of redundant code. Still not really happy with
15305 the border rendering, but I think that's mainly because of the
15306 ControlDarkDark being black instead of a dark grey. Depending on how
15307 close we want to be, we might want to revisit those color choices.
15308 Among the new features added during the refactor were DropDownArrow
15309 pressed rendering, Disabled image rendering. Proper flat appearance
15310 boundary rendering. Removed the Divider and Wrapping dividers since I
15311 can't figure out any combination of themes and conditions to make the
15312 MS control draw a horizontal line on a toolbar despite what the
15313 Divider property docs indicate.
15314 * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
15315 conditions and incorrect layout. Updated to coding standard.
15316 * ToolBarButton.cs: refactored layout and positioning code from
15317 ToolBar to here. Invalidate wherever possible instead of forcing
15318 redraws of the whole toolbar.
15319 (Known remaining issues: explicit ButtonSize smaller than provided
15322 2006-03-21 Mike Kestner <mkestner@novell.com>
15324 * ContextMenu.cs (Show): use the position parameter instead of just
15325 showing at the MousePosition.
15327 2006-03-21 Jackson Harper <jackson@ximian.com>
15329 * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
15330 control handle this.
15331 * TreeNodeCollection.cs: If we are clearing the root node we need
15332 to reset top_node so calcs can still happen.
15333 * ThemeWin32Classic.cs: This is a Flags so we need to check
15336 2006-03-21 Jackson Harper <jackson@ximian.com>
15338 * DataGrid.cs: Create columns when the binding context has been
15340 * X11Structs.cs: Keysyms are uints.
15341 - Add size to fix build.
15343 2006-03-21 Peter Dennis Bartok <pbartok@novell.com>
15345 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
15347 - Added ResetMouseHover method to allow controls to retrigger
15348 hovering if they need it more than once
15349 - Implemented MouseHoverTime and MouseHoverSize properties
15350 * Timer.cs: Start() must reset the interval
15351 * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
15354 2006-03-21 Jackson Harper <jackson@ximian.com>
15356 * X11Keyboard.cs: improved layout detection. Move the nonchar
15357 tables into this file.
15358 * KeyboardLayouts.cs: Move the tables into resource files.
15360 2006-03-21 Mike Kestner <mkestner@novell.com>
15362 * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
15364 2006-03-21 Alexander Olk <alex.olk@googlemail.com>
15366 * Mime.cs: Various speed optimizations. Looking up mime types
15367 is now 2 times faster than before
15369 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
15371 * CreateParams.cs: Added internal menu field
15373 - Switched call order for UpdateBounds; now we always call
15374 the one that also takes ClientSize, and we're calculating the
15375 client size via driver method in the others. The previous
15376 method of tracking client size by difference wasn't working
15377 for forms where even the starting client size wouldn't match
15378 the overall form size (due to borders) (Part of fix for #77729)
15379 - CreateParams(): Do not use parent.Handle unless the handle is
15380 already created. Causes havoc with Nexxia and throws off our
15381 creation of controls
15383 - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
15384 - Switched handling of ConfigureNotify over to new PerformNCCalc
15385 method (consolidates code)
15386 - Changed RequestNCRecalc to use new PerformNCCalc method
15387 - Added calls to RequestNCRecalc when menus and borders are changed
15388 to allow app to set NC size. (Part of fix for #77729) This matches
15389 when MS send a WM_NCRECALC on Win32 windows.
15390 - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
15391 (Part of fix for #77729). This matches what MS does, they also
15392 send that message when the form is made visible.
15393 - XException.GetMessage: Improved usability of X errors by including
15394 a translation of the window into Hwnd and Control class
15395 - Improved debug info for window creation, reparenting and destruction
15396 - Created helper method WindowIsMapped() [Currently not used]
15397 * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
15399 - CreateParams: Now setting our menu on the new internal menu field
15400 - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
15401 avoid calculating the same property twice
15403 - Improved usability of ToString() for debugging purposes
15404 - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
15405 determine the height of the menu, instead of just the font. This
15406 required to also create a graphics context and to keep a bmp
15407 around (for performance reasons)
15409 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
15411 * MenuAPI.cs: Added OnMouseUp method
15413 - Now remembering the requested client size, avoids size errors
15414 - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
15415 instead of base if the menu is active. This is required due to
15416 control now capturing and releasing on down/up and it would
15417 prematurely release our menu capture
15419 2006-03-17 Jackson Harper <jackson@ximian.com>
15421 * KeyboardLayouts.cs: Add the czech layouts.
15423 2006-03-16 Jackson Harper <jackson@ximian.com>
15425 * Control.cs: Use the viewport space when sizing not the controls
15426 client size, so things like ScrollableControl that effect the
15427 viewport size (when scrollbars are added) are computed correctly.
15428 * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
15430 - Handle creating BindingManagers for null data sources.
15431 * DataGrid.cs: Bind the cached_currencymgr_events to the real data
15432 source, otherwise when rows are added they are added to the 'fake'
15433 datasource and we will crash when trying to set the position in
15435 - Use Implicit scrollbars on the datagrid so they arent
15438 2006-03-16 Jackson Harper <jackson@ximian.com>
15441 * InternalWindowManager.cs:
15442 * MdiWindowManager.cs:
15443 * X11Keyboard.cs: I really want Mike to love me again (fix
15444 compiler warnings).
15446 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
15449 - OnMouseDown: Switch to editing mode when clicking on the cell
15450 even if we're clicking on the cell that's currently
15452 - ProcessGridKey: Left/Right now wrap like MS.Net does
15453 - ProcessGridKey: Tab now knows to add a new row when tab is
15454 pressed in the cell of the last column of the
15456 - ProcessGridKey: Enter now adds another row if pressed in the last
15457 row and selectes the new row, same column cell
15458 - ProcessGridKey: Home/End navigate columns, not rows, like
15459 originally implemented
15460 - Broke ProcessKeyPreview code out into an extra Internal method
15461 so it can be called from the edit code
15462 * DataGridTextBox.cs (ProcessKeyMessage):
15463 - Switched to accept Tab keypresses
15464 - Added F2 handling to allow jumping to the end of the edited cell
15465 - Added logic to allow moving caret left/right inside edited cell
15466 and making the edited cell jump when the caret hits cell borders
15467 - Tab and Enter are now passed to the datagrid after being handled
15469 - Removed capture code now that Control handles it
15470 - set_SelectionStart now ensures caret is visible
15472 2006-03-16 Jackson Harper <jackson@ximian.com>
15474 * TrackBar.cs: Debackwards the increment/decrement for handling
15475 mouse clicks on the bar with vertical trackbars.
15476 * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
15477 bottom to match MS.
15479 2006-03-16 Mike Kestner <mkestner@novell.com>
15481 * ListView.cs: make shift/ctrl keyboard and mouse selection
15482 consistent with the MS control. Fix a bug in
15483 SelectedListViewItemCollection.Clear that was pissing me off for the
15484 better part of a day because the collection was being altered
15485 underneath us as we walked the list.
15487 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
15489 * Control.cs: Not sure how we could miss this so long, but it seems
15490 that MS.Net has Capture set all the way from before calling
15491 OnMouseDown through sending the mouse events until after
15492 OnMouseUp. This will fix DataGrid's selection being set to end
15493 at the location of the MouseUp.
15495 2006-03-15 Jackson Harper <jackson@ximian.com>
15497 * BindingContext.cs: Check the binding after its added so that it
15498 can initialize the binding managers and hookup to events.
15499 * Binding.cs: Data members seem to sometimes include rows/cols in
15500 the format Row.Column we now take this into account.
15501 - Hookup to the position changed event so we can update the
15502 control when the position has changed in the data set.
15503 * CurrencyManager.cs: Take into account the row/col naming
15504 convention when creating dataset tables.
15505 * BindingContext.cs: Using a newer better way of storing
15506 datasource/datamember pairs. Hopefully this better matches MS for
15507 looking up binding managers.
15510 2006-03-15 Jackson Harper <jackson@ximian.com>
15512 * BindingContext.cs: The currency manager needs the data member
15513 name, if the member is a data set we use the name to find the
15515 * CurrencyManager.cs: When creating the list prefer an IList over
15517 - Attempt to create a DataTable from a DataSet (TODO: might need
15518 some better error checking here, although MS doesn't seem to have much)
15519 - If we have a DataTable create a view and use it as our list.
15521 2006-03-15 Mike Kestner <mkestner@novell.com>
15523 * ListView.cs: keep a matrix of the icon mode layout to facilitate
15524 keyboard navigation. Support Up/Down/Left/Right selection correctly
15525 for all 4 View modes.
15526 * ListViewItem.cs: add internal row/col fields for icon layouts.
15528 2006-03-15 Jackson Harper <jackson@ximian.com>
15530 * TabControl.cs: Redraw the tabs when we resize so their newly
15531 calculated sizes are drawn on screen.
15532 * X11Keyboard.cs: Begginnings of XIM support. We also now support
15533 composite characters.
15534 * XplatUIX11.cs: Keyboard driver needs to know about focus changes
15535 - filter events so that composite characters can be created
15537 * X11Structs.cs: Add XIMProperties enum.
15539 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
15541 * Control.cs (BringToFront, SendToBack): Don't use window or handle
15542 unless it's created
15544 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
15546 * Control.cs (PerformLayout): We don't need to consider visiblity
15547 for anchoring, only for docking. This fixes 'whacky' alignment
15548 in listbox and other controls that use implicit scrollbars after
15549 the previous PerformLayout patch
15550 * ListBox.cs: Switched to use implicit scrollbars
15552 2006-03-14 Mike Kestner <mkestner@novell.com>
15556 - chain up the "new event" overrides to base and use
15557 OnEvent to raise them. Part of fix for bug #76509.
15559 2006-03-14 Alexander Olk <alex.olk@googlemail.com>
15561 * FileDialog.cs: Do not select an item in the parent directory
15564 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
15566 * Control.cs (PerformLayout): It would seem that we considered
15567 invisible windows for our layout. Not quite the right thing
15568 to do. Now we don't any longer, thereby fixing bug #76889.
15570 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
15572 * Control.cs (CanFocus): I goofed. A control can have focus
15573 even though it's not selectable. Made it match MS docs.
15575 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
15577 * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
15578 center by default (fixes #76895)
15579 * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced
15580 all uses of Border3DSides.All with the explicit ORd together
15581 Left|Right|Top|Bottom because I assume that nobody was aware
15582 that All also implies a center fill. Most places I checked had
15583 a fill right above.
15584 * ProgressBarStyle.cs: Added
15586 2006-03-13 Mike Kestner <mkestner@novell.com>
15588 * ListView.cs: fix breakage in drag shadow header positioning
15589 from Peter's csc compilation fix.
15591 2006-03-13 Mike Kestner <mkestner@novell.com>
15593 * ListView.cs: fix NRE produced by backspacing twice in a focused
15596 2006-03-13 Mike Kestner <mkestner@novell.com>
15598 * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
15600 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
15602 * Hwnd.cs: Added fixed_size field to track windows whose size cannot
15604 * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
15605 the allowed size before making programmatic size changes
15607 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
15609 * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are
15610 set, metacity is broken and will still use the emty sizes in
15611 the struct. (Fix for #77089)
15613 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
15615 * XplatUIStructs.cs: Split WindowStyles into WindowStyles and
15616 WindowExStyles and marked both enums as Flags
15617 * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
15618 NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
15619 to match WindowStyles split
15621 - SetWMStyles: Added cehck to not apply WM attributes to Child windows
15622 - Updated to match WindowStyles split
15624 - Fixed FosterParent creation, was using ExStyle on the Style field
15625 (This should help with Popup focus issues)
15626 - Updated to match WindowStyles split
15628 2006-03-13 Jackson Harper <jackson@ximian.com>
15630 * MdiWindowManager.cs: Use the system menu height. Fixes some
15631 strange sizing issues.
15633 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
15635 * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
15637 - Scroll to caret after inserting text (#77672)
15638 - Make scroll range one pixel higher, fixes off-by-one error (and
15639 makes underlines visible on the last line)
15641 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
15643 * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
15644 the keyboard state from being stuck with keys in 'pressed' state when
15645 focus is switched away via keyboard
15646 * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
15647 reset the keyboard if no X11 KeyUp events are expected to come
15648 * X11Structs.cs: Switched type of Visible to bool to match driver
15650 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
15653 - Switched caret to be just 1 pixel wide, matches MS and looks less
15655 - Moved caret display 1 pixel down from the top of the control
15657 - InsertCharAtCharet: Update the selection start if moving the caret
15658 (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
15659 - No longer always creating the caret when the caret methods are
15660 called. Only the actual ShowCaret/HideCaret will do that now
15661 - Only setting caret visible if the owner control has focus
15662 - UpdateView: Added invalidation-shortcut logic for center and right
15663 aligned text. Previously we'd update all according to the left
15664 logic which caused drawing errors. Also fixed height of invalidated
15665 areas, now properly invalidating the whole area (was off-by-one)
15666 - owner_HandleCreated: Always generate the document when the
15667 handle is created; this ensures that
15669 - Fixed situation where caret would disappear under the right
15670 window border, also improved scrolling behaviour on left-
15672 - Fixed right-aligned textboxes to have a border to the
15673 right instead of the caret being under the right border
15675 - Switched from 'nested' to simple visible/not visible tracking
15676 for caret (part of fix for #77671)
15677 - No longer passing through translated FocusIn/FocusOut messages
15678 since we were notifying too often and the wrong windows. Instead
15679 we just notify our focussed window of receiving or loosing focus
15680 * XplatUIWin32.cs: Switched from 'nested' show/hide
15681 counting for caret to simple visible yes/no behaviour (part of
15684 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
15686 * Mime.cs: Remove debug code...
15688 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
15690 * MimeGenerated.cs: Removed
15691 * Mime.cs: Mime now reads the mime data (magic, globs, aliases
15692 and subclasses) from /usr/(local/)share/mime and
15693 $HOME/.local/share/mime.
15695 2006-03-10 Jackson Harper <jackson@ximian.com>
15697 * MdiWindowManager.cs: Recalc the NC area when a window is
15698 maximized/restored so that the menu area is drawn on forms that
15701 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
15703 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
15704 XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
15705 us to force a WM_NCCALCRESIZE message being sent. This is needed
15706 for MDI maximizing.
15708 2006-03-10 Jackson Harper <jackson@ximian.com>
15710 * Form.cs: We need to use the ActiveMenu when calculating menu
15712 - Fix nullref when the window manager hasn't been created yet.
15713 * Control.cs: Fix nullref when we try to bring a control to the
15714 front that has no parent.
15715 * MdiWindowManager.cs: Use the MaximizedMenu for calculating
15717 - Add a dummy item to the maximized menu so it always has the
15718 correct height. Otherwise when there are no menus we don't get our
15722 2006-03-10 Jackson Harper <jackson@ximian.com>
15724 * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
15726 * Form.cs: Make the window_state internal so the window managers
15728 - When an MDI child is maximized let its window manager create the
15729 main menu (so it can add its icon).
15730 - Notify the window managers of state changes
15731 - Let the window manager paint its buttons and handle button
15732 clicks on the menu when it is maximized.
15733 * InternalWindowManager.cs: Move the prev_bounds into the mdi
15734 window manager, since tool windows don't use it, only mdi windows.
15735 - Tell the main form that we don't want it to handle NCPAINT
15736 itself to avoid extra painting.
15737 - Handle clicks on a maximized windows menu.
15738 - Handle window state changes
15739 - Handle minimize/maximize clicks correctly by setting the window state.
15740 * MdiWindowManager.cs: Add an icon menu that (the menu you get
15741 when clicking on the forms icon).
15742 - New method to create a forms maximized menu. This is its normal
15744 - Handle window state changes.
15745 - Handle sizing of maximized windows. Maximized windows are just
15746 drawn bigger then the parent visible area. All controls are still
15747 there, they are just outside the visible area (this matches windows).
15748 * MdiClient.cs: No scrollbars when a child window is maximized.
15749 - Let the children windows figure out how big they should be when
15750 sizing maximized windows.
15751 - Implement a version of ArrangeIconicWindows somewhat similar to
15752 Windows version. There are some little differences, but I don't
15753 think any app will rely on the layout of minimized mdi windows.
15755 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
15757 * Padding.cs: Several fixes to allow compiling with csc 2.0
15759 2006-03-09 Jackson Harper <jackson@ximian.com>
15762 * MenuItem.cs: Cheap hack so we can add items to the list without
15763 the events being raised. This allows adding mdi items during
15764 drawing. TODO: Should probably find a better time to add the items.
15766 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
15768 * ThemeWin32Classic.cs:
15769 - CheckBox_DrawText: Added logic to not wrap if not enough space
15770 is available (Fix for bug #77727)
15771 - RadioButton_DrawText: Added logic not to wrap if not enough
15772 space is available (Fix for bug #77727). Also removed some
15773 duplicate code, DrawString always drawing the regular text
15774 before hitting the if statement.
15776 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
15778 * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
15780 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
15782 * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
15783 * ContainerControl.cs: Partial implementation of some 2.0 scaling
15784 methods. Moved the new 2.0 properties into alphabetical order with
15785 other properties and added MonoTODO tags
15787 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
15789 * AutoScaleMode.cs: Added. Fix build.
15791 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
15793 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
15794 XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
15795 and was requiring premature handle creation for calls from above
15796 * Form.cs, Control.cs: Removed handle arguments from calls to
15797 CalculateClientRect()
15799 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
15801 * ListView.cs (HeaderMouseMove): Fix csc compilation.
15802 drag_column.column_rect is MarshalByRef and can't be used that way
15804 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
15806 * AxHost.cs: Added deserialization constructor for
15807 AxHost+State (fixes 77743)
15809 2006-03-09 Mike Kestner <mkestner@novell.com>
15812 - Added column drag reordering for details view.
15813 - fixed behavior when mouse is dragged off column and
15814 AllowColumnReorder is false.
15815 * ColumnHeader.cs: clone the format too in Clone.
15816 * Theme.cs: add DrawListViewHeaderDragDetails method.
15817 * ThemeWin32Classic.cs:
15818 - impl new method for drawing drag column shadows and targets.
15819 - support column offset for details mode in DrawListViewItem.
15821 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
15823 * TextControl.cs: Reset the char_count when the document is cleared
15824 (Fixes bug reported on mono-winforms mailing list)
15826 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
15828 * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
15829 of calling base we simply process the key ourselves, since both
15830 DefWindowProc and the handled method would set m.Result.
15833 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
15835 * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
15836 method also moves the window; instead implemented a copy of
15837 Control.ScaleCore (Part of fix for #77456)
15839 - Created new CreateGraphicsInternal method to allow providing
15840 a graphics context when no handle is created without triggering
15841 handle creation. (Part of fix for #77456)
15842 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
15844 - Switched Constructor to require TextBoxBase instead of Control (to
15845 allow uncast access to CreateGraphicsInternal)
15846 - Safeguarded use of owner.Handle property. No longer accessing it
15847 unless the handle is already created.
15848 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
15849 - Now triggering a recalc when owning control becomes visible
15850 * TextBox.cs, RichTextBox.cs: Switched to use new internal
15851 TextBoxBase.CreateGraphicsInternal() method to avoid triggering
15852 premature handle creation (Part of fix for #77456)
15854 - We now only destroy our double-buffering buffers when the
15855 control is resized or disposed, but not when visibility
15856 changes. (The code even re-created them twice every time)
15857 - Now requiring a redraw of the buffer on visibility changes
15858 (fixes bug 77654 part 2)
15859 - Not passing OnParentVisibleChanged up unless the control
15861 - CanFocus: Fixed to match MS documentation
15862 - Focus: Fixed to return actual focus state and to check if
15863 setting focus is legal before setting it
15865 2006-03-08 Peter Dennis Bartok <pbartok@novell.com>
15867 * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
15868 when to draw focus rectangle by looking at parent focus and
15869 selected state instead. This fixes TabPages on Linux sometimes
15870 having none or multiple focus rectangles.
15871 * XplatUIX11.cs (SetFocus):
15872 - Don't set the focus if the same window already has focus
15873 - Use SendMessage instead of PostMessage (like it's Win32
15874 equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
15875 to match MS behaviour
15876 * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
15877 are not selectable.
15879 2006-03-07 Jackson Harper <jackson@ximian.com>
15881 * PictureBox.cs: Revert line I accidently committed last week.
15883 2006-03-07 Peter Dennis Bartok <pbartok@novell.com>
15886 - Added new IsRecreating and ParentIsRecreating properties to
15887 allow testing if RecreateHandle has been called on ourselves
15888 or one of our parents
15889 - WndProc(WM_DESTROY): If our control handle is being recreated
15890 we immediately need to create the handle when receiving the
15891 destroy, that way our child windows find a valid parent handle
15892 when they themselves are being recreated upon WM_DESTROY receipt
15893 (fix for bug #77654 part 1)
15895 - DestroyWindow: WM_DESTROY must be sent to our own window before
15896 notifying any child windows. MS documents that child windows
15897 are still valid when WM_DESTROY is received. (Control now relies on
15899 - Added some fine-grain debug options
15901 2006-03-06 Jackson Harper <jackson@ximian.com>
15903 * MdiClient.cs: Redid scrolling logic a bit to create a virtual
15904 box and base calculations off this.
15905 * MdiChildContext.cs:
15906 * MdiWindowManager.cs: Don't need to ensure scrollbars here
15909 2006-03-06 Peter Dennis Bartok <pbartok@novell.com>
15911 * Splitter.cs: In situations where the affected control is added
15912 to the parent's control list after the splitter, we would not
15913 populate affected. Now we try populating it on mousedown, if
15914 it's not already set, and force it to be re-set whenever our
15917 2006-03-03 Matt Hargett <matt@use.net>
15919 * Control.cs: implement Control.Padding
15920 * Padding.cs: -Padding.All returns -1 when constructing with the
15921 implicit default ctor
15922 -Padding.ToString() matches MS.NET
15923 * ContainerControl.cs: implement
15924 ContainerControl.AutoScaleDimensions
15925 * ListControl.cs: implement ListControl.FormattingEnabled
15926 * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
15928 * TabPage.cs: Implement UseVisualStyleBackColor.
15929 * PictureBox.cs: Implement PictureBox.InitialImage.
15931 2006-03-03 Mike Kestner <mkestner@novell.com>
15933 * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
15934 event declarations to proxy to base event.
15935 * ListViewItem.cs: update to use ItemControl.
15936 * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
15937 * ThemeWin32Classic.cs: update to new ListView theme API and fix
15938 column header label rendering for 0 width columns.
15940 2006-03-03 Peter Dennis Bartok <pbartok@novell.com>
15942 * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
15943 that causes the control to be created. Fixes #77476.
15945 2006-03-02 Jackson Harper <jackson@ximian.com>
15947 * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
15950 2006-03-02 Peter Dennis Bartok <pbartok@novell.com>
15952 * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
15953 passed in for the EventArgs (fixes #77690)
15955 2006-03-01 Jackson Harper <jackson@ximian.com>
15957 * ScrollBar.cs: Refresh afterbeing resized.
15959 2006-02-28 Mike Kestner <mkestner@novell.com>
15961 * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
15962 Clean up a tracker compile warning.
15963 * MenuItem.cs: add internal PerformPopup method.
15966 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
15968 * TextBoxBase.cs (set_Text): Recalculate the document (causing an
15969 implicit expose) when the text is set to null
15971 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
15973 * RichTextBox.cs (FlushText): When newline is true, we always
15974 need to split the line, even if no text is on it and we may
15975 never eat newlines. (Fixes #77669)
15977 2006-02-28 Mike Kestner <mkestner@novell.com>
15979 * ListView.cs: Add UpdateSelection internal method. Remove SelectItem
15980 and set Selected instead.
15981 * ListViewItem.cs: Call owner.UpdateSelection to manipulate the
15984 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
15986 * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
15988 2006-02-28 Alexander Olk <alex.olk@googlemail.com>
15991 - Got rid of the panel. All controls are now directly added to
15993 - It is now possible to set a font with the Font property
15994 - MinSize and MaxSize property do now what they should
15995 - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
15996 - Searching and selecting a font with the font textbox works now,
15997 the same applies to the style and size textbox
15998 - Draw the correct 3D border in the example panel
15999 - Fixed a little mem leak (unused fonts didn't get disposed)
16000 - Many other internal updates/rewrites...
16003 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
16006 - InsertRTFFromStream: Added 'number of characters inserted' argument
16007 - set_SelectedRTF: Now using the number of characters to calculate
16008 the new location for the selection and cursor (x/y cannot be used
16009 due to potentially already wrapped text)
16011 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
16013 * TextControl.cs: Added property and implemented means to allow
16014 disabling recalculation of a document (can be used to speed up
16015 multiple inserts and is needed to make RTF inserts predictable, see
16017 * RichTextBox.cs: Using the new NoRecalc property of Document to
16018 keep x/y insert locations predictable. Also makes it faster inserting
16019 large chunks of RTF
16021 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
16023 * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
16024 it's easier for a child control to handle the other messages without
16025 having to duplicate the special functionality
16027 - WndProc: Removed calling base handler for WM_KEYDOWN and added
16028 code to handle processing the key ourselves, in order to get
16029 access to the result of KeyEventArgs.Handled. We now only call
16030 ProcessKey if they key hasn't been handled already. Fixes #77526.
16031 - set_Text: If null or empty string is given, just clear the
16032 document. Fixes part of #77526
16034 2006-02-27 Jackson Harper <jackson@ximian.com>
16036 * SizeGrip.cs: Paint the background color before painting the grip
16037 so things look right.
16038 * MdiClient.cs: Add the sizegrip when both scrollbars are used.
16040 2006-02-27 Mike Kestner <mkestner@novell.com>
16043 - Restructure layout and invalidation model to remove a ton of
16044 flicker from the control and speed up performance in general.
16045 - Add manual column resize, flickers like crazy, but I already have
16046 some ideas on how I'll fix that. (#76822)
16047 - Merge the three Icon-based views into a single layout method.
16048 - Move item selection interaction logic from the item since
16049 interaction with the collections is more appropriate to the view.
16050 - Deselection on non-item clicks.
16052 - Encapsulate most of the layout. Add some internal props to trigger
16053 layout. Move to a model where Items invalidate themselves instead
16054 of just invalidating the whole control every time something changes.
16055 - Invalidate on Text/Caption changes.
16056 - switch to an offset based layout model to avoid having to absolute
16057 position every element on item moves.
16058 - correct checkbox layout to conform to MS layout.
16059 * ThemeWin32Classic.cs:
16060 - refactor some column header drawing code.
16061 - fix string justification for column headers (#76821)
16062 - make SmallIcon labels top justified for compat with MS impl.
16063 * ThemeClearlooks.cs:
16064 - adjust to new ListViewItem internal checkbox bounds api.
16066 2006-02-27 Jackson Harper <jackson@ximian.com>
16068 * Control.cs: Change where implicit controls fall in the zorder.
16069 They are now on top of all children.
16070 - Synced AddImplicit code with Add
16071 - Removed unused enumerator.
16072 * SizeGrip.cs: Remove the TODO as its been TODONE.
16074 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
16076 * TextControl.cs(Insert): Combine the last lines unless the insertion
16077 string ends with \n\n, otherwise we leave one line too many (Fixes
16078 something I noticed with the testapp for #77526; the bug itself was
16079 already fixed in the previous checkin)
16081 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
16084 - SelectionColor and SelectionFont methods no longer set absolute
16085 styles. Instead, the keep font or color respectively (This
16086 resolves a long-standing FIXME in the code)
16087 - When flushing RTF text, the insert code now considers text trailing
16088 behind the insertion point (Fixes the bug where when replacing
16089 the selected text via SelectedRTF the remainder of the line behind
16090 the selection would stay on the first insertion line)
16092 - AppendText now updates the selection points after inserting text
16093 - AppendText now ensures that the last tag (sometimes 0-length) of
16094 the document is used for the style information (Fixes part of
16097 - Created new FontDefiniton class to allow describing partial style
16099 - StreamLine() now takes a lines argument, to allow it to decide
16100 whether an encountered zero-length tag is the last in the document
16101 (which must be kept to not loose the font/color contained in it,
16103 - Created Combine() and Split() methods for Marker structs, to
16104 support marker updates due to reformatted documents (soft line
16106 - Implemented Document.CaretTag setter
16107 - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
16108 of the last line (Not the cause, but also exposed by bug #77220)
16109 - Added LineTag argument to InsertString method, to allow callers
16110 to force a certain tag to be used (required to force use of the
16111 trailing zero-length tag of a document)
16112 - Now updating markers in Combine(), to avoid stale tag markers
16113 - Added some method descriptions to aid maintenance
16114 - Implemented new FormatText concept, allowing additive/subtractive
16115 formatting by only specifying the components that are to be
16116 changed. This was needed for resolving the RTB.SelectedColor/
16117 RTB.SelectedFont fixmes
16118 - Added Break() support method to allow breaking up linetags (used
16119 for partial formatting)
16120 - Added GenerateTextFormat() method. It is used for partial
16121 formatting and allows to generate a full font/color from given
16122 attributes and an existing tag.
16124 2006-02-26 Jackson Harper <jackson@ximian.com>
16126 * XplatUIX11.cs: Use the correct caption height.
16127 - Translate hittest coordinates to screen coords to match MS.
16128 * XplatUIWin32.cs: When we create MDI windows we need to reset
16129 some of the style flags, so we get a nice blank window, and can
16130 draw all the decorations ourselves.
16131 - Set a clipping rectangle on the non client paint event, the
16132 window manager drawing code needs one.
16133 * Form.cs: The window manager needs to know when the window state
16135 * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
16136 don't need to factor in border and title sizes in these
16137 methods. TODO: Remove the args and fix the call points.
16138 * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
16140 - Let the driver set the cursors.
16141 - Improve active window handling
16142 - Correct sizes for title bars and buttons.
16143 - Match MS drawing better
16144 * MdiWindowManager.cs: We don't need to handle border style
16145 updates specially anymore.
16146 - Check for scrollbars when windows are done moving
16147 - Handle Active properly.
16148 * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
16149 correctly. I am spewing the exception though, so we don't hide the
16152 2006-02-26 Pedro Martinez Julia <pedromj@gmail.com>
16154 * DataGridViewRowPostPaintEventArgs.cs,
16155 DataGridViewCellPaintingEventArgs.cs,
16156 DataGridViewRowCollection.cs,
16157 DataGridViewRowPrePaintEventArgs.cs,
16158 DataGridViewCell.cs: Clear a few warnings and implement a few
16159 exceptions that should be thrown.
16161 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
16163 * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
16164 'inheriting' our parent's (non-default) cursor. (Part of
16165 the fix for #77479)
16167 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
16169 * XplatUIX11.cs: Fixed cast to make csc happy
16171 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
16173 * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
16174 it's for the client area (part of fix for #77479 and needed
16175 for MDI window cursor handling)
16177 - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
16178 the appropriate default cursors and also passing the message
16179 up the parent chain
16180 - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
16181 for non-client areas
16183 2006-02-15 Jackson Harper <jackson@ximian.com>
16185 * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
16186 is a real MDI window
16188 2006-02-14 Alexander Olk <alex.olk@googlemail.com>
16190 * X11DesktopColors.cs: Instead of checking the desktop session
16191 string for "KDE" check if it starts with "KDE"
16193 2006-02-10 Jackson Harper <jackson@ximian.com>
16195 * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
16198 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
16200 * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
16203 - Got rid of the panel. All controls are now directly added to
16205 - Changed to mono coding style
16207 2006-02-10 Jackson Harper <jackson@ximian.com>
16209 * InternalWindowManager.cs: We don't need the set visibility to
16210 false hack anymore now that peter has written beautiful shutdown
16213 2006-02-10 Peter Dennis Bartok <pbartok@novell.com>
16215 * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
16216 where already explicitly destroyed
16218 2006-02-10 Jackson Harper <jackson@ximian.com>
16220 * MdiClient.cs: Handle the case where windows are too high or to
16221 the left and we need scrollbars.
16223 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
16225 * MimeIcon.cs: Added some icons
16228 - Got rid of the panel. All controls are now directly added to
16230 - Changed to mono coding style
16231 - On Linux "My Computer" and "My Network" will now show some
16232 more usefull information. A new class, MasterMount, gathers
16233 this information from /proc/mount. Updated MWFFileView to make
16234 use of this information
16235 - Fixed a bug that caused FileDialog to crash when
16236 ".recently_used" file had a zero size
16237 - FilterIndex does now what it should
16239 * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
16242 2006-02-09 Jackson Harper <jackson@ximian.com>
16244 * ComboBox.cs: Don't touch if null.
16246 2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
16248 * Cursor.cs: 64bit safeness fix
16249 * XplatUIX11.cs: Removed several unneeded and one moronic cast.
16251 2006-02-09 Jackson Harper <jackson@ximian.com>
16253 * Form.cs: If a form is made into an MDI form update the styles so
16254 all the props can get set correctly.
16255 - Kill the mdi_container when we dont need it anymore.
16256 * InternalWindowManager.cs: Add missing NOT
16258 2006-02-08 Jackson Harper <jackson@ximian.com>
16260 * InternalWindowManager.cs: Respek clipping when drawing MDi
16263 2006-02-08 Jackson Harper <jackson@ximian.com>
16265 * Hwnd.cs: Add bits to track non client expose events.
16266 * XplatUIX11.cs: Track non client expose events on the hwnd. This
16267 gives us a proper invalid rect and will allow for some nice
16268 optimizations with NC client drawing
16269 - MDI windows are children windows, so move their style handling
16270 into the child window block.
16271 * InternalWindowManager.cs: Remove a state reset that was
16272 getting invoked at the wrong time. Fixes managed windows getting
16273 into a 'stuck' captured state.
16275 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
16277 * TextControl.cs (Document.ctor): Now initializing
16278 selection_anchor. Fixes #77493
16280 2006-02-07 Jackson Harper <jackson@ximian.com>
16282 * TrackBar.cs: The increment/decrements were backwards.
16284 2006-02-07 Mike Kestner <mkestner@novell.com>
16286 * Theme*.cs : remove ThemeEngine.Current usage as it just points back
16287 to the instance itself.
16289 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
16291 * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
16292 on ulongs and pointers, the size differs between 32bit and 64bit
16295 2006-02-07 Mike Kestner <mkestner@novell.com>
16297 * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
16298 for 64 bit platforms to work around a metacity bug.
16300 2006-02-07 Jackson Harper <jackson@ximian.com>
16302 * TrackBar.cs: Process the input keys we need, and hookup to
16303 KeyDown instead of using WndProc, so we get key messages.
16305 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
16307 * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
16309 * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
16310 we need to translate the XdndVersion atoms array before sending it
16312 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
16315 - The preceeding 64bit fixes had a bug: ChangeProperty expects the
16316 number of bits for the property, not the number of bytes. The
16317 change to provide IntPtr.Size broke 32bit. (64bit was also wrong
16318 but would not crash since it specified 8 bits instead of 4 bits)
16319 - More 64bit fixes: Switched all atoms from int to IntPtr (they are
16320 defined as XID -> long in the C headers)
16321 - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms
16322 references since those are now IntPtr to begin with
16323 - Switched all Atom.XXX 'int' casts to IntPtr casts
16324 - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
16325 - Fixed XInternAtom signature for 64bit, now returns an IntPtr
16326 - Added XChangeActivePointerGrab DllImport (for X11DnD)
16328 - Changed 'int' type for Atoms in XEvent structures to IntPtr
16329 - Changed atom in HoverStruct to be IntPtr
16331 - Removed local DllImports, switched code to use those from XplatUIX11
16332 - Removed/fixed casts related to the switch of Atom to be a IntPtr
16334 2006-02-06 Mike Kestner <mkestner@novell.com>
16336 * XplatUIX11.cs : many more 64 bit pinvoke changes. I've audited all the
16337 method signatures in the import region. There may still be some
16338 lingering struct marshaling issues, as I didn't drill down into those.
16341 2006-02-06 Jackson Harper <jackson@ximian.com>
16343 * ComboBox.cs: Dont manually set the top_item, this is computed
16344 when the scrollbar position is set.
16346 2006-02-06 Mike Kestner <mkestner@novell.com>
16348 * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
16349 startup crashes on amd64. There's other fixes needed. All pinvoke
16350 usage of Atom needs to be mapped to IntPtr for example. And there are
16351 likely other int/long issues to be addressed.
16353 2006-02-04 Alexander Olk <alex.olk@googlemail.com>
16355 * FileDialog.cs: One more...
16357 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
16359 * FileDialog.cs: Next try
16361 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
16363 * FileDialog.cs: First part of fix for #77464
16365 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
16367 * ButtonBase.cs, ContainerControl.cs, Forms.cs,
16368 ThemeWin32Classic.cs: Fix for #77458. Correct handling of
16369 AcceptButton border drawing.
16371 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
16373 * Form.cs: Moved positioning of form after auto scaling is applied,
16374 otherwise it would possibly use wrong form size.
16376 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
16378 * Control.cs (RecreateHandle): No need to re-create any child
16379 controls, the child windows will get destroyed automatically by
16380 the windowing system or driver, and re-created when the handle
16381 is being accessed the first time. Fixes #77456
16382 * Form.cs: No longer setting the form to closing if the handle is
16383 being recreated. This seems like the right thing to do, don't
16384 have a bug or testcase for this, though.
16386 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
16388 * FileDialog.cs: Suspend/Resume layouting when changing sizes of
16389 controls to avoid unwanted side effects
16391 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
16394 - ScaleCore needs to scale the bounds, not the ClientSize of the
16395 control. Fixes #77416.
16396 - DefaultSize is 0,0 for control
16398 - DefaultSize is 100, 20
16399 - SetBoundsCore: Now enforcing the height, no matter if the provided
16400 height is more or less than the preferred one, as long as AutoSize
16402 * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
16404 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
16407 - ResumeLayout: Fixed logic when to call PerformLayout, we may not
16408 call unless both performLayout is true *and* we have a pending
16410 - ResumeLayout: MS does not completely nest Suspend and Resume,
16411 they bottom out at 0, fixed our code to match that.
16412 - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
16413 SetBoundsCore, we were updating even when we shouldn't. This fixes
16414 swf-anchors mis-anchoring when resizing the app fast and lots.
16415 - UpdateDistances: Now only setting the left and top distance if
16416 we have a parent and are not suspended, this is based on
16417 a suggestion by Don Edvaldson in bug #77355.
16418 - OnVisibleChanged: Fixed logic when to create the control. We may
16419 not create the control if we have no parent or if it's not visible;
16420 switched to using Visible property instead of is_visible field
16421 since the property also considers parent states. This fixes a bug
16422 when starting Paint.Net
16424 2006-02-02 Jackson Harper <jackson@ximian.com>
16426 * Form.cs: If the forms handle hasn't been created yet don't call
16427 into xplatui to make it top most, just set the topmost flag on the
16428 form in CreateParams
16429 * XplatUIX11.cs: Handle WS_EX_TOPMOST.
16431 2006-02-01 Jackson Harper <jackson@ximian.com>
16433 * ScrollableControl.cs: Refactored the Recalculate method a
16434 little, this wasn't handling all the variants of bottom and right
16435 bars needed to be added and added/removed based on their
16436 counterparts being added/removed (which changes the drawable
16437 size). Also we special case client widths and heights of 0 and
16438 don't add the scrollbar for those.
16440 2006-02-01 Peter Dennis Bartok <pbartok@novell.com>
16443 - Added method to get AbsoluteGeometry(); currently unused, but might
16444 be used in the future, if we try again to figure out toplevel
16445 coordinates with some more crappy window managers
16446 - Added FrameExtents() method to retrieve the WM set decoration size
16447 - Tried to fix up AddConfigureNotify and handling of ReparentNotify
16448 to deal with at least KDE, FVWM and metacity (Fixes #77092)
16450 - Added whacky_wm tracking var for metacity
16451 - Added logic to have default menu height if the actual menu height
16452 has not yet been calculated (part of fix for #77426)
16453 * Form.cs: Keep track whether client size has been set and re-set
16454 it if a menu is added/removed afterwards (Fixes #77426)
16456 2006-01-31 Jackson Harper <jackson@ximian.com>
16458 * Control.cs: When a new Site is set on the component attempt to
16459 pull the AmbientProperties from it.
16461 2006-01-31 Peter Dennis Bartok <pbartok@novell.com>
16463 * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
16464 in the background of the owning form. Fixes #77332
16466 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
16468 * MimeIcon.cs: Fix for #77409
16470 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
16472 * XplatUIX11GTK.cs: Initial import
16474 2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
16476 * FixedSizeTextBox: fixes class signature
16478 2006-01-30 Jackson Harper <jackson@ximian.com>
16480 * FixedSizeTextBox.cs: New internal class that represents a
16481 textBox that will not be scaled.
16484 * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
16487 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
16489 * XplatUIX11.cs: Retrieve default screen number instead of
16490 assuming 0. Attempted fix for #77318
16492 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
16495 - GetWindowPos: When a window is parented by FosterParent, use
16496 the desktop instead of FosterParent as the base to get coordinates
16497 - CreateWindow: Don't make FosterParent the parent window for Popups
16498 if we don't want a taskbar entry, Popups automatically don't get one
16499 * Hwnd.cs: Need to call remove to actually remove the key from the
16502 2006-01-30 Mike Kestner <mkestner@novell.com>
16504 * MenuAPI.cs: adjust MainMenu item popup location to y=0.
16506 2006-01-30 Jackson Harper <jackson@ximian.com>
16509 * TreeNode.cs: Raise events no matter how the treenode is
16510 checked. Patch by Don Edvalson.
16512 2006-01-30 Jackson Harper <jackson@ximian.com>
16514 * TreeNode.cs: Signature fix.
16516 2006-01-29 Alexander Olk <alex.olk@googlemail.com>
16518 * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
16520 2006-01-20 Mike Kestner <mkestner@novell.com>
16522 * Form.cs: Add ActiveTracker property to do Captures and perform mouse
16523 event forwarding when menus are active.
16524 * MenuAPI.cs: kill the GrabControl hack. Use Form.ActiveTracker.
16525 Most of the patch is pdb's with a little rework.
16527 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
16529 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs:
16530 Removed GetMenuDC and ReleaseMenuDC methods; replaced
16531 by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
16532 * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
16533 * InternalWindowManager.cs: Added use of PaintEventStart/End to
16534 handling of WM_NCPAINT message, now passing the PaintEventArgs to
16535 the PaintWindowDecorations method
16536 * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
16537 * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
16538 * MenuAPI.cs: Made tracker window invisible
16540 - Removed GetMenuDC and ReleaseMenuDC methods
16541 - Implemented the client=false path for PaintEventStart and
16544 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
16546 * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
16547 * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
16550 - MaximizeBox, MinimizeBox: Recreate the handle when setting
16552 - CreateParams: Reworked the styles to match MS look'n'feel,
16553 removed automatic setting of MinimizeBox, MaximizeBox, etc. via
16554 the WS_OVERLAPPEDWINDOW style. This fixes #76823.
16556 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
16558 * XplatUIX11.cs(GetWindowState): Now throwing an exception when the
16559 window is not mapped, since otherwise every form that's being
16560 created is considered minimized, which is wrong.
16561 * Form.cs: Catching the exception and returning our internal value
16564 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
16566 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
16567 SetWindowMinMax() to have means to tell the driver about the minimum,
16568 maximum and maximized state window sizes. (Part of the fix for #76485)
16570 - Implemented tracking of minimum and maximum window size, now calling
16571 new SetWindowMinMax() driver method to tell the driver (Part of the
16573 - Finished handling of WM_GETMINMAXINFO method, now setting all values
16574 (Completes fix for #76485)
16575 - Calling new SetWindowMinMax driver method when the handle for a
16576 form is created, to make sure the driver knows about it even if
16577 the values have been set before the window was created
16578 - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
16579 to avoid messing up our anchoring calculations (partial fix
16581 * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
16583 - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
16584 - Improved GetWindowState() to detect 'Minimized' state on Metacity
16585 (and presumably other freedesktop.org compliant WMs). Left the
16586 assumption unmapped=minimized, needed for SetVisible to work.
16587 - Now setting the window state when creating windows
16588 - Fixed SetVisible to consider/set the window state when mapping
16589 a Form. We cannot set the state before it's mapped, and we cannot
16590 use Form.WindowState once it's mapped (since it would ask the
16591 driver and get 'normal'. Therefore, we grab the state before
16592 mapping, map, and then set state.
16593 - Implmemented SetWindowMinMax method; Metacity does not seem to
16594 honor the ZoomHints, though.
16596 - Removed MINMAXINFO (moved to XplatUIStructs)
16597 - Added SetWindowMinMax stub (on Win32 the only way to set that
16598 information is in response to the WM_GETMINMAXINFO message, which
16599 is handled in Form.cs)
16600 - Added logic to SetVisible to set the proper window state when a
16601 form is made visible (fixes #75720)
16603 2006-01-26 Jackson Harper <jackson@ximian.com>
16605 * Control.cs (BeginInvoke): Automagically handle EventHandlers the
16606 same way we handle them with Invoke.
16608 2006-01-25 Peter Dennis Bartok <pbartok@novell.com>
16611 - Added tracking of window state so CreateParams can return
16612 the appropriate style
16613 - Moved setting of WS_CAPTION style in CreateParams to allow
16614 styles without caption
16615 * DataGridTextBoxColumn.cs: We are now also creating the TextBox
16616 control if the TextBox property is accessed. Fixes #77345
16618 - get_Created: now uses is_disposed and is_created to determine
16619 return value (suggested by Jackson)
16620 - CreateHandle: No longer exits if the handle is being recreated
16621 - RecreateHandle: If the handle is not yet created call the
16622 appropriate method to create either control or handle. If the
16623 control is already created CreateHandle will simply exit instead
16624 of just creating the handle
16625 * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
16626 now SendMessage WM_DESTROY directly to the control when DestroyWindow
16629 - When DestroyWindow is called, instead of waiting for the
16630 DestroyNotification from X11, we directly post it to the WndProc
16631 and immediately dispose the hwnd object.
16632 Same applies to DestroyChildWindows, and this obsoletes the
16633 expose_pending tracking. Contrary to Win32 behaviour we destroy our
16634 child windows before our own, to avoid X11 errors.
16635 - Removed the direct sending of WM_PAINT on UpdateWindow
16637 - Reworked DoEvents and GetMessage to allow access to internal queue
16638 even when trying non-blocking access to the queue. Fixes #77335.
16639 Based on a patch suggestion by Don Edvalson. The new private
16640 GetMessage can now also be used as a backend for a PeekMessage
16642 * XplatUI.cs: Improved debug output for CreateWindow
16644 2006-01-25 Jackson Harper <jackson@ximian.com>
16646 * Help.cs: Allow param to be null. Patch by Don Edvalson.
16648 2006-01-24 Jackson Harper <jackson@ximian.com>
16650 * ComboBox.cs: Clamp the max value set for the vertical scrollbar
16651 when we have a MaxDropItems lower then the selected index.
16653 2006-01-24 Jackson Harper <jackson@ximian.com>
16655 * Control.cs: Don't allow selection of non visible controls, allow
16656 selection of controls without parents.
16658 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
16660 * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
16661 * DataGridDrawingLogic.cs: Add editing row only when is necessary
16663 2006-01-23 Jackson Harper <jackson@ximian.com>
16665 * UpDownBase.cs: Make the textbox handle all the selection and
16666 tabbing. This fixes tabing to updown controls.
16668 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
16670 * TextBoxBase.cs: fixes exception thown the object was null
16672 2006-01-23 Jackson Harper <jackson@ximian.com>
16674 * ButtonBase.cs: Just use the base CreateParams. They set
16675 visibility and enabled correctly.
16678 * MonthCalendar.cs: Lets let the base set as much of the
16679 createparams as possible so we don't have duplicate code all over
16682 2006-01-22 Alexander Olk <alex.olk@googlemail.com>
16684 * ThemeGtk.cs: Added TrackBar and some experimental code to
16685 get double buffering back
16687 2006-01-21 Jordi Mas i Hernandez <jordimash@gmail.com>
16689 * DataGrid.cs: Allows row number set internally higher than the last
16690 when creating a new row. Restores the editing functionality.
16692 2006-01-20 Mike Kestner <mkestner@novell.com>
16694 * MimeIcon.cs: delay Image creation until the icons are accessed
16695 instead of creating 190 scaled images on GnomeHandler startup.
16697 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
16699 * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
16700 first call base before processing the event. Fixes #77279
16702 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
16704 * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
16705 that the stride for the GDI bitmap would match the stride of
16708 2006-01-19 Alexander Olk <alex.olk@googlemail.com>
16710 * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
16712 2006-01-19 Jackson Harper <jackson@ximian.com>
16714 * ComboBox.cs: Hookup the text controls keydown event so we get
16715 those when the text control has the focus.
16717 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
16719 * Label.cs: Now using the base events instead of defining new ones;
16720 this allows us to just call the base properties without having to
16721 duplicate all base property logic
16723 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
16725 * Label.cs: A label by default is not a tabstop (Fixes one of our
16726 failing nunit tests)
16728 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
16730 * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
16731 * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
16733 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
16735 * Cursor.cs: Reimplemented creating cursor bitmaps without using
16736 the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
16739 - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream)
16740 constructor creates images that can't be saved. Part of the fix
16742 - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
16743 - SetWindowState: Switched ShowWindow flags (part of an upcoming
16744 bug fix for handling window state in forms properly)
16746 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
16748 * ThemeGtk.cs: Simplify ScrollBar drawing
16750 2006-01-18 Jackson Harper <jackson@ximian.com>
16752 * Splitter.cs: Set the default dock style for the splitter control
16753 in the constructor.
16755 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
16757 * ThemeGtk.cs: Corrected StateType and ShadowType for
16760 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
16762 * Control.cs: Make use of Theme.DoubleBufferingSupported
16764 - Added drawing for flat style buttons
16765 - Added ScrollBar drawing
16767 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
16769 * ThemeClearlooks.cs: Removed some unneeded code.
16770 * ThemeGtk.cs: First part of ThemeGtk enhancements.
16772 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
16774 * LinkLabel.cs: We need to update the hover drawing when
16775 leaving the control as well.
16777 2006-01-18 Jordi Mas i Hernandez <jordimash@gmail.com>
16779 * DataGrid.cs: Clicking on non empty areas in the columns
16780 area was giving an exception
16782 2006-01-17 Jackson Harper <jackson@ximian.com>
16784 * ThemeWin32Classic.cs:
16785 * ListView.cs: Do not draw/clip the headers when the header style
16788 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
16790 * DataGrid.cs: Fixes 77260
16792 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
16794 * DataGrid.cs: Clicking on a column on a empty grid was giving
16797 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
16799 * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
16800 or any keypress will crash the grid.
16802 2006-01-17 Mike Kestner <mkestner@novell.com>
16804 * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
16805 * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for
16806 invisible/previously-visible items.
16809 2006-01-17 Alexander Olk <alex.olk@googlemail.com>
16811 * ThemeClearlooks.cs:
16812 - Added CL_Draw_Button method; now other theme controls that are
16813 not derived from button or do not have a button can draw buttons
16815 - Updated ComboBox drawing
16816 - Beautified RadioButton drawing
16817 - Corrected drawing of bottom and left tabs
16818 - Beautified DateTimePicker and MonthCalendar
16819 - Added CPDrawButton and CPDrawRadioButton
16821 2006-01-16 Jackson Harper <jackson@ximian.com>
16823 * ComboBox.cs: Set the initial value of the scrollbar to the
16824 current index. Reduce the numbers of refreshs and IndexOfs called.
16826 2006-01-14 Alexander Olk <alex.olk@googlemail.com>
16828 * FileDialog.cs: When the file listview is focused hitting the
16829 backspace key moves the fileview to the parent directory
16831 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
16834 - Added RecreateHandle call when changing taskbar visibility to
16835 trigger reparenting in Win32 driver (Fixes #75719)
16836 - If a window has minimize or maximize buttons, it cannot have
16839 - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
16840 the toplevel form with FosterParent (A toolwindow not on the
16841 taskbar) (Fixes #75719)
16842 - Made FosterParent a toolwindow
16844 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
16846 * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
16848 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
16850 * ToolTip.cs: If SetToolTip is called from a control and the mouse
16851 is currently over that control, make sure that tooltip_window.Text
16854 2006-01-13 Mike Kestner <mkestner@novell.com>
16856 * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
16858 2006-01-13 Jackson Harper <jackson@ximian.com>
16860 * TreeView.cs: On MS GetNodeAt never actually factors in the X
16861 value passed. Also redraw the selected node when we recieve
16862 focus, so tabbing between trees works correctly.
16864 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
16866 * MimeIcon.cs: GnomeHandler: older gnome versions don't have
16867 ~/.gconf/%gconf-tree.xml, so use
16868 .gconf/desktop/gnome/interface/%gconf.xml
16870 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
16872 * TextControl.cs: Draw text in gray if control is disabled
16874 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
16876 * TreeView.cs: Draw the focus rectangle outside the highlight, to
16877 make sure it's always visible. Fixes #76680.
16879 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
16881 * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
16883 2006-01-13 Jonathan Chambers <jonathan.chambers@ansys.com>
16885 * PageSetupDialog.cs: Added.
16886 * PrintDialog.cs: Attributes.
16887 * PrintPreviewControl.cs: Updates.
16888 * PrintPreviewDialog.cs: Updates.
16890 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
16892 * Control.cs: Undid my selection check fix, since it's not needed
16894 - Now considering the presence of hscroll/vscroll when sizing
16895 vscroll/hscroll respectively. Fixed bug #77077
16896 - Added Left/Up/Down/Right to IsInputKey list to prevent
16897 ContainerControl from stealing them. This fixes what I broke
16898 with my last checkin.
16900 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
16902 * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
16903 I finally understand how the property can be set without a setter :-)
16905 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
16908 - Switched RunLoop to use static Message.Create to create a
16910 - Added PreProcessMessage call in runloop for keyboard events; this
16911 is part of the fix for #77219, I overlooked this originally in the
16912 MSDN doc for PreProcessMessage
16914 - Removed call to PreProcessMessage from handling of keyboard
16915 messages; it's supposed to be done in the message pump
16916 - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
16917 per MSDN documentation.
16918 - IsInputChar: All chars are input chars by default; removed the
16919 parent calling chain, MS does not document that
16920 - PreProcessMessage: If IsInputChar is true, we want to return false
16921 to allow dispatching of the message
16922 - When selecting the next control, now also check that we're not
16923 selecting ourselves again and therefore return a false positive.
16925 - Tried to match return values for IsInputKey and ProcessDialogKey
16926 to what MS returns; moved processing of our special keys outside
16927 ProcessDialogKey since MS does not seem to return true on those.
16928 - Moved code that previously was in ProcessDialogKey into new private
16929 ProcessKey method, which gets called upon receipt of WM_KEYDOWN
16930 - Reworked handling of WM_CHAR to not have to duplicate code from
16931 Control.cs anymore, instead we simply call down to base.
16933 2006-01-12 Jackson Harper <jackson@ximian.com>
16935 * ComboBox.cs: We always need to refresh the text area when
16936 EndUpdate is called. Fixes the combobox in the file dialog.
16937 * Control.cs: Don't create the creator_thread until the controls
16938 handle is created. Also in InvokeRequired we check if the
16939 creator_thread is null. This gives the effect of InvokeRequired
16940 returning true if the controls handle is not created yet, and
16943 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
16946 - Added StartLoop() driver method. This is used to allow drivers to
16947 prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
16948 loop for a particular thread
16949 - Added EndLoop() driver method. This is called once the message
16950 pump for the thread is shut down
16951 - Added SupportsTransparency method to allow the driver to indicate
16952 opacity support for windows
16954 - Removed TODO attribute, completed AllowTransparency property
16955 - Added documented logic to Opacity
16956 * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
16957 ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
16958 versions of CompatibleTextRendering
16959 * X11Structs.cs: Added opacity atom to our atom enumeration
16960 * Hwnd.cs: Added opacity tracking (we need to track since the opacity
16961 of a form might be set before it's reparented by the WM, and we need
16962 the opacity value without calling up to Form)
16963 * XplatUIDriver.cs: Added StartLoop(), EndLoop() and
16964 SupportsTransparency() driver methods
16965 * Application.cs: Now calling StartLoop and EndLoop driver methods
16967 - Added opacity atom registration
16968 - Added StartLoop()/EndLoop() methods. They're empty right now but
16969 will need to get implemented when we switch to a per-thread queue
16970 - Implemented SupportsTransparency() method
16971 - Implemented SetWindowTransparency() method
16972 - Added support for setting the opacity value when a window is
16973 reparented (since the opacity needs to be set on the WM frame)
16974 * XplatUIOSX.cs, XplatUIWin32.cs:
16975 - Added SupportsTransparency(), StartLoop() and EndLoop() methods
16977 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
16979 * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
16981 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
16983 * FileDialog.cs: Added ToolTip for MWFFileView
16984 * MimeIcon.cs: Rewrote GnomeHandler.
16985 - Get currently used gnome icon theme from
16986 ($HOME)/.gconf/%gconf-tree.xml
16987 - Make use of inherited icon themes
16988 - Support SVG icon themes like Tango via librsvg
16990 2006-01-12 Miguel de Icaza <miguel@novell.com>
16992 Revert's Jackson's revert which broke 2.0 builds. Fix both
16995 * Application.cs: Move the use_compatible_text_rendering outside
16996 the NET_2_0 define. If we ever need to use the
16997 use_compatible_text_rendering on the individual controls they will
16998 access the variable from the common shared code paths.
17000 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
17003 - Added more granular debug options
17004 - Added method to print both window text and id
17005 - Switched debug output to use new Window() debug method
17006 - Added IsEnabled() driver method
17007 - Added EnableWindow() driver method
17009 - Removed end_modal; no longer needed, new loop handles termination
17010 via 'closing' variable
17011 - If form is modal, setting DialogResult will now initiate loop
17012 termination via 'closing' variable
17013 - Added support for is_enabled/WS_DISABLED to CreateParams
17014 - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
17016 - Removed code that's now in RunLoop from ShowDialog()
17017 - Added various documented sanity checks to ShowDialog()
17018 - Added handling of WM_DESTROY message; we set 'closing' on getting
17019 the message to indicate the message pump to terminate
17020 - Added handling of new internal WM_CLOSE_INTERNAL message - it's
17021 send by the Application.ExitThread method. (We send the message
17022 to destroy the window after all other events have been
17023 processed through the queue, instead of destroying the handle
17025 - Moved code from Close() method to WM_CLOSE handler; added logic
17026 to only send close-related events if the form is not displayed
17028 * Splitter.cs (..ctor): Fixed typo in resource name
17030 - DrawBackgroundImage: Explicitly selecting the wrap mode for the
17032 - set_Cursor: Now only setting calling into XplatUI if the handle for
17033 the control is already created; this avoids implict handle creation
17034 or crashes if it's not created
17035 - set_Enabled: Now setting the enabled state via the new driver method
17036 instead of just tracking it
17037 - CreateParams: Added logic to set WS_DISABLED based on enabled state
17038 - CreateControl: Reordered event firing and method calls to more
17039 closely fire events in the order MS does. Now setting the
17040 enabled state in the driver when creating the control.
17041 - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
17043 * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
17044 MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED
17045 * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
17047 - Added tracking of window enabled state (get_Enabled/set_Enabled)
17048 - Added EnabledHwnd property to easily allow a driver to find the
17049 handle of the first enabled window in the parent chain (this is
17050 used by drivers to pass up input events of disabled windows)
17051 * XplatUIDriver.cs: Added IsEnabled() method
17053 - Removed crude and obsolete exiting tracking variable
17054 - Removed internal ModalRun(); replaced by RunLoop()
17055 - Implemented private CloseForms() method to allow closing all
17056 windows owned by a particular (or all) threads
17057 - Exit() now properly closes all windows without forcing the message
17059 - Removed obsolete InternalExit() method
17060 - Changed Run() methods to use new RunLoop() message pump
17061 - Implemented new RunLoop() method for both modal and non-modal forms
17063 - get_CreateParams: Added setting of WS_DISABLED
17064 - Simplified ShowDialog(); now all the work is done in RunLoop(),
17065 invoked via Form.ShowDialog()
17066 * NativeWindow.cs: We don't remove the window from the collection when
17067 the handle is destroyed; there might still be messages for it in the
17068 queue (mainly the resulting WM_DESTROY); instead it will be removed
17069 when Control calls InvalidateHandle in the WM_DESTROY handler
17071 - CreateWindow: Added logic to handle the WS_DISABLED window style
17072 - EnableWindow: Implemented based on Hwnd.Enabled
17073 - GetMessage: Reset PostQuitState so the method can be called again
17074 - Implemented support for disabled windows (passing messages to the
17075 first enabled parent) in handling all input messages
17076 - Added optimizations for handling Expose events
17077 - Implemeted new driver method IsEnabled()
17078 - Now always resetting paint pending tracking vars when we start paint
17079 - Re-implemented UpdateWindow via just sending a WM_PAINT message
17080 * XplatUIOSX.cs: Added IsEnabled method stub
17081 * XplatUIWin32.cs: Implemented new IsEnabled() method
17083 2006-01-11 Jackson Harper <jackson@ximian.com>
17085 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
17086 LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
17087 variables a little.
17088 * ColorDialog.cs: Clear out the old form before adding the new
17091 2006-01-11 Jackson Harper <jackson@ximian.com>
17093 * X11Dnd.cs: Make sure to add all the text formats when adding
17094 strings to the data object.
17095 * TreeNodeCollection.cs: When adding to a sorted tree we need to
17096 do some redrawing too. Also change the UpdateNode to an
17097 UpdateBelow so the newly added node gets painted.
17099 2006-01-11 Miguel de Icaza <miguel@novell.com>
17101 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
17102 LinkLabel.cs, PropertyGrid.cs: Implement the
17103 UseCompatibleTextRendering property for 2.x
17105 * Application.cs (SetCompatibleTextRenderingDefault): Add.
17107 2006-01-11 Jackson Harper <jackson@ximian.com>
17109 * TreeView.cs: Use the property for setting the selected node so
17110 the correct events get raised.
17111 * TreeNode.cs: Update the tree when the fore/back colours of a
17114 2006-01-10 Jackson Harper <jackson@ximian.com>
17116 * TreeView.cs: Allow setting SelectedNode to null.
17118 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
17120 * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
17122 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
17124 * PrintControllerWithStatusDialog.cs: Update page number in dialog.
17126 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
17128 * PrintDialog.cs: Added attributes and set default property values.
17130 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
17132 * PrintControllerWithStatusDialog.cs:
17133 Added PrintControllerWithStatusDialog.
17135 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
17137 * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
17138 XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
17140 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
17142 * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
17144 2006-01-09 Jonathan Chambers <jonathan.chambers@ansys.com>
17146 * ComboBox.cs: Added KeyDown event handler for processing arrow keys
17147 and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
17149 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
17151 * MimeIcon.cs: Added internal class SVGUtil.
17153 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
17155 * FileDialog.cs: Don't crash if there are two files with the
17156 same name but different locations.
17158 2006-01-08 John BouAntoun <jba-mono@optusnet.com.au>
17160 * MonthCalendar.cs: Fixed annoying rendering bug when selecting
17161 dates across multiple month grids. Used to not highlight entire
17162 month, but does now.
17164 2006-01-06 Jackson Harper <jackson@ximian.com>
17166 * MonthCalendar.cs: Removed DoEvents call to prevent a running
17167 message loop. Change timer intervals to numbers that seem more
17170 2006-01-06 John BouAntoun <jba-mono@optusnet.com.au>
17172 * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
17173 object for location info since screen object is now implemented.
17175 2006-01-05 Jackson Harper <jackson@ximian.com>
17177 * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
17178 * AsyncMethodResult.cs: We no longer use a WeakReference for the
17179 AsyncMethodResult, this is because we ALWAYS want the
17180 ManualResetEvent to get set.
17181 * Control.cs: When disposing use an async invoke to call shutdown
17182 code, so that thigns don't block on the finalizer thread. Also
17183 check if we even have a message loop before trying to send
17184 messages, if we don't then don't bother sending messages.
17185 - No more weak references for async methods
17186 * XplatUIDriver.cs: No more weak references for async methods.
17188 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
17190 * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
17191 returns two FontFamily with the same name
17193 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
17195 * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of
17196 drawing disabled text. Instead using the ColorGrayText color
17198 2006-01-04 Jackson Harper <jackson@ximian.com>
17200 * TreeNode.cs: redraw the node when its image index is changed.
17202 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
17204 * RichTextBox.cs: Same fix as last, just for SelectionColor. This
17205 time I checked there are no others like it.
17207 2006-01-04 Jackson Harper <jackson@ximian.com>
17209 * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
17210 this gives the behavoir I was looking for.
17211 * Control.cs: Special case Invoking EventHandlers, this matches MS
17212 and fixes part of bug #76326.
17214 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
17216 * ThemeClearlooks.cs, FileDialog.cs:
17217 - Reflect the latest Theme class changes
17218 - Remove Mono.Unix.Syscall.time in FileDialg and replace it
17221 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
17223 * Theme.cs: Cache UI resource images and resize them if needed
17225 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
17227 * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
17228 is called. This fixes the crash in Nexxia when setting the font
17229 attributes in the chat. [However, RTF needs a look-over to make sure
17230 that all SelectionXXX methods handle the special case that selection
17231 is empty and therefore the change must be applied to all text starting
17232 at the cursor/selection start]
17234 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
17236 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
17237 XplatUIOSX.cs: Added SendMessage and PostMessage methods
17238 * X11Keyboard.cs: Switched to new way of calling PostMessage
17240 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
17242 * Theme.cs: Added theme interface for images to allow the theme to
17243 control what images are used for things like FileDialog, MessageBox
17245 * MessageBox.cs: Now uses the new Theme icon/image interfaces
17247 2006-01-03 Alexander Olk <alex.olk@googlemail.com>
17250 - Removed some dead code
17251 - Opening a recently used file does work now
17252 - Small UI enhancements
17255 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
17257 * FileDialog.cs: Forgot too add __MonoCS__
17259 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
17261 * FileDialog.cs: We are able to read recently used files now let's
17262 go on and write them.
17264 2006-01-01 Alexander Olk <alex.olk@googlemail.com>
17266 * FileDialog.cs: Breathe some life into "last open"/"recently used"
17268 * MimeIcon.cs: Do a check for the top level media type also
17270 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
17272 * ThemeClearlooks.cs:
17273 - Added CPDrawStringDisabled
17274 - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
17275 some chars if the text doesn't fit into text_rect
17276 - DrawListViewItem: If View = View.LargeIcon center the image;
17277 rewrote the drawing of ListViewItem.Text if View =
17280 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
17282 * MimeIcon.cs: Use default KDE icon theme if there is no
17283 "48x48" directory for the current icon theme, fixes #77114
17284 * Mime.cs: Disable not working and actually not used code.
17285 * ThemeWin32Classic.cs:
17286 - Replace "new SolidBrush" in GetControlBackBrush and
17287 GetControlForeBrush with ResPool.GetSolidBrush
17288 - Changed DrawListViewItem from private to protected virtual
17290 - Added form.MaximizeBox = true
17291 - Don't throw an exception if there is a broken symbolic link
17293 2005-12-23 Jackson Harper <jackson@ximian.com>
17295 * TabControl.cs: Give the panels focus, keyboard navigation is
17296 fixed so this works correctly now.
17297 - We need these key events also.
17298 * ToolBar.cs: Remove some of the poor mans double buffering.
17300 2005-12-24 Alexander Olk <alex.olk@googlemail.com>
17302 * ComboBox.cs: The internal TextBox now returns the focus.
17304 2005-12-23 Jackson Harper <jackson@ximian.com>
17306 * ThemeWin32Classic.cs: Draw the text for all tab appearances.
17308 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
17310 * Control.cs: Removed debug code
17311 * XplatUIX11.cs: Changed DestroyChildWindows to also consider
17314 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
17316 * Control.cs: When creating the control, update the Z-order after
17317 all it's children are created, too. (Fixes nexxia not showing
17320 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
17322 * Control.cs: Do not update the anchoring distances if layout is
17323 suspended, instead do it once layout is resumed
17325 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
17328 - After many hours of debugging, for both Jackson and
17329 myself, it turns out that it helps to set the parent of a control
17330 if you want to actually see it onscreen. In the spirit of that
17331 discovery, we're now setting the parent of the control and
17332 it's children when the control's handle is created. This fix
17333 will make Lutz Roeder's Reflector run happily.
17334 - now just creating the handle instead of the whole control when
17335 getting a graphics context for the control.
17337 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
17339 * ScrollableControl.cs: When calculating the canvas, don't consider
17340 the scrollbar widths. Instead, predict if horizontal scrollbar
17341 will affect canvas when deciding on vertical display and vice versa.
17343 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
17345 * RichTextBox.cs: Set default RTF font for documents that don't
17346 have a font table (Fixes #77076)
17348 2005-12-22 Jackson Harper <jackson@ximian.com>
17350 * TextBoxBase.cs: It's difficult to do, but you can have an empty
17351 clipboard. This prevents a NullRef in that case.
17352 * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
17353 clipboard. PRIMARY is for the currently selected text only. (We
17354 should implement PRIMARY at some point.
17356 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
17358 * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
17359 a Unicode function with a structure that was defined in Ansi way.
17362 2005-12-21 Jackson Harper <jackson@ximian.com>
17364 * StatusBar.cs: Statusbar handles its fore/back colours on it's
17365 on. Because thats how it rolls. (and this avoids it using ambient
17367 * ThemeWin32Classic.cs: Use the proper back color for filling.
17368 * Menu.cs: Use the system menu bar color for drawing menu
17369 bars. Using the window back color will bring ambient colours into
17372 2005-12-21 Alexander Olk <alex.olk@googlemail.com>
17374 * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
17375 Bitmaps were created and not disposed.
17377 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
17379 * Control.cs (CreateControl): Don't do anything if the control is
17380 already created, otherwise we'd fire the OnCreated event more than
17383 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
17385 * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
17386 will always match. Instead return -1. Fixes #76464.
17388 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
17390 * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
17391 neither the beginning nor the end of the line (Fixes bug #76479)
17393 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
17396 - ControlNativeWindow.ControlFromHandle(): Now handling situation
17397 where handle is invalid
17398 - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
17399 instead of slower linear search
17400 * NativeWindow.cs: Don't remove the window from the hashtable until
17401 after the driver has destroyed it (since the driver might use
17402 Control.FromHandle to lookup the control object
17403 * Hwnd.cs: Added DestroyPending property to track if a window is
17404 already destroyed as far as the driver is concerned and only hasn't
17405 yet notified the control
17407 - Activate(): Check if the window is still valid before using the
17409 - Implemented DestroyChildWindow() method to mark child windows as
17410 destroyed when a window is destroyed. This prevents situations
17411 where we might call an X method based on queued events for a
17412 window that already has been destroyed but we haven't yet pulled
17413 the destroy method from the queue.
17414 - Added a call to the new DestroyChildWindow() method to the drivers
17415 DestroyWindow code. Also now marking the destroyed window itself
17418 2005-12-20 Jackson Harper <jackson@ximian.com>
17421 * StatusBarPanel.cs: Don't calculate panel sizes on draw
17422 anymore. Just do them when needed, also track the rects of panels
17423 so that we can optimize refreshing more in the future.
17425 2005-12-20 Alexander Olk <alex.olk@googlemail.com>
17427 * ColorDialog.cs: Fixed focus drawing in small color controls
17429 2005-12-19 Jackson Harper <jackson@ximian.com>
17431 * InternalWindowManager.cs:
17432 * MdiWindowManager.cs: Cleanup some coordinate system changes so
17433 moving windows works properly.
17435 2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
17438 - Removed call to InitLayout() from SetBoundsCore(); doc says
17439 it's only called when a control is added to a container
17440 - Split InitLayout logic, moved to separate UpdateDistances() method
17441 since we need to perform those calculations more often than just
17442 when adding the control to a container. (Needed to fix #77022)
17443 - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
17444 - Reduced the OnBindingContextChanged events count, don't send them
17445 unless the control is created, we still aren't totally matching
17446 MS, but I can't quite figure out some of their rules
17448 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
17450 * ThemeClearlooks.cs: Corrected distance between ProgressBar
17453 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
17455 * ThemeClearlooks.cs:
17456 - Updated ProgressBar drawing
17457 - Corrected drawing of ScrollBars and scroll buttons
17458 - Some temporary fixes for minor pixel artefacts
17460 2005-12-18 Peter Dennis Bartok <pbartok@novell.com>
17463 - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
17464 cause events to be sent in the same order as MS does.
17465 - Added ChangeParent() method to trigger various OnXXXChanged events
17466 that need to be fired when a parent changes (This is a reworking
17467 of the patch from r54254, with the X11 errors fixed)
17468 - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
17469 since on MS we get OnLayoutChanged events when calling Clear()
17470 - Changed Enabled property to consider parent state as well, if a
17471 parent is not enabled, the control will not be either
17472 - Changed Parent property to simply call Controls.Add() since that
17473 now does all the work required, this way we avoid code duplication
17474 - Threw in a few OnBindingsContextChanged calls to try and match
17475 when MS sends them. We seem to send a few too many, though.
17476 - Added call to CreateControl when adding the control to a parent.
17477 We were never calling CreateControl. Still needs some work, in
17478 some places we treat HandleCreated and ControlCreated as equal,
17480 - Removed obsolete commented out code from UpdateZOrder()
17482 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
17484 * ThemeClearlooks.cs: Updated TrackBar drawing.
17486 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
17488 * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
17490 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
17492 * FileDialog.cs: Add the Help button and the open readonly
17493 checkbox only if needed
17495 2005-12-16 Jackson Harper <jackson@ximian.com>
17497 * Control.cs: Make sure we have an active menu before trying to
17498 process commands on it. Prevents menu-less forms from crashing
17499 when Alt is pressed.
17500 * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
17502 * RichTextBox.cs: Expand statement to help out gmcs and fix the
17505 2005-12-16 Jackson Harper <jackson@ximian.com>
17507 * InternalWindowManager.cs: Don't translate tool windows screen
17508 coordinates. This fixes windows 'bouncing' around when being moved.
17510 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
17513 - MaxLength now treats 2^31-1 equal to unlimited length (this is
17514 not quite MS compatible, MS uses that number only for single line
17515 and 2^32-1 for multi-line, but I figure it won't hurt keeping
17517 - Now enforcing the MaxLength limit when entering characters
17518 - Added argument to internal Paste() method to track if it's called
17519 from programatically or via keyboard, since keyboard driven pastes
17520 need to enforce max-length
17521 - Added logic to Paste to only paste as many chars as MaxLength
17523 * RichTextBox.cs: Updated to use new obey argument for internal Paste()
17525 - Added Length property to return number of characters in document
17526 - Added private CharCount property which only tracks actual chars
17527 in the document (no linefeeds) and fires event when CharCount
17529 - Added tracking of character count to all methods that alter it
17530 - Added LengthChanged event to allow applications to subscribe
17531 to any changes to the document
17533 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
17536 - Removed local password_char field (moved to TextBoxBase)
17537 - Now setting the document's password var when password is
17540 - Added password_char field (needed here so MultiLine can
17542 - Added logic to MultiLine property setter to set the document's
17543 variable when password display is allowed
17544 - Removed debug code and made some debug code conditional
17546 - Added RecalculatePasswordLine() method to handle special password
17548 - Added PasswordChar property, also added related tracking vars
17549 - Draw() method now uses local text var for grabbing text to draw,
17550 this var is set to line.text unless we're doing password display,
17551 then it is set to the pre-generated all-password-chars line
17552 - Added calling RecalculatePasswordLine() method for password lines
17554 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
17557 - Added Reparented property to allow tracking of Window Manager
17558 reparenting actions (which affect X/Y calculations of toplevel
17560 - Made ToString() print window handles in hex
17562 - AddConfigureNotify(): Now uses reparented state off Hwnd to
17563 determine if X/Y needs offsetting
17564 - AddConfigureNotify(): Fixed offset calculations
17565 - Now adds ReparentNotify messages into the queue
17566 - Now processes ReparentNotify messages and causes a
17567 WM_WINDOWPOSCHANGED message to be sent upstream if a window
17568 is reparented (as most likely it's X/Y coordinates are changed
17571 2005-12-14 Jackson Harper <jackson@ximian.com>
17573 * XplatUIX11.cs: Tool windows still need to respek focus.
17575 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
17577 * Control.cs: Undid 54254 (causing XConfigure errors) so we can
17578 have a working release
17580 2005-12-13 Jackson Harper <jackson@ximian.com>
17582 * Form.cs: Update styles after setting the border style regardless
17583 of whether or not the window is using a window manager.
17585 2005-12-13 Jackson Harper <jackson@ximian.com>
17587 * Form.cs: We now hook into an internal window manager instead of just an
17588 MDI subsystem, this is so we can have properly behaving tool windows.
17589 * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
17590 * InternalWindowManager.cs: New internal class that acts as a
17591 window manager for tool windows and as a base for mdi windows.
17592 * MdiWindowManager.cs: New class that acts as a window manager for
17595 2005-12-12 Jackson Harper <jackson@ximian.com>
17597 * Control.cs: Updates so we match behavoir for for implicit
17598 controls. Fixes explosions in MDI.
17600 2005-12-12 Jackson Harper <jackson@ximian.com>
17602 * Control.cs: Implement Invalidate (Region).
17604 2005-12-12 Peter Dennis Bartok <pbartok@novell.com>
17607 - Changed handling of Controls.Add/Controls.Remove to fire (almost)
17608 the same events as MS does. MS fires events for each property
17609 except, for unknown reasons, Cursor, when the control is reparented.
17610 I can't seem to totally match add/remove since MS also fires some
17611 VisibleChanged events, which makes no sense. Consolidated the
17612 parenting code into a separate method so it can be called from
17613 both Add and Remove. set_Parent no longer needs any special logic
17614 as it calls the parent's add method which implicitly fires
17616 - Removed some obsolete code and debug output
17617 - Enabled state is inherited from parents, if this is enabled
17619 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
17621 * Form.cs: Removed commented out code
17623 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
17626 - Added internal version of Invoke, with additional argument
17627 indicating if we're calling it from a Dispose() handler. That
17628 way we can avoid BeginInvoke throwing an exception if we're
17629 calling for an already destroyed window.
17630 - Added a dispose argument to BeginInvokeInternal, and made the
17631 check if a valid window handle chain exists conditional on
17632 it not being a dispose call
17633 - Removed code in DestroyHandle to destroy our children. Since we
17634 now handle the WM_DESTROY message we will catch all our children
17636 - Now calling OnHandleDestroyed from our new WM_DESTROY handler
17638 - Added a field to track the application context of the form.
17639 - No need to set closing variable as response to WM_CLOSE, instead
17640 we destroy the window. We also call PostQuitMessage if the form
17641 has an application context (which makes it the main app form,
17642 which, when closed terminates the app)
17644 - Dropped Exit() method, it's naming was confusing
17645 - Added PostQuitMessage() which causes GetMessage to return false
17646 once the message queue is empty
17647 * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added
17649 * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
17650 no longer a valid XplatUI method, but left it in since it's used
17651 internally. Added empty PostQuitMessage() method.
17652 * MenuAPI.cs: Replaced call to Exit() with call to
17653 PostQuitMessage, even though this is probably no longer needed.
17654 * Hwnd.cs: Added 'pretty' ToString() to support debugging.
17655 * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
17657 - Replaced call to XplatUI.Exit() with PostQuitMessage()
17658 - Removed old debug code that would call XplatUI for exception
17659 display, enabled standard exception handling (Still not enabled
17660 though, until NativeWindow's ExternalExceptionHandler define
17663 - Added internal method to allow control to update NativeWindow
17664 after a window has been destroyed
17665 - Added handling of already destroyed windows when calling i
17667 - Added removal of handle from list on ReleaseHandle
17669 - Dropped GetMessageResult var and related code
17670 - Added PostQuitState to field to track if PostQuitMessage has been
17672 - Dropped Exit() method
17673 - Added PostQuitMessage() method
17674 - GetMessage now will return false if PostQuitState is set and no
17675 more messages are in the queue.
17676 - Expose handler will no longer generate WM_PAINT messages if we are
17677 in PostQuitState since it's very likely any windows have already
17678 been destroyed, and since Hwnd won't get updated until we have
17679 processed the DestroyNotify we'd be causing X errors.
17681 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
17683 * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
17684 Thanks to Mike for pointing out the err of my ways.
17686 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
17688 * Control.cs(PreProcessMessage): Moved menu handling back, but
17689 after all other key handling, to match MS (who handles Menu in
17691 * Menu.cs (WndProc): Removed my brainfart
17693 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
17695 * Control.cs(PreProcessMessage): Removed special menu handling
17696 * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
17698 2005-12-07 Mike Kestner <mkestner@novell.com>
17700 * Control.cs : special case SYSKEYUP so that we can adjust keynav
17701 state according in tracker.
17702 * Menu.cs : promote tracker field to base class and provide a tracker
17703 lookup capability. Add/Remove shortcuts dynamically if the top menu
17704 has a tracker. Unparent items that are removed from the collection.
17705 * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
17706 * Theme*.cs: add always_show_hotkeys field to support configurability
17707 of mnemonic display. win32 doesn't show mnemonics until Alt is
17710 2005-12-07 Jackson Harper <jackson@ximian.com>
17712 * MdiChildContext.cs: Use Control.ResetCursor.
17713 * Control.cs: ResetCursor needs to set the property so that the
17714 correct XplatUI call gets made.
17716 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
17718 * Control.cs: More fixes to make our key events match MS. We
17719 were not setting the modifier state on KeyData, and we were
17720 not generating any events when Alt was pressed with a key
17721 since handling of WM_SYSxxx was missing for the OnKey methods.
17723 2005-12-07 Jackson Harper <jackson@ximian.com>
17725 * MdiChildContext.cs: reenable the sizing code.
17726 - When the mouse leaves a window reset its cursor.
17728 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
17730 * ThemeClearlooks.cs: Reflect latest Hwnd changes
17732 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
17734 * Hwnd.cs: Now using the theme 3d bordersize to calculate
17735 widths of Fixed3D borders
17737 2005-12-07 Jackson Harper <jackson@ximian.com>
17739 * MdiClient.cs: Fix warnings. Earn Mike's love.
17741 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
17743 * ThemeClearlooks.cs:
17744 - Adjusted mouse over button color
17745 - Added first parts of CheckBox drawing
17746 - Added correct color for selected text background
17747 - Fixed ComboBox drawing
17748 - Added CPDrawBorder3D and CPDrawBorder
17750 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
17752 * XplatUIX11.cs: Added call to XBell for AudibleAlert
17754 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
17756 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
17757 XplatUIOSX.cs: Added AudibleAlert() method to have a means to
17758 alert users via sound. We could add an enum arg with different
17759 types of alerts in the future
17761 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
17763 * Control.cs: Fix behaviour problems pointed out by Mike
17765 2005-12-05 Mike Kestner <mkestner@novell.com>
17767 * StatusBarPanel.cs: add Invalidate method and hook it into all the
17768 prop setters. Calls parent.Refresh for now, but could be maybe be
17769 optimized with an internal method on StatusBar at some point.
17772 2005-12-05 Peter Dennis Bartok <pbartok@novell.com>
17774 * RichTextBox.cs: Implemented get_SelectionColor
17776 2005-12-05 Alexander Olk <alex.olk@googlemail.com>
17778 * ThemeClearlooks.cs:
17779 - Removed dead code
17780 - Draw black button border only if button is Form.AcceptButton
17781 - Draw correct button color for pressed RadioButton if the mouse
17782 has entered the button
17783 - Updated ProgressBar drawing!
17784 - Updated CPDrawSizeGrip drawing
17785 - Updated StatusBarPanel drawing
17787 2005-12-05 Mike Kestner <mkestner@novell.com>
17789 * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
17790 * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
17792 2005-12-04 Alexander Olk <alex.olk@googlemail.com>
17794 * ThemeClearlooks.cs: Initial check-in, activate with
17795 export MONO_THEME=clearlooks
17796 * ThemeEngine.cs: Added ThemeClearlooks
17798 2005-12-03 Mike Kestner <mkestner@novell.com>
17800 * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
17803 2005-12-02 Jackson Harper <jackson@ximian.com>
17805 * Form.cs: If the child form has no menu the default main menu is
17806 used as the active menu.
17808 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
17810 * ListBox.cs: Check if any items exist before trying to resolve
17811 coordinates into items
17813 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
17815 * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
17816 as the second color for the background hatch
17818 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
17820 * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
17821 * RichTextBox.cs: FormatText position arguments are 1-based, now making
17822 sure that what we pass to FormatText is always 1-based. Fixes #76885
17824 2005-11-29 Miguel de Icaza <miguel@novell.com>
17826 * NumericUpDown.cs (EndInit): When we are done initializing,
17827 reflect any updates on the UI.
17829 2005-12-02 Jackson Harper <jackson@ximian.com>
17831 * ImplicitHScrollBar.cs:
17832 * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
17833 their container controls.
17834 * TreeView.cs: Use the new implicit scrollbars.
17836 2005-12-02 Jackson Harper <jackson@ximian.com>
17838 * TreeView.cs: Make top_node internal so the TreeNodeCollections
17840 * TreeNodeCollection.cs: If we remove the topnode we need to
17841 update topnode to the next node in line.
17842 - When clearing nodes go through the same process as removing
17843 them, so they get depareneted and checked if they are top node.
17845 2005-12-01 Jackson Harper <jackson@ximian.com>
17847 * TreeView.cs: When imagelists are used the image area is
17848 selectable as well as the text.
17849 - If there are no selected nodes select the first one.
17850 * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
17851 so don't do it more then we need to.
17853 2005-12-01 Jackson Harper <jackson@ximian.com>
17855 * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
17856 that arrows can be scaled.
17858 2005-12-01 Jackson Harper <jackson@ximian.com>
17860 * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
17861 fail. Patch by Dieter Bremes
17863 2005-11-30 Jackson Harper <jackson@ximian.com>
17865 * Form.cs: Property is 2.0 only
17866 * PrintDialog.cs: Signature fix.
17868 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
17871 - No longer artificially moves text 2 pixels down (now that we have
17872 borders this is no longer needed)
17873 - Added calcs for left, hanging and right indent
17875 2005-11-23 Mike Kestner <mkestner@novell.com>
17877 * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
17879 2005-11-30 Jackson Harper <jackson@ximian.com>
17881 * MdiChildContext.cs: Set the cloned menus forms, as these don't
17882 get cloned as part of CloneMenu ().
17883 * Menu.cs: Make sure the parent of the items get set correctly
17884 when they are added. And the owners are notified of the changes.
17885 * Form.cs: Create an ActiveMenu property, so that when MDI is used
17886 we can change the menu being displayed/handled by the form without
17887 changing the menu assosciated with the form.
17888 - Don't let Mdi children draw/handle menus.
17890 2005-11-30 Jackson Harper <jackson@ximian.com>
17892 * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
17893 a MenuChanged event. Just to make the API a little more
17896 * MenuItem.cs: Use the new OnMenuChanged
17897 * MdiChildContext.cs: Handle menu merging.
17898 * Form.cs: Implement MergedMenu.
17900 2005-11-30 Jackson Harper <jackson@ximian.com>
17902 * Menu.cs: We were misusing Add. Add goes behind the specified
17903 index according to the docs, and does not replace the specified
17904 index. So I added an Insert method.
17906 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
17908 * TextBoxBase.cs: Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
17909 Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
17911 * RichTextBox.cs: Added calls to base for DnD events
17913 2005-11-28 Peter Dennis Bartok <pbartok@novell.com>
17916 - Fixed drag-selection related crash; style fixes
17917 - Implemented undo class
17918 o Implemented method to capture document state for specified
17919 range in document tree
17920 o Implemented method to restore captured document state
17921 o Implemented cursor tracking
17922 o Implemented basic undo stack
17923 - Added undo cursor tracking to methods altering cursor location
17924 - Added undo tracking to selection deletion (still missing
17925 other text-altering hookups)
17927 - Added SelectionLength property
17928 - Implemented CanPaste()
17929 - Implemented Paste()
17930 - Added missing protected methods
17931 - Fixed RTF->Document conversion; now uses font index 0 and color
17932 index 0 as the default font for the parsed text
17933 - Fixed RTF<->Document font size translation
17934 - Fixed RTF generation, now properly handles cross-tag boundaries
17935 for single line selection
17936 - No longer always appends blank line to generated RTF
17938 - Added missing attributes
17939 - Hooked up undo-related methods
17941 - Implemented Copy()
17942 - Implemented Paste()
17943 - Implemented Cut()
17944 - Fixed caret mis-behaviour on backspace across line-boundaries
17946 2005-11-29 Jackson Harper <jackson@ximian.com>
17948 * MdiClient.cs: Add a method for activating mdi children. Very
17949 basic right now. I imagine someday it might need more girth.
17950 * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
17951 children windows names are added to the menu item.
17952 * ThemeWin32Classic.cs: Draw the arrow if the item is an
17953 mdilist. This happens regardless of whether or not there are any
17954 mdi windows to see in the list, and according to my tests happens
17955 before the items are even added. Also happens if there isn't even
17956 an mdi client to get windows from.
17958 2005-11-29 Alexander Olk <alex.olk@googlemail.com>
17960 * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
17961 * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
17963 2005-11-29 Jordi Mas i Hernandez <jordimash@gmail.com>
17965 * DataGridTableStyle.cs:
17966 - Create always the styles for the missing columns even if they are
17967 provided by the user (not default table style)
17970 - Fixes SetDataBinding (always re-attach source)
17971 - Fixes SetNewDataSource (only clear styles if they are not for
17973 - Expands OnTableStylesCollectionChanged to handle style refresh
17974 and remove properly
17976 2005-11-29 Jackson Harper <jackson@ximian.com>
17978 * FileDialog.cs: Implement missing bits, remove some dead
17980 * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
17981 creation of the panel so that the options set on the dialog are
17982 seen when the panel is created.
17983 * TreeView.cs: raise a click when items are clicked.
17985 2005-11-29 Jackson Harper <jackson@ximian.com>
17987 * MdiClient.cs: Pass some signature methods through to base.
17989 2005-11-28 Jackson Harper <jackson@ximian.com>
17991 * ListView.cs: Raise the click event when items are clicked.
17993 2005-11-28 Jackson Harper <jackson@ximian.com>
17995 * MdiClient.cs: Make this algorithm even more beautiful. And fix
17998 2005-11-27 Alexander Olk <alex.olk@googlemail.com>
18000 * ThemeNice.cs: - Removed 1 pixel bitmaps
18001 - Use SmoothingMode.AntiAlias where it makes sense
18002 (ScrollButton arrow for example)
18003 - Enhanced Button focus drawing
18004 - Fixed ComboBox drawing (no artefacts anymore, focus
18005 rectangle is back again, reduced size of ComboButton, etc.)
18006 - Fixed RadioButton focus drawing for Appearence.Button
18007 - Slight ScrollButton redesign
18008 - Some LinearGradientBrush size fixes
18009 - GroupBoxes have now rounded edges
18010 - Fixed StatusBar drawing
18012 2005-11-25 Alexander Olk <alex.olk@googlemail.com>
18014 * ThemeNice.cs: - Remove dead code
18015 - use correct background colors for menus, etc.
18016 - Fake pixel drawing with 1 pixel bitmaps
18018 2005-11-24 Jackson Harper <jackson@ximian.com>
18020 * MdiClient.cs: Size the scrollbars when resizing the window.
18021 - Resize the maximized windows when the client is resized
18022 * Form.cs: Make the child context available
18024 2005-11-23 Jackson Harper <jackson@ximian.com>
18026 * MdiChildContext.cs: Don't size windows if they are maximized.
18028 2005-11-23 Mike Kestner <mkestner@novell.com>
18030 * ContextMenu.cs: use MenuTracker.
18031 * Control.cs: remove menu handle usage.
18032 * Form.cs: remove menu handle usage.
18033 * Hwnd.cs: remove menu handle usage.
18034 * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
18035 motion and clicks to the new Tracker handlers.
18036 * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
18038 * MenuAPI.cs: refactored to combine popup and menubar event handling.
18039 Killed the MENU and MENUITEM data types and associated collections
18040 since we now keep the info on Menu and MenuItem. Expanded TRACKER into
18041 MenuTracker class that exposes the leftovers from the old MenuAPI
18042 static methods. Restructured Capture handling so that only one grab is
18043 done for the entire menu hierarchy instead of handing off grabs to
18044 submenus. Tracker now has an invisible control to Capture when active.
18045 * MenuItem.cs: add sizing accessors, kill Create
18047 * Theme.cs: remove menu handle and MENU(ITEM) usage.
18048 * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
18049 MENU(ITEM). remove menu handle usage, use Menu directly.
18050 * XplatUIDriver.cs: remove menu handle usage.
18051 * XplatUIOSX.cs: remove menu handle usage.
18052 * XplatUIWin32.cs: remove menu handle usage.
18053 * XplatUIX11.cs: remove menu handle usage.
18055 2005-11-22 Jackson Harper <jackson@ximian.com>
18057 * Hwnd.cs: Don't compute the menu size for
18058 DefaultClientRectangle.
18059 - Reenable menu sizes being computed for GetClienRectangle.
18060 * Form.cs: Remove comment of trechery
18062 2005-11-22 Jackson Harper <jackson@ximian.com>
18064 * Hwnd.cs: The adjustments for the menu bar are made when it is
18065 attached to the form.
18067 2005-11-19 Jackson Harper <jackson@ximian.com>
18069 * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
18070 (just like on windows).
18072 2005-11-19 Jackson Harper <jackson@ximian.com>
18074 * MdiChildContext.cs: Handle all the buttons ourselves. We can't
18075 use real buttons anymore because they are in non client area. The
18076 one TODO here is that I need to somehow invalidate a section of
18077 the non client area.
18079 2005-11-18 Jackson Harper <jackson@ximian.com>
18081 * Control.cs: Put the enum check back in now that MDI doesnt have
18082 to use this to set border styles.
18083 * Form.cs: Only set mdi child windows borders if the handle has
18085 * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
18086 this directly on to the driver.
18087 - Get the move start position before adjusting for the titlebar
18088 height, this fixes the windows "skipping" when they are first
18091 2005-11-18 Jackson Harper <jackson@ximian.com>
18093 * XplatUIX11.cs: Just compute the mdi borders separately as they
18094 don't totally match up with normal form borders.
18096 2005-11-18 Jackson Harper <jackson@ximian.com>
18098 * Control.cs: Set WS_ styles for borders, so that the driver does
18099 not have to retrieve the control instance to figure out what kind
18100 of borders it should have.
18101 * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
18102 driver can know its an mdi child easily.
18103 * XplatUIX11.cs: Get the border styles and whether the window is
18104 MDI from the Styles and ExStyles params instead of having to get a
18105 control. This prevents a chicken and egg problem.
18107 2005-11-18 Jackson Harper <jackson@ximian.com>
18109 * MdiClient.cs: Fix typo so scrollbars show up correctly.
18111 2005-11-18 Jackson Harper <jackson@ximian.com>
18113 * MdiClient.cs: Calculate when to add and remove scrollbars
18115 * MdiChildContext.cs: Adjust the y position to take the titlebar
18117 - No height for FormBorderStyle.None
18119 2005-11-18 Jackson Harper <jackson@ximian.com>
18121 * Control.cs: Allow non enum values to be used for
18122 InternalBorderStyle. MDI does this to set a special border style.
18123 - New utility methods for converting points to/from client coords
18124 - Add the newly created control to the Controls collection before
18125 updating its style. This way UpdateStyle can walk the control
18126 heirarchy to find the control if needed.
18127 so I don't need to create a new Point object all the time.
18128 * Form.cs: Let MDI windows handle their border styles.
18129 - Set styles on MDI windows so the correct title style is derived.
18130 * MdiChildContext.cs: Move all the painting and window handling
18131 into the non client area.
18132 - Use correct sizing and put correct buttons on frames based on
18133 the FormBorderStyle.
18134 - Notify the mdi client about scrolling
18135 - Need to handle the buttons ourselves now, because they are all
18136 in non client areas and we can't add controls there.
18137 * MdiClient.cs: Halfway to scrolling, this implementation is
18138 somewhat broken though, we need to check to make sure other
18139 windows aren't causing scrolling before removing the bars. Also
18140 the bars need to be drawn on top, maybe I can switch implicit
18141 controls to be on top.
18142 * Hwnd.cs: caption_height and tool_caption_height are now
18143 properties of an hwnd, this way they can be set by the driver
18144 based on the type of window they are. In X11 the window manager
18145 handles the decorations so caption_height is zero unless its an
18147 - Add 3 pixel borders for MDI windows (0xFFFF).
18148 - Get rid of some code duplication, have DefaultClientRectanle
18149 just call GetClientRectangle.
18150 * XplatUIX11.cs: Pass caption_height and tool_caption_height to
18152 - Set border styles differently for mdi windows.
18153 * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
18156 2005-11-15 Mike Kestner <mkestner@novell.com>
18158 * Menu.cs: when adding an item to the collection, if item is already
18159 parented, remove it from the parent.
18161 2005-11-13 Alexander Olk <alex.olk@googlemail.com>
18163 * X11DesktopColors.cs: Added KDE support
18165 2005-11-11 Peter Dennis Bartok <pbartok@novell.com>
18168 - Clipboard methods now can translate Rtf format
18169 - No longer removes clipboard contents whenever a new format is added
18170 to allow placing multiple formats on the clipboard
18171 * Clipboard.cs: Clipboard now supports getting a IDataObject and
18172 will place all formats contained in it onto the clipboard. Also
18173 now cleans the clipboard before placing a new object onto it
18175 - Implemented set_Rtf
18176 - Implemented set_SelectedRtf
18177 - Created InsertRTFFromStream() method to allow single code base
18178 for all properties and methods that insert RTF into document
18179 - Removed debug output
18181 - Fixed Delete(int) to fix up line numbers
18182 - Fixed ReplaceSelection to combine start and end line
18183 - Fixed serious DeleteChars bug that would leave the document tree
18185 - Improved DumpTree with several logic checks to detect broken
18187 - Removed debug lines
18188 - Fixed Caret.WordForward/WordBack moving code, now always also
18189 updates caret.tag (fixes crash when word-selecting across tag
18190 boundaries via keyboard)
18191 - Added Insert() method for inserting multiline text into documents
18192 - Fixed DeleteChars() calculation errors that would cause a broken
18193 tag chain with multiple tag lines
18194 - DeleteChars() no longer crashes on multi-tag lines if not all tags
18195 - Split() no longer moves caret if split is at caret location
18196 - ReplaceSelection() now updates the cursor and re-displays it
18197 - ReplaceSelection() now uses new Insert() method to avoid code
18199 - FormatText() can now handle formatting partial lines
18201 - Append now uses new TextControl.Insert() method (this avoids
18203 - Implemented Ctrl-X (Cut) (
18204 - Implemented Ctrl-C (Copy)
18205 - Implemented Ctrl-V (Paste) (Still some bugs related to screen
18206 regeneration when pasting text; roundtripping Copy&Paste within
18207 edit control still fails due to some calculation bugs in GenerateRTF)
18208 - The Delete key will now remove the current selection if it is visible
18209 * TextBox.cs: Removed debug lines
18210 * XplatUI.cs: Trigger initialization of DataFormats (which requires the
18211 driver to be initialized and can't therefore be done via a static ctor)
18213 2005-11-10 Peter Dennis Bartok <pbartok@novell.com>
18215 * TextControl.cs: Added backend code for finding char arrays and strings
18217 - Added mouse wheel scroll support
18218 - Added support for VScroll and HScroll events
18220 - Implemented all seven Find() variants
18221 - Implemented GetCharFromPosition()
18222 - Implemented GetCharIndexFromPosition()
18223 - Implemented GetLineFromIndex()
18224 - Implemented GetPositionFromCharIndex();
18225 - Implemented SaveFile for PlainText and UnicodeText
18226 - Fixed set_Font, now setting a new font applies that font to
18228 - Implemented generic Document to RTF converter
18229 - Implemented SaveFile for RichText format (still missing unicode
18230 conversion for non-ansi chars)
18231 - Implemented get_Rtf
18232 - Implemented get_SelectedRtf
18234 2005-11-09 Peter Dennis Bartok <pbartok@novell.com>
18236 * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
18237 to allow any captures to be released before triggering OnClick. This
18238 way a click handler may capture the mouse without interference.
18239 * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
18240 This way we send them even though X may not allow a grab (if the window
18241 isn't visible, for example)
18243 2005-11-08 Pedro Martinez Julia <pedromj@gmail.com>
18245 * DataGridViewRowEventArgs.cs: DataGridView implementation
18246 * DataGridViewElement.cs: DataGridView implementation
18247 * DataGridViewComboBoxCell.cs: DataGridView implementation
18248 * DataGridViewDataErrorContexts.cs: DataGridView implementation
18249 * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
18250 * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
18251 * ImageLayout.cs: DataGridView implementation
18252 * DataGridViewComboBoxColumn.cs: DataGridView implementation
18253 * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
18254 * DataGridViewSelectionMode.cs: DataGridView implementation
18255 * IDataGridViewEditingControl.cs: DataGridView implementation
18256 * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
18257 * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
18258 * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
18259 * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
18260 * DataGridViewColumnSortMode.cs: DataGridView implementation
18261 * DataGridView.cs: DataGridView implementation
18262 * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
18263 * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
18264 * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
18265 * Padding.cs: DataGridView implementation
18266 * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
18267 * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
18268 * DataGridViewRowEventHandler.cs: DataGridView implementation
18269 * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
18270 * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
18271 * DataGridViewButtonCell.cs: DataGridView implementation
18272 * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
18273 * DataGridViewEditMode.cs: DataGridView implementation
18274 * DataGridViewCellValueEventArgs.cs: DataGridView implementation
18275 * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
18276 * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
18277 * DataGridViewCheckBoxColumn.cs: DataGridView implementation
18278 * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
18279 * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
18280 * DataGridViewCellEventHandler.cs: DataGridView implementation
18281 * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
18282 * DataGridViewCellStyleConverter.cs: DataGridView implementation
18283 * DataGridViewSelectedRowCollection.cs: DataGridView implementation
18284 * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
18285 * DataGridViewColumnEventArgs.cs: DataGridView implementation
18286 * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
18287 * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
18288 * QuestionEventArgs.cs: DataGridView implementation
18289 * IDataGridViewEditingCell.cs: DataGridView implementation
18290 * DataGridViewTriState.cs: DataGridView implementation
18291 * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
18292 * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
18293 * DataGridViewColumnCollection.cs: DataGridView implementation
18294 * DataGridViewCellValueEventHandler.cs: DataGridView implementation
18295 * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
18296 * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
18297 * DataGridViewColumn.cs: DataGridView implementation
18298 * DataGridViewCellBorderStyle.cs: DataGridView implementation
18299 * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
18300 * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
18301 * DataGridViewRow.cs: DataGridView implementation
18302 * DataGridViewImageCellLayout.cs: DataGridView implementation
18303 * DataGridViewImageCell.cs: DataGridView implementation
18304 * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
18305 * DataGridViewCheckBoxCell.cs: DataGridView implementation
18306 * DataGridViewHeaderCell.cs: DataGridView implementation
18307 * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
18308 * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
18309 * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
18310 * DataGridViewTextBoxColumn.cs: DataGridView implementation
18311 * QuestionEventHandler.cs: DataGridView implementation
18312 * DataGridViewCellStyleScopes.cs: DataGridView implementation
18313 * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
18314 * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
18315 * DataGridViewCell.cs: DataGridView implementation
18316 * DataGridViewCellEventArgs.cs: DataGridView implementation
18317 * DataGridViewClipboardCopyMode.cs: DataGridView implementation
18318 * DataGridViewCellStyle.cs: DataGridView implementation
18319 * DataGridViewColumnHeaderCell.cs: DataGridView implementation
18320 * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
18321 * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
18322 * TextFormatFlags.cs: DataGridView implementation
18323 * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
18324 * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
18325 * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
18326 * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
18327 * DataGridViewButtonColumn.cs: DataGridView implementation
18328 * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
18329 * HandledMouseEventArgs.cs: DataGridView implementation
18330 * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
18331 * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
18332 * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
18333 * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
18334 * DataGridViewRowCollection.cs: DataGridView implementation
18335 * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
18336 * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
18337 * DataGridViewHitTestType.cs: DataGridView implementation
18338 * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
18339 * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
18340 * DataGridViewColumnEventHandler.cs: DataGridView implementation
18341 * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
18342 * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
18343 * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
18344 * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
18345 * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
18346 * DataGridViewContentAlignment.cs: DataGridView implementation
18347 * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
18348 * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
18349 * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
18350 * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
18351 * DataGridViewPaintParts.cs: DataGridView implementation
18352 * DataGridViewCellCollection.cs: DataGridView implementation
18353 * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
18354 * DataGridViewImageColumn.cs: DataGridView implementation
18355 * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
18356 * DataGridViewElementStates.cs: DataGridView implementation
18357 * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
18358 * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
18359 * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
18360 * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
18361 * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
18362 * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
18363 * DataGridViewRowHeaderCell.cs: DataGridView implementation
18364 * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
18365 * DataGridViewTextBoxCell.cs: DataGridView implementation
18366 * DataGridViewBand.cs: DataGridView implementation
18367 * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
18368 * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
18369 * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
18370 * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
18371 * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
18372 * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
18373 * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
18374 * DataGridViewSelectedCellCollection.cs: DataGridView implementation
18375 * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
18376 * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
18377 * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
18379 2005-11-08 Peter Dennis Bartok <pbartok@novell.com>
18381 * ThemeWin32Classic.cs:
18382 - Draw the outside focus rectangle around buttons
18383 - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
18384 doesn't use end caps for every dash of a line anymore. This
18385 workaround ignores the forecolor.
18387 2005-11-08 Kornél Pál <kornelpal@hotmail.com>
18389 * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
18392 2005-11-07 Jackson Harper <jackson@ximian.com>
18394 * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
18396 2005-11-07 Jackson Harper <jackson@ximian.com>
18398 * ScrollableControl.cs: Calculate the maximum and change vars
18399 (more) correctly so that scrollbars appear as a sensible size.
18401 2005-11-04 Jackson Harper <jackson@ximian.com>
18403 * TreeNodeCollection.cs: Refresh when nodes are cleared from the
18405 * TreeView.cs: When the tree is sorted null out the top_node so
18406 that it is recalculated.
18407 - Use dotted lines instead of dashed lines to match MS better.
18409 2005-11-04 Jordi Mas i Hernandez <jordimash@gmail.com>
18412 - Implements key search for items. Useful when browsing files with FileDialog
18413 - When changing view mode or when clear the items reset scrollbar positions
18415 2005-11-04 Jackson Harper <jackson@ximian.com>
18417 * CurrencyManager.cs: Implement the MetaDataChanged event, the
18418 Reset method, and the CheckEmpty. CheckEmpty is just a total guess
18419 as to what the method may do as there is no real way of creating a
18420 derived CurrencyManager and calling the method.
18422 2005-11-03 Jackson Harper <jackson@ximian.com>
18424 * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
18425 * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
18426 method which seems to just be used internally to refresh the tabs.
18428 2005-11-03 Jackson Harper <jackson@ximian.com>
18430 * TabControl.cs: Implement the remove method. Fix some broken
18433 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
18435 * DateTimePicker.cs:
18436 - Added missing DateTimePickerAccessibleObject class
18437 - Added missing events
18438 - Added OnFontChanged method
18439 * Form.cs: Added missing attributes
18440 * TreeView.cs: Added missing attributes
18442 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
18444 * GridItemCollection.cs: Fix signatures
18446 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
18448 * XplatUI.cs: Updated build rev/date
18449 * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs,
18450 DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
18451 * Application.cs: Trigger context-specific ExitThread events
18453 2005-11-03 Jackson Harper <jackson@ximian.com>
18457 * GridTableStylesCollection.cs:
18462 * MonthCalendar.cs: Signature fixes
18464 2005-11-03 Jackson Harper <jackson@ximian.com>
18466 * TreeNodeCollection.cs: Remove should not be virtual.
18467 * TreeView.cs: Implement the last of the missing methods.
18469 2005-11-03 Jackson Harper <jackson@ximian.com>
18471 * TreeNodeConverter.cs: Implement to get off my class-status back.
18473 2005-11-03 Jackson Harper <jackson@ximian.com>
18475 * TreeView.cs: Hookup the bits for drag and drop.
18476 * TreeNode.cs: Don't cache the tree_view or index anymore, now
18477 that nodes can be moved from tree to tree easily this just causes
18478 all sorts of problems.
18479 * TreeNodeCollection: Don't need to give treenodes an index and
18480 treeview anymore when they are added, these are computed on the
18481 fly. Also make sure to remove a node before its added.
18483 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
18486 - Added CaretSelection enum
18487 - Added comparison methods to Marker struct, makes selection code
18489 - Added SelectionStart and SelectionEnd as 'moveable' location for
18490 the CaretDirection enum and handler
18491 - Added selection_prev variable to track optimized invalidation for
18492 word and line selection
18493 - Added SelectionVisible property (returns true if there is a valid
18495 - Switched CaretHasFocus to only display the caret if there is no
18497 - Avoiding StringBuilder.ToString to retrieve a single char, instead
18498 using the direct character index; should be much faster
18499 - Added various conditional debug statements
18500 - Fixed invalidation calculation for selection ranges
18501 - Added ExpandSelection() method to support word and line selection
18502 - Switched SetSelectionToCaret to use new Marker compare overloads
18503 - Added central IsWordSeparator() method to determine word
18504 separators/whitespace and FindWordSeparator() to streamline common
18505 usage of IsWordSeparator()
18507 - Removed unneeded grabbed variable, it was just mirroring
18509 - No longer firing OnTextChanged event when Text setter is called,
18510 since the base will fire the event for us
18511 - Added handling of Ctrl-Up/Down selection
18512 - Added handling of Shift-Cursorkey selection
18513 - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
18515 - Added handling of Shift and Ctrl-Shift-Home/End selection
18516 - Removed some debug output
18517 - Added handling for single/double/tripple-click to place caret/
18518 select word/select line respectively (Fixes bug #76031)
18519 - Added support for drag expansion of word/line selection
18520 * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
18523 2005-11-02 Jackson Harper <jackson@ximian.com>
18525 * X11Dnd.cs: If the drag is going to and from a MWF window just
18526 copy the data instead of sending it out through the X Selection
18529 2005-11-02 Jackson Harper <jackson@ximian.com>
18532 * XplatUIX11.cs: When in a drag we don't want motion notify
18533 messages to get passed on to the other controls. This prevents
18534 mouse move messages from showing up in the drag source.
18536 2005-11-02 Jackson Harper <jackson@ximian.com>
18538 * X11Dnd.cs: Remove unneeded call to XAllowEvents. Make sure that
18539 the correct button is release to end a drag.
18540 * XplatUIX11.cs: Make the button state internal so the drag system
18541 can access it. Dragging needs to know about all button releases,
18542 not just left button.
18544 2005-11-02 Miguel de Icaza <miguel@novell.com>
18546 * Form.cs (Icon): If the icon is null, reset the icon to the
18549 * Cursor.cs: When writing the AND-mask bitmap do not include the
18550 number of colors, but hardcode those to two (black and white),
18551 fixes the loading of color cursors (Paint Dot Net).
18553 * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
18554 turn off autoscaling.
18556 * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
18558 2005-11-02 Jackson Harper <jackson@ximian.com>
18560 * X11Dnd.cs: Make sure to send a status message if the pointer
18561 enters a control that can not accept a drop, otherwise the cursor
18562 isn't updated correctly. Also tried to compress the lines of code
18565 2005-11-02 Jackson Harper <jackson@ximian.com>
18567 * X11Dnd.cs: Change cursors based on drag action. Also attempt to
18568 set actions correctly. This isn't perfect as XDND and win32 have
18569 some differences on how you allow actions. I'll clear this up by
18570 adding a path for drag from MWF to MWF windows.
18571 * XplatUIX11.cs: Hook into the dnd system.
18573 2005-11-02 Jordi Mas i Hernandez <jmas@softcatala.org>
18575 * ListView.cs: Fixes scroll bar visibility. Hide them if they were
18576 previously shown but they are no longer need it. Very obvious when
18577 browsing files with FileDialog.
18579 2005-11-01 Peter Dennis Bartok <pbartok@novell.com>
18581 * Control.cs: We always need to call OnPaintBackground. We pretty much
18582 ignore AllPaintingInWmPaint and always do the painting there, whether
18583 it's set or not, since we always ignore the WM_ERASEBKGND message
18584 (which we don't generate on X11). This fixes #76616.
18585 * Panel.cs: Removed unneeded background painting. This happens properly
18586 in Control.cs already
18588 2005-10-31 Mike Kestner <mkestner@novell.com>
18590 * Menu.cs: Add items to collection before setting their index.
18591 * MenuItem.cs : add range checking with ArgumentException like MS.
18594 2005-10-31 Jackson Harper <jackson@ximian.com>
18596 * ListBox.cs: Invalidate if the area is visible at all not just
18597 contained in the visible rect. Fixes unselection of semi visible
18600 2005-10-31 Jackson Harper <jackson@ximian.com>
18602 * Control.cs: Consistently name the dnd methods. Make them
18603 internal so we can override them to match some MS behavoir
18605 * Win32DnD.cs: Use the new consistent names.
18607 2005-10-31 Jackson Harper <jackson@ximian.com>
18609 * TreeView.cs: Don't draw the selected node when we lose focus.
18611 2005-10-31 Jackson Harper <jackson@ximian.com>
18613 * X11Dnd.cs: We still need to reset the state even though a full
18614 reset isn't being done, otherwise status's still get sent all over
18617 2005-10-31 Jackson Harper <jackson@ximian.com>
18619 * Control.cs: Make the dnd_aware flag internal so the dnd
18620 subsystem can check it. Catch exceptions thrown in dnd handlers to
18622 * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
18623 * X11Dnd.cs: Handle null data in the converters. Set the XDND
18624 version when sending a XdndEnter. Use the control/hwnd dnd_aware
18625 flags to reduce the number of dnd enters/status's sent.
18627 2005-10-31 Jackson Harper <jackson@ximian.com>
18629 * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
18631 2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com>
18633 * PictureBox.cs: Fixes 76512
18635 2005-10-28 Jackson Harper <jackson@ximian.com>
18637 * X11Dnd.cs: Early implementation to support winforms being a drag
18638 source for data on X11. Also restructured the converters so they
18639 can go both ways now.
18640 * XplatUIX11.cs: Tie ins to the the Dnd stuff.
18642 2005-10-27 Peter Dennis Bartok <pbartok@novell.com>
18644 * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
18647 2005-10-27 Jackson Harper <jackson@ximian.com>
18649 * TreeNode.cs: Implement serialization so my DnD examples will work.
18651 2005-10-24 Kornél Pál <kornelpal@hotmail.com>
18653 * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
18654 TreeView.cs: Don't dispose objects that are not owned.
18656 2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
18658 * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
18659 should retrieve the current cursor and report that, but XplatUI
18660 doesn't (yet) have an interface for that (and I'm not sure I even
18662 * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
18663 until any message loop processing is done (and the WM_SETCURSOR
18664 replaces the cursor to the proper one)
18666 - Fixed override behaviour, we can't set the cursor globally on X11,
18667 just for our windows.
18668 - Invalidating the System.Drawing X11 display handle when we are
18670 * Control.cs: Fix to make csc happy
18672 2005-10-23 Peter Dennis Bartok <pbartok@novell.com>
18675 - get_Text: Add last line (without trailing newline) to returned
18676 value (Fixes 76212)
18677 - get_TextLength: Count last line in returned length
18678 - ToString: Call Text property instead of duplicating code
18680 2005-10-23 Kornél Pál <kornelpal@hotmail.com>
18682 * ImageList.cs: Dispose ImageAttributes objects.
18684 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
18686 * ImageList.cs: Use attribute constructors with less arguments where
18689 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
18691 * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
18692 Use typeof instead of strings when assembly is referenced. Added
18693 some more comments.
18695 2005-10-21 Jackson Harper <jackson@ximian.com>
18697 * ListView.cs: Raise a double click event. Also tried to somewhat
18698 fix when the selectedindexchanged event is raised. Its still
18701 2005-10-21 Jackson Harper <jackson@ximian.com>
18703 * TreeView.cs: New method to invalidate the plus minus area of a
18704 node without invalidating the whole node (maybe this can be used
18705 in some more places).
18706 * TreeNodeCollection.cs: When adding to an empty node we need to
18707 invalidate its plus minus area so the little block shows up.
18709 2005-10-21 Jackson Harper <jackson@ximian.com>
18711 * TreeView.cs: Make sure that when we invalidate a node the bounds
18712 are big enough to cover the selected box and the focus
18713 rectangle. Use a different colour for the lines connecting nodes
18714 so they show up with all themes.
18716 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
18718 * NativeWindow.cs: Don't call anything that could call into the driver,
18719 we might be on a different thread.
18721 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
18723 * Control.cs(Dispose): Since Dispose might run on a different thread,
18724 make sure that we call methods that could call into the driver via
18725 invoke, to avoid thread issues
18727 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
18729 * XplatUI.cs: Removed finalizer
18730 * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
18731 not allowing to be called on the finalizer thread.
18733 2005-10-21 Kornél Pál <kornelpal@hotmail.com>
18736 - Reverted r51889 and r51891.
18737 - Added ImageListItem class that stores unmodified image items and image
18738 properties required to create list images until handle is created.
18739 - Added AddItem and moved image creation logic to AddItemInternal.
18740 - Added CreateHandle method that creates images based on unmodified items.
18741 - Added DestroyHandle that changes state to store unmodified items.
18742 - Add and AddStrip methods no more create handle.
18743 - ReduceColorDepth has no return value.
18744 - Dispose destroys handle.
18745 - Modified other methods to reflect the above changes.
18746 - Implemented key support.
18747 - Added profile 2.0 members and attributes.
18748 - Added private Reset and ShouldSerialize methods that provide the same
18749 behavior as MS.NET but the Visual Studio .NET designer seems to ignore
18750 them as they are private.
18751 - Added some more comments about implementation details.
18753 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
18755 * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
18757 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
18759 * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
18761 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
18763 * DataGridDrawingLogic.cs: Fixes column hit calcultation
18764 * DataGridColumnStyle.cs: Remove debug message
18766 2005-10-20 Jackson Harper <jackson@ximian.com>
18768 * TreeView.cs: We can always get input keys regardless of whether
18769 or not editing is enabled. They are used for navigation.
18771 2005-10-20 Jackson Harper <jackson@ximian.com>
18773 * TreeNode.cs: Use the viewport rect for determining if a node
18774 needs to be moved for visibility. Don't use Begin/End edit. This
18775 calls a full refresh when its done.
18776 * TreeView.cs: New SetBottom works correctly. Make the viewport
18777 rect property internal so the treenodes can see it. When clicking
18778 on a node we need to ensure that its visible because it might just
18779 be partly visible when clicked.
18781 2005-10-20 Jackson Harper <jackson@ximian.com>
18783 * TreeNodeCollection.cs: Remove debug code.
18785 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
18787 * Datagrid.cs: Implements column sorting in Datagrid
18788 * DataGridColumnStyle.cs: Implements column sorting in Datagrid
18790 2005-10-20 Jackson Harper <jackson@ximian.com>
18792 * TreeNodeCollection.cs: Remove items properly. Update the correct
18793 area after removing them.
18795 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
18797 * Datagrid.cs: Should not call base.OnPaintBackground
18799 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
18801 * XplatUIX11.cs (GetMessage):
18802 - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
18803 window instead of client window
18804 - Now properly calculates NC_xBUTTONUP message coordinates
18805 - ScreenToMenu now properly calculates it's coordinates of whole
18806 window, since menus are in the whole window, not in the client
18808 - Added WholeToScreen coordinate translation method
18810 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
18812 * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
18813 want to return a message, loop back to the beginning of the function
18814 and grab the next real message to process instead.
18816 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
18818 * Splitter.cs: Properly set limits if no filler control is used
18820 2005-10-19 Jackson Harper <jackson@ximian.com>
18822 * ColorDialog.cs: Don't show the help button if it is not enabled
18823 instead of disabling it (this is what MS does). Don't create the
18824 panel until the dialog is run, otherwise the vars (such as
18825 ShowHelp) are not set yet.
18827 2005-10-19 Jackson Harper <jackson@ximian.com>
18829 * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
18830 are reduced when adding nodes.
18832 * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
18835 2005-10-19 Jackson Harper <jackson@ximian.com>
18837 * FolderBrowserDialog.cs: End editing our treeview so the window
18838 actually gets refreshed.
18840 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
18842 * Control.cs: Fixed logic flip on when to call OnPaintBackground.
18843 Obsoleted handling of WM_ERASEBKGND, now always draws our background
18846 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
18848 * MenuAPI.cs: Returns after Hidding window
18849 * XplatUIX11.cs: Added TODO found while debugging menu issues
18851 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
18853 * XplatUIX11.cs: Do not re-map the whole window when it's size
18854 becomes non-zero unless it's supposed to be actually visible
18856 2005-10-18 Jackson Harper <jackson@ximian.com>
18858 * TreeView.cs: We don't need to keep a count anymore.
18859 * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
18860 use the Grow method.
18862 2005-10-18 Jackson Harper <jackson@ximian.com>
18864 * TreeNodeCollection.cs: Insert is not supported on arrays, so
18865 implement it manually here.
18867 2005-10-18 Jackson Harper <jackson@ximian.com>
18869 * ImageList.cs: Dont kill the list when the colour depth is
18870 changed, just change the colour depth of all the images.
18871 - Same goes for setting the image size. Just resize them all
18872 instead of killing the list softly.
18874 2005-10-18 Jackson Harper <jackson@ximian.com>
18876 * Control.cs: Don't invalidate empty rectangles.
18878 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
18881 - Adds checked item to the Checked/Item lists (where empty before)
18882 - Do not add items to the Selected lists if they are already present
18884 - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
18885 - When deleting items make sure that we delete them for the Selected
18886 and Checked list also.
18888 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
18890 * Label.cs: Dispose objects no longer used
18891 * ThemeWin32Classic.cs: Dispose objects no longer used
18893 2005-10-18 Jackson Harper <jackson@ximian.com>
18895 * TabControl.cs: Don't refresh the whole control when the tabs are
18896 scrolled, we just need to refresh the tab area.
18898 2005-10-17 Jackson Harper <jackson@ximian.com>
18900 * XplatUIX11.cs: Compress code a little bit. Only calculate the
18901 after handle when we need it.
18903 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
18905 * Control.cs: When the parent size changes, recalculate anchor
18906 positions. Partial fix for #76462
18908 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
18910 * ThemeWin32Classic.cs: Make sure the picturebox has it's background
18911 drawn. Fixes #76462
18913 2005-10-17 Jackson Harper <jackson@ximian.com>
18915 * MonthCalendar.cs: Don't create the numeric up down until our
18916 handle is created. Otherwise our handle is created in the
18917 constructor and we don't know if we are a WS_CHILD or WS_POPUP
18920 2005-10-17 Jackson Harper <jackson@ximian.com>
18922 * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
18925 2005-10-17 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
18926 * TreeNode.cs : small logical fix (was using local var instead of field)
18928 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
18930 * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
18932 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
18934 * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
18936 2005-10-16 Peter Dennis Bartok <pbartok@novell.com>
18939 - Re-implemented anchoring code. My first version was really broken.
18940 This fixes bug #76033. Unlike the previous implementation we will
18941 no longer have round errors since all numbers are calculated from
18942 scratch every time. Removed various anchor-related obsolete vars.
18943 - InitLayout no longer causes layout event firing and layout to be
18946 2005-10-16 Jackson Harper <jackson@ximian.com>
18948 * Hwnd.cs: Compute invalid area correctly (fixes my last commit
18951 2005-10-16 Jackson Harper <jackson@ximian.com>
18953 * TabControl.cs: Remove debug code.
18955 2005-10-16 Jackson Harper <jackson@ximian.com>
18957 * XEventQueue.cs: Increase the default queue size (very simple
18958 apps needed to grow the queue).
18959 * Hwnd.cs: No finalizer so we don't need to suppress
18960 finalization. Compute the invalid area manually so a new rectangle
18961 does not newto be created.
18962 * ScrollableControl.cs: Don't set any params (otherwise visibility
18963 isn't set correctly).
18964 * MdiChildContext.cs: New constructor takes the mdi parent so it
18965 doesn't have to be computed and avoids a crash on windows. Draw
18966 the window icon properly, and allow the text to be seen.
18967 * Form.cs: Use new MdiChildContext constructor. Make sure the
18968 child context isn't null in wndproc.
18969 * TabControl.cs: Don't set focus, this is muddling keyboard
18970 behavoir. Expand the tab rows when a window size increase will
18971 allow extra tabs to be seen. Don't allow tabs smaller than the
18972 width of a window to be scrolled out of view.
18974 * TreeView.cs: Use measure string to calculate a nodes width, the
18975 width is cached and only updated when the text or the font is
18976 changed. Don't check for expand/collapse clicks on the first level
18977 nodes if root lines are disabled.
18979 2005-10-16 Ritvik Mayank <mritvik@novell.com>
18981 * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
18983 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
18985 * DataGridBoolColumn.cs: fixes warning
18987 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
18989 * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
18990 to match more to match more precisely the MS Net behavior
18992 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
18994 * Hwnd.cs: Added field to track if window is mapped
18996 - Unmap windows if they become 0-size, re-map when
18997 they are >0 again; fixes #76035
18998 - Re-set our error handler after initializing X11Desktop
18999 to override any error handlers Gtk or whatever was called
19002 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
19004 * CheckedListBox.cs: Removed unused vars
19005 * ListView.cs: Fixed signatures
19006 * RichTextBox.cs: Removed unused vars
19007 * TextBoxBase.cs: Removed unused vars
19008 * XplatUIWin32.cs: Removed unused vars
19009 * XplatUIX11.cs: Removed unused vars
19010 * XplatUI.cs: Updated version and date to latest published
19012 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
19014 * Cursor.cs: Added private .ctor to work around a bug in
19015 resourceset (Thanks to Geoff Norton for the help on this)
19016 * SplitterEventArgs.cs: Made fields accessible so we don't
19017 waste boatloads of objects and can reuse the same one
19019 * XplatUIWin32.cs(DrawReversibleLine): Now also considers
19020 any captions and borders when generating screen coordinates
19021 * Splitter.cs: Reimplemented control, now fully complete, uses
19022 rubberband drawing, supports and obeys all properties, has
19025 2005-10-13 Miguel de Icaza <miguel@novell.com>
19027 * Form.cs (Form): Setup default values for autoscale and
19028 autoscale_base_size; Make these instance variables, not static
19031 (OnLoad): on the first load, adjust the size of the form.
19033 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
19035 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added
19036 width argument to DrawReversibleRectangle()
19037 * XplatUIWin32.cs, XplatUIX11.cs:
19038 - Implemented width for DrawReversibleRectangle()
19039 - Added logic to DrawReversibleRectangle that recognizes a zero
19040 width or height and only draws a line in that situation
19042 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
19044 * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
19045 * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
19046 * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
19047 method (it uses our FosterParent window to get a graphics context)
19049 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
19051 * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground
19052 and SetWindowBackground methods
19054 - Setting proper ControlStyles
19055 - We no longer call XplatUI.SetWindowBackground and XplatUI.
19056 EraseWindowBackground, instead we draw the window background
19057 ourselves in PaintControlBackground. This behaviour is
19058 required to match MS, where, when OnPaintBackground is not
19059 called, the background is not drawn.
19060 - Removed unneeded Refresh() in set_Text
19061 * Hwnd.cs: Dropped the ErasePending support. No longer needed
19063 - Created DeriveStyles method to translate from CreateParams to
19064 FormBorderStyle and TitleStyle, also handles BorderStyle (which
19065 matches FormBorderStyle enum values)
19066 - Consolidated SetHwndStyles and CalculateWindowRect border/title
19067 style calculations into single DeriveStyles method
19068 - Fixed CreateWindow to (finally) use Gravity. This prevents X11
19069 from redrawing the whole window on any resize or expose.
19070 - Fixed CreateWindow usage of SetWindowValuemask. Before not
19071 all styles were applied to our whole/client window appropriately
19072 - Removed EraseWindowBackground() and SetWindowBackground() methods
19073 - Removed handling of WM_ERASEBKGND message from DefWndProc, we
19074 no longer clear/redraw the background through X
19075 - Removed handling of erase_pending bit, we have no use for it (or
19078 - Removed generation and handling of WM_ERASEBKGND message
19079 - Removed EraseWindowBackground() and SetWindowBackground() methods
19080 - Removed handling of hwnd.ErasePending flag
19082 - Removed EraseWindowBackground() and SetWindowBackground() methods
19083 - We no longer call EraseWindowBackground on PaintEventStart, we
19084 ignore the fErase flag, erasing is handled in Control in the
19086 * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
19087 LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
19088 TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs,
19089 CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs,
19090 DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs,
19091 TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
19092 DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
19094 2005-10-12 Jonathan Chambers <jonathan.chambers@ansys.com>
19096 * PropertyGrids.cs: Get sub properties
19097 * PropertyGridView.cs: Fix drawing code
19099 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
19101 * ListBox.cs: Fixes 76383
19103 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
19105 * DataGridTextBoxColumn.cs: Sets location and size before attachment
19106 * ThemeWin32Classic.cs: Fixes border drawing and calculations
19107 * DataGridDrawingLogic.cs: Fixes border drawing and calculations
19110 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
19112 * ComboBox.cs: Fixes border drawing
19114 2005-10-10 Miguel de Icaza <miguel@novell.com>
19116 * MimeIcon.cs: Ignore errors if the file can not be read.
19118 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
19120 * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
19121 - Fixed border calculations
19122 - Fixed horizontal scrolling in single column listboxes
19123 - Fixed drawing issues
19125 2005-10-10 Peter Dennis Bartok <pbartok@novell.com>
19127 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to
19128 FormBorderStyle enum
19129 * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added
19130 code to determine FormBorderStyles from CreateParams
19132 - Fixed bug where we'd set the wrong window styles if we were
19133 not creating an MDI window
19134 - Added call to XplatUI.SetBorderStyle when form borders are set
19135 * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
19137 - Removed obsolete edge style
19138 - Switched from BorderStyle to FormBorderStyle
19140 2005-10-10 Jackson Harper <jackson@ximian.com>
19142 * Form.cs: Use the property to get the window handle instead of
19143 accessing it directly. Prevents a null reference exception.
19145 2005-10-10 Jackson Harper <jackson@ximian.com>
19147 * TreeView.cs: Don't adjust the rect given to DrawString now that
19148 our libgdiplus draws correctly.
19150 2005-10-08 Jackson Harper <jackson@ximian.com>
19152 * TreeView.cs: Don't try to find the clicked on node if there are
19153 no nodes in the tree.
19155 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
19161 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
19163 * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
19164 ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
19166 Use ResPool for brushes and dispose System.Drawing objects that
19167 are not used anymore.
19169 2005-10-07 Jackson Harper <jackson@ximian.com>
19171 * MdiChildContext.cs: Use the new borders instead of drawing them
19174 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
19176 * Calling UpdateBounds after changing the window's BorderStyle
19177 since the style can change the ClientSize
19179 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
19181 * Control.cs: Made PaintControlBackground virtual
19182 * Panel.cs: Overriding PaintControlBackground instead of using paint
19183 event; paint event method was interfering with 'real' users of the
19186 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
19188 * ThemeWin32Classic.cs: remove border drawing since it is handled
19189 by the base control class now and was causing double border drawing.
19191 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
19193 * Panel.cs: Redraw our background on paint. Not a pretty solution,
19194 but it does seem to match MS behaviour. This fixes bug #75324
19196 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
19198 * XplatUIX11.cs: A better DrawReversibleRectangle version, however
19199 somewhat hackish looking
19201 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
19204 - We now accept Enter even if AcceptEnter is false, if the containing
19205 form does not have an AcceptButton configured (fixes bug #76355)
19206 - Calculations are now fixed to no longer use Width/Height, but
19207 ClientSize.Width/Height, since we now support borders (this was
19208 a result of fixing borders and therefore bug #76166)
19209 - We no longer show the horizontal scrollbar if TextBox.WordWrap is
19210 true (fixes bug #76354)
19212 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
19215 - Defaulting BorderStyle and setting it in XplatUI when our window
19217 - Added enum check to InternalBorderStyle setter
19219 - Added drawing of window borders
19220 - Now properly calculates WM decorations offset for toplevel
19221 windows (fixes bug #74763)
19223 - Implemented BorderStyles for windows (we're letting win32 draw
19225 - Fixed the signature for SetWindowLong
19226 * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
19227 ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for
19229 * UpDownBase.cs: Remove drawing of borders, this is handled by
19230 the driver, outside the client area
19231 * ListView.cs: Removed bogus border calculations. The control should
19232 be oblivious to borders, since those are not part of the client
19234 * X11DesktopColors.cs: Commented out (currently) unneeded variables
19235 * ThemeWin32Classic.cs: Removed border calculations from ListView
19238 2005-10-06 Jackson Harper <jackson@ximian.com>
19240 * MdiChildContext.cs: Clear out the old virtual position remove
19241 all the unneeded calls to CreateGraphics.
19243 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
19245 * TextControl.cs: Use proper color for highlighted text; fixes #76350
19247 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
19250 - Added loading and setting of our new default icon
19251 - Only set icon if window is already created
19253 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
19256 - Do not explicitly set the foreground and background colors, to
19257 allow inheriting from parents (fixes #76302)
19258 - Use Control's InternalBorderStyle property to deal with borders
19260 2005-10-06 Jackson Harper <jackson@ximian.com>
19262 * MdiChildContext.cs: Use the new xplatui function to draw a
19265 2005-10-06 Jackson Harper <jackson@ximian.com>
19267 * Form.cs: Add the parent before creating the child context cause
19268 we need the parent when setting up the child.
19270 2005-10-06 Jackson Harper <jackson@ximian.com>
19272 * FolderBrowserDialog.cs: redo the tree population code so a
19273 second thread isn't used. Should be a lot faster and more stable
19276 2005-10-05 Jackson Harper <jackson@ximian.com>
19278 * TreeView.cs: There are no expand/collapse boxes if the node has
19281 2005-10-05 Jackson Harper <jackson@ximian.com>
19283 * X11DesktopColors.cs: Get menu colours for the gtk theme.
19285 2005-10-05 Alexander Olk <alex.olk@googlemail.com>
19287 * FileDialog.cs: Fix InitialDirectory
19289 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
19292 - Fixes changing between styles
19293 - Fixes simple mode
19294 - Fixes last item crashing when navigating with keyboard
19296 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
19298 * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
19300 2005-10-05 Jackson Harper <jackson@ximian.com>
19302 * TreeView.cs: If updating the root node do a full refresh.
19303 * TreeNode.cs: The root node should be expanded by default. Also
19304 added a utility prop to tell if we are the root node.
19305 * TreeNodeCollection.cs: Only refresh if the node we are being
19306 added to is expanded. Also added a comment on a potential
19309 2005-10-04 Peter Dennis Bartok <pbartok@novell.com>
19311 * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize()
19312 in dispose method. Fixes #76330
19314 2005-10-04 Jordi Mas i Hernandez <jordi@ximian.com>
19316 * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
19318 - Implements vertical and horizontal scrolling using XplatUI
19319 - Fixes keyboard navagation
19320 - Fixes EnsureVisible
19322 - Handles and draws focus properly
19325 2005-10-04 Kornél Pál <kornelpal@hotmail.com>
19327 * ImageList.cs: Use upper case initials for internal fields. ImageStream:
19328 Create handle. NET_2_0: Destroy handle when value is null.
19330 2005-10-03 Jackson Harper <jackson@ximian.com>
19332 * ScrollBar.cs: My last scrollbar patch was broken. This is a
19333 revert and a new patch to prevent the thumb from refreshing so
19336 2005-10-02 Jackson Harper <jackson@ximian.com>
19338 * ScrollBar.cs: Don't update position if it hasn't actually
19339 changed. This occurs when you hold down the increment/decrement
19340 buttons and the thumb gets to the max/min.
19342 2005-10-01 Jackson Harper <jackson@ximian.com>
19345 * MdiChildContext.cs:
19346 * MdiClient.cs: Implement ActiveMdiChild in Form.
19348 2005-10-01 Jordi Mas i Hernandez <jordi@ximian.com>
19350 * ComboBox.cs: Include ComboBoxEdit flag for the edit item
19352 2005-10-01 Peter Dennis Bartok <pbartok@novell.com>
19354 * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
19357 2005-09-30 Jackson Harper <jackson@ximian.com>
19359 * ListBox.cs: Don't do a full refresh unless some data has
19362 2005-09-30 Jackson Harper <jackson@ximian.com>
19364 * TreeView.cs: Make sure that the checkboxes size is factored in
19365 even when not visible.
19367 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
19369 * FileDialog.cs: Fix Jordi's build break
19371 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
19374 - Use standard the Windows colours for the combobox as espected
19375 - Dispose objects that use resouces when no longer need them
19377 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
19379 * X11DesktopColors.cs: Initial incomplete implementation
19380 * XplatUIX11.cs: Added call to initialize X11DesktopColors
19382 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
19385 - Switched Theme color names to match the names defined in
19386 System.Drawing.KnownColors. Life's hard enough, no need to make
19388 - Added setters to all theme color properties so themes can set
19389 their color schemes. The setters also propagate the color changes
19390 to System.Drawing.KnownColors via reflection
19391 * ControlPaint.cs, Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
19392 ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
19393 DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
19394 use the new, more logical theme color names
19395 * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
19397 * ThemeWin32Classic.cs:
19398 - Removed code to set the old classic Windows colors. Instead it
19399 now relies on the colors returned by System.Drawing.KnownColors
19400 which will be either modern static colors (Unix) or colors
19401 read from the user's configuration (Win32)
19402 - Updated to use the new, more logical theme color names
19403 - Switched DataGrid drawing code to use only Theme colors instead of
19404 a mix of System.Drawing.KnownColors and Theme colors
19405 - DrawFrameControl(): Removed code that fills the button area, the
19406 fill would overwrite any previous fill done by a control. This
19408 - Added DrawReversibleRectangle() stub
19409 * ScrollableControl.cs: Set visible state to false when scrollbars
19410 are removed (pdn fix)
19411 * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added
19412 DrawReversibleRectangle() method to allow drawing primitive
19414 * XplatUIX11.cs: Implemented DrawReversibleRectangle()
19416 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
19418 * ImageList.cs: Add(Icon): Create handle.
19420 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
19423 * ThemeWin32Classic.cs:
19424 - Fixes detail mode
19426 - Issues with drawing
19428 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
19430 * ImageList.cs: Moved RecreateHandle back to ImageList as event
19431 source has to be the ImageList.
19433 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
19435 * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
19437 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
19439 * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
19441 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
19443 * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
19445 2005-09-29 Jonathan Chambers <jonathan.chambers@ansys.com>
19446 * GridItem.cs: Fixed TODOs
19447 * GridItemCollection.cs: Added ICollection interface
19449 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
19451 * ImageList.cs: Resize icons when needed.
19453 2005-09-29 Jordi Mas i Hernandez <jordi@ximian.com>
19456 - Fixes GetBounds and returns on screen rects
19458 - Fixes vertical and horzintal scrolling of items
19459 * ThemeWin32Classic.cs:
19462 2005-09-29 Raja R Harinath <harinath@gmail.com>
19464 * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
19466 2005-09-29 Kornél Pál <kornelpal@hotmail.com>
19468 * ImageList.cs: Added comments about handle creation. Moved Handle,
19469 HandleCreated and OnRecreateHandle implementations to ImageCollection.
19470 Handle is created in Add methods.
19472 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
19474 * DataGridDrawingLogic.cs:
19475 - Takes rows into account on Colum calculations
19476 - Returns the column when clickig
19478 - Fixes default HitTestInfo values
19479 - Fixes HitTestInfo.ToString
19480 - Fixes ResetBackColor
19482 2005-09-28 Jackson Harper <jackson@ximian.com>
19484 * MdiChildContext.cs: Obey rules for fixed sized windows (no
19485 sizing or cursor changes). Also added some temp code to draw the
19486 titlebars text (Makes dev a little easier).
19488 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
19490 * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
19492 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
19494 * ListBox.cs: Fixes bug 76253
19496 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
19498 * ImageList.cs: Added comments about the current implementation. Added
19499 ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
19500 Format32bppArgb to preserve transparency and can use Graphics.FromImage
19501 while using the specified ColorDepth. ReduceColorDepth uses unsafe code
19502 with Bitmap.LockBits for better performance. Revised the whole file to
19503 match MS.NET behaviour and provide better performance. Non-public
19504 interface members are calling public members even when they throw
19505 NotSupportedException for better maintainability. Moved ColorDepth,
19506 ImageSize, ImageStream and TransparentColor implementations to
19507 ImageCollection for better performance as these properties are not used
19509 * ImageListStreamer.cs: Added a new internal constructor that takes an
19510 ImageList.ImageCollection and serializes Images based on
19511 ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
19512 match ImageList property name.
19514 2005-09-28 Kazuki Oikawa <kazuki@panicode.com>
19516 * ListBox.cs: Fixes IndexFromPoint for last item
19518 2005-09-27 Jackson Harper <jackson@ximian.com>
19520 * Form.cs: Set the position of new mdi children correctly.
19522 2005-09-27 Jackson Harper <jackson@ximian.com>
19524 * MdiClient.cs: New mdi children need to be added to the back of
19525 the controls collection so the zorder is set correctly. Also add a
19526 count of all the child windows that have been created.
19528 2005-09-27 Jackson Harper <jackson@ximian.com>
19530 * Form.cs (CreateParams): Setup MDI forms correctly.
19532 2005-09-27 Jackson Harper <jackson@ximian.com>
19534 * MdiChildContext.cs:
19535 * MonthCalendar.cs:
19541 * ScrollableControl.cs:
19542 * ComboBox.cs: Add implicit controls using the new implict control
19543 functionality in ControlCollection. Also try to block multiple
19544 control add in a suspend/resume layout to save some cycles.
19546 2005-09-27 Jackson Harper <jackson@ximian.com>
19548 * Control.cs: Add functionality to the controls collection to add
19549 'implicit controls' these are controls that are created by the
19550 containing control but should not be exposed to the user. Such as
19551 scrollbars in the treeview.
19552 * Form.cs: The list var of the ControlsCollection is no longer
19553 available because of the potential of implicit controls getting
19554 ignored by someone accessing the list directly.
19556 2005-09-26 Peter Dennis Bartok <pbartok@novell.com>
19558 * Control.cs: Fixed SetChildIndex; it no longer causes a child to
19559 loose it's parent. (Fixed bug introduced in r49103 when we added
19560 setting the child parent to null on Remove)
19562 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
19564 * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
19565 * Splitter.cs: Added missing attributes for BorderStyle property.
19566 * TextBoxBase.cs: Marked Calculate* methods internal.
19567 * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
19570 2005-09-26 Jordi Mas i Hernandez <jordi@ximian.com>
19572 * ListBox.cs: Fixes navigation to the last item in multicolumn lists
19574 2005-09-25 Jackson Harper <jackson@ximian.com>
19576 * TreeView.cs: Update the node bounds correctly regardless of
19577 whether the node is visible.
19579 2005-09-25 Jackson Harper <jackson@ximian.com>
19581 * ImageList.cs: Don't dispose the image after it is added to the
19582 image list. Only reformat images that need to be resized.
19584 2005-09-25 Jackson Harper <jackson@ximian.com>
19586 * ImageList.cs: Don't set the format when changing the image.
19588 2005-09-25 Jackson Harper <jackson@ximian.com>
19590 * TreeView.cs: We can't just assume the node has a font. Use the
19591 treeviews font if no node font is available.
19593 2005-09-25 Jackson Harper <jackson@ximian.com>
19595 * TreeView.cs: Allow the scrollbars to be reset with negative
19597 - Don't add scrollbars to negative sized windows.
19599 2005-09-23 Jackson Harper <jackson@ximian.com>
19601 * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
19602 old Mono.Posix. Also remove some stray code that shouldn't have
19605 2005-09-23 Jackson Harper <jackson@ximian.com>
19607 * TreeView.cs: Attempt at proper sizing of the horizontal
19608 scrollbar. Also don't resize the scrollbars unless they are
19611 2005-09-23 Jackson Harper <jackson@ximian.com>
19613 * TreeView.cs: We don't need to expand the invalid area when the
19614 selection changes, as this is all drawn in the node's bounding
19615 box. The area needs to be expanded (previous typo was contracting
19616 it) when the focus rect moves.
19618 2005-09-23 Jackson Harper <jackson@ximian.com>
19620 * TreeView.cs: Display the selection box under the correct
19621 circumstances. We were rendering white text with no selection box
19624 2005-09-23 Peter Dennis Bartok <pbartok@novell.com>
19626 * TextControl.cs(Split): Now updates selection start/end if it points
19627 into a line that's being split. Fixes a FIXME and bug #75258
19629 2005-09-23 Jackson Harper <jackson@ximian.com>
19632 * ListControl.cs: Don't use the path when retrieving binding
19633 managers from the binding context. My bat sense tells me that the
19634 path is only used on insertion.
19636 2005-09-22 Jackson Harper <jackson@ximian.com>
19638 * Splitter.cs: Set the cursor an easier way. (Thanks peter).
19640 2005-09-22 Jackson Harper <jackson@ximian.com>
19642 * Splitter.cs: There are special cursors used for splitting.
19643 * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
19645 2005-09-22 Jackson Harper <jackson@ximian.com>
19647 * Splitter.cs: Change the cursor appropriately when the splitter
19648 is moused over, so the user actually knows there is a splitter
19651 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
19653 * Label.cs : Fix ToString method to give same output as MS.NET
19655 2005-09-22 Jackson Harper <jackson@ximian.com>
19657 * TreeView.cs: Create the scrollbars when the handle is created
19658 and add them right away, just make them invisble. Also account for
19659 the window being shrunk vertically to the point that the vert
19660 scrollbar needs to be added.
19661 - Remove some 0.5 adjustments to get around anti aliasing issues.
19663 2005-09-22 Jordi Mas i Hernandez <jordi@ximian.com>
19665 * MainMenu.cs: Fixes default value
19666 * MenuItem.cs: Fixes default value
19668 2005-09-22 Kazuki Oikawa <kazuki@panicode.com>
19670 * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
19672 2005-09-21 Jackson Harper <jackson@ximian.com>
19674 * Control.cs: Don't try to set the border style on the window if
19675 it hasn't been created. When the window is created the border
19676 style will be used.
19678 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
19680 * Control.cs (Update): Don't call XplatUI if we don't have a
19683 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
19685 * ContainerControl.cs: Instead of throwing an exception, print
19686 a one-time warning about Validate not being implemented
19687 * XplatUIWin32.cs: Removed debug output
19689 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
19691 * Control.cs: Only set XplatUI background if we expect the windowing
19692 system to handle the background. This stops controls that draw their
19693 own background from flickering
19695 * XplatUIX11.cs: Support custom visuals and colormaps for window
19696 creation. This allows, amongst other things, using MWF X11 windows
19699 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
19701 * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
19702 CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
19703 GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
19704 SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
19705 TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
19706 IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
19707 KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
19708 RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
19709 ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
19710 ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
19711 GridColumnStylesCollection.cs,
19712 IDataGridColumnStyleEditingNotificationService.cs,
19713 PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
19714 MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
19715 GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs,
19716 TreeNodeCollection.cs, AmbientProperties.cs,
19717 RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
19718 DataObject.cs, ErrorProvider.cs, Splitter.cs,
19719 DataGridLineStyle.cs, Shortcut.cs, Control.cs,
19720 FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
19721 BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
19722 IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
19723 FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
19724 IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
19725 NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
19726 PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
19727 SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
19728 FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
19729 DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
19730 ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
19731 RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
19732 MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
19733 ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
19734 CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
19735 MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
19736 NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
19737 ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
19738 SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
19739 Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
19740 RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
19741 DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
19742 ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
19743 PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
19744 DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
19745 ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
19746 AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
19747 RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
19748 CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
19749 SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
19750 Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
19751 SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
19752 ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
19753 TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
19755 2005-09-21 Jackson Harper <jackson@ximian.com>
19757 * TreeNode.cs: Call Before/After Expand not Collapse when
19760 2005-09-20 Jackson Harper <jackson@ximian.com>
19762 * XplatUIX11.cs: Use the more hand looking hand (in most themes).
19764 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
19768 - Fixes proper storing of subitems
19769 - Fixes not updated items
19771 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
19773 * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
19774 things if our window handle isn't created yet. Also disabled
19775 debug for TextBoxBase
19777 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
19779 * MenuAPI.cs: Remove filtering of events to allow menu usage
19781 2005-09-20 Miguel de Icaza <miguel@novell.com>
19783 * Cursor.cs: Allow null to be passed to Cursor.Current.
19785 2005-09-20 Alexander Olk <alex.olk@googlemail.com>
19787 * ThemeWin32Classic.cs:
19788 - Change some private methods/fields to protected virtual so that
19789 they can be accessed and overriden in derived classes
19790 - First refactoring of some methods. Derived themes now don't
19791 need to duplicate the complete code from ThemeWin32Classic
19793 - Added nice StatusBar
19794 - Derive from ThemeWin32Classic and not Theme
19795 - Removed duplicate ThemeWin32Classic code
19797 2005-09-20 Miguel de Icaza <miguel@novell.com>
19799 * Control.cs (ControlCollection.Add): If the value null is passed
19800 the control is ignored.
19802 Optimize this loop.
19804 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
19806 * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
19807 PostQuitMessage state.
19808 * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
19810 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
19812 * Application.cs: Our constructor will never get called, move
19813 initialization to fields; fixes bug #75933
19815 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
19818 - Allow files to be selected properly using file name
19820 - Add ability to change diretory (absolute / relative)
19821 using file name combo box.
19823 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
19826 - Fixes Multicolumn listboxes item wrong calculations
19827 - Allows to click when only one item is in the listbox
19828 - Fixes crash when no items using keyboard navigation
19830 2005-09-16 Alexander Olk <alex.olk@googlemail.com>
19832 * ComboBox.cs: Reverted almost everything from the latest patch which
19835 2005-09-16 Kazuki Oikawa <kazuki@panicode.com>
19838 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
19840 - When DropDownStyle is Simple, it does not show scrollbar
19841 to the last item of the list.
19842 - When DropDownStyle is Simple, it crashed when the list was
19843 scrolled down with the down cursor key.
19844 - Fixed a bug that when DropDownStyle is DropDownList, the
19845 selected item was not shown.
19846 - The position of the selected item was not preserved when
19847 the next dropdown happened.
19848 * ThemeWin32Classic.cs:
19849 - Items were wrapped at the right end.
19850 * CheckedListBox.cs:
19853 - Items should be fully shown.
19854 - When resizing and vertical scrollbar disappeared, the item
19855 of index 0 should be on the top of the list.
19856 - GetItemRectangle should consider the size of ver. scrollbar
19858 - SizingGrip area should not be allocated when it is not
19860 - Now it reflects MinWidth of the containing panel and
19861 fixed a crash that happens when its width becomes so small.
19863 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
19865 * CheckedListBox.cs: Fixes bug 76028
19866 * ListBox.cs: Fixes bug 76028
19868 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
19870 * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
19871 * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
19873 2005-09-12 Jordi Mas i Hernandez <jordi@ximian.com>
19875 * XplatUIX11.cs: fixes System.NullReferenceException in some situations
19877 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
19879 * IRootGridEntry.cs: Changed namespace to PropertyGridInternal
19881 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
19883 * IRootGridEntry.cs: Added
19884 * PropertyGridCommands.cs: Added
19885 * PropertiesTab.cs: Added missing methods and property
19886 * PropertyGridView.cs: Made class internal
19887 * PropertyGridTextBox.cs: Made class internal
19889 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
19891 * MimeIcon.cs: Try to check some other environment variables
19892 if "DESKTOP_SESSION" returns "default"
19894 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
19896 * ThemeNice.cs: Corrected background colors (e.g. menus)
19897 * ColorDialog.cs: Use correct background colors for controls
19899 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
19901 * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
19903 2005-09-08 Peter Dennis Bartok <pbartok@novell.com>
19905 * RichTextBox.cs: Added initial implementation
19906 * lang.cs: Removed. Was accidentally checked in long time ago
19907 * TODO: Removed. Contents were obsolete
19909 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
19911 * PropertiesTab.cs : Added
19913 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
19915 * PropertyGrid.cs : Update
19916 * PropertyGridView.cs : Update
19917 * System.Windows.Forms.resx : Added images and strings
19919 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
19921 * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
19923 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
19925 * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
19926 a busy loop right after the Ungrab the X11 display is otherwise
19929 2005-09-06 Jordi Mas i Hernandez <jordi@ximian.com>
19931 * ThemeWin32Classic.cs: Optimise the use of clipping
19933 2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com>
19935 * DataGrid.cs: fixes recursion bug
19937 2005-09-03 Alexander Olk <alex.olk@googlemail.com>
19940 - Draw RadioButton and CheckBox Buttons with DrawButtonBase
19943 2005-09-02 Alexander Olk <alex.olk@googlemail.com>
19945 * ThemeNice.cs: Draw nice ProgressBars
19947 2005-09-01 Miguel de Icaza <miguel@novell.com>
19949 * VScrollBar.cs: Another buglet found by Aaron's tool.
19951 * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
19954 2005-08-30 Alexander Olk <alex.olk@googlemail.com>
19957 - Added nicer menu drawing
19961 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
19963 * CreateParams.cs (ToString): Made output match MS
19964 * Control.cs (Text): Don't set Text or Focus via XplatUI unless
19965 handle is already created (to avoid forcing window creation)
19966 * XplatUIX11.cs: Set window text to caption after creating window,
19967 in case Text was set before window was created
19968 * Form.cs: Use this.Text instead of a static string as caption
19970 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
19972 * NotifyIcon.cs: Don't set the window to visible; this screws
19973 up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
19974 OnPaint without a bitmap)
19975 * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't
19976 happen very often anyway; we could add the check to the WM_PAINT
19977 event generation code
19979 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
19981 * NotifyIcon.cs: Fill the icon area with a background color, to
19982 avoid 'residue' when transparent icons are drawn
19984 - Handle whole_window == client_window when destroying windows
19985 - SystrayAdd(): Set client_window to whole_window value to
19986 get mouse and other events passed to NotifyIcon
19988 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
19990 * Form.cs: Set proper default for Opacity property
19992 - ShowSystray(): Don't bother creating telling the OS
19993 about the systray item if no icon is provided
19994 - Now handles WM_NCPAINT message to deal with whole/client window
19996 - Create window as visible to not get caught by Expose optimization
19997 * Hwnd.cs: Removed debug message
19998 * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
19999 StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched
20000 PaintEventStart/End to use new client argument
20002 - Commented out debug messages
20003 - Switched PaintEventStart/End to use new client argument
20004 * XplatUI.cs: Added client window bool to PaintEventStart()/
20005 PaintEventEnd() calls, to support drawing in non-client areas
20006 * XplatUIDriver.cs:
20007 - Added client window bool to PaintEventStart()/PaintEventEnd()
20008 calls, to support drawing in non-client areas
20009 - Added conditional compile to allow using MWF BeginInvoke
20012 - Added some conditional debug output
20013 - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
20014 whole/client window split
20015 - Implemented handling of client argument to PaintEventStart()/End()
20017 - Throw exception if BeginInvoke() is called and the window handle
20018 or one of the window's parent handles is not created
20019 - Added conditional compile to allow using MWF BeginInvoke on
20021 - get_Parent(): Only sets parent if handle is created. This avoids
20022 forcing window handle creation when parent is set.
20023 - Now fires Layout and Parent changed events in proper order
20024 - Switched to use Handle instead of window.Handle for Z-Order setting,
20025 the get_Parent() patch above causes us to possibly get null for 'window'
20026 - Implemented handling of client argument to PaintEventStart()/End()
20027 - Now reports back to windows that WM_SETCURSOR was handled (to avoid
20029 - Now sends a Refresh() to all child windows when Refresh() is called
20031 2005-08-29 Peter Dennis Bartok <pbartok@novell.com>
20033 * Form.cs: Added (non-functional) Opacity property
20034 * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
20036 2005-08-29 Alexander Olk <xenomorph2@onlinehome.de>
20037 * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
20038 use export MONO_THEME=nice to activate it.
20039 Currently supported controls:
20043 - TabControl (TabAlignment.Top only, other will follow)
20044 * ThemeEngine.cs: Add theme nice
20045 * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
20048 2005-08-25 Jonathan Chambers <jonathan.chambers@ansys.com>
20050 * Splitter.cs: Resize docked control and its neighbor.
20052 2005-08-24 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
20053 -- Making Windows with Menus layout correctly --
20054 * Form.cs : The first leg of the fix
20055 Menu setter - adjust Client Size as needed to make space for the menu
20056 SetClientSizeCore - doesn't call base version to be able to pass the
20057 menu handle to XplatUI.CalculateWindowRect
20058 * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
20059 * XplatUIX11.cs: The critical second leg of the fix
20060 GetWindowPos needs to use a recalculated client_rect
20061 so that resizing the window doesn't break layout of child controls.
20062 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
20063 Lots of \t\n killed
20065 2005-08-23 Peter Dennis Bartok <pbartok@novell.com>
20067 * Label.cs: Now properly recalculates width and height on Font and Text
20068 changes if AutoSize is set
20070 2005-08-19 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
20071 * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
20073 2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
20075 * ImageList.cs: Makes ToString method compatible with MS
20077 2005-08-18 Jordi Mas i Hernandez <jordi@ximian.com>
20079 * MenuAPI.cs: fixes bug 75716
20081 2005-08-11 Umadevi S <sumadevi@novell.com>
20082 * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
20084 2005-08-11 Umadevi S <sumadevi@novell.com>
20085 * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
20087 2005-08-10 Umadevi S <sumadevi@novell.com>
20088 * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
20090 2005-08-07 Jordi Mas i Hernandez <jordi@ximian.com>
20092 * Menu.cs: fixes bug 75700
20093 * MenuAPI.cs: fixes navigation issues
20095 2005-08-09 Umadevi S <sumadevi@novell.com>
20096 * CheckedListBox.cs - simple fix for GetItemChecked.
20098 2005-08-08 Jordi Mas i Hernandez <jordi@ximian.com>
20100 * ComboBox.cs: Serveral fixes
20101 * ListBox.cs: Serveral fixes
20103 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
20105 * ComboBox.cs: Fixes FindString methods and GetItemHeight
20106 * ListBox.cs: Fixes FindString methods
20108 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
20110 * DataGrid.cs: fixes bugs exposed by new tests
20112 2005-08-04 Peter Dennis Bartok <pbartok@novell.com>
20114 * Mime.cs: Compile Mono assembly references only if compiling
20115 with Mono (Allows to build with VS.Net again)
20117 2005-07-28 Marek Safar <marek.safar@seznam.cz>
20119 * Control.cs (PaintControlBackground): Draw background image
20121 (CheckForIllegalCrossThreadCalls): Stubbed.
20123 * Form.cs (OnCreateControl): Center when should be centered.
20125 * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
20127 2005-07-19 Jordi Mas i Hernandez <jordi@ximian.com>
20129 * Binding.cs: Binding to properties should be case unsensitive
20131 2005-07-18 vlindos@nucleusys.com
20133 * DataGrid.cs: fixes setmember order
20135 2005-07-07 Alexander Olk <xenomorph2@onlinehome.de>
20137 * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
20138 * FileDialog.cs: FileDialog is now resizable and uses the new
20141 2005-07-06 Jordi Mas i Hernandez <jordi@ximian.com>
20143 * DataGridTextBoxColumn.cs: default value
20144 * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
20145 * GridTableStylesCollection.cs: fixes checking MappingName
20146 * DataGridDrawingLogic.cs: fixes drawing logic issues
20147 * DataSourceHelper.cs: rewritten to make compatible with more data sources
20148 * DataGrid.cs: fixes
20150 2005-07-06 Alexander Olk <xenomorph2@onlinehome.de>
20152 * MimeGenerated.cs: Use case sensitive comparer for
20153 NameValueCollections
20155 2005-07-01 Jordi Mas i Hernandez <jordi@ximian.com>
20157 * DataGridTextBoxColumn.cs: bug fixes, code refactoring
20158 * ThemeWin32Classic.cs: bug fixes, code refactoring
20159 * DataGridDrawingLogic.cs: bug fixes, code refactoring
20160 * DataGrid.cs: bug fixes, code refactoring
20161 * DataGridTextBox.cs: bug fixes, code refactoring
20162 * DataGridColumnStyle.cs: bug fixes, code refactoring
20163 * Theme.cs: bug fixes, code refactoring
20165 2005-07-01 Peter Bartok <pbartok@novell.com>
20167 * TextControl.cs: Quick fix for the reported crash on ColorDialog
20168 and other text box usage
20170 2005-07-01 Jackson Harper <jackson@ximian.com>
20172 * TabControl.cs: Make sure the bottom of the tab covers the pages
20175 2005-06-30 Peter Bartok <pbartok@novell.com>
20177 * Form.cs (ShowDialog): Assign owner of the dialog
20178 * TextBoxBase.cs: Always refresh caret size when deleting, caret
20179 might have been moved to a tag with different height
20181 2005-06-30 Jackson Harper <jackson@ximian.com>
20183 * Form.cs: Don't create an infinite loop when setting focus
20184 * MenuItem.cs: Don't dirty the parents if we don't have any
20186 2005-06-29 Ben Maurer <bmaurer@ximian.com>
20188 * LibSupport.cs: Rename
20190 2005-06-29 Peter Bartok <pbartok@novell.com>
20192 * TextBoxBase.cs: Re-align caret after deleting a character
20194 - DeleteChars(): Ensure that tag covers the provided position
20195 - StreamLine(): Drop reference for dropped tag
20197 2005-06-29 Peter Bartok <pbartok@novell.com>
20200 - Selections now work properly, anchoring at the initial location
20201 and properly extending in either direction (SetSelectionToCaret(),
20202 SetSelectionStart() and SetSelectionEnd())
20203 - No longer redraws the whole control on selection change, now
20204 calculates delta between previous and new selection and only
20205 invalidates/redraws that area
20206 - Fixed FindPos() math off-by-one errors
20207 - Changed DeleteChars() to verify the provided tag covers the
20208 provided position, selections may have a tag that doesn't cover
20209 the position if the selection is at a tag border
20210 - Fixed off-by-one errors in DeleteChars()
20211 - Added missing streamlining check in DeleteChars() to remove
20213 - Implemented Invalidate() method, now properly calculates exposures
20214 between two given lines/positions
20215 - Implemented SetSelection()
20216 - Obsoleted and removed FixupSelection()
20217 - Improved RecalculateDocument() logic, removing code duplication
20219 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20221 * LibSupport.cs: changes to match different input/output arguments.
20223 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20225 * LibSupport.cs: added libsupport.so init routine.
20227 2005-06-29 Jordi Mas i Hernandez <jordi@ximian.com>
20229 * ControlBindingsCollection.cs
20230 - Throws an exception on null datasource when adding
20231 - Checks for duplicated bindings when adding
20233 2005-06-28 Jackson Harper <jackson@ximian.com>
20235 * TreeView.cs (OnKeyDown): Support left and right properly
20236 (navigates as well as expanding and collapsing.
20237 - Add support for Multiply, this expands all the selected nodes
20239 - Fix some tabbing.
20241 2005-06-28 Jackson Harper <jackson@ximian.com>
20243 * TreeView.cs: Implement keyboard navigation, currently supports,
20244 LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
20245 support for toggling checkboxes with the space bar.
20247 2005-06-28 Jackson Harper <jackson@ximian.com>
20249 * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
20252 2005-06-28 Jackson Harper <jackson@ximian.com>
20254 * TreeView.cs: Add missing event.
20256 2005-06-27 Peter Bartok <pbartok@novell.com>
20259 - Made line ending size configurable (now allows for counting
20260 lineendings as \n or \r\n)
20261 - Added margin to viewport to keep caret visible on right side
20262 - Fixed translation routines for line/pos to documentpos to consider
20263 cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
20264 - Fixed some line-endings to be unix style
20265 - Fixed Document.FormatText to perform it's calculations 1-based
20266 - Added descriptions for a few methods that might otherwise get
20268 - Added NOTE section with some basic conventions to remember at
20269 the top of the file
20270 - Major fixup for RichTextBox selection drawing:
20271 * Fixed crashes when multiple tags on a single line were selected
20272 * fixed selection box drawing not overlaying text
20273 * fixed bogus offset calculation for tags not starting at index 1
20274 * Switched behaviour from using multiple Substrings of a
20275 StringBuilder.ToString() to using multiple
20276 StringBuilder.ToString(start, length) statements, hoping this is
20277 faster (kept original version commented out in the code, in case
20278 original version was faster)
20279 * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if
20281 * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
20284 2005-06-27 Jackson Harper <jackson@ximian.com>
20286 * TabControl.cs: Move to the left and right with the arrow
20287 keys. These keys don't cycle beyond first and last like
20288 tab. Refresh all the tabs when scrolling them to the left or
20291 2005-06-27 Jackson Harper <jackson@ximian.com>
20294 - ToString: Added method
20295 - CreateParams: Remove TODO and comment
20296 - OnKeyDown: Cycle through bounds properly.
20297 - SelectedIndex: Scroll to the right or left if we need to
20298 display the newly selected tab.
20300 2005-06-23 Jackson Harper <jackson@ximian.com>
20302 * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
20305 2005-06-23 Jackson Harper <jackson@ximian.com>
20307 * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
20308 CTRL-SHIFT-TAB, and HOME, END are there any others?
20310 2005-06-23 Jackson Harper <jackson@ximian.com>
20312 * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
20314 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
20316 * DataGridTextBoxColumn.cs: fixes and enhancements
20317 * ThemeWin32Classic.cs: fixes and enhancements
20318 * DataGridBoolColumn.cs: fixes and enhancements
20319 * DataGridDrawingLogic.cs: fixes and enhancements
20320 * CurrencyManager.cs: fixes and enhancements
20321 * DataGrid.cs: fixes and enhancements
20322 * DataGridColumnStyle.cs: fixes and enhancements
20324 2005-06-22 Jackson Harper <jackson@ximian.com>
20326 * TabControl.cs: Add some missing methods that just call into the
20327 base. Make the TabPageCollection's IList interface behave in the
20328 same manner as the MS implementation.
20330 2005-06-22 Peter Bartok <pbartok@novell.com>
20332 * TextControl.cs: Added sanity check
20334 - Fixed wrapping behaviour, don't set wrap on single line controls
20335 (this fixes the breakage of colordialog introduced in an earlier
20337 - Added rudimentary support for autoscrolling right-aligned controls
20338 (still needs fixing, also, center alignment scroll is missing)
20340 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
20342 * ScrollBar.cs: Fixes thumbpos on Maximum values
20344 2005-06-21 Jonathan Chambers <jonathan.chambers@ansys.com>
20346 * PropertyGridView.cs: Pass context information to UITypeEditors
20348 2005-06-21 Peter Bartok <pbartok@novell.com>
20351 - Now calling PositionCaret with absolute space coordinates
20352 - Enabled vertical scrolling
20353 - Better tracking of scrollbar changes, tied into WidthChange
20355 - Improved cursor tracking
20356 - Removed debug output
20358 - PositionCaret coordinates are now works in absolute space, not
20360 - Improved tracking of document size
20361 - Added events for width and height changes
20363 2005-06-21 Peter Bartok <pbartok@novell.com>
20365 * Form.cs: Set focus to active control when form is activated
20367 - Added word-wrap functionality to RecalculateLine()
20368 - Added some short function descriptions for VS.Net to aid in
20369 writing dependent controls
20370 - Added Caret property, returning the current coords of the caret
20371 - Added ViewPortWidth and ViewPortHeight properties
20372 - Added Wrap property
20373 - Added CaretMoved event
20374 - Removed some old debug code
20375 - Split() can now create soft splits
20376 - Added PreviousTag()/NextTag() to allow walking "tag-lists"
20377 - Added method to format existing text
20378 - Fixed size/alignment calculations to use viewport
20379 - RecalculateDocument now can handle changing line-numbers while
20383 - Added some wrap logic, we don't wrap if alignment is not left
20384 - Added casts for scrollbar var, base class switched types to
20385 also support RichTextBoxA
20386 - Implemented handling of scrollbar visibility flags
20389 - Switched scrollbars type to RichTextBoxScrollBars to support
20391 - Added tracking of canvas width/height
20392 - Switched scrollbars to be not selectable (to keep focus on text)
20393 - Added central CalculateDocument() method to handle all redraw
20395 - Added ReadOnly support
20396 - Added WordWrap support
20397 - Fixed handling of Enter key (we now treat it as a DialogKey)
20398 - Fixed caret positioning when h or v scroll is not zero
20399 - Fixed placing/generation of vertical scrollbar
20400 - Added CalculateScrollBars() method to allow updating scrollbar
20401 limits and visibility
20402 - Fixed handling of horizontal scroll
20403 - Added handling of vertical scroll
20404 - Implemented auto-'jump' when caret moves to close to a left or
20405 right border and there is text to be scrolled into view (currently
20406 there's the potential for a stack overflow, until a bug in
20407 scrollbar is fixed)
20409 2005-06-21 Geoff Norton <gnorton@customerdna.com>
20411 * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
20413 2005-06-19 Alexander Olk <xenomorph2@onlinehome.de>
20417 - return application/x-zerosize for files with size zero
20418 (if no extension pattern matches).
20419 - check matches collection for strings too.
20420 - return only the first mime type if the name value
20421 collection has more than one mime type.
20423 2005-06-18 Jonathan Chambers <jonathan.chambers@ansys.com>
20425 * PropertyGrid.cs: Cleaned up some TODOs
20426 * PropertyGridView.cs: Added support for UITypeEditors
20428 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
20430 * DataGrid.cs: clears cached value
20432 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
20434 * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
20435 * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
20436 * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
20437 * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
20439 2005-06-16 Jordi Mas i Hernandez <jordi@ximian.com>
20441 * ThemeWin32Classic.cs: fixes colour
20443 2005-06-15 Peter Bartok <pbartok@novell.com>
20445 * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
20446 * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
20447 * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
20448 * Control.cs: Added some MWFCategory and MWFDescription attributes
20449 * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
20451 2005-06-15 Alexander Olk <xenomorph2@onlinehome.de>
20453 * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
20456 2005-06-14 Jordi Mas i Hernandez <jordi@ximian.com>
20458 * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
20459 * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
20460 * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
20461 * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
20462 * DataGrid.cs: default datagrid settings for Default Styles, fixes
20463 * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
20465 2005-06-13 Jackson Harper <jackson@ximian.com>
20467 * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
20468 isn't printed when the user enables dropping. (X11 does accept
20471 2005-06-13 Jackson Harper <jackson@ximian.com>
20473 * TreeView.cs: Remove some TODOS.
20475 2005-06-13 Jackson Harper <jackson@ximian.com>
20477 * Form.cs: Hook into the mdi framework.
20478 * MdiClient.cs: Use the base control collections add method so
20479 parents get setup correctly. Set the default back colour and dock
20481 * MdiChildContext.cs: New class, this bad actor handles an
20482 instance of an MDI window. Right now there is only basic
20483 support. You can drag, close, and resize windows. Minimize and
20484 Maximize are partially implemented.
20486 2005-06-13 Jackson Harper <jackson@ximian.com>
20488 * XplatUIX11.cs: Mash numbers together properly, otherwise we get
20489 freaky when both vals are negative. NOTE: There are probably other
20490 places in XplatUIX11 that this needs to be done.
20492 2005-06-13 Jordi Mas i Hernandez <jordi@ximian.com>
20494 * DataGrid.cs: implement missing methods, move KeyboardNavigation
20495 * DataGridColumnStyle.cs: fixes signature
20497 2005-06-12 Jackson Harper <jackson@ximian.com>
20499 * XplatUIX11.cs: Use sizing cursors similar to the ones on
20502 2005-06-11 Jackson Harper <jackson@ximian.com>
20504 * StatusBarPanel.cs: Signature cleanups. Implement
20507 2005-06-10 Jordi Mas i Hernandez <jordi@ximian.com>
20509 * DataGridTextBoxColumn.cs: Honors aligment
20510 * GridColumnStylesCollection.cs: Contains is case unsensitive
20511 * GridTableStylesCollection.cs: several fixes
20512 * DataGridTableStyle.cs: default column creation
20513 * DataGridDrawingLogic.cs: fixes
20514 * CurrencyManager.cs: ListName property
20515 * DataGrid.cs: multiple styles support
20516 * DataGridColumnStyle.cs: fixes
20519 2005-06-10 Peter Bartok <pbartok@novell.com>
20521 * Control.cs(Select): Moved SetFocus call to avoid potential
20522 loops if controls change the active control when getting focus
20523 * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
20524 the up/down buttons
20526 2005-06-10 Matthias Felgner <matthiasf@voelcker.ocm>
20528 * ImageListConverter.cs: Implemented
20530 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
20532 * MonthCalendar.cs: Wired in NumericUpDown control for year
20534 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
20536 * MonthCalendar.cs: Removed MonoTodo attributes on Click and
20537 DoubleClick events, since they are not meant to be fired.
20539 2005-06-09 Peter Bartok <pbartok@novell.com>
20541 * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
20542 Jonathan's standalone controls into MWF, implemented missing
20543 events, attributes and methods; added xxxAccessible classes
20544 * AccessibleObject.cs: Made fields internal so other classes
20545 can change them if needed
20547 2005-06-09 Jonathan Gilbert <2a5gjx302@sneakemail.com>
20549 * UpDownBase.cs: Complete implementation
20550 * NumericUpDown.cs: Complete implementation
20551 * DomainUpDown.cs: Complete implementation
20553 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
20555 * DataGridTextBoxColumn.cs: drawing fixes
20556 * DataGridCell.cs: fixes ToString method to match MSNet
20557 * DataGridTableStyle.cs: fixes
20558 * DataGridBoolColumn.cs: fixes, drawing
20559 * DataGridDrawingLogic.cs: fixes, new methods
20560 * DataGridTextBox.cs: Keyboard and fixes
20562 - Keyboard navigation
20564 - Row selection (single, multiple, deletion, etc)
20567 2005-06-07 Jackson Harper <jackson@ximian.com>
20569 * ThemeWin32Classic.cs: Clear the background area when drawing
20572 2005-06-06 Peter Bartok <pbartok@novell.com>
20574 * ImageListStreamer.cs: Fixed signature for GetData
20575 * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
20577 - Added missing ChildAccessibleObject class
20578 - Added missing OnXXXFocus overrides, switched to using those
20579 instead of the event handler
20581 - Added Parent property for ControlAccessibleObject
20584 - Added ResetBindings()
20585 * ListBindingConverter.cs: Implemented some methods
20586 * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
20587 * ImageList.cs: Implemented basic handle scheme, removed TODOs
20588 * ContainerControl.cs: Fixed signature, now subscribing to the
20589 ControlRemoved event instead of overriding the handler, LAMESPEC
20590 * CurrencyManager.cs: Added missing attribute
20591 * MonthCalendar.cs: Added missing properties
20593 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
20595 * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
20597 2005-06-06 Gaurav Vaish and Ankit Jain
20599 * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
20600 * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
20602 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
20604 * Control.cs: fixes CreateParams Width / Height.
20606 2005-06-05 Peter Bartok <pbartok@novell.com>
20608 * Win32DnD.cs: Removed compilation warnings
20610 2005-06-05 Peter Bartok <pbartok@novell.com>
20612 * Control.cs (CreateParams): Since we don't know if one of the
20613 properties we use is overridden, lets make sure if we fail accessing
20614 we continue with a backup plan
20616 2005-06-05 Peter Bartok <pbartok@novell.com>
20619 - Removed debug output
20620 - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
20622 - Plugged resource leak
20623 * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
20626 2005-06-05 Peter Bartok <pbartok@novell.com>
20628 * XplatUIWin32.cs: Removed DnD code
20629 * Win32DnD.cs: Implemented drop source and drop target functionality
20631 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20633 * UpDownBase.cs: remove duplicate addition of event, enable some code
20634 that was commented out.
20635 * NumericUpDown.cs: added missing attributes and Hexadecimal property.
20636 Validate input when a key is pressed. It works fine now for every
20637 combination of Hexadecimal. Only missing some drawing love when sharing
20638 space with other controls.
20640 2005-06-04 Peter Bartok <pbartok@novell.com>
20643 - We need to pass a window for DragDrop, so enable callback events
20644 - Added DnD callback events when being a DragSource
20645 * XplatUI.cs (StartDrag): Added window handle argument
20646 * XplatUIDriver.cs (StartDrag): Added window handle argument
20647 * QueryContinueDragEventArgs: Made fields internally accessible so
20648 drivers can set them
20649 * GiveFeedbackEventArgs: Made fields internally accessible so drivers
20652 2005-06-03 Jordi Mas i Hernandez <jordi@ximian.com>
20654 * DataGridTextBoxColumn.cs: column text editing
20655 * DataGridTableStyle.cs: Respect columns styles created by the user
20656 * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
20657 * DataGridBoolColumn.cs: bool column editing
20658 * DataGrid.cs: fixes to scrolling, properties, etc
20659 * DataGridTextBox.cs: handle keyboard
20660 * DataGridColumnStyle.cs: fixes
20662 2005-06-02 Jackson Harper <jackson@ximian.com>
20664 * ImageListStreamer.cs: Somewhat broken implementation of
20665 GetObjectData. The RLE needs some work to match MS properly.
20667 2005-06-02 Jackson Harper <jackson@ximian.com>
20669 * X11Dnd.cs: Attempting to keep at least one file in MWF
20672 2005-06-02 Peter Bartok <pbartok@novell.com>
20674 * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
20677 2005-06-02 Peter Bartok <pbartok@novell.com>
20679 * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
20680 * XplatUI.cs: Added DoDragDrop() method
20681 * XplatUIDriver.cs: Added DoDragDrop() method
20683 2005-06-02 Jackson Harper <jackson@ximian.com>
20685 * Splitter.cs: Implement BorderStyle.
20687 2005-06-02 Jackson Harper <jackson@ximian.com>
20689 * XplatUIX11.cs: Tie into the X11Dnd subsystem.
20690 * X11Dnd.cs: New file. A subsystem that handles drag and drop on
20693 2005-06-02 Peter Bartok <pbartok@novell.com>
20696 - Added Data setter
20697 - Fixed broken insertion code for SetData, now also
20698 overwrites any existing entry of the same format name
20699 * Hwnd.cs: Added list of pointers that automatically gets
20700 freed when the window is disposed
20701 * XplatUI.cs: Call driver initialization method when loading
20704 - OnDragLeave takes EventArgs, not DragEventArgs
20705 - Added setting of WS_EX_ACCEPTFILES style when dropping is
20707 - Forces style update when drop state changes
20708 * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
20709 not perfect since we cannot (yet) call the IDataObject.GetData()
20710 method, we keep getting 0x80004005 error, dunno why)
20712 2005-06-02 Peter Bartok <pbartok@novell.com>
20714 * DragEventArgs.cs: Make fields internal so we can cache the
20715 object and re-set the fields from XplatUI
20717 2005-06-02 Jackson Harper <jackson@ximian.com>
20719 * Control.cs: Add some internal methods so the DnD subsystem can
20720 raise DnD events. Also call into the driver when AllowDrop is set.
20722 * XplatUIDriver.cs: New method for setting whether or not a window
20723 is allowed to accept drag and drop messages.
20725 2005-06-01 Jordi Mas i Hernandez <jordi@ximian.com>
20727 * ScrollBar.cs: Make sure that values sent in Scroll events
20728 are always between Maximum and Minimum.
20730 2005-06-01 Marek Safar <marek.safar@seznam.cz>
20732 * Menu.cs: Call MenuChanged when menuitem visibility has been
20734 * MenuItem.cs: Rebuild menu when item is (not) visible.
20735 * MainMenu.cs: MainMenu has special MenuChanged.
20736 * Theme.cs: Caption and FrameBorderSize are not fixed.
20737 * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
20738 * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
20740 * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
20741 * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
20743 2005-05-30 Jackson Harper <jackson@ximian.com>
20745 * DataFormat.cs: We can't statically initialize this stuff because
20746 it calls into the xplatui and could create a loop. So we lazy init
20749 2005-05-28 Jackson Harper <jackson@ximian.com>
20751 * Control.cs: Proper implementation of Product(Name/Version).
20753 2005-05-27 Jackson Harper <jackson@ximian.com>
20755 * DataObject.cs: Dont crash if no data is found.
20757 2005-05-26 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
20758 * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
20759 as per status page, guessing it should be set to true
20761 2005-05-26 Jordi Mas i Hernandez <jordi@ximian.com>
20763 * DataGridTextBoxColumn.cs: Draws text and basic text formatting
20764 * DataGridTableStyle.cs: set proper formatting text, def header text
20765 * ThemeWin32Classic.cs: new themable paramaters
20766 * DataGridBoolColumn.cs: paint check box, get data, fixes
20767 * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
20768 * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
20769 * DataGridColumnStyle.cs: fixes
20770 * Theme.cs: new themable paramaters
20772 2005-05-26 Peter Bartok <pbartok@novell.com>
20774 * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
20776 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
20777 * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
20779 2005-05-24 Peter Bartok <pbartok@novell.com>
20781 * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
20782 Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
20783 Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
20784 FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
20785 NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
20786 ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
20787 DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
20788 AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
20789 DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
20790 StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
20791 missing attributes, etc
20792 * DataGridPreferredColumnWidthTypeConverter.cs: Added
20794 2005-05-24 Peter Bartok <pbartok@novell.com>
20796 * Help.cs: Added, implemented trivial functions, throws up MessageBox
20797 when user tries to get help
20798 * DataObject.cs, DataFormats.cs, LinkArea.cs,
20799 SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
20800 to suppress warnings
20801 * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
20802 avoid unreachable code warning
20804 2005-05-20 Peter Bartok <pbartok@novell.com>
20806 * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
20808 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
20810 * DataGridTextBoxColumn.cs: Basic painting methods
20811 * DataGridTableStyle.cs: Set table style in the column
20812 * ThemeWin32Classic.cs: Use Theme for colors
20813 * DataGridDrawingLogic.cs: Implement more drawing
20814 * DataGrid.cs: drawing, theming, enhacements, fixes
20815 * DataGridColumnStyle.cs: fixes, drawing
20816 * Theme.cs: theming for Datagrid
20818 2005-05-20 Peter Bartok <pbartok@novell.com>
20820 * Cursor.cs: Implemented GetObjectData() method
20822 2005-05-20 Peter Bartok <pbartok@novell.com>
20824 * Cursors.cs: Added setting of cursor name
20826 - Implemented constructors
20827 - Implemented Draw and DrawStretched
20828 - Implemented Current property
20829 - Implemented == and != operators
20830 - Implemented Dispose()
20831 - Implemented ToString
20832 - Added missing attributes
20834 - Added missing reset for OverrideCursor when DoEvents is called
20835 - Fixed creation of cursor, logic was wrong
20837 - Added missing reset for OverrideCursor when DoEvents is called
20838 - Fixed creation of cursor, bit arrays were swapped
20839 * Clipboard.cs: Removed obsolete MonoTODO attribute
20841 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
20843 * ComboBox.cs: fixes OnSelectedItemChanged
20844 * ControlBindingsCollection.cs: fixes item range check
20846 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
20849 - Calc preferred height properly
20850 - Implement missing properties
20852 * NumericUpDown.cs: Implement missing events
20854 2005-05-19 Jackson Harper <jackson@ximian.com>
20856 * TabControl.cs: New method that resizes the tab pages before
20857 redrawing them. This as needed as the control is double buffered
20858 and sizing will not be recalculated unless ResizeTabPages is
20860 * TabPage.cs: Set base.Text instead of Text in the constructor so
20861 that UpdateOwner does not get called. Use the new Redraw method of
20862 TabControl instead of Refresh so the sizing is recalculated.
20863 * ThemeWin32Classic.cs: Draw the text for button tabs.
20865 2005-05-19 Jackson Harper <jackson@ximian.com>
20867 * Control.cs: Paint control background images. Fix typo where
20868 PaintControlBackground was not getting called correctly.
20870 2005-05-19 Peter Bartok <pbartok@novell.com>
20872 * ScrollableControl.cs (DisplayRectangle): Undid my last change until
20873 I can investigate, apparently I broke FileDialog
20875 2005-05-19 Marek Safar <marek.safar@seznam.cz>
20877 * AxHost.cs: Some simple properties.
20878 * Control.cs: window must be accessible after ctor.
20879 * Form.cs: Added TransparencyKey property.
20880 * TextBoxBase.cs: Implemented Clear. Text property can be null.
20881 * XplatUIWin32.cs: SetBorderStyle implemented.
20883 2005-05-18 Peter Bartok <pbartok@novell.com>
20885 * DataObject.cs: Entries are not global but particular to the
20886 DataObject, now it behaves that way
20887 * XplatUIWin32.cs: Implemented Clipboard methods
20888 * Clipboard.cs: Implemented
20889 * ScrollableControl.cs (DisplayRectangle): Fixed calculation
20890 * XplatUIOSX.cs: Updated to final clipboard prototypes
20891 * XplatUIX11.cs: Implemented Clipboard methods
20892 * XplatUIDriver.cs: Updated to final clipboard prototypes
20893 * XplatUIStructs.cs:
20894 - Added BITMAPINFOHEADER struct
20895 - Added ClipboardFormats enum
20897 - Added ClipboardStruct
20898 - Added Atom enum items for clipboard types
20899 - Fixed atom types for Selection event structures
20901 - Added internal properties and methods for drivers to enumerate
20903 - Switched initialization method to allow drivers to assign their
20904 own IDs even for the MS predefined clipboard IDs
20905 * XplatUI.cs: Updated to final clipboard interface
20907 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
20908 * PropertyGridView.cs: Fixed compiler warnings.
20910 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
20911 * PropertyGrid.cs: Added some event calls
20912 * PropertyGridView.cs: Change drawing code to use double buffering
20913 * PropertyGridTextBox.cs: Changed Text property name
20914 * GridItem.cs: Added Bounds property.
20915 * GridEntry.cs: Added Bounds property.
20917 2005-05-17 Lluis Sanchez Gual <lluis@novell.com>
20919 * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
20920 since GetType() may not return the correct type if the object is
20923 2005-05-17 Jordi Mas i Hernandez <jordi@ximian.com>
20925 * TreeNodeCollection.cs: fixes get/set item ranges
20927 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
20929 * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
20931 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
20933 * ComboBox.cs: Fix item range comparation
20934 * ListView.cs: Fix item range comparation
20936 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
20939 - Clear example panel when OnPaint is called
20940 - Better solution for displaying the example panel text
20941 - Select default indexes in the ListBoxes
20943 2005-05-11 Geoff Norton <gnorton@customerdna.com>
20945 * XplatUIOSX.cs: Avoid painting into invisible views. Fixes #74926
20947 2005-05-11 Peter Bartok <pbartok@novell.com>
20949 * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
20950 * SelectionRangeConverter.cs: Implemented
20951 * PropertyGrid.cs: Fixed attribute value
20953 - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
20954 - Added Sebastien Pouliot's CAS Stack Propagation fixes
20955 * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
20956 that's common to all drivers. First methods to go there are
20957 Sebastien Pouliot's CAS Stack Propagation helper methods
20958 * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
20959 Sebastien Pouliot for CAS Stack Propagation
20961 2005-05-11 Geoff Norton <gnorton@customerdna.com>
20964 XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
20966 2005-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
20968 * DataGridTextBoxColumn.cs: fixed some members
20969 * GridColumnStylesCollection.cs: indexed column is case insensitive
20970 * DataGridTableStyle.cs: fixes
20971 * ThemeWin32Classic.cs: add new theme parameter
20972 * Theme.cs: add new theme parameter
20973 * DataGridDrawingLogic.cs: Datagrid's drawing logic
20974 * DataGrid.cs: fixes, new internal properties, etc.
20975 * DataGridColumnStyle.cs: allows to set grid value
20978 2005-05-10 Peter Bartok <pbartok@novell.com>
20980 * AccessibleObject.cs:
20981 - Removed MonoTODO attribute on help, method is correct
20982 - Fixed Bounds property
20983 * AxHost.cs: Moved MonoTODO
20984 * ButtonBase.cs: Now setting AccessibleObject properties
20985 * RadioButton.cs: Setting proper AccessibleObject role
20986 * CheckBox.cs: Setting proper AccessibleObject role
20987 * ControlBindingsCollection.cs: Added properties, methods and attributes
20988 * DataFormats.cs: Fixed awkward internal API, and changed to enable
20989 userdefined DataFormats.Format items as well
20990 * ListControl.cs: Removed data_member from the public eye
20991 * OpenFileDialog.cs:
20992 - Made class sealed
20993 - Added missing attributes
20994 * SaveFileDialog.cs: Added missing attributes
20995 * ImageListStreamer.cs: Fixed code that caused warnings
20996 * LinkLabel.cs: Removed unreachable code
20997 * TreeView.cs: Fixed code that caused warnings
20998 * PropertyGridView.cs: Fixed code that caused warnings
20999 * GridColumnStylesCollection.cs: Added missing attributes
21000 * GridTableStylesCollection: Added missing attribute
21001 * PropertyManager: Added .ctor
21002 * SecurityIDType: Added
21003 * DataObject.cs: Implemented class
21004 * LinkArea.cs: Added missing attribute
21006 2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
21008 * RadioButton.cs: call base method to allow to fire OnClick event
21009 * UpDownBase.cs: OnMouseUp call base method
21010 * CheckedListBox.cs: call base method before returning
21011 * TrackBar.cs: call base method before returning
21014 2005-05-10 Peter Bartok <pbartok@novell.com>
21016 * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
21019 2005-05-10 Peter Bartok <pbartok@novell.com>
21021 * DataFormats.cs: Implemented
21022 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
21023 XplatUIX11.cs: Added Clipboard APIs
21024 * XplatUIWin32.cs: Implemented Clipboard APIs
21025 * FolderBrowserDialog.cs: Added missing event, attributes
21027 2005-05-10 Jordi Mas i Hernandez <jordi@ximian.com>
21029 * CheckBox.cs: call base method to allow to fire OnClick event
21031 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
21033 * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
21035 2005-05-06 Peter Bartok <pbartok@novell.com>
21037 * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
21038 * Screen.cs: Implemented
21039 * HelpNavigator.cs: Added
21040 * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
21042 * HelpProvider.cs: Implemented all we can do until we have a CHM
21043 help library (which means that "What's This" does work now)
21045 2005-05-06 Jackson Harper <jackson@ximian.com>
21047 * XplatUIX11.cs: Fix waking up the main loop.
21049 2005-05-05 Peter Bartok <pbartok@novell.com>
21051 * XplatUI.cs: Updated revision
21052 * Form.cs: Removed enless loop
21053 * GroupBox.cs (OnPaint): Added call to base.OnPaint()
21054 * Label.cs (OnPaint): Added call to base.OnPaint()
21055 * ToolTip.cs: Made ToolTipWindow reusable for other controls
21056 * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
21057 * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
21059 * ButtonBase.cs: Moved base.OnPaint() call to end of method
21060 * ThemeWin32Classic.cs: Replaced references to ToolTip with references
21061 to ToolTip.ToolTipWindow for drawing and size methods; this allows
21062 reuse of ToolTipWindow by other controls
21063 * SizeGrip.cs: Moved base.OnPaint() call to end of method
21064 * XplatUIX11.cs: Now clipping drawing area (experimental)
21065 * PictureBox.cs: Moved base.OnPaint() call to end of method
21066 * Theme.cs: Fixed ToolTip abstracts to match new format
21067 * ErrorProvider.cs: Implemented
21069 2005-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
21071 * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
21075 - Implements LinkBehavior
21076 - Fixes many issues
21078 2005-05-03 Jackson Harper <jackson@ximian.com>
21080 * ListView.cs: Calculate the scrollbar positioning on resize and
21081 paint, so they get put in the correct place.
21083 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
21085 * ColorDialogs.cs: The small color panels are now handled by
21086 SmallColorControl. This fixes drawing of the focus rectangle
21087 and adds a 3D border.
21089 2005-05-03 Peter Bartok <pbartok@novell.com>
21091 * Control.cs: Modified version of Jonathan Chamber's fix for
21094 2005-05-03 Jackson Harper <jackson@ximian.com>
21096 * ListView.cs: Remove redraw variable. Control now handles whether
21097 or not a redraw needs to be done, and will only raise the paint
21098 event if redrawing is needed.
21100 2005-05-03 Jackson Harper <jackson@ximian.com>
21102 * Splitter.cs: No decorations for the splitter form. Cache the
21105 2005-05-03 Jackson Harper <jackson@ximian.com>
21107 * TreeView.cs: Use dashed lines to connect nodes. Use the
21108 ControlPaint method for drawing the focus rect instead of doing
21111 2005-05-02 Peter Bartok <pbartok@novell.com>
21113 * LinkLabel.cs: Fixed the fixes from r43566 and 43521
21115 2005-04-29 Jackson Harper <jackson@ximian.com>
21117 * ThemeWin32Classic.cs: Don't clear the GC that will clear the
21118 entire image buffer. Just clear the clipping rectangle.
21120 2005-04-29 Jackson Harper <jackson@ximian.com>
21122 * ThemeWin32Classic.cs: Don't draw list view items that are
21123 outside the clipping rectangle.
21125 2005-04-29 Jordi Mas i Hernandez <jordi@ximian.com>
21127 * ListBox.cs: added horizontal item scroll
21129 2005-04-29 Jackson Harper <jackson@ximian.com>
21131 * ThemeWin32Classic.cs: Remove some old debug code that was
21132 causing flicker with the new double buffering code.
21134 2005-04-29 John BouAntoun <jba-mono@optusnet.com.au>
21136 * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
21137 behave like combobox and comboboxlist (still not sure if this is
21140 2005-04-28 Jackson Harper <jackson@ximian.com>
21142 * ThemeWin32Classic.cs: Don't fill the middle of progress
21143 bars. This fills areas outside of the clip bounds that don't need
21146 2005-04-28 Jackson Harper <jackson@ximian.com>
21148 * Control.cs: Don't expose functionality to touch the image buffers.
21150 * ListView.cs: We do not need to (and no longer can) manipulate
21151 the image buffers directly. All of this is handled by Control.
21153 2005-04-28 Peter Bartok <pbartok@novell.com>
21155 * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
21156 RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
21157 RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
21159 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
21162 - Adjust control's height for non-simple comboboxes (bug fix)
21164 * MenuAPI.cs: remove unused var
21165 * ScrollBar.cs: remove unsed var
21167 * ListBox.cs: unselect items when clearing
21169 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
21171 * ListControl.cs: honors OnPositionChanged and default Selected Item
21172 * ListBox.cs: unselect items when clearing
21174 2005-04-27 Jackson Harper <jackson@ximian.com>
21176 * X11Keyboard.cs: Initialize a default keyboard and give a warning
21177 if a "correct" keyboard is not found. This will make us not crash,
21178 but might give some users bad keyboard layouts...seems to be the
21179 same thing rewind does.
21181 2005-04-27 Jackson Harper <jackson@ximian.com>
21183 * BindingManagerBase.cs: Attach the current/position changed
21184 handlers to their respective events.
21186 2005-04-27 Jackson Harper <jackson@ximian.com>
21188 * Control.cs: Make sure that the first WM_PAINT does a full draw,
21190 * ThemeWin32Classic.cs: Don't fill the background for picture
21191 boxes. This could overright user drawing.
21192 * ComboBox.cs: Just fill the clipping rect not the entire client
21193 rect when drawing the background. This prevents pieces of the
21194 image buffer from getting overwritten and is theoretically faster.
21196 2005-04-26 Jordi Mas i Hernandez <jordi@ximian.com>
21198 * ComboBox.cs: Databinding support fixes, fire missing events
21199 * ListControl.cs: implement missing methods and properties, fixes
21200 * ThemeWin32Classic.cs: Databiding support on Drawing
21201 * CheckedListBox.cs: Databinding support fixes, fire missing events
21202 * ListBox.cs: Databinding support fixes, fire missing events
21204 2005-04-25 Peter Bartok <pbartok@novell.com>
21206 * LinkLabel.cs: Length of LinkArea is not allowed to be negative
21208 2005-04-25 Jackson Harper <jackson@ximian.com>
21210 * TreeView.cs: Use the horizontal scrollbars height not width when
21211 determining how much of the client area is available.
21213 2005-04-25 Jackson Harper <jackson@ximian.com>
21215 * Control.cs: Double buffering is handled differently now. As per
21216 the spec, the extra buffer is created in the WM_PAINT message and
21217 passed down to the control's drawing code.
21225 * PropertyGridView.cs:
21237 * DateTimePicker.cs:
21239 * TreeView.cs: Update to new double buffering system.
21240 * MonthCalendar.cs: Uncomment block, as Capture is now
21241 working. Update to new double buffering
21242 * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
21243 * PaintEventArgs.cs: New internal method allows us to set the
21244 graphics object. This is used for double buffering.
21245 * ThemeWin32Classic.cs: Give the picture box drawing code a clip
21246 rectangle. The internal paint_area var has been removed from
21247 StatusBar. The clipping rect should be used instead.
21248 * Theme.cs: Give the PictureBox drawing method a clipping rect.
21249 * TabPage.cs: The RefreshTabs method was removed, so just call the
21250 tab controls Refresh method now.
21251 * TabControl.cs: Update to new double buffering. Make sure the
21252 handle is created before sizing the tab pages, otherwise we will
21253 get stuck in a loop.
21255 2005-04-24 Borja Sanchez Zamorano <borsanza@gmail.com>
21257 * LinkLabel.cs: Fix typo, bug #74719; patch
21258 from Borja Sanchez Zamorano
21260 2005-04-22 Jackson Harper <jackson@ximian.com>
21262 * TreeNode.cs: Implement Handle stuff.
21263 * TreeView.cs: Utility methods so nodes can get/lookup by handle.
21265 2005-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
21267 * DataGridTextBoxColumn.cs: call base constructors, fixes
21268 * GridColumnStylesCollection.cs: missing events, methods, and functionality
21269 * GridTableStylesCollection.cs: fixes, check duplicate mapping names
21270 * DataGridTableStyle.cs: implements create default column styles
21271 * DataGridBoolColumn.cs: which types can handle
21272 * DataGrid.cs: missing methods, fixes, new functionality
21273 * DataGridColumnStyle.cs: fixes
21275 2005-04-20 Alexander Olk <xenomorph2@onlinehome.de>
21276 * FolderBrowserDialog.cs:
21277 - Use a thread to fill the TreeView
21278 - Adjusted some sizes
21280 2005-04-19 Peter Bartok <pbartok@novell.com>
21282 * LinkLabel.cs: (Re-)create the pieces when setting the Text
21283 property. Fixes #74360.
21285 2005-04-19 Jackson Harper <jackson@ximian.com>
21287 * XEventQueue.cs: Lock when getting the lockqueue size.
21288 * PictureBox.cs: Call base OnPaint
21290 2005-04-19 Peter Bartok <pbartok@novell.com>
21292 * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
21293 messages were no longer being processed (this broke BeginInvoke)
21296 2005-04-18 Jackson Harper <jackson@ximian.com>
21298 * TreeView.cs: buglet that caused node images to get drawn
21299 regardless of whether or not they were in the clipping rectangle.
21301 2005-04-18 Jackson Harper <jackson@ximian.com>
21303 * CurrencyManager.cs: There are four rules for GetItemProperties:
21304 - If the type is an array use the element type of the array
21305 - If the type is a typed list, use the type
21306 - If the list contains an Item property that is not an object, use
21308 - use the first element of the list if there are any elements in
21311 2005-04-17 Jackson Harper <jackson@ximian.oom>
21313 * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
21314 click. This handles offsets for scrolling properly and reduces
21315 memory. Also fixed GetNode to not offset now that TopNode works
21317 * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
21319 2005-04-17 Jackson Harper <jackson@ximian.com>
21321 * CursorConverter.cs: Initial implementation.
21323 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
21325 * ListControl.cs: work towards complex data binding support on ListControl
21326 * CurrencyManager.cs: work towards complex data binding support on ListControl
21327 * ListBox.cs: work towards complex data binding support on ListControl
21330 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
21332 * GridTableStylesCollection.cs: fixes name and constructor
21333 * DataGridTableStyle.cs: fixes
21334 * DataGridBoolColumn.cs: fixes names and constructors
21335 * DataGrid.cs: define methods and properties. Some init implementations
21336 * DataGridCell.cs: define methods and properties. Some init implementations
21337 * GridTablesFactory.cs: Define methods and properties
21339 2005-04-15 Geoff Norton <gnorton@customerdna.com>
21341 * XplatUIOSX.cs: Handle proper mouse tracking even if the current
21342 graphics port changes. We still want the coordinates in global screen
21345 2005-04-14 Jackson Harper <jackson@ximian.com>
21347 * TreeView.cs: Handle clicks when plus minus is disabled. Don't
21348 check plus minus or checkbox clicks unless those features are enabled.
21350 2005-04-14 Jackson Harper <jackson@ximian.com>
21352 * TreeView.cs: Add methods for setting the top and bottom visible
21353 nodes. TreeNode::EnsureVisible uses these methods.
21354 * TreeNode.cs: Implement EnsureVisible
21356 2005-04-13 Jordi Mas i Hernandez <jordi@ximian.com>
21358 * Form.cs: Pospone menu assignation if the window has not been created yet
21359 * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
21362 2005-04-12 Jackson Harper <jackson@ximian.com>
21364 * TreeView.cs: Set the TopNode properly when scrolling
21365 occurs. This has the added benifit of reducing the amount of
21366 walking that needs to be done when drawing. Also removed an old
21368 * OpenTreeNodeEnumerator.cs: Fix moving backwards.
21370 2005-04-11 Jordi Mas i Hernandez <jordi@ximian.com>
21372 * Timer.cs: fixes interval setting when the timer is already enabled
21374 2005-04-10 Alexander Olk <xenomorph2@onlinehome.de>
21376 * FolderBrowserDialog.cs: First approach
21378 2005-04-09 Peter Bartok <pbartok@novell.com>
21380 * FolderBrowserDialog: Added
21382 2005-04-07 Jordi Mas i Hernandez <jordi@ximian.com>
21384 * LinkLabel.cs: move drawing code into the theme
21385 * ThemeWin32Classic.cs: drawing code and painting background bugfix
21386 * Theme.cs: define DrawLinkLabel method
21388 2005-04-05 Jackson Harper <jackson@ximian.com>
21390 * BindingContext.cs: Use weak references so these bad actors don't
21391 stay alive longer then they need to.
21393 2005-04-05 Jackson Harper <jackson@ximian.com>
21395 * ListControl.cs: Basic implementation of complex databinding.
21397 * ListBox.cs: Add calls to ListControl databinding methods.
21399 2005-04-05 Alexander Olk <xenomorph2@onlinehome.de>
21402 - Don't change PopupButtonState to Normal when the
21403 PopupButton gets pressed several times.
21404 - Renamed ButtonPanel to PopupButtonPanel
21406 2005-04-05 Jordi Mas i Hernandez <jordi@ximian.com>
21408 * ColorDialog.cs: Use cached objects instead of creating them
21409 * LinkLabel.cs: Use cached objects instead of creating them
21410 * Splitter.cs: Use cached objects instead of creating them
21411 * FontDialog.cs: Use cached objects instead of creating them
21412 * PropertyGridView.cs: Use cached objects instead of creating them
21413 * MessageBox.cs: Use cached objects instead of creating them
21414 * FileDialog.cs: Use cached objects instead of creating them
21415 * ThemeWin32Classic.cs: Use cached objects instead of creating them
21416 * TreeView.cs: Use cached objects instead of creating them
21418 2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
21420 * Control.cs: use Equals to compare the font since no == op
21421 * ScrollBar.cs: use Equals to compare the font since no == op
21423 2005-04-04 Alexander Olk <xenomorph2@onlinehome.de>
21425 * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
21427 2005-04-01 Jackson Harper <jackson@ximian.com>
21429 * Binding.cs: Implement IsBinding.
21430 * BindingManagerBase.cs:
21431 * PropertyManager.cs:
21432 * CurrencyManager.cs: Add IsSuspended property.
21434 2005-04-01 Jackson Harper <jackson@ximian.com>
21436 * Binding.cs: Had some IsAssignableFrom calls backwards.
21438 2005-04-01 Jackson Harper <jackson@ximian.com>
21440 * Binding.cs: Handle null data members when pulling data.
21441 * PropertyManager.cs: Handle the data member being a property that
21444 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
21446 * DataGridTextBoxColumn.cs: fixes signature
21447 * DataGrid.cs: calls right constructor
21449 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
21451 * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
21452 * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
21453 * GridTableStylesCollection.cs: implements GridTableStylesCollection
21454 * DataGridTableStyle.cs: implements DataGridTableStyle
21455 * DataGridBoolColumn.cs: implements DataGridBoolColumn
21456 * DataGridTextBox.cs: implements DataGridTextBox
21457 * DataGridColumnStyle.cs: implements DataGridColumnStyle
21459 2005-03-31 Alexander Olk <xenomorph2@onlinehome.de>
21461 * FileDialog.cs: Added simple PopupButton class for ButtonPanel
21463 2005-03-29 Peter Bartok <pbartok@novell.com>
21466 - Properly implemented CompanyName property
21467 - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
21468 returns a path that includes CompanyName, ProductName and
21469 Version (fixes bug #70330)
21471 2005-03-29 Stefan Buehler <sbuehler@gmx.ch>
21473 * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
21476 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
21478 * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
21480 - Added ReadOnly CheckBox
21481 - Further refactoring: moved some code from Open-/SaveFileDialog
21484 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
21486 * OpenFileDialog.cs: Fixed CheckFileExists
21488 Moved FileView and DirComboBox outside FileDialog class.
21489 They can now be used outside FileDialog
21491 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
21493 * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
21494 * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
21496 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
21498 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
21499 - Added missing CreatePrompt property in SaveDialog
21500 - Overall SaveDialog handling should be better now
21501 - Added non standard ShowHiddenFiles property
21502 - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
21503 - Added InitialDirectory and RestoreDirectory support
21505 2005-03-26 Alexander Olk <xenomorph2@onlinehome.de>
21507 * FileDialog.cs: Made dirComboBox usable
21509 2005-03-24 Alexander Olk <xenomorph2@onlinehome.de>
21511 * FileDialog.cs: Added Filter support (case sensitiv)
21513 2005-03-24 Jackson Harper <jackson@ximian.com>
21515 * TabControl.cs: Need a couple more pixels for the lines.
21517 2005-03-23 Jackson Harper <jackson@ximian.com>
21519 * TabControl.cs: Give the tab page focus when it is selected.
21521 2005-03-23 Jackson Harper <jackson@ximian.com>
21523 * TabControl.cs: Account for the drawing of tabs borders when
21524 invalidating. If the slider was clicked dont do click detection on
21527 2005-03-23 Jackson Harper <jackson@ximian.com>
21529 * TabControl.cs: Fix typo, emilinates an unneeded expose event.
21531 2005-03-22 Jonathan Chambers <jonathan.chambers@ansys.com>
21533 * CategoryGridEntry.cs: Added
21534 * GridItem.cs: Added helper properties
21535 * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
21536 * GridEntry.cs: Updated code for collection
21537 * PropertyGrid.cs: Cleaned up some formatting
21538 * PropertyGridView.cs: Added drop down functionality for enums.
21539 * GridItemCollection.cs: Added enumerator logic
21540 * PropertyGridEntry.cs: Added
21542 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
21545 - Removed unnecessary commented code
21546 - Fixed handling for entering the filename manually in the combobox
21548 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
21550 * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
21552 2005-03-18 Peter Bartok <pbartok@novell.com>
21554 * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
21555 them being touching the border
21557 2005-03-18 Peter Bartok <pbartok@novell.com>
21559 * TextControl.cs: Quick hack to center text better
21561 2005-03-18 Peter Bartok <pbartok@novell.com>
21564 - Don't throw NotImplemented exceptions, just print a notice once
21565 instead (requested by Miguel). This makes running existing SWF
21568 - Commented out Drag'N'Drop XplatUI call (no driver support yet)
21569 - Added context menu trigger on right click
21570 * Panel.cs: Trigger invalidate on resize
21572 - Removed old double-buffer drawing
21573 - Added ResizeRedraw style to force proper update of statusbar
21575 - Removed debug output
21576 * ThemeWin32Classic.cs:
21577 - Fixed drawing of status bar, now draws Text property if there
21578 are no defined panels
21580 2005-03-18 Jackson Harper <jackson@ximian.com>
21582 * ImageList.cs: When the image stream is set pull all the images
21584 * ImageListStreamer.cs: Implement reading image list streams.
21586 2005-03-18 Peter Bartok <pbartok@novell.com>
21588 * ThemeWin32Classic.cs (DrawPictureBox):
21589 - Fixed calculations for centered drawing
21590 - Fixed drawing for normal mode, not scaling the image on normal
21592 2005-03-18 Peter Bartok <pbartok@novell.com>
21594 * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
21597 - Made Open/Save button the accept button for FileDialog
21598 - Tied the cancel button to the IButtonControl cancel button
21599 - Save/Open now properly builds the pathname
21600 - Now handles user-entered text
21601 - Preventing crash on right-click if no item is selected
21602 - Fixed Text property, now uses contents of textbox
21603 - Fixed SelectedText property, now just returns the text part that
21604 is selected in the text box
21606 2005-03-18 Jackson Harper <jackson@ximian.com>
21608 * ThemeWin32Classic.cs: Use the proper func for drawing the focus
21609 rect, make sure to de-adjust the interior rect after drawing the
21612 2005-03-18 Peter Bartok <pbartok@novell.com>
21614 * MenuAPI.cs: Remove menu *before* executing selected action to
21615 prevent the menu from 'hanging around'
21617 2005-03-17 Geoff Norton <gnorton@customerdna.com>
21619 * XplatUIOSX.cs: Implemented WorkingArea property
21621 2005-03-17 Peter Bartok <pbartok@novell.com>
21623 * XplatUIX11.cs: Fixed menu coord calculations
21624 * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
21625 for calculating offsets
21627 2005-03-17 Peter Bartok <pbartok@novell.com>
21629 * Hwnd.cs: Do not consider menu presence for default client
21630 rectangle location/size
21631 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
21632 XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
21633 translation functions
21634 * FileDialog.cs: Fixed (what I presume is a) typo
21636 2005-03-17 Jonathan Gilbert <logic@deltaq.org>
21638 * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
21639 X access (avoids X-Async errors)
21641 2005-03-16 Jackson Harper <jackson@ximian.com>
21643 * TabControl.cs: Raise the SelectedIndexChanged event.
21645 2005-03-16 Alexander Olk <xenomorph2@onlinehome.de>
21647 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
21648 - Removed vertical ToolBar and replaced it with a custom panel
21649 (desktop and home button already work)
21650 - Added Help button (some controls get resized or relocated then)
21651 - Draw correct text depending on Open or Save.
21652 - Fixed some typos...
21654 2005-03-16 Jordi Mas i Hernandez <jordi@ximian.com>
21657 - Only change Maximum and Minimum when need it (bug fix)
21659 2005-03-15 Peter Bartok <pbartok@novell.com>
21661 * Form.cs: Use Handle for icon, to trigger creation if
21662 the window does not yet exist
21664 - CanSelect: Slight performance improvement
21665 - Focus(): Preventing possible recursion
21666 - Invalidate(): Removed ControlStyle based clear flag setting
21667 - WM_PAINT: fixed logic for calling OnPaintBackground
21668 - WM_ERASEBKGND: Fixed logic, added call to new driver method
21669 EraseWindowBackground if the control doesn't paint background
21671 - Moved EraseWindowBackground() method to internal methods
21672 - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
21673 is sent via SendMessage on BeginPaint call on Win32
21675 - Added EraseWindowBackground() method
21676 - No longer sends WM_ERASEBKGND on .Expose, but on call to
21677 PaintEventStart, which more closely matches Win32 behaviour
21678 - Fixed Invalidate() call, now updates new ErasePending Hwnd property
21679 - Fixed SetFocus() to properly deal with client and whole windows
21680 * Hwnd.cs: Added ErasePending property
21681 * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
21682 * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
21684 2005-03-12 Geoff Norton <gnorton@customerdna.com>
21687 - Fix hard loop when timers exist.
21688 - Fix bugs with middle and right click for 3 button mice.
21690 2005-03-11 Peter Bartok <pbartok@novell.com>
21693 - get_WorkingArea: Need to call X directly, GetWindowPos only
21694 returns cached data now
21695 - Added sanity check to GetWindowPos hwnd usage
21697 2005-03-11 Jackson Harper <jackson@ximian.com>
21699 * BindingManagerBase.cs: This method isn't used anymore as
21700 PullData now updates the data in the control.
21702 2005-03-11 Jordi Mas i Hernandez <jordi@ximian.com>
21704 * Form.cs: fixes menu drawing on X11
21705 * MenuAPI.cs: fixes menu drawing on X11
21707 2005-03-11 Peter Bartok <pbartok@novell.com>
21709 * Control.cs: Changed OnCreateControl behaviour based on a suggestion
21710 from Jonathan Gilbert; should fix bug #73606
21711 * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
21712 in Screen coordinates. Thanks, Jordi.
21713 * Form.cs: Added missing attribute
21715 2005-03-11 Peter Bartok <pbartok@novell.com>
21718 - Rudimentary Mdi support
21719 - Removed outdated FormParent code
21720 - Implemented lots of missing properties and methods, still missing
21721 transparency support
21722 - Added missing attributes
21723 - Implemented support for MaximumBounds
21724 - Added firing of various events
21725 * XplatUI.cs: Added SetIcon() method
21726 * XplatUIDriver.cs: Added SetIcon() abstract
21727 * XplatUIOSX.cs: Stubbed out SetIcon() method
21729 - Implemented SetIcon() support
21730 - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
21731 - Switched to unix line endings
21733 - Made POINT internal so for can access it as part of MINMAX
21734 - Implemented SetIcon() support
21735 - Implemented support for CLIENTCREATESTRUCT (but might have to drop
21736 native Mdi support again, might have to go managed)
21737 * Control.cs: Now fires the StyleChanged event
21738 * MdiClient.cs: Added; still mostly empty
21740 2005-03-10 Peter Bartok <pbartok@novell.com>
21742 * SaveFileDialog.cs: Added emtpy file
21744 2005-03-08 Peter Bartok <pbartok@novell.com>
21746 * Control.cs: Fixed bug #73190; now invokes CreateControl (which
21747 in turn triggers OnCreateContro) when creating a handle for the
21749 * TextControl.cs: Fixed endless loop in certain cases when
21750 replacing the current selection
21752 2005-03-08 Jordi Mas i Hernandez <jordi@ximian.com>
21755 - Honors NewValue changes in Scroll events allowing apps to change it
21756 - Adds First and Last Scroll events
21757 - Fixes Thumb events
21759 2005-03-07 Peter Bartok <pbartok@novell.com>
21761 * Hwnd.cs: Added DefaultClientRectangle property
21762 * XplatUI.cs: Now using the X11 driver Where() method, which provides
21763 more detailed debug information
21765 - Fixed size-change feedback loop, where we would pull an old size
21766 off the queue and mistakenly change our window's size to an
21768 - Now compressing ConfigureNotify events, to reduce looping and
21770 * TextBoxBase.cs: Preventing crash when no text is set and ToString()
21773 2005-03-07 Jackson Harper <jackson@ximian.com>
21775 * Binding.cs: Push data pushes from data -> property. Check if the
21776 property is readonly when attempting to set it.
21778 2005-03-07 Jackson Harper <jackson@ximian.com>
21780 * Binding.cs: Format and parse data correctly. Use ASsignableFrom
21781 instead of IsSubclassOf. Pulling data now sets the value on the
21783 * PropertyManager.cs:
21784 * CurrencyManager.cs: Just need to pull data when updating now,
21785 because PullData will set the value on the control.
21787 2005-03-04 Jackson Harper <jackson@ximian.com>
21789 * Binding.cs: Implement data type parsing and converting on pulled
21790 data. TODO: Are there more ways the data can be converted?
21792 2005-03-04 Jackson Harper <jackson@ximian.com>
21794 * Binding.cs: Support <Property>IsNull checks. Also bind to the
21795 controls Validating method so we can repull the data when the
21796 control loses focus.
21798 2005-03-03 Jordi Mas i Hernandez <jordi@ximian.com>
21801 - Fixes null string format
21804 - Adds enum type checks
21805 - Fixes redrawing and recalc need after changing some properties
21806 - Fixes on focus_item set after the event
21807 - Fixes adding columns after the control has been created
21809 * ThemeWin32Classic.cs:
21810 - Fixes CheckBox focus rectangle
21811 - Fixes ColumnHeader drawing
21814 2005-03-03 Jackson Harper <jackson@ximian.com>
21816 * Binding.cs: Bind to <Property>Changed events so we can detect
21817 when properties are changed and update the data.
21819 2005-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
21822 - Changes 32-bit pixel format to Format32bppArgb to allow transparency
21823 - Fixes ImageList constructor with ImageList container
21824 - Fixes image scaling (wrong parameters at DrawImage)
21826 2005-02-02 Jackson Harper <jackson@ximian.com>
21828 * Binding.cs: Make property searches case-insensitive. Eliminate
21829 some duplicated code.
21831 2005-03-01 Jordi Mas i Hernandez <jordi@ximian.com>
21834 - Handle focus event
21835 - Fix scrollbar events
21836 - Discard highlighted item if remove it
21837 - Fixes SelectedItem with strings
21839 2005-03-01 Peter Bartok <pbartok@novell.com>
21842 - Fixed Visible property, now follows (once again) parent chain
21843 to return false if any control in the chain is visible=false
21844 - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
21845 - Fixed several places where is_visible instead of Visible was used
21846 - Implemented FIXME related to focus selection when setting focused
21847 control to be invisible
21849 * XplatUIWin32.cs: Now using proper method to find out if window is
21850 visible. Thanks to Jordi for pointing it out
21852 2005-02-28 Jordi Mas i Hernandez <jordi@ximian.com>
21854 * ComboBox.cs: show/hide scrollbar instead of creating it
21856 2005-02-27 Jackson Harper <jackson@ximian.com>
21858 * CurrencyManager.cs: Add PositionChanged stuff.
21860 2005-02-27 Peter Bartok <pbartok@novell.com>
21862 * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
21863 * XplatUIOSX.cs: Added GetMenuOrigin() stub
21864 * XplatUIWin32.cs: Implemented GetMenuOrigin()
21866 - Implemented GetMenuDC()
21867 - Implemented GetMenuOrigin()
21868 - Implemented ReleaseMenuDC()
21869 - Implemented generation of WM_NCPAINT message
21870 - Implemented generation and handling of WM_NCCALCSIZE message
21871 * Form.cs: Added debug helper message for Jordi's menu work
21873 - Modified ClientRect property; added setter, fixed getter to handle
21874 setting of ClientRect
21875 - Added MenuOrigin property
21877 2005-02-26 Peter Bartok <pbartok@novell.com>
21880 - Destroys the caret if a window that's being destroyed contains it
21881 - Ignores expose events coming from the X11 queue for windows that
21882 already are destroyed
21883 - Now uses the proper variable for handling DestroyNotify, before we
21884 marked the wrong window as destroyed
21885 - Improved/added some debug output
21887 2005-02-26 Peter Bartok <pbartok@novell.com>
21889 * X11Keyboard.cs: Fixes to work on 64bit systems
21891 2005-02-26 Peter Bartok <pbartok@novell.com>
21894 - Now calling OnHandleDestroyed from DestroyHandle()
21895 instead of Dispose()
21896 - Removed bogus call to controls.Remove() from DestroyHandle()
21898 2005-02-26 Peter Bartok <pbartok@novell.com>
21900 * Control.cs: Properly destroy child windows when our handle is
21903 2005-02-25 Peter Bartok <pbartok@novell.com>
21906 - Added 'DriverDebug' define to allow tracing XplatUI API calls
21907 - Alphabetized Static Methods and Subclasses
21910 - Added XException class to allow custom handling of X11 exceptions
21911 - Created custom X11 error handler, tied into XException class
21912 - Added support for MONO_XEXCEPTIONS env var to allow the user
21913 to either throw an exception on X errors or continue running
21914 after displaying the error
21915 - Added handling of DestroyNotify message
21916 - Added handler for CreateNotify message (still disabled)
21917 - Improved (tried to at least) Where method to provide file and lineno
21919 - Added XErrorHandler delegate
21920 - Added XRequest enumeration (to suppor translation of errors)
21922 2005-02-25 Jackson Harper <jackson@ximian.com>
21924 * PropertyManager.cs: Implement editing features
21925 * CurrencyManager.cs:
21926 * Binding.cs: First attempt at UpdateIsBinding
21927 * BindingManagerBase.cs: Call UpdateIsBinding before
21928 pushing/pulling data.
21930 2005-02-25 Jordi Mas i Hernandez <jordi@ximian.com>
21932 * MenuAPI.cs: Respect disabled items
21933 * ThemeWin32Classic.cs
21934 - Caches ImageAttributes creation for DrawImageDisabled
21935 - Fixes vertical menu line drawing
21936 - Draws disabled arrows in disable menu items
21938 2005-02-24 Peter Bartok <pbartok@novell.com>
21941 - Added UserData property to allow associating arbitrary objects
21943 - Fixed leak; now removing Hwnd references from static windows array
21945 - Fixed Graphics leak in PaintEventEnd
21946 - Removed usage of HandleData, switched over to Hwnd class
21947 * HandleData.cs: Removed, obsoleted by Hwnd.cs
21949 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
21951 * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
21952 * ScrollBar.cs: Fixes bug
21953 * TrackBar.cs: removes death code, clipping, mimize refreshes,
21954 keyboard navigation enhancements
21956 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
21958 * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
21959 * GroupBox.cs: Add control styles
21960 * Label.cs: Add control styles
21961 * UpDownBase.cs: Add control styles
21962 * ListBox.cs: Add control styles
21963 * XplatUIWin32.cs: Fixes wrong parameter order
21966 2005-02-23 Chris Bacon <chris.bacon@docobo.co.uk>
21968 * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
21970 2005-02-23 Jackson Harper <jackson@ximian.com>
21972 * PropertyManager.cs: Implement property binding. This doesn't
21973 seem to work yet though as (I think) there are some bugs in
21974 System.ComponentModel.PropertyDescriptor.
21975 * BindingContext.cs: Use new PropertyManager constructor.
21977 2005-02-23 Jordi Mas i Hernandez <jordi@ximian.com>
21979 * ProgressBar.cs: use clip region in ProgressBar
21980 * ThemeWin32Classic.cs: use clip region in ProgressBar
21982 2004-02-22 Jackson Harper <jackson@ximian.com>
21984 * BindingsCollection.cs: Remove some debug code.
21986 2005-02-22 Jackson Harper <jackson@ximian.com>
21988 * BindingContext.cs:
21989 * ControlBindingsCollection.cs:
21990 * CurrencyManager.cs:
21992 * BindingManagerBase.cs: Initial implementation
21993 * BindingsCollection.cs: Add an internal contains method that the
21994 BindingManagerBase uses to ensure bindings aren't added twice to
21996 * PropertyManager.cs: Stubbed out.
21998 * ContainerControl.cs: Hook up databinding
22000 2005-02-22 Geoff Norton <gnorton@customerdna.com>
22003 OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
22004 Fixed Invalidate/Update chain.
22005 Fixed tons of other minor bugs (this is almost a complete rewrite).
22007 2005-02-22 Jordi Mas i Hernandez <jordi@ximian.com>
22009 * ComboBox.cs: do subcontrol creation when the control is created
22011 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
22013 * Label.cs: fixes image drawing (image and imagelist)
22014 * ThemeWin32Classic.cs: cache brushes
22016 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
22018 * Form.cs: Move menu drawing code to Theme class
22019 * ComboBox.cs: Move ComboBox drawing code to Theme class
22020 * MenuItem.cs: Move menu drawing code to Theme class
22021 * MenuAPI.cs: Move menu drawing code to Theme class
22022 * ThemeWin32Classic.cs: New methods
22023 * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
22024 * ListBox.cs: Move Listbox drawing code to Theme class
22025 * Theme.cs: New methods
22027 2005-02-20 Peter Bartok <pbartok@novell.com>
22030 - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
22031 only process mnemonics on those)
22032 - Fixed event sequence for key handling; first calling
22033 ProcessKeyEventArgs now
22035 - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
22036 for processing non-character keys
22037 - Fixed WM_CHAR to generate proper event sequence before processing
22038 * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
22041 2005-02-19 Peter Bartok <pbartok@novell.com>
22043 * UserControl.cs: Added TextChanged event; added attributes
22044 * SizeGrip.cs: Implemented resizing and optional display of grip
22045 * Form.cs: Fixed attribute
22046 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
22047 Changed meaning of ScrollWindow bool argument; instead of the
22048 clear attribute (which will be true usually anyway), it gives the
22049 option of moving child controls as well.
22051 - Changed to match new ScrollWindow argument
22052 - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
22053 now handles the implicit parent window a WM puts around us
22054 * ScrollableControl.cs: Implemented (not the prettiest, but it seems
22056 * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
22057 * TreeView.cs: Adjusted to new ScrollWindow arguments
22059 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
22061 * Form.cs: Menu integration with non-client area
22062 * MenuItem.cs: Menu integration with non-client area
22063 * MenuAPI.cs: Menu integration with non-client area
22065 2005-02-18 Peter Bartok <pbartok@novell.com>
22067 * MethodInvoker.cs: Added
22068 * MdiLayout.cs: Added
22069 * SendKeys.cs: Started implementation
22070 * ErrorIconAlignment.cs: Added
22072 2005-02-18 Peter Bartok <pbartok@novell.com>
22074 * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
22075 * Form.cs: Added handling for Menu-related Non-client messages
22077 2005-02-17 Peter Bartok <pbartok@novell.com>
22079 * UpDownBase.cs: Fixed typo, compilation errors
22080 * DomainUpDown.cs: Fixed attribute value
22082 2005-02-16 Miguel de Icaza <miguel@novell.com>
22084 * UpDownBase.cs: Attach entry events.
22086 Add ForeColor property, Focused, InterceptArrowKeys (interception
22087 does not work yet).
22089 2005-02-17 Jordi Mas i Hernandez <jordi@ximian.com>
22092 - Redraw non client are on Setmenu
22093 - Calc proper menu starting point
22095 2005-02-17 Peter Bartok <pbartok@novell.com>
22097 * Application.cs: Fixed message_filter check
22099 2005-02-17 Peter Bartok <pbartok@novell.com>
22101 * Application.cs: Now calls registered message filters
22102 * DockStyle.cs: Fixed attribute
22103 * Form.cs: Fixed attribute
22104 * Menu.cs: Fixed attribute
22105 * ToolTip.cs: Fixed attribute
22106 * TreeNode.cs: Added missing attributes and arranged in regions
22107 * PropertyGrid.cs: Fixed signatures
22108 * TreeNodeCollection.cs: Added attributes
22109 * Splitter.cs: Added missing attributes; arranged into regions
22110 * TabPage.cs: Added missing attributes; arranged into regions
22111 * TextBoxBase.cs: Added missing attributes
22112 * TextBox.cs: Added missing attributes
22113 * ArrangeDirection.cs: Added missing attributes
22114 * TreeNodeConverter.cs: Added stub (needed for TreeNode)
22115 * ToolBarButton.cs: Fixed attributes
22116 * AnchorStyles.cs: Fixed attribute
22117 * TrackBar.cs: Fixed attributes
22118 * TabControl.cs: Added missing attributes and arranged into regions
22119 * ToolBar.cs: Fixed attribute
22120 * StatusBar.cs: Fixed signature, organized into regions and added
22122 * StatusBarPanel.cs: Fixed attributes
22123 * ContentsResizedEventArgs.cs: Implemented
22124 * ContentsResizedEventHandler.cs: Implemented
22125 * DateBoldEventArgs.cs: Implemented
22126 * DateBoldEventHandler.cs: Implemented
22127 * UpDownEventArgs.cs: Implemented
22128 * UpDownEventHandler.cs: Implemented
22130 2005-02-16 Jordi Mas i Hernandez <jordi@ximian.com>
22132 * Form.cs: first Menu NC refactoring
22133 * MenuAPI.cs: first Menu NC refactoring
22135 2005-02-16 Peter Bartok <pbartok@novell.com>
22137 * ImeMode.cs: Added missing attributes
22138 * Menu.cs: Fixed attribute
22139 * GroupBox.cs: Fixed attribute
22140 * Label.cs: Fixed attribute
22141 * ColorDialog.cs (RunDialog): Removed TODO attribute
22142 * ComboBox.cs: Fixed attributes
22143 * ListControl.cs: Added missing attributes
22144 * PropertyGrid.cs: Fixed attributes
22145 * Control.cs: Fixed attributes
22146 * ListViewItem.cs: Added TypeConverter attribute
22147 * NotifyIcon.cs: Fixed attributes
22148 * ListView.cs: Fixed attributes
22149 * ButtonBase.cs: Fixed attribute
22150 * ImageList.cs: Added missing attributes
22151 * ContainerControl.cs: Fixed signature
22152 * CheckedListBox.cs: Fixed attribute; added missing attributes
22153 * Panel.cs: Fixed attributes
22154 * PropertyTabChangedEventArgs.cs: Added missing attribute
22155 * PropertyValueChangedEventArgs.cs: Added missing attribute
22156 * Binding.cs: Fixed attribute
22157 * ListViewItemConverter: Implemented ListViewSubItemConverter class
22158 * ListBox.cs: Fixed attribute; added missing attributes;
22159 * ScrollableControl.cs: Added missing attributes
22160 * PictureBox.cs: Added missing attributes; implemented missing property
22161 * DateTimePicker.cs: Added missing attributes
22162 * Theme.cs (ToolWindowCaptionHeight): Fixed type
22163 * MonthCalendar.cs: Fixed attributes
22164 * StatusBarPanel.cs: Added missing attributes
22165 * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
22167 2005-02-16 Peter Bartok <pbartok@novell.com>
22169 * TextBoxBase.cs: The previous method to enforce height yet remember
22170 the requested high was less than ideal, this is an attempt to do
22172 * Control.cs: Added comment about possible problem
22173 * Copyright: Updated format
22174 * GridItemType.cs: Fixed swapped values
22176 2005-02-15 Jackson Harper <jackson@ximian.com>
22178 * BaseCollection.cs: Use property so we never access an
22179 uninitialized list. Also initialize the list in the property.
22181 2005-02-15 Peter Bartok <pbartok@novell.com>
22183 * GroupBox.cs (ProcessMnemonic): Implemented
22184 * Label.cs (ProcessMnemonic): Implemented
22185 * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
22188 2005-02-15 Peter Bartok <pbartok@novell.com>
22190 * RadioButton.cs (ProcessMnemonic): Implemented
22191 * CheckBox.cs (ProcessMnemonic): Implemented
22193 - Added handling of WM_SYSxxx keyboard messages to support mnemonic
22195 - Added internal method to allow calling ProcessMnemonic from other
22197 * ContainerControl.cs:
22198 - Started support for handling validation chain handling
22199 - Implemented ProcessMnemonic support
22200 - Added Select() call to Active, to make sure the active control
22202 * Form.cs: Setting toplevel flag for Forms (this was lost in the
22203 FormParent rewrite)
22204 * ThemeWin32Classic.cs:
22205 - DrawCheckBox(): Fixed stringformat to show hotkeys
22206 - DrawRadioButton(): Fixed stringformat to show hotkeys
22207 * CommonDialog.cs: Removed WndProc override, not needed
22209 2005-02-14 Peter Bartok <pbartok@novell.com>
22211 * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
22212 missed those in the rewrite
22214 2005-02-14 Miguel de Icaza <miguel@novell.com>
22216 * NumericUpDown.cs (Increment, ToString): Add.
22217 (DecimalPlaces): implement.
22221 * UpDownBase.cs: Add the designer attributes.
22223 2005-02-13 Peter Bartok <pbartok@novell.com>
22225 * Panel.cs: Removed border_style, now in Control
22226 * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
22227 ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
22229 2005-02-13 Peter Bartok <pbartok@novell.com>
22231 * MouseButtons.cs: Added missing attributes
22232 * XplatUIStructs.cs: Added enumeration for title styles
22233 * LeftRightAlignment.cs: Added missing attributes
22234 * Hwnd.cs: Switched to use client_window as handle (slower, but makes
22235 it compatible with Graphics.FromHwnd()
22236 * SelectedGridItemChangedEventArgs.cs: Fixed property type
22237 * Keys.cs: Added missing attributes
22238 * SelectionRange.cs: Added missing attributes
22239 * SelectionRangeConverter.cs: Added
22241 - Introduced SetBorderStyle, SetMenu, GetMenuDC and
22242 ReleaseMenuDC methods
22243 - Renamed ReleaseWindow to UngrabWindow
22244 - Added proper startup notice to allow version identification
22246 - Added missing attributes
22247 - Removed FormParent concept
22248 * Label.cs: Removed border_style field, now in Control
22249 * RadioButton.cs: Now properly selects RadioButton when focus is
22251 * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
22253 - Added missing attributes
22254 - Added borderstyle handling
22255 - Removed FormParent concept support
22256 - Fixed calls to XplatUI to match changed APIs
22257 - Fixed bug that would case us to use disposed Graphics objects
22258 - Removed unneeded internal methods
22259 - PerformLayout(): Fixed to handle DockStyle.Fill properly
22260 - SelectNextControl(): Fixed to properly check common parents
22261 * TextBoxBase.cs: Removed border_style field (now in Control)
22263 - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
22264 fixed calculations for form size
22265 - Added support for localized strings and icons
22266 - Improved form size calculations, added border
22267 * ListView.cs: Removed border_style field (now in Control)
22268 * X11Structs.cs: Moved several structs from X11 driver here
22269 * X11Keyboard.cs: Changed debug message
22270 * Application.cs: Removed FormParent concept support
22272 - Resetting end_modal flag
22273 - Removed FormParent concept support
22274 * NativeWindow.cs: Removed FormParent concept support
22275 * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
22276 Client area and Non-Client whole window to allow support for WM_NC
22278 * XplatUIOSX.cs: Updated to match latest driver spec; added exception
22279 prevent using it until it supports Hwnd as per Geoff Norton's request
22280 * ToolBar.cs: Fixed drawing, was not doing proper drawing
22281 * PictureBox.cs: Removed border_style field, now in Control
22282 * XplatUIWin32.cs: Added new driver methods
22284 2005-02-12 Peter Bartok <pbartok@novell.com>
22286 * OpacityConverter.cs: Implemented
22287 * Hwnd.cs: Internal class to support drivers that need to emulate
22288 client area/non-client area window behaviour
22290 2005-02-11 Peter Bartok <pbartok@novell.com>
22292 * KeysConverter.cs: Implemented
22294 2005-02-11 Jordi Mas i Hernandez <jordi@ximian.com>
22296 * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
22297 * LinkLabel: Added missing attributes
22298 * MainMenu.cs: fixes ToString
22299 * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
22300 * ListBox.cs: fixes event position
22301 * TrackBar.cs: adds missing attributes and events
22303 2005-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
22305 * MenuItem.cs: Use SystemInformation and bug fixes
22306 * MenuAPI.cs: Use SystemInformation and bug fixes
22308 2005-02-09 Jackson Harper <jackson@ximian.com>
22310 * X11Keyboard.cs: We ignore some keys, but still need to set/reset
22311 their keystate otherwise things like VK_MENU get stuck "on".
22313 2005-02-09 Kazuki Oikawa <kazuki@panicode.com>
22315 * ListBox.cs: Fixes AddRange bug
22317 2005-02-09 Jordi Mas i Hernandez <jordi@ximian.com>
22320 - Add missing attributes
22321 - Add missing method
22323 * CheckedListBox.cs: Added missing attributes
22324 - Add missing attributes
22325 - Remove extra method
22327 * ComboBox.cs: Added missing attributes
22328 * VScrollBar.cs: Added missing attributes
22329 * ScrollBar.cs: Added missing attributes
22330 * ListBox.cs: Fixes signature, add missing consts
22331 * LinkArea.cs: Added missing attributes
22334 2005-02-08 Peter Bartok <pbartok@novell.com>
22336 * Menu.cs: Added missing attributes
22337 * MainMenu.cs: Added missing attributes
22338 * GroupBox.cs: Added missing attributes
22339 * Label.cs: Added missing attributes
22340 * CheckBox.cs: Implemented CheckBoxAccessibleObject class
22342 - Added Instance and Options properties
22343 - Added missing attributes
22344 * Cursor.cs: Made Serializable
22345 * NotifyIcon: Added missing attributes
22346 * MenuItem.cs: Added missing attributes
22347 * TextBoxBase.cs: Implemented AppendText() and Select() methods
22348 * Panel.cs: Added Missing attributes
22349 * MonthCalendar.cs: Fixed CreateParams
22351 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
22355 - Fixes issues with links
22356 - Adds the class attributes
22358 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
22361 - Fixes button when no items available in dropdown
22362 - Fixes repainting problems
22363 - Adds the class attributes
22365 2005-02-07 Geoff Norton <gnorton@customerdna.com>
22367 * XplatUIOSX.cs: Detect the menu bar and title bar height from
22368 the current theme. Cache these on startup.
22370 2005-02-07 Jackson Harper <jackson@ximian.com>
22372 * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
22373 the scrollbar buttons when they are depressed.
22375 2005-02-07 Geoff Norton <gnorton@customerdna.com>
22377 * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
22378 Get the display size from the main displayid. We currently dont
22379 support multiple display configurations.
22381 2005-02-07 Geoff Norton <gnorton@customerdna.com>
22383 * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
22385 2005-02-07 Miguel de Icaza <miguel@novell.com>
22387 * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
22389 2005-02-05 Jonathan Chambers <jonathan.chambers@ansys.com>
22391 * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
22393 2005-02-04 Jackson Harper <jackson@ximian.com>
22395 * ThemeWin32Classic.cs: Respect the clipping rect when
22396 drawing. Only fill the intersection of clips and rects so there
22397 isn't a lot of large fills.
22398 * ScrollBar.cs: Pass the correct clipping rect to the theme
22399 engine. Remove some debug code.
22401 2005-02-05 John BouAntoun <jba-mono@optusnet.com.au>
22403 * DateTimePicker.cs:
22404 - Fixed crash on DateTime.Parse, use Constructor instead
22406 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
22410 - Owner draw support (MeasureItem and DrawItem)
22412 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
22415 - Implements FindMergePosition and MergeMenu functions (very poor documented)
22416 - Fixes MenuItems.Add range
22418 - MergeMenu and Clone and CloneMenu functions
22420 2005-02-03 Jackson Harper <jackson@ximian.com>
22422 * ScrollBar.cs: Make abstract
22423 * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
22426 2005-02-03 Jackson Harper <jackson@ximian.com>
22428 * ScrollBar.cs: First part of my scrollbar fixups. This removes
22429 all the unneeded refreshes and uses invalidates with properly
22432 2005-02-03 Peter Bartok <pbartok@novell.com>
22434 * ComponentModel.cs: Added
22435 * IDataGridEditingService.cs: Added
22436 * Timer.cs: Added missing attributes
22437 * ToolTip.cs: Added missing attributes
22439 2005-02-03 Jonathan Chambers <jonathan.chambers@ansys.com>
22441 * PropertyGridView.cs: Added. Patch by Jonathan Chambers
22443 2005-02-03 Peter Bartok <pbartok@novell.com>
22445 * ListBox.cs: Added missing attributes
22447 2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
22450 - Fixes font height after font change
22451 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
22453 2005-02-02 Peter Bartok <pbartok@novell.com>
22455 * HandleData.cs: Introduced static methods to allow class
22456 to be more self-contained and track it's own HandleData objects
22457 * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
22458 HandleData to use new static methods
22460 2005-02-02 Jordi Mas i Hernandez <jordi@ximian.com>
22463 - Fixes default size and PreferredHeight
22465 - ObjectCollection.Insert implementation
22471 - ObjectCollection.Insert implementation
22472 - No selection after clean
22475 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
22477 * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
22479 2005-02-01 Jordi Mas i Hernandez <jordi@ximian.com>
22482 - Caches ItemHeight calculation for OwnerDrawVariable
22483 - Handles dropdown properly
22484 - Fixes several minor bugs
22486 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
22489 - Fixes 71946 and 71950
22490 - Fixes changing Multicolumn on the fly
22491 - Fixes keyboard navigation on Multicolumn listboxes
22493 2005-01-31 Geoff Norton <gnorton@customerdna.com>
22495 * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
22496 crash reporter log.
22498 2005-01-31 Geoff Norton <gnorton@customerdna.com>
22500 * XplatUIOSX.cs: Allow applications to actually exit.
22502 2005-01-31 Geoff Norton <gnorton@customerdna.com>
22504 * XplatUIOSX.cs: SetWindowStyle implemented. Reposition views in
22505 their parent at creation time rather than lazily later. Fixes a major
22506 regression we were experiencing.
22508 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
22510 * ThemeWin32Classic.cs: more date time picker painting fixes
22511 * DateTimePicker.cs: more monthcalendar drop down fixes
22512 * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
22514 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
22517 - When moving the thumb going outside the control should stop the moving
22518 - Adds the firing of missing events
22519 - Fixes no button show if Size is not specified
22520 - End / Home keys for keyboard navigation
22522 2005-01-30 Peter Bartok <pbartok@novell.com>
22524 * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
22525 sanity check to prevent theoretical loop
22526 * XplatUIWin32.cs (SetVisible): Removed debug output
22527 * XplatUIX11.cs (SystrayChange): Added sanity check
22528 * ScrollableControl.cs (OnVisibleChanged): Now calls base method
22529 * Control.cs (OnVisibleChanged): Added workaround for ParentForm
22530 behaviour, valid until the X11 client window rewrite is done
22531 * TextBox.cs (ctor): Setting proper default foreground and background
22534 2005-01-30 John BouAntoun <jba-mono@optusnet.com.au>
22536 * Theme: Added DrawDateTimePicker to interface
22537 * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
22538 * DateTimePicker.cs: Created (still needs keys and painting code)
22539 * DateTimePickerFormat.cs: added
22540 * MonthCalendar.cs: fixed CreateParams for popup window mode
22542 2005-01-29 Peter Bartok <pbartok@novell.com>
22544 * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
22545 this should also the calculations for ligher/darker
22546 * Theme.cs: Fixed defaults for ScrollBar widths/heights
22548 2005-01-29 Peter Bartok <pbartok@novell.com>
22550 * ArrangeDirection.cs: Added
22551 * ArrangeStartingPositon.cs: Added
22552 * SystemInformation.cs: Implemented
22553 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
22554 XplatUIX11.cs, Theme.cs: Added/implemented new static properties
22555 used by SystemInformation class
22556 * X11Strucs.cs: Added XSizeHints structure
22558 - Fixed CreateParams to make sure the menu window is always visible
22559 - TrackPopupMenu: Added check to make sure we don't draw the
22562 2005-01-29 Peter Bartok <pbartok@novell.com>
22564 * HandleData.cs: Added method for altering invalid area
22565 * TextBoxBase.cs: Implemented TextLength
22567 2005-01-28 Peter Bartok <pbartok@novell.com>
22569 * XplatUIX11.cs: Improvement over last patch, not sending
22570 the WM_PAINT directly anymore, instead we scroll any pending
22571 exposed areas and let the system pick out the WM_PAINT later
22573 2005-01-28 Peter Bartok <pbartok@novell.com>
22575 * SWF.csproj: Deleted, no longer used. Instead,
22576 Managed.Windows.Forms/SWF.csproj should be used
22577 * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
22578 directly, to avoid a potential race condition with the next
22581 2005-01-28 Peter Bartok <pbartok@novell.com>
22583 * XplatUI.cs: Made class internal
22585 2005-01-28 Jordi Mas i Hernandez <jordi@ximian.com>
22587 * CheckedListBox.cs:
22590 - Missing methods and events
22592 2005-01-27 Peter Bartok <pbartok@novell.com>
22594 * Application.cs (Run): Don't use form if we don't have one
22596 2005-01-27 Peter Bartok <pbartok@novell.com>
22598 * TextBoxBase.cs (get_Lines): Fixed index off by one error
22600 2005-01-27 Peter Bartok <pbartok@novell.com>
22602 * GridEntry.cs: Added; Patch by Jonathan S. Chambers
22603 * GridItem.cs: Added; Patch by Jonathan S. Chambers
22604 * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
22605 * GridItemType.cs: Added; Patch by Jonathan S. Chambers
22606 * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
22607 * PropertySort.cs: Added; Patch by Jonathan S. Chambers
22608 * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
22609 * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
22610 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
22611 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
22612 * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
22613 * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
22615 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
22618 - Draw focus on Simple Combobox
22619 - Fixes drawing issues
22622 2005-01-27 Peter Bartok <pbartok@novell.com>
22625 - Place window in default location, instead of hardcoded 0/0
22626 - Send initial LocationChanged event
22628 - UpdateBounds after creation to find out where the WM placed us
22629 - Make sure that if the ParentForm changes location the Form
22631 * XplatUIX11.cs: XGetGeometry will not return the coords relative
22632 to the root, but to whatever the WM placed around us.
22633 Translate to root coordinates before returning toplevel
22635 * XplatUIWin32.cs: Removed debug output
22636 * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
22637 flag to GetWindowPos, to allow translation of coordinates on X11
22639 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
22641 * ListBox.cs: connect LostFocus Event
22643 2005-01-27 Peter Bartok <pbartok@novell.com>
22645 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
22646 XplatUIX11.cs: Extended the Systray API
22647 * Form.cs: Removed debug output
22648 * Application.cs: Fixed focus assignment, always need to call
22649 XplatUI.Activate() since Form.Activate() has rules that may
22651 * NotifyIcon.cs: Should be complete now
22652 * ToolTip.cs: Worked around possible timer bug
22654 2005-01-27 Jackson Harper <jackson@ximian.com>
22657 - Only invalidate the effected tabs when the
22658 selected index changes. This reduces drawing and gets rid of some
22660 - Only refresh if the tabs need to be shifted, otherwise only
22661 invalidate the slider button.
22662 - On windows the tabs are not filled to right if the slider is
22665 2005-01-27 Jackson Harper <jackson@ximian.com>
22667 * TabControl.cs: Only refresh on mouseup if we are showing the
22668 slider. Also only invalidate the button whose state has changed.
22670 2005-01-26 Peter Bartok <pbartok@novell.com>
22672 * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
22673 * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
22674 and SystrayRemove() methods
22675 * XplatUIOSX.cs: Stubbed Systray methods
22677 - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
22679 - Fixed broken XChangeProperty calls (marshalling messed up things)
22680 * X11Structs.cs: Added enums and structs required for Size hinting
22681 * NotifyIcon.cs: Added & implemented
22683 2005-01-26 Jackson Harper <jackson@ximian.com>
22685 * TabControl.cs: Space vertically layed out tabs properly.
22687 2005-01-26 Peter Bartok <pbartok@novell.com>
22689 * Form.cs (CreateClientParams): Always set the location to 0,0
22690 since we're a child window.
22692 * Control.cs (SetVisibleCore): Always explicitly setting the location
22693 of a toplevel window, apparently X11 doesn't like to move windows
22694 while they're not mapped.
22696 2005-01-26 Jackson Harper <jackson@ximian.com>
22698 * TabControl.cs: Implement FillToRight size mode with vertically
22701 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
22703 * ControlPaint.cs, ThemeWin32Classic.cs
22704 - Fixes DrawFocusRectangle
22706 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
22709 - MenuBar tracking only starts when item is first clicked
22710 - Fixes menu hidding for multiple subitems
22711 - Unselect item in MenuBar when item Executed
22714 2005-01-25 Jordi Mas i Hernandez <jordi@ximian.com>
22717 - IsInputKey for ListBox
22720 - Shift and Control item selection
22721 - Implement SelectionMode.MultiExtended
22722 - Fixes RightToLeft
22724 - IsInputKey implemented
22725 - Do not generate OnTextChangedEdit on internal txt changes
22727 2005-01-23 Peter Bartok <pbartok@novell.com>
22729 * AccessibleObject.cs: Partially implemented Select()
22730 * MonthCalendar.cs: Added missing attributes and events
22731 * Form.cs: Fixed CreateParams behaviour, now controls derived from
22732 form can properly override CreateParams.
22733 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
22734 XplatUIX11.cs: Dropped RefreshWindow method, not needed if
22735 Control performs Invalidate & Update
22736 * NativeWindow (CreateHandle): Added special handling for Form
22737 and Form.FormParent classes to allow overriding of From.CreateParams
22739 - ControlNativeWindow: Renamed 'control' variable to more intuitive
22741 - ControlNativeWindow: Added Owner property
22742 - Removed usage of Refresh() on property changes, changed into
22743 Invalidate(), we need to wait until the queue is processed for
22744 updates, direct calls might cause problems if not all vars for
22745 Paint are initialized
22746 - Added call to UpdateStyles() when creating the window, to set any
22747 styles that CreateWindow might have ignored.
22748 - Added support for Form CreateParent overrides to UpdateStyles()
22749 * MessageBox.cs: Removed no longer needed FormParent override stuff,
22750 CreateParams are now properly overridable
22751 * CommonDialog.cs: Removed no longer needed FormParent override stuff,
22752 CreateParams are now properly overridable
22754 2005-01-23 Miguel de Icaza <miguel@ximian.com>
22756 * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
22759 Capture LostFocus and OnTextBoxChanged. The later introduces a
22760 recursive invocation that I have not figured out yet.
22762 Reset the timer when not using (it was accumulating).
22765 (OnTextBoxChanged): Set UserEdit to true here to track whether the
22766 user has made changes that require validation.
22768 Reset changing to avoid loops.
22770 2005-01-22 Miguel de Icaza <miguel@ximian.com>
22772 * NumericUpDown.cs: Display value at startup.
22774 * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
22777 * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
22778 filled in. Added some basic parsing of text.
22780 Still missing the OnXXX method overrides, and figuring out the
22781 events that must be emitted.
22783 * UpDownBase.cs: Handle UserEdit on the Text property.
22785 2005-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
22788 - Fixes IntegralHeight
22791 2005-01-21 Jackson Harper <jackson@ximian.com>
22793 * TabControl.cs: Set the SelectedIndex property when SelectedTab
22794 is set so that the page visibility is updated and the tabs are
22797 2005-01-21 Jackson Harper <jackson@ximian.com>
22799 * TabControl.cs: Use cliping rectangle for blitting. Give the
22800 theme the clipping rect so we can do clipping while
22801 drawing. Remove some debug code.
22803 2005-01-21 Jackson Harper <jackson@ximian.com>
22805 * TabPage.cs: Add a new method so tab pages can force the tab
22806 control to recalculate the tab page sizes.
22807 * TabControl.cs: UpdateOwner needs to make the tab control recalc
22810 2005-01-20 Jackson Harper <jackson@ximian.com>
22812 * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
22814 2005-01-20 Jackson Harper <jackson@ximian.com>
22816 * TreeView.cs: Set the bounds for nodes properly. They were
22817 getting screwed up when checkboxes were not enabled, but images
22820 2005-01-20 Jordi Mas i Hernandez <jordi@ximian.com>
22823 - Owner draw support
22826 2005-01-20 Jackson Harper <jackson@ximian.com>
22828 * XplatUIStructs.cs: More misc keys
22829 * X11Keyboard.cs: Ignore some control keys.
22831 2005-01-20 Jackson Harper <jackson@ximian.com>
22833 * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
22834 * X11Keyboard.cs: Set the AltGr mask when we get a key event.
22836 2005-01-19 Peter Bartok <pbartok@novell.com>
22838 * Control.cs: Un-selecting the control when it is loosing focus
22840 2005-01-19 Jackson Harper <jackson@ximian.com>
22842 * TreeView.cs: Hook up to the text controls leave event so we can
22843 end editing when the users clicks outside the text box.
22845 2005-01-19 Jackson Harper <jackson@ximian.com>
22847 * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
22848 get set in the conversion array.
22850 2005-01-19 Peter Bartok <pbartok@novell.com>
22852 * Application.cs (ModalRun): Added a call to CreateControl to ensure
22853 focus is properly set
22855 - Added missing attributes
22856 - removed styles, those are already set in the base class
22858 - Added missing attributes
22859 - Added clip window styles
22860 * CheckBox.cs: Added missing attributes
22862 - FormParentWindow.CreateParams: Added required clip styles
22863 * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
22864 also filters modifier keys
22866 - Added assignment of Accept and Cancel button to enable Enter
22867 and Esc keys in MessageBox dialogs
22868 - FormParentWindow.CreateParams: Added required clip styles
22869 * RadioButton.cs: Added missing attributes
22870 * TextControl.cs: No longer draws selection if control does not
22873 - Now draws simple rectangle around test area to make it obvious
22874 there's a control. This is a hack until we properly support borders
22875 - A few simple fixes to support selections better, now erases selected
22876 text when typing, and resets selection when using movement keys
22878 2005-01-19 Miguel de Icaza <miguel@ximian.com>
22880 * UpDownBase.cs: Added some new properties.
22882 * DomainUpDown.cs: Implement a lot to get my test working.
22884 2005-01-19 Geoff Norton <gnorton@customerdna.com>
22886 * XplatUIOSX.cs: Fix a minor bug to bring the close box back
22888 2005-01-19 Geoff Norton <gnorton@customerdna.com>
22890 * OSXStructs (WindowAttributes): Fixed csc complaints
22892 2005-01-19 Geoff Norton <gnorton@customerdna.com>
22895 OSXStructs.cs: Initial refactor to move enums and consts into
22896 OSXStructs and use them in the driver for greater readability.
22898 2005-01-19 Geoff Norton <gnorton@customerdna.com>
22900 * XplatUIOSX.cs: Initial support for Standard Cursors.
22901 * OSXStructs.cs: Move our structs here; added ThemeCursor enum
22903 2005-01-19 Jordi Mas i Hernandez <jordi@ximian.com>
22905 * ComboBox.cs: ability to change style when the ctrl is already
22906 created, missing methods and events, bug fixes, signature fixes
22908 2005-01-19 Peter Bartok <pbartok@novell.com>
22910 * Cursors.cs (ctor): Added ctor to fix signature
22912 2005-01-18 Peter Bartok <pbartok@novell.com>
22914 * Button.cs: Implemented DoubleClick event
22916 - Fixed keyboard handling to behave like MS, where the press of
22917 Spacebar is equivalent to a mousedown, and the key release is
22918 equivalent to mouseup. Now a spacebar push will give the same
22919 visual feedback like a mouse click.
22920 - Added missing attributes
22921 - Added ImeModeChanged event
22922 - Added support for generating DoubleClick event for derived classes
22924 - Implemented DoubleClick event
22925 - Added missing attributes
22926 * CommonDialog.cs: Added missing attribute
22927 * ContextMenu.cs: Added missing attributes
22929 - AutoChecked buttons do not allow to be unselected when clicked
22930 (otherwise we might end up with no selected buttons in a group)
22931 - Added missing attributes
22932 - Implemented DoubleClickEvent
22933 * ThreadExceptionDialog.cs: Enabled TextBox code
22935 2005-01-18 Peter Bartok <pbartok@novell.com>
22937 * Form.cs: Removed debug output
22938 * Button.cs: Added support for DoubleClick method
22940 2005-01-18 Peter Bartok <pbartok@novell.com>
22943 - Added method to parent window that allows triggering size
22944 calculations when a menu is added/removed
22945 - set_Menu: Cleaned up mess from early days of Form and Control,
22946 now properly triggers a recalc when a menu is added/removed
22947 - Added case to select form itself as focused form if no child
22949 - Added PerformLayout call when showing dialog, to ensure properly
22952 - Select(): Made internal so Form can access it
22953 - Focus(): Only call Xplat layer if required (avoids loop), and sets
22955 * Application.cs (Run): Removed hack and calls PerformLayout instead
22956 to trigger calculation when Form becomes visible
22958 2005-01-18 Jordi Mas i Hernandez <jordi@ximian.com>
22960 * ComboBox.cs: fixes for ownerdraw
22962 2005-01-18 Peter Bartok <pbartok@novell.com>
22965 - Sentinel is no longer static, each Document gets it's own, this
22966 avoids locking or alternatively overwrite problems when more
22967 than one text control is used simultaneously.
22968 - Switched to use Hilight and HilightText brushes for text selection
22970 * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
22972 2005-01-18 Peter Bartok <pbartok@novell.com>
22975 - Hooked up the following events:
22983 o SystemColorsChanged
22984 o ParentFontChanged
22986 - Removed debug output
22987 - Added a call to the current theme's ResetDefaults when a color change
22989 * Form.cs: Now setting the proper ImeMode
22990 * Theme.cs: Defined a method to force recreation of cached resources
22991 and rereading of system defaults (ResetDefaults())
22992 * ThemeWin32Classic.cs: Added ResetDefaults() stub
22994 2005-01-17 Peter Bartok <pbartok@novell.com>
22996 * Control.cs: Added missing attributes
22998 2005-01-17 Jackson Harper <jackson@ximian.com>
23000 * TreeNode.cs: Implement editing. Add missing properties selected
23002 * TreeView.cs: Implement node editing. Also some fixes to use
23003 Invalidate (invalid area) instead of Refresh when selecting.
23005 2005-01-17 Peter Bartok <pbartok@novell.com>
23008 - Implemented InvokeGotFocus() method
23009 - Implemented InvokeLostFocus() method
23010 - Implemented InvokePaint() method
23011 - Implemented InvokePaintBackground() method
23012 - Implemented InvokeClick() method
23013 - Implemented FindForm() method
23014 - Implemented RectangleToClient() method
23015 - Implemented ClientToRectangle() method
23016 - Implemented ResetBackColor() method
23017 - Implemented ResetCursor() method
23018 - Implemented ResetFont() method
23019 - Implemented ResteForeColor() method
23020 - Implemented ResetImeMode() method
23021 - Implemented ResetLeftToRight() method
23022 - Implemented ResetText() method
23023 - Implemented Scale() methods
23024 - Implemented ScaleCore() method
23025 - Implemented Update() method
23026 - Removed unused variables
23027 - Stubbed AccessibilityNotifyClients and
23028 ControlAccessibleObject.NotifyClients() methods (dunno what to do
23030 - Now setting proper default for RightToLeft property
23031 - Fixed bug in SetClientSizeCore that would cause windows to get
23033 - Now sending Click/DoubleClick events
23034 - Now selecting controls when left mouse button is clicked on
23036 * AccessibleEvents.cs: Added
23037 * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
23038 * XplatUIOSX.cs: Stubbed UpdateWindow() method
23039 * XplatUIWin32.cs: Implemented UpdateWindow() method
23040 * XplatUIX11.cs: Implemented UpdateWindow() method
23041 * Form.cs: Removed stray semicolon causing CS0162 warning
23042 * ThemeWin32Classic.cs: Fixed unused variable warnings
23043 * ScrollableControl.cs: Now calls base method for ScaleCore
23044 * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
23045 style to avoid interference with internal click handler (which is
23046 different than standard Control click handling)
23048 - Now unchecks all sibling radio buttons when control is
23049 selected (Fixes #68756)
23050 - Removed internal tabstop variable, using the one inherited from
23053 2005-01-17 Jackson Harper <jackson@ximian.com>
23055 * NavigateEventArgs.cs: Fix base type.
23056 * LinkLabel.cs: Sig fix
23058 2005-01-17 Jackson Harper <jackson@ximian.com>
23060 * TreeView.cs: Only invalidate the effected nodes bounds when
23063 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
23065 * XplatUIWin32.cs: fixes Win32 marshaling
23066 * XplatUIX11.cs: fixes method signature
23068 2005-01-17 Peter Bartok <pbartok@novell.com>
23070 * XplatUIX11.cs: Clean up resources when we no longer need them
23072 2005-01-17 Peter Bartok <pbartok@novell.com>
23074 * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
23075 OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
23076 and DestroyCursor() methods.
23077 * Cursor.cs: Partially implemented, now supports standard cursors;
23078 still contains some debug code
23079 * Cursors.cs: Implemented class
23081 - WndProc(): Added handling of WM_SETCURSOR message, setting the
23083 - Implemented Cursor property
23084 - Replaced break; with return; more straightforwar and possibly
23086 - Now properly setting the result for WM_HELP
23087 * X11Structs.cs: Added CursorFontShape enum
23088 * XplatUIStructs.cs:
23089 - Added StdCursor enum (to support DefineStdCursor() method)
23090 - Added HitTest enum (to support sending WM_SETCURSOR message)
23092 - Now sends the WM_SETCURSOR message
23093 - Implemented new cursor methods
23094 * XplatUIOSX.cs: Stubbed new cursor methods
23096 - Implemented new cursor methods
23097 - Added GetSystemMetrics function and associated enumeration
23099 2005-01-15 Peter Bartok <pbartok@novell.com>
23102 - WndProc(): Now handles EnableNotifyMessage
23103 - SelectNextControl(): Fixed bug where if no child or sibling
23104 controls exist we looped endlessly
23106 2005-01-14 Jackson Harper <jackson@ximian.com>
23108 * TreeView.cs: Recalculate the tab pages when a new one is added
23109 so that the proper bounding rects are created.
23111 2005-01-14 Jackson Harper <jackson@ximian.com>
23113 * TreeView.cs: Draw a gray box instead of a grip in the lower
23114 right hand corner when there are both horizontal and vertical
23117 2005-01-14 Jackson Harper <jackson@ximian.com>
23119 * Control.cs: When erasing backgrounds use FromHwnd instead of
23120 FromHdc when there is a NULL wparam. This occurs on the X driver.
23121 * XplatUIX11.cs: Set the wparam to NULL.
23123 2005-01-13 Jackson Harper <jackson@ximian.com>
23125 * PictureBox.cs: Implement missing methods (except ToString, need
23126 to test that on windows) and events. When visibility is changed we
23127 need to redraw the image because the buffers are killed. When size
23128 is changed refresh if the sizemode needs it.
23130 2005-01-13 Peter Bartok <pbartok@novell.com>
23132 * Control.cs (SelectNextControl): Was using wrong method to select
23135 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
23137 * ComboBox.cs: fixes dropstyle
23139 2005-01-13 Peter Bartok <pbartok@novell.com>
23142 - Implemented Select() override
23143 - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
23144 - Now sets keyboard focus on startup
23145 * Control.cs (SelectNextControl): Now properly handles directed=true
23147 - WndProc: Now passes tab key on to base if AcceptTabChar=false
23148 - Added (really bad) focus rectangle (mostly for testing)
23149 * TextBox.cs: Added code to handle getting/loosing focus and invalidating
23150 to enforce redraw on focus changes
23151 * ContainerControl.cs:
23152 - Fixed detection of Shift-Tab key presses
23153 - Fixed traversal with arrow keys
23154 * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
23155 gonna keep this or if it's complete yet
23157 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
23159 * ComboBox.cs: missing properties, fixes
23161 2005-01-13 Peter Bartok <pbartok@novell.com>
23163 * Panel.cs (ctor): Setting Selectable window style to off
23164 * Splitter.cs (ctor): Setting Selectable window style to off
23165 * GroupBox.cs (ctor): Setting Selectable window style to off
23166 * Label.cs (ctor): Setting Selectable window style to off
23168 2005-01-12 Miguel de Icaza <miguel@ximian.com>
23170 * UpDownBase.cs (InitTimer): If the timer has been already
23171 created, enable it.
23173 Use a TextBox instead of a Label.
23175 2005-01-12 Jackson Harper <jackson@ximian.com>
23177 * TreeView.cs: Refresh the tree after sorting the nodes. Always
23178 draw the connecting node lines (when ShowLines is true).
23179 * TreeNode.cs: The nodes index can now be updated. This is used
23180 when a node collection is sorted.
23181 * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
23182 insert or an existing unsorted node collection can be sorted.
23184 2005-01-12 Peter Bartok <pbartok@novell.com>
23186 * ContainerControl.cs: Implemented ProcessDialogKeys()
23188 2005-01-12 Peter Bartok <pbartok@novell.com>
23191 - Implemented SelectNextControl() method
23192 - Several focus related bug fixes
23193 - Fixed Docking calculations to match MS documentation and
23196 2005-01-12 Jordi Mas i Hernandez <jordi@ximian.com>
23198 * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
23201 2005-01-12 Peter Bartok <pbartok@novell.com>
23204 - Fixed broken Contains() method
23205 - Implemented GetNextControl() method. Finally. This is the pre-
23206 requisite for focus handling.
23208 2005-01-12 Peter Bartok <pbartok@novell.com>
23210 * OSXStrucs.cs: Added
23212 2005-01-12 Peter Bartok <pbartok@novell.com>
23215 - Removed PeekMessageFlags
23216 - Implemented SetWindowStyle() method
23217 * XplatUIStructs.cs: Added PeekMessageFlags
23218 * X11Structs: Added missing border_width field to XWindowChanges struct
23220 - PeekMessage: Now throws exception if flags which are not yet
23221 supported are passed
23222 - Implemented SetWindowStyle() method
23223 - Fixed SetZOrder to handle AfterHwnd properly
23224 * XplatUI.cs: Added SetWindowStyle() method
23225 * XplatUIDriver.cs: Added SetWindowStyle() abstract
23227 - Implemented UpdateStyles() method
23228 - Implemented UpdateZOrder() method
23229 * XplatUIOSX.cs: Added SetWindowStyle() stub
23231 2005-01-12 Geoff Norton <gnorton@customerdna.com>
23233 * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
23237 2005-01-11 Jackson Harper <jackson@ximian.com>
23239 * TreeView.cs: Still need to draw lines to siblings even if out of
23240 the current node is out of the clip.
23242 2005-01-11 Jackson Harper <jackson@ximian.com>
23244 * TreeView.cs: When setting the hbar/vbar/grip position use
23245 SetBounds so that perform layout is only called once. Also suspend
23246 and resume layout so layout is only done once for all controls.
23247 - Removed some debug fluff
23248 * SizeGrip.cs: Call base implmentation in overriding methods.
23249 - When visibility is changed the drawing buffers are killed so we
23252 2005-01-11 Jackson Harper <jackson@ximian.com>
23254 * TreeView.cs: Calculate the open node count while drawing. This
23255 saves us an entire tree traversal for every paint operation. Use
23256 a member var for the open node count so less vars are passed around.
23258 2005-01-11 John BouAntoun <jba-mono@optusnet.com.au>
23260 * MonthCalendar.cs:
23261 - fixed selection to use mousemove, not mouse polling on timer
23262 * ThemeWin32Classic.cs
23263 - removed redundant unused variable "no_more_content"
23265 2005-01-11 Peter Bartok <pbartok@novell.com>
23267 * XplatUIX11.cs (DoEvents): Needs to return when no more events
23268 are pending, so it now calls PeekMessage instead of GetMessage;
23269 implemented a incomplete version of PeekMessage
23271 2005-01-11 Peter Bartok <pbartok@novell.com>
23273 * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
23275 * TextBoxBase.cs: Added sending of TextChanged event
23277 2005-01-10 Jackson Harper <jackson@ximian.com>
23279 * TreeView.cs: Try not to draw outside the clipping rectangle on
23282 2005-01-10 Jordi Mas i Hernandez <jordi@ximian.com>
23284 * ComboBox.cs: keyboard navigation, item navigation, bug fixes
23286 2005-01-10 Jackson Harper <jackson@ximian.com>
23289 - Implement fast scrolling. Now only the newly
23290 exposed nodes are drawn and the old image is moved using the
23291 XplatUI::ScrollWindow method.
23292 - Factor in height of nodes when calculating whether or not the
23293 node is in the clipping rect.
23295 2005-01-10 Jackson Harper <jackson@ximian.com>
23297 * TreeNodeCollection.cs: Refresh the tree when a new node is added.
23299 2005-01-10 Peter Bartok <pbartok@novell.com>
23301 * Application.cs: Added temporary hack to resolve all our resize
23302 required issues on startup. This will get fixed properly at
23303 some point in the future
23305 2005-01-10 Jackson Harper <jackson@ximian.com>
23307 * SizeGrip.cs: New internal class that is used as a sizing
23308 grip control...hence the name.
23310 2005-01-10 Peter Bartok <pbartok@novell.com>
23312 * Control.cs: Implemented proper TabIndex handling, now assigning
23313 a tabindex when a control is added to a container
23314 * GroupBox.cs (ctor): Now sets the Container style bit, required
23315 for Control.GetNextControl()
23317 2005-01-09 Jackson Harper <jackson@ximian.com>
23319 * TextBoxBase.cs: Clear window when scrolling (fixes build).
23321 2005-01-09 Peter Bartok <pbartok@novell.com>
23323 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
23324 XplatUIX11.cs: Added ability to control ScrollWindow expose and
23325 an overload for ScrollWindow to allow only scrolling a rectangle
23327 2005-01-09 Peter Bartok <pbartok@novell.com>
23330 - Implemented SetDesktopBounds method
23331 - Implemented SetDesktopLocation method
23333 2005-01-08 Jackson Harper <jackson@ximian.com>
23335 * TreeView.cs: Only set the vbar's Maximum and LargeChange when
23336 the node count has changed, this removes to VScroll::Refresh calls
23339 2005-01-08 Geoff Norton <gnorton@customerdna.com>
23341 * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
23343 2005-01-07 Jackson Harper <jackson@ximian.com>
23345 * TreeNode.cs: Just update the single node when it is
23346 checked. Don't refresh after toggling, the Expand/Collapse already
23348 * TreeView.cs: Respect clipping a little more when drawing. Try
23349 not to redraw things that don't need to be redrawn. Just hide the
23350 scrollbars when they are no longer needed instead of removing
23351 them, so they don't have to be created again and again.
23353 2005-01-07 Geoff Norton <gnorton@customerdna.com>
23355 * XplatUIOSX.cs (SetCaretPos): We need to translate the view
23356 coordinates to window space to place the caret properly, FIXED.
23357 Implement GetWindowState & SetWindowState
23359 2005-01-06 Peter Bartok <pbartok@novell.com>
23362 - Implemented ClientSize property
23363 - Implemented DesktopBounds property
23364 - Implemented DesktopLocation property
23365 - Implemented IsRestrictedWindow property
23366 - Implemented Size property
23367 - Implemented TopLevel property
23368 - Implemented FormWindowState property
23370 - Implemented GetTopLevel() method
23371 - Implemented SetTopLevel() method
23372 * X11Structs.cs (Atom):
23373 - Added AnyPropertyType definition
23374 - Added MapState definiton and updated XWindowAttribute struct
23375 * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
23376 * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
23377 * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
23379 - Implemented GetWindowState() and SetWindowState() methods
23380 - Fixed Win32GetWindowLong return type
23382 - Introduced central function for sending NET_WM messages
23383 - Implemented GetWindowState() and SetWindowState() methods
23384 * TextBoxBase.cs (set_Lines):
23385 - Now uses Foreground color for text added via Text property (Duh!)
23386 - Added code to remember programmatically requested size (fixes
23387 behaviour when Multiline is set after Size)
23388 - Added AutoSize logic
23390 2005-01-06 Jackson Harper <jackson@ximian.com>
23392 * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
23394 2005-01-06 Jackson Harper <jackson@ximian.com>
23396 * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
23397 set to less then 0.
23399 2005-01-06 Jackson Harper <jackson@ximian.com>
23401 * ScrollableControl.cs: Lazy init the scrollbars.
23403 2005-01-06 Jackson Harper <jackson@ximian.com>
23405 * Theme.cs: Speed up getting pens and solid brushes, by using
23406 their ARGB as a hash instead of tostring and not calling Contains.
23408 2005-01-06 Peter Bartok <pbartok@novell.com>
23411 - Implemented OnActivated and OnDeactivate event trigger
23412 - Implemented Activate() method
23413 - Fixed ShowDialog() to activate the form that was active before
23414 the dialog was shown
23416 - Added global active_window var that tracks the currently active
23418 - Now always grabs Property changes from the root window to always
23419 catch changes on the active window property
23420 - Added code to PropertyNotify handler to send Active/Inactive
23421 messages when state changes. This puts X11 and Win32 en par on
23422 WM_ACTIVATE notifications (except for double notifications when
23423 the user clicks away from our modal window to another one of our
23426 2005-01-05 Jackson Harper <jackson@ximian.com>
23428 * ImageList.cs: Implment ctor
23430 2005-01-05 Geoff Norton <gnorton@customerdna.com>
23432 * XplatUIOSX.cs: Implement Activate/SetTopmost
23434 2005-01-05 Geoff Norton <gnorton@customerdna.com>
23436 * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
23438 2005-01-05 Geoff Norton <gnorton@customerdna.com>
23440 * XplatUIOSX.cs: Implement GetActive/SetFocus.
23442 2005-01-05 Peter Bartok <pbartok@novell.com>
23444 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
23445 XplatUIOSX.cs: Added GetActive method to return the currently
23446 active window for the application (or null, if none is active)
23448 - Implemented ActiveForm
23449 - Commented out owner assignment for modal dialogs (causes problems
23450 on Win32, since the owner will be disabled)
23451 - Reworked some Active/Focus handling (still incomplete)
23452 * CommonDialog.cs: Commented out owner assignment for modal dialogs
23453 (causes problems on Win32, since the owner will be disabled)
23454 * IWin32Window: Added ComVisible attribute
23456 2005-01-05 Peter Bartok <pbartok@novell.com>
23458 * ToolTip.cs (WndProc): Enable setting focus now that we have the
23459 required XplatUI functions.
23461 2005-01-05 Peter Bartok <pbartok@novell.com>
23463 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
23464 XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
23465 to implement focus and activation handling; still incomplete and
23468 2005-01-04 Peter Bartok <pbartok@novell.com>
23470 * TextBoxBase.cs: Changed access level for Document property to
23471 match switch to internal for TextControl
23473 2005-01-04 Peter Bartok <pbartok@novell.com>
23475 * AccessibleObject: Added ComVisible attribute
23477 2005-01-04 Jackson Harper <jackson@ximian.com>
23479 * X11Keyboard.cs: Remove unneeded var.
23481 2005-01-04 Jackson Harper <jackson@ximian.com>
23483 * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
23485 * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
23486 ClientMessage. This makes apps exit cleanly (more often).
23488 2005-01-04 Jackson Harper <jackson@ximian.com>
23490 * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
23491 handling focus, return correct colors and fonts,
23492 * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
23493 handle selection, horizontal scrolling, and mouse interaction.
23495 2005-01-04 Peter Bartok <pbartok@novell.com>
23497 * ICommandExecutor.cs: Added
23498 * IDataGridColumnStyleEditingNotificationService.cs: Added
23499 * IFeatureSupport.cs: Added
23500 * IFileReaderService.cs: Added
23501 * IDataObject.cs: Added ComVisible attribute
23502 * AmbientProperties.cs: Added
23503 * BaseCollection.cs: Added missing attributes
23504 * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
23505 * BaseCollection.cs: Added missing attributes
23506 * Binding.cs: Added TypeConverter attribute
23507 * BindingContext.cs: Added DefaultEvent attribute
23508 * BindingsCollection.cs: Added DefaultEvent attribute
23509 * Button.cs: Added DefaultValue attribute
23510 * DragEventArgs.cs: Added ComVisible attribute
23511 * GiveFeedbackEventArgs.cs: Added ComVisible attribute
23512 * KeyEventArgs.cs: Added ComVisible attribute
23513 * KeyPressEventArgs.cs: Added ComVisible attribute
23514 * MouseEventArgs.cs: Added ComVisible attribute
23515 * NavigateEventArgs.cs: Added
23516 * NavigateEventHandler.cs: Added
23517 * FeatureSupport.cs: Added
23518 * OSFeature.cs: Added
23519 * Theme.cs: Added abstract Version property to support OSFeature
23520 * ThemeWin32Classic.cs: Added Version property to
23521 support OSFeature.Themes
23522 * ProgressBar.cs: Removed OnPaintBackground override, not required since
23523 the proper styles to avoid background drawing are set, also doesn't
23525 * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
23526 * QueryContinueDragEventArgs.cs: Added ComVisible attribute
23527 * ScrollEventArgs.cs: Added ComVisible attribute
23528 * SplitterEventArgs.cs: Added ComVisible attribute
23529 * AccessibleSelection.cs: Added Flags attribute
23530 * Appearance.cs: Added ComVisible attribute
23531 * Border3DSide.cs: Added ComVisible attribute
23532 * Border3DStyle.cs: Added ComVisible attribute
23533 * BorderStyle.cs: Added ComVisible attribute
23534 * DragAction.cs: Added ComVisible attribute
23535 * ErrorBlinkStyle.cs: Added
23536 * ScrollEventType.cs: Added ComVisible attribute
23537 * AnchorStyles.cs: Added Editor attribute
23538 * DockStyle.cs: Added Editor attribute
23539 * HorizontalAlignment.cs: Added ComVisible attribute
23540 * HelpEventArgs.cs: Added ComVisible attribute
23541 * PaintEventArgs.cs: Added IDisposable
23543 2005-01-04 Peter Bartok <pbartok@novell.com>
23545 * TextControl.cs: Switched Line, LineTag and Document classes to
23548 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
23550 * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
23551 Simple mode, fixes, IntegralHeight, etc.
23553 2005-01-04 Peter Bartok <pbartok@novell.com>
23555 * TextBoxBase.cs: Using proper font variable now
23557 2005-01-04 Peter Bartok <pbartok@novell.com>
23559 * Form.cs (ShowDialog): Set parent to owner, if provided
23560 * GroupBox.cs: Removed unused vars
23562 - Added GetHashCode() for Document and LineTag classes
23563 - Removed unused variables
23564 - Added CharIndexToLineTag() and LineTagToCharIndex() methods
23565 to allow translation between continuous char position and line/pos
23566 * CheckBox.cs: Removed vars that are provided by base class
23567 * RadioButton.cs: Removed vars that are provided by base class, added
23568 new keyword where required
23569 * LinkLabel.cs: Added new keyword where required
23570 * Control.cs (WndProc): Removed unused variable
23572 - Finished SelectionLength property
23573 - Implemented SelectionStart property
23574 - Implemented Text property
23575 - Removed unused vars
23576 * MessageBox.cs: Added new keyword where required
23577 * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
23579 * MenuAPI.cs: Added new keyword where required
23580 * ButtonBase.cs: Removed vars that are provided by base class, added
23581 new keyword where required
23582 * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
23583 argument to double, to allow compiling with csc 2.0 (Atsushi ran
23585 * Application.cs (Run): Now triggers the ThreadExit event
23586 * CommonDialog.cs: Added new keyword where required; now properly sets
23587 parent (owner) for dialog
23588 * XplatUIX11.cs: Commented out unused vars
23589 * StatusBar.cs: Fixed signature for Text property
23590 * TabPage.cs: Undid Jordi's removal of unused var, now using the var
23592 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
23594 * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
23595 TrackBar.cs, MonthCalendar.cs: remove unused vars
23597 2005-01-03 Jackson Harper <jackson@ximian.com>
23599 * ThemeWin32Classic.cs:
23600 * X11Keyboard.cs: Remove unused vars.
23602 2005-01-03 Peter Bartok <pbartok@novell.com>
23605 - set_Text: Tied into TextControl
23606 - set_TextAlignment: Tied into TextControl
23608 - Added alignment properties and implemented alignment handling
23609 and drawing (still has a bug, not generating proper expose events)
23610 - Added new Line() constructor to allow passing the line alignment
23611 - Fixed selection setting, properly handling end<start now
23612 - Added aligment considerations to RecalculateDocument()
23614 - Now properly enforces control height for single line controls
23615 - Added support for CharacterCasing
23616 - Added IsInputKey override
23617 - Fixed Keys.Enter logic
23618 - Added SetBoundsCore override
23619 - Fixed mouse selection handling
23621 2005-01-03 Jackson Harper <jackson@ximian.com>
23624 - Collapse and uncheck all nodes when CheckBoxes is disabled.
23625 - Checkboxes are always aligned to the bottom of the node,
23626 regardless of item height.
23627 - Use the node bounds to draw the text so we can center it when
23628 the item height is greater then the font height.
23629 - Node::Bounds are only the text part of the node.
23630 * TreeNode.cs: New method to combine collapsing and unchecking all
23633 2005-01-02 Jackson Harper <jackson@ximian.com>
23635 * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
23636 * TreeNode.cs: Add a bounding box for the checkbox, refresh the
23637 tree when a check is changed. TODO: Only refresh the checked node.
23639 2004-12-30 Jackson Harper <jackson@ximian.com>
23641 * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
23642 * TreeNode.cs: When collapsing make sure to never collapse the
23645 2004-12-29 Jackson Harper <jackson@ximian.com>
23647 * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
23649 2004-12-28 Zoltan Varga <vargaz@freemail.hu>
23651 * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
23653 2004-12-28 Peter Bartok <pbartok@novell.com>
23655 * MessageBox.cs (get_CreateParams): Don't use owner var if it's
23658 2004-12-28 Peter Bartok <pbartok@novell.com>
23660 * Control.cs (WndProc): Added WM_HELP handler, now generates
23661 HelpRequested event
23662 * Form.cs: Added HelpButton property and required support code
23663 * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
23665 2004-12-28 Peter Bartok <pbartok@novell.com>
23668 - Made DialogForm.owner variable internal
23669 - Added check to ensure owner form is set before setting
23670 owner properties in CreateParams
23672 2004-12-28 Geoff Norton <gnorton@customerdna.com>
23674 * XplatUIOSX.cs: Implement mouse hovering. Fix QDPoint struct to avoid
23675 swizzling. Implement ClientToScreen and ScreenToClient. Implement
23676 GetCursorPos. Fix major visibility issues. Rework the windowing
23677 system to support borderless/titleless windows (implements menus).
23678 Fix GetWindowPos. Implement initial background color support for
23681 2004-12-28 Peter Bartok <pbartok@novell.com>
23683 * Form.cs (get_CreateParams): Make sure we have an owner before using
23684 the owner variable. Implement proper default if no owner exists
23686 2004-12-28 Peter Bartok <pbartok@novell.com>
23688 * In preparation for making Managed.Windows.Forms the default build target
23689 for System.Windows.Forms, the following stubbed files were added.
23690 Dialogs are currently being implemented by contributors and are only
23691 short-term place holders.
23692 * ColorDialog.cs: Initial check-in (minmal stub)
23693 * DataGrid.cs: Initial check-in (minimal stub)
23694 * DataGridLineStyle.cs: Initial check-in (minimal stub)
23695 * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
23696 * DataGridTableStyle.cs: Initial check-in (minimal stub)
23697 * FontDialog.cs: Initial check-in (minimal stub)
23698 * FileDialog.cs: Initial check-in (minimal stub)
23699 * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
23700 * GridTableStylesCollection.cs: Initial check-in (minimal stub)
23701 * OpenFileDialog: Initial check-in (minimal stub)
23702 * IComponentEditorPageSite.cs: Initial check-in
23703 * Splitter.cs: Initial check-in (for Jackson)
23704 * SplitterEventArgs.cs: Initial check-in (for Jackson)
23705 * SplitterEventHandler.cs: Initial check-in (for Jackson)
23706 * TextBox.cs: Initial check-in; still needs some wiring to
23707 TextControl backend
23708 * Form.cs: Implemented ControlBox property
23709 * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
23710 * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
23711 * TextControl.cs: Added selection functionality; added todo header
23713 - Implemented Lines property
23714 - Implemented TextHeight property
23715 - Implemented SelectedText property
23716 - Implemented SelectionLength property
23717 - Implemented SelectAll method
23718 - Implemented ToString method
23719 - Removed and cleaned up some debug code
23720 - Implemented (still buggy) mouse text selection
23722 2004-12-27 Jordi Mas i Hernandez <jordi@ximian.com>
23724 * ComboBox.cs: Complete DropDownList implementation, fixes.
23726 2004-12-26 Jordi Mas i Hernandez <jordi@ximian.com>
23728 * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
23729 * ComboBoxStyle.cs: ComboBoxStyle enum
23730 * ComboBox.cs: Initial work on ComboBox control
23732 2004-12-21 Peter Bartok <pbartok@novell.com>
23734 * Control.cs (ctor, CreateParams): Moved setting of is_visible
23735 forward so that anything that creates a window gets the default,
23736 also no longer uses Visible property in CreateParams to avoid
23737 walking up the parent chain and possibly get the wrong visible
23738 status. Fixed IsVisible to no longer walk up to the parent.
23740 2004-12-21 Peter Bartok <pbartok@novell.com>
23742 * Form.cs (ShowDialog): Unset modality for the proper window
23744 2004-12-20 Peter Bartok <pbartok@novell.com>
23746 * CommonDialog.cs: Initial check-in
23748 2004-12-20 Peter Bartok <pbartok@novell.com>
23750 * Control.cs (Visible): Now uses the parent window instead of the
23751 client area window for the property
23754 - ShowDialog(): Now uses the proper window for modality
23755 - The default visibility state for the form parent is now false. This
23756 will prevent the user from seeing all the changes to the form and
23757 its controls before the application hits Application.Run()
23758 - Removed some stale commented out code
23761 - Added FindWindow() method to have a method to check for existence
23763 - Added ability to override default exception handling (for example
23764 when debugging with VS.Net; to do this the ExternalExceptionHandler
23766 - Removed some useless debug output
23769 - Removed r37929 (SetModal patch from Ashwin Bharambe), was
23770 not working as expected
23771 - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
23772 property to allow switching back to the modal window if focus is
23773 given to another one of our windows (Application Modal)
23774 - Now only sets override_redirect if we create a window
23776 - Moved EventMask selection before mapping of newly created window
23777 so we can catch the map event as well
23778 - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
23779 - Added various Atom related DllImports
23780 - Implemented Exit() method
23781 - .ctor() : No longer shows window if WS_VISIBLE is not defined
23782 in the CreateParams
23784 * MessageBox.cs: Now properly deals with the FormParent window by
23785 providing an override the FormParent CreateParams property to
23786 set as POPUP instead of OVERLAPPED window.
23788 2004-12-19 Geoff Norton <gnorton@customerdna.com>
23790 * XplatUIOSX.cs: Implement DestroyWindow. Implement ScrollWindow
23791 Minor code cleanup.
23793 2004-12-19 Geoff Norton <gnorton@customerdna.com>
23795 * XplatUIOSX.cs (SetModal): Implement this method on OSX.
23797 2004-12-18 Peter Bartok <pbartok@novell.com>
23799 * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
23800 implementing SetModal() method
23802 2004-12-18 Peter Bartok <pbartok@novell.com>
23804 * X11Structs.cs (XGCValues): Fixed type of function element
23805 * XplatUI.cs: Added ScrollWindow() method
23806 * XplatUIDriver.cs: Added ScrollWindow() abstract
23807 * XplatUIWin32.cs: Implemented ScrollWindow() method
23808 * XplatUIX11.cs: Implemented ScrollWindow() method
23809 * XplatUIOSX.cs: Stubbed out ScrollWindow() method
23811 2004-12-17 Geoff Norton <gnorton@customerdna.com>
23813 * XplatUIOSX.cs: Fix cursor to use an Invert instead of drawing it
23814 Some more keyboard support (INCOMPLETE)
23816 2004-12-17 Peter Bartok <pbartok@novell.com>
23819 - Added color attribute to line tags.
23820 - Added color argument to all functions dealing with tags
23821 - Added color argument support to various functions
23822 - Fixed miss-calculation of baseline/shift in certain circumstances
23824 * TextBoxBase.cs: Added new color option to test code
23826 2004-12-17 Jackson Harper <jackson@ximian.com>
23829 * MonthCalendar.cs: Signature fixes
23831 2004-12-17 Geoff Norton <gnorton@customerdna.com>
23833 * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
23834 keyboard event moved it. Create a new graphics context for each paint resolves this
23836 2004-12-17 Geoff Norton <gnorton@customerdna.com>
23838 * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
23839 Make caret exist and go blink blink. Initial keyboard support.
23840 Fix exception handler, Add Invalidate support. Change way RefreshWindow
23843 2004-12-17 Jackson Harper <jackson@ximian.com>
23845 * XplatUIStructs.cs: Updated set of virtual keycodes.
23846 * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
23848 2004-12-17 Jackson Harper <jackson@ximian.com>
23850 * XplatUIX11.cs: Prune old keyboard code.
23852 2004-12-17 Jackson Harper <jackson@ximian.com>
23854 * XplatUIX11.cs: When generating mouse wparams get the modifier
23855 keys from the ModifierKeys property.
23857 2004-12-17 Jackson Harper <jackson@ximian.com>
23859 * X11Keyboard.cs: Send up/down input when generating
23860 messages. Remove some unused vars.
23862 2004-12-17 Jackson Harper <jackson@ximian.com>
23865 * TreeView.cs: get rid of warnings.
23867 2004-12-17 Jackson Harper <jackson@ximian.com>
23869 * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
23871 2004-12-17 Jordi Mas i Hernandez <jordi@ximian.com>
23873 * ListBox.cs: bug fixes, changes for CheckedListBox.cs
23874 CheckedListBox.cs: Implementation
23876 2004-12-17 Peter Bartok <pbartok@novell.com>
23878 * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
23880 2004-12-16 Peter Bartok <pbartok@novell.com>
23883 - InsertCharAtCaret(): Fixed start pos fixup
23884 - CaretLine_get: No longer derives the line from the tag, the tag
23885 could be stale if lines in the document have been added or deleted
23886 - RebalanceAfterDelete(): Fixed bug in balancing code
23887 - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
23888 - Line.Streamline(): Now can also elminate leading empty tags
23889 - DumpTree(): Added a few more tests and prevented exception on
23891 - Added Debug section for Combining lines
23892 - Delete(): Now copies all remaining properties of a line
23895 - Left mousebutton now sets the caret (and middle button still acts
23896 as formatting tester, which must go away soon)
23897 - Added Debug section for Deleting/Combining lines
23898 - Fixed calculations for UpdateView after Combining lines
23900 2004-12-16 Peter Bartok <pbartok@novell.com>
23902 * TextControl.cs: Now properly aligns text on a baseline, using the
23903 new XplatUI.GetFontMetrics() method. Simplified several calculations
23904 * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
23907 2004-12-16 Peter Bartok <pbartok@novell.com>
23909 * XplatUI.cs: Added GetFontMetrics() method
23910 * XplatUIDriver.cs: Added GetFontMetrics() abstract
23911 * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
23912 into libgdiplus, our private GetFontMetrics function
23913 * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
23914 * XplatUIWin32.cs: Implemented GetFontMetrics() method
23916 2004-12-16 Jackson Harper <jackson@ximain.com>
23918 * XplatUIStruct.cs: Add enum for dead keys
23919 * X11Keyboard.cs: Map and unmap dead keys.
23921 2004-12-16 Jackson Harper <jackson@ximian.com>
23923 * X11Keyboard.cs: Detect and use the num lock mask.
23925 2004-12-16 Peter Bartok <pbartok@novell.com>
23927 * Control.cs (CreateGraphics): Added check to make sure the
23928 handle of the window exists before calling Graphics.FromHwnd()
23930 2004-12-16 Peter Bartok <pbartok@novell.com>
23932 * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
23933 contains a lot of code that's not supposed to be there for the
23934 real thing, but required for developing/testing the textbox
23937 2004-12-16 Peter Bartok <pbartok@novell.com>
23940 - Fixed Streamline method
23941 - Added FindTag method to Line
23942 - Added DumpTree method for debugging
23943 - Added DecrementLines() method for deleting lines
23944 - Fixed UpdateView to update the cursor to end-of-line on single-line
23946 - Added PositionCaret() method
23947 - Fixed MoveCaret(LineDown) to move into the last line, too
23948 - Added InsertChar overload
23949 - Fixed InsertChar tag offset calculations
23950 - Added DeleteChar() method
23951 - Added Combine() method for folding lines
23952 - Fixed Delete() method, no longer allocates wasted Line object and
23953 now copies all properties when swapping nodes
23954 - Delete() method now updates document line counter
23956 2004-12-15 Jackson Harper <jackson@ximian.com>
23958 * XplatUIX11.cs: Get the modifier keys from the keyboard driver
23959 * X11Keyboard.cs: Expose the currently selected modifier keys
23960 through a property.
23962 2004-12-15 Peter Bartok <pbartok@novell.com>
23964 * TextControl.cs: Initial check-in. Still incomplete
23966 2004-12-15 Jackson Harper <jackson@ximian.com>
23969 * TreeView.cs: Fix build on csc (second time today ;-))
23971 2004-12-15 Jackson Harper <jackson@ximian.com>
23973 * TreeView.cs: Store the treenodes plus/minus box bounds when it
23974 is calculated and use this for click testing.
23975 * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
23977 2004-12-15 Jackson Harper <jackson@ximian.com>
23979 * TreeView.cs: Pass the nodes image index to the image list when
23980 drawing that image.
23982 2004-12-15 Jackson Harper <jackson@ximian.com>
23984 * X11Keyboard.cs: Set messages hwnd.
23985 * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
23986 post_message calls.
23988 2004-12-15 Jackson Harper <jackson@ximian.com>
23990 * X11Keyboard.cs: Fix to compile with csc.
23992 2004-12-15 Jackson Harper <jackson@ximian.com>
23994 * X11Structs.cs: Add key mask values
23995 * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
23996 * X11Keyboard.cs: New file - Extrapolates and interpolates key
23997 down/up foo into WM_CHAR foo
23998 * KeyboardLayouts.cs: Common keyboard layouts
23999 * XplatUIX11.cs: Add the keyboard driver. Add functionality to
24000 post messages into the main queue.
24002 2004-12-13 Jordi Mas i Hernandez <jordi@ximian.com>
24004 * Button.cs: implement ProcessMnemonic
24005 * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
24007 * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
24008 * ButtonBase.cs: Show HotkeyPrefix (not the &)
24010 2004-12-12 John BouAntoun <jba-mon@optusnet.com.au>
24012 * MonthCalendar.cs: Implemented click-hold for next/previous month
24015 2004-12-11 Peter Bartok <pbartok@novell.com>
24018 - Added XKeyboardState (moved from XplatUIX11.cs)
24019 - Added XCreateGC related enums and structures
24020 - Added GXFunction for XSetFunction
24022 * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
24024 * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
24025 CaretVisible() calls
24027 * ToolTip.cs: Added code to prevent stealing focus from app windows
24029 * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
24030 DestroyCaret, SetCaretPos and CaretVisible)
24033 - Added implementation for caret functions
24034 - Moved hover variables into a struct, to make it a bit easier
24035 on the eyes and to debug
24036 - Removed XKeyboardState (moved to XplatUIX11.cs)
24037 - Moved Keyboard properties into the properties region
24039 * Control.cs (get_Region): Control.CreateGraphics is the appropriate
24040 call to get a graphics context for our control
24042 * XplatUIOSX.cs: Added empty overrides for the new caret functions
24044 * TreeView.cs: Fixed bug. No matter what color was set it would always
24045 return SystemColors.Window
24047 * XplatUIWin32.cs: Implemented caret overrides
24049 2004-12-10 Jordi Mas i Hernandez <jordi@ximian.com>
24051 * ListBox.cs: fire events, implement missing methods and properties,
24054 2004-12-10 John BouAntoun <jba-mono@optusnet.com.au>
24056 * MonthCalendar.cs: invalidation bug fixing
24057 * ThemeWin32Classic.cs: paint fixing
24059 2004-12-09 Geoff Norton <gnorton@customerdna.com>
24061 * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
24062 prepare the CGContextRef there now.
24064 2004-12-09 John BouAntoun <jba-mono@optusnet.com.au>
24066 * MonthCalendar.cs:
24067 - optimisationL only invalidate areas that have changed
24068 * ThemeWin32Classic.cs:
24069 - only paint parts that intersect with clip_area
24071 2004-12-09 Peter Bartok <pbartok@novell.com>
24073 * Application.cs: Undid changes from r37004 which cause problems
24076 2004-12-09 Ravindra <rkumar@novell.com>
24078 * ToolBar.cs: Added support for displaying ContextMenu
24079 attached to a button on ToolBar.
24080 * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
24083 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
24085 * Label.cs: autosize works in text change and removes unnecessary
24088 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
24090 * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
24093 2004-12-08 Geoff Norton <gnorton@customerdna.com>
24095 * XplatUIOSX.cs: Added mouse move/click/grab support
24096 Remove some debugging WriteLines not needed anymore.
24097 Add window resizing/positioning.
24098 Fix visibility on reparenting.
24100 2004-12-08 Peter Bartok <pbartok@novell.com>
24102 * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
24104 2004-12-07 Geoff Norton <gnorton@customerdna.com>
24106 * XplatUIOSX.cs: Initial checkin
24107 * XplatUI.cs: Use the Quartz driver if the environment is set to use it
24109 2004-12-03 Ravindra <rkumar@novell.com>
24111 * ListView.cs: Added some keybindings and fixed scrolling.
24112 ScrollBars listen to ValueChanged event instead of Scroll
24113 Event. This would let us take care of all changes being
24114 done in the scrollbars' values programmatically or manually.
24115 * ListView.cs (CanMultiselect): Added a check for shift key.
24116 * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
24117 * ListViewItem.cs (Clone): Fixed. We need to make a copy
24118 of ListViewSubItemCollection as well.
24120 2004-12-06 Peter Bartok <pbartok@novell.com>
24122 * Control.cs (Parent): Added check and exception to prevent
24125 2004-12-03 Jordi Mas i Hernandez <jordi@ximian.com>
24127 * ListBox.cs: implemented clipping, selection single and multiple,
24130 2004-12-03 Ravindra <rkumar@novell.com>
24132 * ListView.cs (ListView_KeyDown):
24133 * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
24134 when CTRL key is pressed.
24135 * ListViewItem.cs (Selected): Fixed setting the property.
24137 2004-12-03 Marek Safar <marek.safar@seznam.cz>
24139 * Application.cs (OnThreadException): Use ThreadExceptionDialog.
24141 * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
24142 MinimizeBox, ShowInTaskbar, TopMost properties.
24144 * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
24145 will be implemented).
24147 2004-12-03 Marek Safar <marek.safar@seznam.cz>
24149 * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
24151 * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
24154 * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
24156 * TreeView.cs: BackColor is Colors.Window.
24158 2004-12-01 Jackson Harper <jackson@ximian.com>
24160 * TreeView.cs: When resizing the tree if the user is making it
24161 smaller we don't get expose events, so we need to handle adding
24162 the horizontal scrollbar in the size changed handler as well as
24163 the expose handler.
24165 2004-12-02 Jordi Mas i Hernandez <jordi@ximian.com>
24167 * DrawItemState.cs: fixes wrong enum values
24169 2004-12-01 Jackson Harper <jackson@ximian.com>
24171 * TreeView.cs: Resize the hbar as well as the vbar on resize.
24173 2004-12-01 Jackson Harper <jackson@ximian.com>
24175 * NodeLabelEditEventArgs.cs:
24176 * NodeLabelEditEventHandler.cs:
24177 * OpenTreeNodeEnumerator.cs:
24179 * TreeNodeCollection.cs:
24181 * TreeViewAction.cs:
24182 * TreeViewCancelEventArgs.cs:
24183 * TreeViewCancelEventHandler.cs:
24184 * TreeViewEventArgs.cs:
24185 * TreeViewEventHandler.cs: Initial implementation.
24187 2004-12-01 Ravindra <rkumar@novell.com>
24189 * ListView.cs (CalculateListView): Fixed scrolling related
24190 calculations. Also, removed some debug statements from other
24192 * ListViewItem.cs: Changed access to 'selected' instance variable
24193 from private to internal.
24194 * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
24196 2004-12-01 Jordi Mas i Hernandez <jordi@ximian.com>
24198 * ThemeWin32Classic.cs: remove cache of brush and pens for
24199 specific controls and use the global system, fixes scrollbutton
24200 bugs (for small sizes, disabled, etc)
24202 * ScrollBar.cs: does not show the thumb for very small controls
24203 (as MS) and allow smaller buttons that the regular size
24205 2004-12-01 Miguel de Icaza <miguel@ximian.com>
24207 * UpDownBase.cs: Add abstract methods for the interface.
24208 Add new virtual methods (need to be hooked up to TextEntry when it
24210 Add override methods for most features.
24211 Computes the size, forces the height of the text entry.
24213 * NumericUpDown.cs: Put here the current testing code.
24215 * Set eol-style property on all files that do not have mixed line
24216 endings, to minimize the future problems. There are still a few
24217 files with mixed endings, and someone should choose whether they
24218 want to move it or not.
24220 2004-11-30 Jordi Mas i Hernandez <jordi@ximian.com>
24222 * MonthCalendar.cs, ListView.cs: use Theme colours instead of
24225 2004-11-30 Ravindra <rkumar@novell.com>
24227 * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
24228 drawing and replaced use of SystemColors by theme colors.
24229 * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
24230 * ListView.cs (ListViewItemCollection.Add): Throw exception when
24231 same ListViewItem is being added more than once.
24233 2004-11-30 John BouAntoun <jba-mono@optusnet.com.au>
24235 * MonthCalendar.cs:
24236 - ControlStyles love to make the control not flicker
24238 2004-11-30 Peter Bartok <pbartok@novell.com>
24240 * CharacterCasing.cs: Added
24242 2004-11-29 Peter Bartok <pbartok@novell.com>
24244 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
24245 TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
24246 I am removing these files as they conflict with already completed
24247 work. While it is fantastic to get contributions to MWF, I
24248 respectfully ask that everyone please coordinate their contributions
24249 through mono-winforms-list or #mono-winforms at this time. We're
24250 explicitly avoiding stubbing and don't want controls that don't have
24251 their basic functionality implemented in svn. Please also see
24252 http://www.mono-project.com/contributing/winforms.html
24255 2004-11-29 Marek Safar <marek.safar@seznam.cz>
24257 * Application.cs (ModalRun): Don't hang after exit.
24259 * Theme.cs: New TreeViewDefaultSize property.
24261 * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
24262 with less hardcoded SystemColors constant.
24263 Implemented TreeViewDefaultSize.
24265 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
24266 TreeViewAction.cs, TreeViewEventArgs.cs: New files.
24269 2004-11-29 John BouAntoun <jba-mono@optusnet.com.au>
24271 * MonthCalendar.cs:
24272 - Fix NextMonthDate and PrevMonthDate click moving calendar
24274 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
24276 * MonthCalendar.cs:
24277 - Fix usage of ScrollChange Property when scrolling months
24279 2004-11-26 Jordi Mas i Hernandez <jordi@ximian.com>
24281 * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
24282 - Fixes menu destroying
24283 - Support adding and removing items on already created menus
24285 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
24287 * MonthCalendar.cs:
24288 - Re-worked all bolded dates handling to match win32
24289 * ThemeWin32Classic.cs:
24290 - Fixed rendering with bolded dates
24292 2004-11-25 Jordi Mas i Hernandez <jordi@ximian.com>
24294 * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
24295 - Horizontal scroolbar
24300 2004-11-25 John BouAntoun <jba-mono@optusnet.com.au>
24302 * MonthCalendar.cs:
24303 - Fix Usage of MaxSelectionCount from SelectionRange
24304 - Fixed Shift + Cursor Selection
24305 - Fixed Shift + (Pg up/Pg dn, Home/End) selection
24306 - Fixed normal cursor selection to be compat with win32
24307 - Fixed Shift + Mouse Click selection
24309 2004-11-24 Peter Bartok <pbartok@novell.com>
24311 * XplatUI.cs (DispatchMessage): Switched to return IntPtr
24312 * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
24314 - CreatedKeyBoardMsg now updates keystate with Alt key
24315 - Added workaround for timer crash to CheckTimers, Jackson will
24316 develop a proper fix and check in later
24317 - Implemented DispatchMessage
24318 - Removed calling the native window proc from GetMessage (call
24319 now moved to DispatchMessage)
24321 * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
24322 the keydata (Fixes bug #69831)
24325 - (DispatchMessage): Switched to return IntPtr
24326 - Added DllImport for SetFocus
24328 2004-11-24 Ravindra <rkumar@novell.com>
24330 * ThemeWin32Classic.cs: Fixed ListView border and checkbox
24331 background drawing.
24332 * ListViewItem.cs: Fixed various properties, calculations
24333 and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
24334 * ListView.cs: Fixed calculations, BackColor, ForeColor properties
24335 and some internal properties. Fixed MouseDown handler and Paint
24338 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
24340 * MonthCalendar.cs: Add TitleMonth ContextMenu handling
24342 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
24344 * ContainerControl.cs: correct accidental check in of local changes
24346 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
24348 * ThemeWin32Classic.cs:
24349 - Fixed Drawing Last month in grid (sometimes not showing)
24350 * MonthCalendar.cs:
24351 - Fixed title width calculation bug (makeing title small)
24353 2004-11-23 Peter Bartok <pbartok@novell.com>
24356 - Added generation of WM_MOUSEHOVER event
24357 - Added missing assignment of async_method atom
24358 - Fixed WM_ERASEBKGND; now only redraws the exposed area
24360 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
24362 * ThemeWin32Classic.cs:
24363 - Fixed Drawing of today circle when showtodaycircle not set
24364 - fixed drawing of first and last month in the grid (gay dates)
24365 * MonthCalendar.cs:
24366 - Fixed Drawing of today circle
24367 - Fixed drawing of grady dates
24368 - Fixed HitTest for today link when ShowToday set to false
24369 - Fixed DefaultSize to obey ShowToday
24371 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
24373 * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
24374 * System.Windows.Forms/Theme.cs
24375 * MonthCalendar.cs: added for MonthCalendar
24376 * SelectionRange.cs: added for MonthCalendar
24377 * Day.cs: added for MonthCalendar: added for MonthCalendar
24378 * DateRangeEventArgs.cs: added for MonthCalendar
24379 * DateRangeEventHandler.cs: added for MonthCalendar
24381 2004-11-22 Ravindra <rkumar@novell.com>
24383 * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
24386 2004-11-22 Miguel de Icaza <miguel@ximian.com>
24388 * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
24391 * NumericUpDown.cs: Added new implementation.
24392 * UpDownBase.cs: Added new implementation.
24394 * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
24397 * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
24400 * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
24403 2004-11-21 Miguel de Icaza <miguel@ximian.com>
24405 * Timer.cs (Dispose): Should call the base dispose when
24408 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
24410 * ScrollBar.cs: updates thumb position when max, min or increment
24413 2004-11-21 Ravindra <rkumar@novell.com>
24415 * ListView.cs: Implemented item selection, activation and
24416 column header style. Fixed properties to do a redraw, if
24417 required. Added support for MouseHover, DoubleClick, KeyDown
24418 and KeyUp event handling and some minor fixes.
24419 * ListViewItem.cs: Fixed constructor.
24420 * ThemeWin32Classic.cs: Improved drawing for ListView.
24422 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
24424 * ThemeWin32Classic.cs: initial listbox drawing code
24425 * DrawMode.cs: new enumerator
24426 * ListControl.cs: stubbed class
24427 * ListBox.cs: initial implementation
24428 * Theme.cs: new methods definitions
24429 * SelectionMode.cs: new enumerator
24431 2004-11-17 Peter Bartok <pbartok@novell.com>
24433 * XplatUIWin32.cs: Added double-click events to the class style
24434 * Control.cs (WndProc):
24435 - Added handling of click-count to MouseDown/ MouseUp events.
24436 - Added handling of middle and right mouse buttons
24437 - Removed old debug code
24439 2004-11-17 Jackson Harper <jackson@ximian.com>
24441 * XplatUIX11.cs: Use the new Mono.Unix namespace.
24443 2004-11-17 Ravindra <rkumar@novell.com>
24445 * ListView.cs: Added event handling for MouseMove/Up/Down.
24446 * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
24447 * ThemeWin32Classic.cs: We need to clear the graphics context and
24448 draw column header in a proper state.
24451 2004-11-17 Jordi Mas i Hernandez <jordi@ximian.com>
24453 * Menu.cs: fixes signature
24455 2004-11-16 Peter Bartok <pbartok@novell.com>
24457 * XplatUIX11.cs (GetMessage): Implemented generation of
24458 double click mouse messages
24460 2004-11-12 Jordi Mas i Hernandez <jordi@ximian.com>
24462 * Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
24465 2004-11-11 Peter Bartok <pbartok@novell.com>
24467 * HandleData.cs: Added Visible property
24468 * XplatUIX11.cs (IsVisible): Now uses Visible property from
24470 * XplatUIX11.cs: Removed old debug leftovers
24471 * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
24472 * Control.cs (WndProc): Removed old debug leftovers,
24473 streamlined handling of WM_WINDOWPOSCHANGED, removed un-
24474 needed WM_SIZE handling
24476 2004-11-11 Jackson Harper <jackson@ximian.com>
24478 * OwnerDrawPropertyBag.cs:
24479 * TreeViewImageIndexConverter.cs: Initial implementation
24481 2004-11-10 Jackson Harper <jackson@ximian.com>
24483 * ThemeWin32Classic.cs:
24484 * TabControl.cs: instead of moving tabs by the slider pos just
24485 start drawing at the tab that is offset by the slider. This way
24486 scrolling always moves by exactly one tab.
24488 2004-11-10 Jackson Harper <jackson@ximian.com>
24490 * TabControl.cs: You can only scroll left when the slider has
24491 already ben moved right.
24493 2004-11-10 Jackson Harper <jackson@ximian.com>
24495 * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
24498 2004-11-10 Jackson Harper <jackson@ximian.com>
24500 * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
24503 2004-11-09 Jackson Harper <jackson@ximian.com>
24505 * TabControl.cs (CalcXPos): New helper method so we can determine
24506 the proper place to start drawing vertical tabs.
24507 * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
24509 2004-11-09 Jackson Harper <jackson@ximian.com>
24511 * TabControl.cs: Calculate sizing and rects for left aligned tabs.
24512 * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
24513 and Bottom, left and right are illegal values for this and
24514 multiline is enabled when the alignment is set to left or right.
24515 (DrawTab): Each alignment block should draw the text itself now
24516 because Left requires special love. Also add rendering for Left
24519 2004-11-09 Jordi Mas i Hernandez <jordi@ximian.com>
24521 * Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
24522 does not destroy the windows, removes debugging messages
24524 2004-11-09 jba <jba-mono@optusnet.com.au>
24526 * ThemeWin32Classic.cs
24527 (DrawButtonBase): Fix verticle text rect clipping in windows
24528 (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
24529 rendering and incorrect text rect clipping
24530 (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
24531 rendering and incorrect text rect clipping
24533 2004-11-08 Jackson Harper <jackson@ximian.com>
24535 * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
24536 bottom when they are bottom aligned so the bottoms of the tabs get
24538 * TabControl.cs (DropRow): Move rows up instead of down when the
24539 tab control is bottom aligned.
24541 2004-11-08 13:59 pbartok
24544 - Added handling for various window styles
24545 - Added handling for popup windows
24546 - Added SetTopmost handling
24548 2004-11-08 13:55 pbartok
24551 - Added argument to SetTopmost method
24552 - Fixed broken ClientToScreen function
24554 2004-11-08 13:53 pbartok
24556 * XplatUIStructs.cs:
24557 - Added missing WS_EX styles
24559 2004-11-08 13:53 pbartok
24561 * XplatUI.cs, XplatUIDriver.cs:
24562 - Added argument to SetTopmost
24564 2004-11-08 13:52 pbartok
24567 - Added XSetWindowAttributes structure
24568 - Improved XWindowAttributes structure
24569 - Added SetWindowValuemask enum
24570 - Added window creation arguments enum
24571 - Added gravity enum
24572 - Added Motif hints structure
24573 - Added various Motif flags and enums
24574 - Added PropertyMode enum for property functions
24576 2004-11-08 13:50 pbartok
24579 - Fixed arguments for updated SetTopmost method
24581 2004-11-08 13:49 pbartok
24584 - Fixed arguments for updated SetTopmost function
24585 - Fixed usage of PointToClient
24587 2004-11-08 13:44 pbartok
24590 - Added Clipping of children and siblings
24592 2004-11-08 13:41 pbartok
24595 - Removed SetMenuBarWindow call. We do this in Form.cs
24597 2004-11-08 13:40 jackson
24599 * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
24600 scrolling jimmi in the correct location with bottom aligned tabs
24602 2004-11-08 13:36 pbartok
24604 * ContainerControl.cs:
24605 - Implemented BindingContext
24606 - Implemented ParentForm
24608 2004-11-08 12:46 jackson
24610 * TabControl.cs: Put bottom rendered tabs in the right location
24612 2004-11-08 07:15 jordi
24614 * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
24617 2004-11-05 17:30 jackson
24619 * TabControl.cs: When selected tabs are expanded make sure they
24620 don't go beyond the edges of the tab control
24622 2004-11-05 14:57 jackson
24624 * TabControl.cs: Reset show_slider so if the control is resized to
24625 a size where it is no longer needed it's not displayed anymore
24627 2004-11-05 13:16 jackson
24629 * TabControl.cs: Make tab pages non visible when added to the
24632 2004-11-05 12:42 jackson
24634 * TabControl.cs: Implement SizeMode.FillToRight
24636 2004-11-05 12:16 jackson
24638 * Control.cs: Do not call CreateHandle if the handle is already
24641 2004-11-05 11:46 jackson
24643 * TabControl.cs: Remove superflous call to CalcTabRows
24645 2004-11-05 09:07 jackson
24647 * XplatUIX11.cs: Update for Mono.Posix changes
24649 2004-11-05 07:00 ravindra
24651 * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
24654 2004-11-04 22:47 jba
24656 * ThemeWin32Classic.cs:
24657 - Fix Button rendering for FlatStyle = Flat or Popup
24658 - Fix RadioButton and CheckBox rendering when Appearance = Button
24659 (normal and flatstyle).
24660 - Correct outer rectangle color when drawing focus rectangle
24661 - Adjust button bounds to be 1 px smaller when focused
24662 - Make button not draw sunken 3d border when pushed (windows compat)
24663 - Fix CPDrawBorder3D to not make bottom right hand corner rounded
24664 - Offset the text in RadioButton and Checkbox when being rendered as
24666 - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
24668 - Fixed disabled rendering for colored flatstyle radiobuttons (both)
24669 - Fixed disabled text rendering for normally rendered radiobuttons
24671 2004-11-04 10:26 jackson
24673 * TabControl.cs: Recalculate tab rows when resizing
24675 2004-11-04 07:47 jordi
24677 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
24678 collection completion, drawing issues, missing features
24680 2004-11-04 05:03 ravindra
24683 - We need to recalculate the Thumb area when
24684 LargeChange/maximum/minimum values are changed.
24685 - We set the 'pos' in UpdatePos() method to minimum, if it's less
24686 than minimum. This is required to handle the case if large_change is
24687 more than max, and use LargeChange property instead of large_change
24689 - We return max+1 when large_change is more than max, like MS does.
24691 2004-11-04 04:29 ravindra
24693 * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
24694 - Changed default value signatures (prefixed all with ListView).
24695 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
24697 - Fixed calculations for ListViewItem and implemented Clone()
24700 2004-11-04 04:26 ravindra
24702 * Theme.cs, ThemeWin32Classic.cs:
24703 - Changed default ListView values signatures (prefixed all with
24705 - Fixed default size values for VScrollBar and HScrollBar.
24706 - Fixed DrawListViewItem method.
24708 2004-11-04 04:05 ravindra
24710 * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
24712 2004-11-04 04:04 ravindra
24714 * ImageList.cs: Implemented the missing overload for Draw method.
24716 2004-11-03 19:29 jackson
24718 * TabControl.cs: Handle dropping rows on selection properly
24720 2004-11-03 11:59 jackson
24722 * TabControl.cs: remove debug code
24724 2004-11-03 11:52 jackson
24726 * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
24727 the scrolly widgerywoo
24729 2004-11-02 13:52 jackson
24731 * TabControl.cs: Resize the tab pages and tabs when the tab control
24734 2004-11-02 13:40 jackson
24736 * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
24737 selected tab to the bottom
24739 2004-11-02 13:39 jackson
24741 * TabPage.cs: Store the tab pages row
24743 2004-11-02 12:33 jordi
24745 * MenuItem.cs: fixes handle creation
24747 2004-11-02 11:42 jackson
24749 * TabControl.cs: signature fix
24751 2004-11-02 08:56 jackson
24753 * TabControl.cs: Calculate whether the tab is on an edge properly.
24754 Remove top secret debugging code
24756 2004-11-01 19:57 jackson
24758 * TabControl.cs: Add click handling, and proper sizing
24760 2004-11-01 19:47 jackson
24762 * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
24765 2004-11-01 19:39 jackson
24767 * TabPage.cs: add internal property to store the bounds of a tab
24770 2004-10-30 04:23 ravindra
24772 * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
24775 2004-10-30 04:21 ravindra
24777 * ListView.cs, ListViewItem.cs: Added support for scrolling and
24778 fixed calculations.
24780 2004-10-30 03:06 pbartok
24783 - Removed extension of DllImported libs
24785 2004-10-29 09:55 jordi
24787 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
24788 navigation, itemcollection completion, menu fixes
24790 2004-10-27 22:58 pbartok
24793 - Now throws a nice error message when no X display could be opened
24795 2004-10-26 13:51 jordi
24797 * ListView.cs: removes warning
24799 2004-10-26 03:55 ravindra
24801 * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
24802 ThemeWin32Classic.cs: Some formatting for my last checkins.
24804 2004-10-26 03:36 ravindra
24806 * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
24807 control and default values.
24809 2004-10-26 03:35 ravindra
24811 * Theme.cs: Added some default values for ListView control.
24813 2004-10-26 03:33 ravindra
24815 * ToolBar.cs: ToolBar should use the user specified button size, if
24816 there is any. Added a size_specified flag for the same.
24818 2004-10-26 03:33 ravindra
24820 * ColumnHeader.cs: Added some internal members and calculations for
24823 2004-10-26 03:32 ravindra
24825 * ListViewItem.cs: Calculations for ListViewItem.
24827 2004-10-26 03:31 ravindra
24829 * ListView.cs: Added some internal members and calculations for
24832 2004-10-22 13:31 jordi
24834 * MenuAPI.cs: speedup menus drawing
24836 2004-10-22 13:16 jackson
24838 * XplatUIX11.cs: Make sure to update exposed regions when adding an
24841 2004-10-22 11:49 jackson
24845 2004-10-22 11:41 jackson
24847 * Control.cs: Check to see if the window should have its background
24848 repainted by X when drawing.
24850 2004-10-22 11:31 jackson
24852 * XplatUIX11.cs: When invalidating areas only use XClearArea if
24853 clear is true, this way we do not get flicker from X repainting the
24856 2004-10-22 11:28 jackson
24858 * XEventQueue.cs: Queue properly
24860 2004-10-21 09:38 jackson
24862 * XEventQueue.cs: Fix access modifier
24864 2004-10-21 09:36 jackson
24866 * XEventQueue.cs: Don't loose messages
24868 2004-10-21 09:22 jackson
24870 * XEventQueue.cs: Don't loose messages
24872 2004-10-20 04:15 jordi
24874 * BootMode.cs: enum need it by SystemInfo
24876 2004-10-19 21:58 pbartok
24879 - Small sanity check
24881 2004-10-19 21:56 pbartok
24884 - Added private FormParentWindow class which acts as the container
24885 for our form and as the non-client area where menus are drawn
24886 - Added/Moved required tie-ins to Jordi's menus
24887 - Fixed/Implemented the FormStartPosition functionality
24889 2004-10-19 21:52 pbartok
24892 - Removed unneeded locals
24893 - Added code to all size and location properties to understand and
24894 deal with the parent container of Form
24896 2004-10-19 21:33 pbartok
24899 - Fixed to deal with new Form subclasses for menus
24901 2004-10-19 17:48 jackson
24903 * XEventQueue.cs: commit correct version of file
24905 2004-10-19 16:50 jackson
24907 * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
24909 2004-10-19 16:15 jordi
24911 * MenuAPI.cs: MenuBarCalcSize returns the height
24913 2004-10-19 08:31 pbartok
24916 - Added missing call to PreProcessMessage before calling OnXXXKey
24919 2004-10-19 00:04 ravindra
24921 * ToolTip.cs: Fixed constructor.
24923 2004-10-18 09:31 jordi
24925 * MenuAPI.cs: menuitems in menubars do not have shortcuts
24927 2004-10-18 09:26 jordi
24929 * MenuItem.cs: fixes MenuItem class signature
24931 2004-10-18 08:56 jordi
24933 * MenuAPI.cs: prevents windows from showing in the taskbar
24935 2004-10-18 00:28 ravindra
24937 * ToolTip.cs: Suppressed a warning message.
24939 2004-10-18 00:27 ravindra
24941 * Control.cs: Default value of visible property must be true.
24943 2004-10-17 23:19 pbartok
24946 - Complete implementation
24948 2004-10-17 23:19 pbartok
24951 - Added EnableWindow method
24952 - Added SetModal stub
24953 - Added generation of WM_ACTIVATE message (still needs testing)
24954 - Added SetTopMost stub
24955 - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
24957 2004-10-17 23:17 pbartok
24960 - Removed VirtualKeys to XplatUIStructs
24961 - Implemented SetTopMost method
24962 - Implemented EnableWindow method
24963 - Bugfix in ScreenToClient()
24964 - Bugfixes in ClientToScreen()
24966 2004-10-17 22:51 pbartok
24968 * XplatUIStructs.cs:
24969 - Added WS_EX styles to WindowStyles enumeration
24971 2004-10-17 22:50 pbartok
24973 * XplatUI.cs, XplatUIDriver.cs:
24974 - Added method for enabling/disabling windows
24975 - Added method for setting window modality
24976 - Added method for setting topmost window
24978 2004-10-17 22:49 pbartok
24980 * ThemeWin32Classic.cs:
24981 - Added ToolTip drawing code
24983 2004-10-17 22:49 pbartok
24986 - Added ToolTip abstracts
24988 2004-10-17 22:47 pbartok
24991 - Fixed Form.ControlCollection to handle owner relations
24992 - Added Owner/OwnedForms handling
24993 - Implemented Z-Ordering for owned forms
24994 - Removed unneeded private overload of ShowDialog
24995 - Fixed ShowDialog, added the X11 incarnation of modal handling (or
24997 - Fixed Close(), had wrong default
24998 - Added firing of OnLoad event
24999 - Added some commented out debug code for Ownership handling
25001 2004-10-17 22:16 pbartok
25004 - Fixed/implemented flat list of controls
25006 2004-10-17 22:14 pbartok
25009 - Added code to simulate modal dialogs on Win32
25011 2004-10-17 16:11 jordi
25013 * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
25016 2004-10-17 13:39 jordi
25018 * MenuAPI.cs: menu drawing fixes
25020 2004-10-15 09:10 ravindra
25022 * StructFormat.cs: General Enum.
25024 2004-10-15 09:09 ravindra
25026 * SizeGripStyle.cs: Enum for Form.
25028 2004-10-15 09:08 ravindra
25030 * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
25031 in Theme for ListView.
25033 2004-10-15 09:06 ravindra
25035 * ColumnHeader.cs: Flushing some formatting changes.
25037 2004-10-15 09:05 ravindra
25039 * ListViewItem.cs: Implemented GetBounds method and fixed coding
25042 2004-10-15 09:03 ravindra
25044 * ListView.cs: Implemented Paint method and fixed coding style.
25046 2004-10-15 07:34 jordi
25048 * MenuAPI.cs: fix for X11
25050 2004-10-15 07:32 ravindra
25052 * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
25053 - Renamed Paint() method to Draw() for clarity. Also, moved
25054 DrawImage() to OnPaint().
25056 2004-10-15 07:25 ravindra
25058 * CheckBox.cs, RadioButton.cs:
25059 - Removed Redraw (), we get it from ButtonBase.
25060 - Implemented Paint (), to do class specific painting.
25062 2004-10-15 07:16 ravindra
25065 - Redraw () is not virtual now.
25066 - Added an internal virtual method Paint (), so that
25067 derived classes can do their painting on their own.
25068 - Modified OnPaint () to call Paint ().
25070 2004-10-15 06:43 jordi
25072 * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
25073 MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
25075 2004-10-15 00:30 ravindra
25078 - MessageBox on windows does not have min/max buttons.
25079 This change in CreateParams fixes this on Windows. We
25080 still need to implement this windowstyle behavior in
25083 2004-10-14 05:14 ravindra
25086 - Changed Redraw () to do a Refresh () always.
25087 - Fixed the MouseMove event handling when mouse is pressed,
25088 ie drag event handling.
25089 - Replaced the usage of ToolBarButton.Pressed property to
25090 ToolBarButton.pressed internal variable.
25092 2004-10-14 05:10 ravindra
25094 * ToolBarButton.cs:
25095 - Added an internal member 'inside' to handle mouse move
25096 with mouse pressed ie mouse drag event.
25097 - Changed 'Pressed' property to return true only when
25098 'inside' and 'pressed' are both true.
25099 - Some coding style love.
25101 2004-10-14 00:17 ravindra
25103 * Form.cs: Fixed class signature. ShowDialog (Control) is not a
25106 2004-10-14 00:15 ravindra
25108 * ButtonBase.cs: Redraw () related improvements.
25110 2004-10-14 00:14 ravindra
25112 * MessageBox.cs: Moved InitFormSize () out of Paint method and
25113 removed unnecessary calls to Button.Show () method.
25115 2004-10-13 17:50 pbartok
25119 - Removed destroying of window until we solve the problem of X
25120 destroying the window before us on shutdown
25122 2004-10-13 16:32 pbartok
25125 - Now Redraws on MouseUp for FlatStyle Flat and Popup
25127 2004-10-13 14:18 pbartok
25130 - Added code to destroy the X window
25132 2004-10-13 14:18 pbartok
25135 - Added code to destroy a window
25137 2004-10-13 14:12 pbartok
25140 - Added the Redraw on Resize that got dropped in the last rev
25142 2004-10-13 09:06 pbartok
25144 * ThemeWin32Classic.cs:
25145 - Path from John BouAntoun:
25146 * Fix check rendering (centre correctly for normal style, offset
25147 correctly for FlatStyle).
25148 * Fix border color usage (use backcolor) for FlatStyle.Popup
25149 * Use checkbox.Capture instead of checkbox.is_pressed when
25150 rendering flatstyle states.
25152 2004-10-12 21:48 pbartok
25154 * ThemeWin32Classic.cs:
25155 - Removed all occurences of SystemColors and replaced them with the
25156 matching theme color
25158 2004-10-12 21:41 pbartok
25160 * ThemeWin32Classic.cs:
25161 - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
25162 him using the function for flatstyle drawing
25163 - Changed functions to use the new version of CPDrawBorder3D
25165 2004-10-12 21:15 pbartok
25168 - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
25169 match MS documentation. They need to return defined colors if the
25170 passed color matches the configured control color. Thanks to John
25171 BouAntoun for pointing this out.
25173 2004-10-12 20:57 pbartok
25176 - Fix from John BouAntoun: Raise ForeColorChanged event when text
25179 2004-10-12 20:46 pbartok
25182 - Fix from John BouAntoun: Now properly sets the Appearance property
25184 2004-10-12 20:45 pbartok
25186 * ThemeWin32Classic.cs:
25187 - Fixes from John BouAntoun: now handles forecolors and backcolors
25188 for flatstyle rendered controls much better; It also fixes normal
25189 checkbox rendering when pushed or disabled.
25191 2004-10-08 02:50 jordi
25193 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
25196 2004-10-07 08:56 jordi
25198 * ThemeWin32Classic.cs: Removes deletion of cached brushes
25200 2004-10-06 03:59 jordi
25202 * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
25203 XplatUIWin32.cs: removes warnings from compilation
25205 2004-10-05 12:23 jackson
25207 * RadioButton.cs: Fix ctor
25209 2004-10-05 11:10 pbartok
25212 - Partial implementation by Benjamin Dasnois
25214 2004-10-05 10:15 jackson
25216 * ThemeWin32Classic.cs: Improve rendering of the radio button patch
25219 2004-10-05 03:07 ravindra
25222 - Removed a private method, Draw ().
25223 - Fixed the ButtonDropDown event handling.
25224 - Fixed MouseMove event handling.
25226 2004-10-05 03:04 ravindra
25228 * ThemeWin32Classic.cs:
25229 - Added DrawListView method and ListViewDefaultSize property.
25230 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
25231 - Changed DOS style CRLF to Unix format (dos2unix).
25233 2004-10-05 03:03 ravindra
25236 - Added DrawListView method and ListViewDefaultSize property.
25238 2004-10-05 02:42 ravindra
25240 * ToolBarButton.cs: Added an internal member dd_pressed to handle
25241 clicks on DropDown arrow.
25243 2004-10-04 22:56 jackson
25245 * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
25246 ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
25247 Control handle the buffers, derived classes should not have to
25248 CreateBuffers themselves.
25250 2004-10-04 21:20 jackson
25252 * StatusBar.cs: The control handles resizing the buffers now.
25254 2004-10-04 21:18 jackson
25256 * Control.cs: When resizing the buffers should be invalidated. This
25257 should be handled in Control not in derived classes.
25259 2004-10-04 14:45 jackson
25263 2004-10-04 02:14 pbartok
25265 * LeftRightAlignment.cs:
25268 2004-10-04 01:09 jordi
25270 * ThemeWin32Classic.cs: fixes right button position causing right
25271 button not showing on horizontal scrollbars
25273 2004-10-02 13:12 pbartok
25276 - Simplified the Invalidate method by using an X call instead of
25277 generating the expose ourselves
25278 - Added an expose when the window background is changed
25279 - Implemented ClientToScreen method
25281 2004-10-02 13:08 pbartok
25284 - Added Win32EnableWindow method (test for implementing modal
25286 - Added ClientToScreen method and imports
25288 2004-10-02 13:07 pbartok
25290 * XplatUI.cs, XplatUIDriver.cs:
25291 - Added ClientToScreen coordinate translation method
25293 2004-10-02 13:06 pbartok
25295 * KeyPressEventArgs.cs:
25296 - Fixed access level for constructor
25298 2004-10-02 13:06 pbartok
25301 - Changed access level for the window_collection hash table
25303 2004-10-02 13:05 pbartok
25306 - Added KeyPreview property
25307 - Added Menu property (still incomplete, pending Jordi's menu work)
25308 - Implemented ProcessCmdKey
25309 - Implemented ProcessDialogKey
25310 - Implemented ProcessKeyPreview
25312 2004-10-02 13:02 pbartok
25315 - Added private method to get the Control object from the window
25317 - Implemented ContextMenu property
25318 - Implemented PointToScreen
25319 - Implemented PreProcessMessage
25320 - Implemented IsInputChar
25321 - Implemented IsInputKey
25322 - Implemented ProcessCmdKey
25323 - Completed ProcessKeyEventArgs
25324 - Fixed message loop to call the proper chain of functions on key
25326 - Implemented ProcessDialogChar
25327 - Implemented ProcessDialogKey
25328 - Implemented ProcessKeyMessage
25329 - Implemented ProcessKeyPreview
25330 - Added RaiseDragEvent stub (MS internal method)
25331 - Added RaiseKeyEvent stub (MS internal method)
25332 - Added RaiseMouseEvent stub (MS Internal method)
25333 - Added RaisePaintEvent stub (MS Internal method)
25334 - Added ResetMouseEventArgs stub (MS Internal method)
25335 - Implemented RtlTranslateAlignment
25336 - Implemented RtlTranslateContent
25337 - Implemented RtlTranslateHorizontal
25338 - Implemented RtlTranslateLeftRight
25339 - Added generation of KeyPress event
25341 2004-10-02 05:57 ravindra
25343 * ListViewItem.cs: Added attributes.
25345 2004-10-02 05:32 ravindra
25347 * ListView.cs: Added attributes.
25349 2004-10-01 11:53 jackson
25351 * Form.cs: Implement the Close method so work on MessageBox can
25354 2004-09-30 14:06 pbartok
25359 2004-09-30 11:34 jackson
25361 * RadioButton.cs: Fix typo. Patch by John BouAntoun.
25363 2004-09-30 07:26 ravindra
25365 * ListViewItemConverter.cs: Converter for ListViewItem.
25367 2004-09-30 07:26 ravindra
25369 * SortOrder.cs: Enum for ListView control.
25371 2004-09-30 07:25 ravindra
25373 * ColumnHeader.cs: Supporting class for ListView control.
25375 2004-09-30 07:24 ravindra
25377 * ListView.cs, ListViewItem.cs: Initial implementation.
25379 2004-09-30 07:20 ravindra
25381 * ItemActivation.cs: Enum for ListView Control.
25383 2004-09-29 20:29 pbartok
25386 - Added lookup of pixel value for background color; tries to get a
25387 color 'close' to the requested color, it avoids having to create a
25388 colormap. Depending on the display this could mean the used color
25389 is slightly off the desired color. Might have to change it to a more
25390 resource intensive colormap approach, but it will work as a
25391 workaround to avoid red screens.
25393 2004-09-29 14:27 jackson
25395 * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
25397 2004-09-28 12:44 pbartok
25399 * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
25400 HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
25401 ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
25402 Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
25403 TrackBar.cs, VScrollBar.cs:
25404 - Streamlined Theme interfaces:
25405 * Each DrawXXX method for a control now is passed the object for
25406 the control to be drawn in order to allow accessing any state the
25407 theme might require
25409 * ControlPaint methods for the theme now have a CP prefix to avoid
25410 name clashes with the Draw methods for controls
25412 * Every control now retrieves it's DefaultSize from the current
25415 2004-09-28 12:17 jackson
25417 * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
25420 2004-09-24 14:57 jackson
25422 * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
25423 Gives us a nice little performance boost.
25425 2004-09-24 12:02 jackson
25427 * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
25428 TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
25429 Control and supporting classes. Initial checkin
25431 2004-09-23 13:08 jackson
25433 * Form.cs: Temp build fixage
25435 2004-09-23 01:39 ravindra
25437 * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
25438 ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
25439 ItemDragEventArgs.cs, ItemDragEventHandler.cs,
25440 LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
25441 EventHandlers needed by ListView Control.
25443 2004-09-22 14:12 pbartok
25445 * ScrollableControl.cs:
25446 - Implemented DockPadding property
25447 - Implemented AutoScroll property
25448 - Implemented AutoScrollMargin property
25449 - Implemented AutoScrollMinSize property
25450 - Implemented AutoScrollPosition property
25451 - Implemented DisplayRectangle property (still incomplete)
25452 - Implemented CreateParams property
25453 - Implemented HScroll property
25454 - Implemented VScroll property
25455 - Implemented OnVisibleChanged property
25457 2004-09-22 14:09 pbartok
25460 - Added Form.ControllCollection class
25461 - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
25462 RemoveOwnedForm (still incomplete, missing on-top and common
25463 minimize/maximize behaviour)
25464 - Added StartPosition property (still incomplete, does not use when
25466 - Added ShowDialog() methods (still incomplete, missing forcing the
25469 2004-09-22 14:05 pbartok
25472 - Added message loop for modal dialogs
25474 2004-09-22 14:02 pbartok
25477 - Fixed wrong types for events
25479 2004-09-22 14:00 pbartok
25481 * Shortcut.cs, FormWindowState.cs:
25482 - Fixed wrong values
25484 2004-09-22 12:01 jackson
25486 * Control.cs: Text is never null
25488 2004-09-20 22:14 pbartok
25491 - Fixed accessibility level for Idle handler
25493 2004-09-20 18:54 jackson
25495 * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
25496 XplatUIX11.cs: New message loop that uses poll so we don't get a
25499 2004-09-17 10:43 pbartok
25502 - Fixed behaviour of arrow buttons. Now properly behaves like
25503 Buttons (and like Microsoft's scrollbar arrow buttons)
25505 2004-09-17 10:14 pbartok
25508 - Added missing release of keyboard/mouse capture
25510 2004-09-17 06:18 jordi
25512 * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
25513 Theme.cs: Very early menu support
25515 2004-09-16 17:45 pbartok
25518 - Fixed sending a window to the front
25519 - Added overload for SetWindowPos to avoid casting
25521 2004-09-16 17:44 pbartok
25524 - Added SendToBack and BringToFront methods
25526 2004-09-16 07:00 ravindra
25528 * Copyright: Added Novell URL.
25530 2004-09-16 07:00 ravindra
25532 * ToolBar.cs: Invalidate should be done before redrawing.
25534 2004-09-15 21:19 ravindra
25536 * ColumnHeaderStyle.cs: Enum for ListView Control.
25538 2004-09-15 21:18 ravindra
25540 * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
25543 2004-09-13 18:26 jackson
25545 * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
25548 2004-09-13 18:13 jackson
25550 * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
25551 a second thread and post messages into the main threads message
25552 queue. This makes timing much more consistent. Both win2K and XP
25553 have a minimum timer value of 15 milliseconds, so we now do this
25556 2004-09-13 15:18 pbartok
25558 * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
25560 - Added Z-Ordering methods
25562 2004-09-13 10:56 pbartok
25565 - Fixed #region names
25566 - Moved properties and methods into their proper #regions
25568 2004-09-13 10:51 pbartok
25571 - Added Accept and CancelButton properties
25572 - Added ProcessDialogKey() method
25574 2004-09-13 08:18 pbartok
25576 * IWindowTarget.cs:
25579 2004-09-10 21:50 pbartok
25582 - Added DoDragDrop() [incomplete]
25583 - Properly implemented 'Visible' handling
25584 - Added SetVisibleCore()
25585 - Implemented FindChildAtPoint()
25586 - Implemented GetContainerControl()
25587 - Implemented Hide()
25589 2004-09-10 19:28 pbartok
25592 - Moved methods into their appropriate #regions
25593 - Reordered methods within regions alphabetically
25595 2004-09-10 18:57 pbartok
25597 * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
25598 - Added method to retrieve text from window
25600 2004-09-10 18:56 pbartok
25603 - Moved some internal functions into the internal region
25604 - Implemented FontHeight
25605 - Implemented RenderRightToLeft
25606 - Implemented ResizeRedraw
25607 - Implemented ShowFocusCues
25608 - Implemented ShowKeyboardCues
25609 - Implemented FromChildHandle
25610 - Implemented FromHandle
25611 - Implemented IsMnemonic
25612 - Implemented ReflectMessage
25613 - All public and protected Static Methods are now complete
25615 2004-09-10 16:54 pbartok
25618 - Implemented remaining missing public instance properties
25619 - Alphabetized some out of order properties
25621 2004-09-10 05:51 ravindra
25623 * PictureBox.cs: Added a check for null image.
25625 2004-09-10 00:59 jordi
25627 * GroupBox.cs: remove cvs tag
25629 2004-09-09 05:25 ravindra
25631 * ToolBar.cs: Make redraw accessible from ToolBarButton.
25633 2004-09-09 05:23 ravindra
25635 * ToolBarButton.cs: Changes in ToolBarButton need to make it's
25638 2004-09-09 02:28 pbartok
25640 * ThemeWin32Classic.cs:
25641 - Improve disabled string look
25643 2004-09-09 01:15 jordi
25645 * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
25648 2004-09-08 23:56 ravindra
25650 * ItemBoundsPortion.cs: It's enum, not a class!
25652 2004-09-08 23:47 ravindra
25654 * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
25657 2004-09-08 21:13 ravindra
25659 * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
25662 2004-09-08 21:03 ravindra
25664 * ThemeWin32Classic.cs: PictureBox would not draw a null image to
25667 2004-09-08 21:01 ravindra
25669 * ScrollableControl.cs: Removed unreachable code.
25671 2004-09-08 06:45 jordi
25673 * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
25675 2004-09-08 01:00 jackson
25677 * XplatUIX11.cs: Only run the timers when updating the message
25678 queue. This effectively gives X messages a higher priority then
25679 timer messages. Timers still need love though
25681 2004-09-07 14:01 jackson
25683 * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
25684 this for us and the handle is no longer valid.
25686 2004-09-07 13:59 jackson
25688 * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
25689 loop that manages to not crash. TODO: Add poll and cleanup timers
25691 2004-09-07 11:12 jordi
25693 * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
25695 2004-09-07 03:40 jordi
25697 * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
25698 fixes, methods, multiple links
25700 2004-09-06 06:55 jordi
25702 * Control.cs: Caches ClientRectangle rectangle value
25704 2004-09-05 02:03 jordi
25706 * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
25709 2004-09-04 11:10 jordi
25711 * Label.cs: Refresh when font changed
25713 2004-09-02 16:24 pbartok
25716 - Added sanity check to creation of double buffer bitmap
25718 2004-09-02 16:24 pbartok
25721 - Fixed selection of text color
25722 - Fixed handling of resize event; now properly recreates double
25724 - Added missing assignment of TextAlignment
25725 - Added proper default for TextAlignment
25727 2004-09-02 14:26 pbartok
25730 - Added missing RadioButton.RadioButtonAccessibleObject class
25732 2004-09-02 14:26 pbartok
25735 - Added missing Control.ControlAccessibleObject class
25736 - Started to implement Select()ion mechanisms, still very incomplete
25738 2004-09-02 14:25 pbartok
25740 * AccessibleObject.cs:
25741 - Added missing methods
25743 2004-09-02 14:23 pbartok
25745 * AccessibleNavigation.cs, AccessibleSelection.cs:
25748 2004-09-02 10:32 jordi
25750 * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
25751 pool for pens, brushes, and hatchbruses
25753 2004-09-01 15:30 jackson
25755 * StatusBar.cs: Fix typo
25757 2004-09-01 14:44 pbartok
25762 2004-09-01 14:39 pbartok
25764 * Button.cs, RadioButton.cs:
25765 - Functional initial check-in
25767 2004-09-01 14:01 pbartok
25770 - Added missing default
25771 - Added missing region mark
25773 2004-09-01 09:10 jordi
25775 * Label.cs: fixes method signatures, new methods, events, fixes
25778 2004-09-01 07:19 jordi
25780 * Control.cs: Init string variables with an empty object
25782 2004-09-01 04:20 jordi
25784 * Control.cs: fires OnFontChanged event
25786 2004-08-31 20:07 pbartok
25789 - Enabled display of strings
25791 2004-08-31 20:05 pbartok
25794 - Added (partial) implementation of DialogResult; rest needs to be
25795 implemented when the modal loop code is done
25797 2004-08-31 19:55 pbartok
25800 - Fixed to match the removal of the needs_redraw concept
25802 2004-08-31 19:55 pbartok
25805 - Removed the rather odd split between 'needs redraw' and redrawing
25806 - Now handles the events that require regeneration (ambient
25807 properties and size)
25809 2004-08-31 19:41 pbartok
25812 - Added firing of BackColorChanged event
25813 - Added TopLevelControl property
25814 - Fixed handling of WM_ERASEBKGRND message
25816 2004-08-31 12:49 pbartok
25822 2004-08-31 12:48 pbartok
25825 - Finished (famous last words)
25827 2004-08-31 04:35 jordi
25829 * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
25830 scrolling bugs, adds new methods
25832 2004-08-30 14:42 pbartok
25835 - Implemented CheckBox drawing code
25837 2004-08-30 14:42 pbartok
25840 - Made Redraw() and CheckRedraw() virtual
25841 - Improved mouse up/down/move logic to properly track buttons
25843 2004-08-30 09:44 pbartok
25846 - Updated to fix broken build. Not complete yet.
25848 2004-08-30 09:28 pbartok
25853 2004-08-30 09:17 pbartok
25858 2004-08-27 16:12 ravindra
25860 * ToolBarButton.cs: Added TypeConverter attribute.
25862 2004-08-27 16:07 ravindra
25864 * ImageIndexConverter.cs: Implemented.
25866 2004-08-27 14:17 pbartok
25869 - Removed unneeded stack vars
25870 - First attempt to fix sizing issues when layout is suspended
25872 2004-08-25 15:35 jordi
25874 * ScrollBar.cs: more fixes to scrollbar
25876 2004-08-25 14:04 ravindra
25878 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
25879 Added the missing divider code and grip for ToolBar Control.
25881 2004-08-25 13:20 pbartok
25884 - Control now properly passes the ambient background color to child
25887 2004-08-25 13:20 jordi
25889 * ScrollBar.cs: small bug fix regarding bar position
25891 2004-08-25 12:33 pbartok
25894 - Now only calls SetTimer or KillTimer if the enabled state has
25897 2004-08-25 12:33 pbartok
25900 - Fixed timer handling, now seems to work
25901 - Improved error message for window creation
25903 2004-08-25 12:32 pbartok
25906 - Fixed generation of MouseUp message
25908 2004-08-25 12:29 jordi
25910 * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
25911 and fixes for progressbar
25913 2004-08-24 18:43 ravindra
25915 * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
25916 in ToolBar control.
25918 2004-08-24 17:15 pbartok
25922 - Added missing events
25925 2004-08-24 17:14 pbartok
25927 * StatusBar.cs, PictureBox.cs:
25928 - Now uses Control's CreateParams
25930 2004-08-24 16:36 pbartok
25933 - Fixed background color handling
25934 - Fixed sending of enter/leave events on a grab
25936 2004-08-24 16:35 pbartok
25939 - Refined definitions for CrossingEvent
25941 2004-08-24 12:37 jordi
25943 * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
25944 formmating, methods signature, and adds missing events
25946 2004-08-24 12:24 jordi
25948 * Control.cs: fire OnEnabledChanged event
25950 2004-08-24 11:17 pbartok
25953 - Implemented SetTimer() and KillTimer()
25955 2004-08-24 11:16 pbartok
25958 - Now uses Remove instead of Add to kill the timer
25960 2004-08-24 10:16 jackson
25962 * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
25963 picture boxes in the theme now. Draw picture box borders and obey
25966 2004-08-24 05:49 jackson
25968 * Timer.cs: Remove top secret debugging code
25970 2004-08-24 05:34 jackson
25972 * PictureBox.cs: Temp hack to make picture boxes draw their full
25975 2004-08-24 05:29 jackson
25977 * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
25978 XplatUIX11.cs: Move timers to the driver level. On X they are
25979 queued by the driver and checked on idle.
25981 2004-08-24 01:07 jackson
25983 * XplatUIX11.cs: Use a queue for async messages instead of passing
25984 them as ClientMessages since that was totally broken. Also simply
25985 check for events and return an idle message if none are found. This
25986 gives us an idle handler, and prevents deadlocking when no messages
25989 2004-08-23 18:19 ravindra
25991 * XplatUIWin32.cs: Removed the unwanted destructor.
25993 2004-08-23 17:27 pbartok
25996 - Finishing touches. Works now, just needs some optimizations.
25998 2004-08-23 16:53 jordi
26000 * ScrollBar.cs: small fix
26002 2004-08-23 16:45 pbartok
26005 - Removed debug output
26008 2004-08-23 16:43 jordi
26010 * ScrollBar.cs: [no log message]
26012 2004-08-23 16:10 pbartok
26015 - Fixed handling of WM_CLOSE message
26016 - Removed debug output
26018 2004-08-23 16:09 pbartok
26021 - Added handling of Idle event
26022 - Added handling of form closing
26023 - Fixed reporting of MessageLoop property
26024 - Removed some unneeded code, should provide a bit of a speedup
26026 2004-08-23 15:22 pbartok
26029 - Added InitLayout() method
26030 - Added code to properly perform layout when Anchor or Dock property
26032 - Changed 'interpretation' of ResumeLayout. MS seems to have a
26033 LAMESPEC, tried to do it in a way that makes sense
26035 2004-08-23 14:10 jordi
26037 * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
26038 properties and methods
26040 2004-08-23 13:55 pbartok
26043 - Properly fixed Jordi's last fix
26044 - Now uses Cursor's Position property instead of calling XplatUI
26047 2004-08-23 13:44 jordi
26049 * PaintEventHandler.cs: Adding missing attribute
26051 2004-08-23 13:39 pbartok
26054 - Implemented Position property
26056 2004-08-23 13:39 pbartok
26058 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
26059 - Added method to move mouse cursor
26061 2004-08-23 13:39 pbartok
26064 - Fixed setting of background color
26065 - Added method to move mouse cursor
26067 2004-08-23 13:16 jordi
26069 * Control.cs: avoids null exception
26071 2004-08-22 17:46 jackson
26073 * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
26076 2004-08-22 17:40 jackson
26078 * XplatUIX11.cs: Add some missing locks
26080 2004-08-22 15:10 pbartok
26082 * Control.cs, Form.cs:
26083 - Removed OverlappedWindow style from Control, instead it's default
26085 - Made form windows OverlappedWindow by default
26087 2004-08-22 13:34 jackson
26089 * ScrollBar.cs: Update the position through the Value property so
26090 the OnValueChanged event is raised.
26092 2004-08-22 12:04 pbartok
26095 - Added Cursor.cs and UserControl.cs
26097 2004-08-22 12:03 pbartok
26100 - Started implementation, not usable yet
26102 2004-08-22 12:00 pbartok
26105 - Implemented UserControl (complete)
26107 2004-08-21 19:20 ravindra
26109 * ToolBar.cs: Correcting the formatting mess of VS.NET.
26111 2004-08-21 18:49 ravindra
26113 * ToolBar.cs: Probably this completes the missing attributes in
26116 2004-08-21 18:03 ravindra
26118 * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
26119 Fixed toolbar control signatures.
26121 2004-08-21 16:32 pbartok
26126 2004-08-21 16:30 pbartok
26131 2004-08-21 16:19 pbartok
26133 * Control.cs, Label.cs:
26136 2004-08-21 15:57 pbartok
26139 - Added loads of debug output for development
26140 - Fixed typo in method name
26142 2004-08-21 15:52 pbartok
26144 * ToolBarButtonClickEventArgs.cs:
26145 - Added missing base class
26147 2004-08-21 14:53 pbartok
26150 - Updated to match new GrabWindow signature
26152 2004-08-21 14:51 pbartok
26154 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
26155 - Added method to get default display size
26157 2004-08-21 14:23 pbartok
26159 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
26160 - Added method to query current grab state
26161 - Added argument to allow confining a grab to a window
26163 2004-08-21 14:22 pbartok
26166 - Added [Flags] attribute so that modifiers can be used in bitwise
26169 2004-08-21 14:21 pbartok
26171 * TrackBar.cs, ScrollBar.cs:
26172 - Replaced direct XplatUI calls with their Control counterpart
26174 2004-08-21 13:32 pbartok
26177 - Implemented Created property
26179 2004-08-21 13:28 pbartok
26182 - Implemented ContainsFocus
26184 2004-08-21 13:26 pbartok
26187 - Implemented CausesValidation
26189 2004-08-21 13:21 pbartok
26192 - Implemented CanFocus
26193 - Implemented CanSelect
26194 - Implemented Capture
26196 2004-08-21 12:35 pbartok
26199 - Fixed bug with Async message handling
26200 - Implemented getting the ModifierKeys
26202 2004-08-21 12:32 jackson
26204 * AsyncMethodResult.cs: Make sure we have the mutex before we
26205 release it. Fixes BeginInvoke on windows
26207 2004-08-21 11:31 pbartok
26209 * XplatUIWin32.cs, XplatUIX11.cs:
26210 - Drivers now return proper mouse state
26212 2004-08-21 10:54 jackson
26214 * Control.cs: Implement EndInvoke
26216 2004-08-21 10:48 jackson
26218 * Timer.cs: Remove unneeded finalizer
26220 2004-08-20 19:52 ravindra
26222 * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
26223 in mouse event handling in the ToolBar control.
26225 2004-08-20 19:50 ravindra
26227 * ImageList.cs: Changed draw method to use the arguments passed in
26230 2004-08-20 18:58 pbartok
26232 * XplatUIStructs.cs:
26233 - Added private message for async communication
26235 2004-08-20 17:38 ravindra
26237 * Control.cs: Made RightToLeft property virtual and removed a
26240 2004-08-20 14:39 jordi
26242 * ThemeGtk.cs: use style_attach
26244 2004-08-20 14:39 pbartok
26247 - Added jackson's Async code from X11 to Win32
26249 2004-08-20 14:09 pbartok
26252 - Added all new files
26254 2004-08-20 14:09 pbartok
26257 - Added call to set window background color
26259 2004-08-20 14:03 pbartok
26261 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
26262 - Added method for setting the window background
26264 2004-08-20 14:02 pbartok
26267 - Added method for setting the background color
26268 - Added handling for erasing the window background
26270 2004-08-20 13:45 jordi
26272 * TrackBar.cs: fixes timer, new properties and methods
26274 2004-08-20 13:34 jackson
26276 * ScrollBar.cs: Use the SWF timer so callbacks are run in the
26279 2004-08-20 13:22 jackson
26281 * Timer.cs: Timer Tick events are now handed through Controls Async
26282 mechanism so the callbacks are executed in the same thread as X
26284 2004-08-20 13:19 jackson
26286 * XplatUIDriver.cs: Expose functionality to send async messages
26289 2004-08-20 13:18 jackson
26291 * Control.cs: Implement Begininvoke
26293 2004-08-20 13:14 jackson
26295 * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
26296 messages through the driver
26298 2004-08-20 13:12 jackson
26300 * XplatUIX11.cs: Lock before all X operations. Also added Async
26301 method functionality through XSendEvent
26303 2004-08-20 13:11 jackson
26305 * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
26306 This will screw up on 64 bit systems)
26308 2004-08-20 13:10 jackson
26310 * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
26311 Async messages through X/Win32
26313 2004-08-19 19:39 pbartok
26316 - Updated code to match new HandleData.DeviceContext type
26318 2004-08-19 19:38 pbartok
26321 - Made DeviceContext a generic object to allow usage from various
26323 - Added support for queueing Windows messages
26325 2004-08-19 19:37 pbartok
26328 - Added generation of MouseEnter, MouseLeave and MouseHover events
26329 - Added cleanup on EndPaint
26331 2004-08-19 19:17 pbartok
26334 - Added handling of WM_MOUSEHOVER
26335 - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
26338 2004-08-19 18:55 jordi
26340 * ThemeGtk.cs: fixes button order
26342 2004-08-19 18:12 jordi
26344 * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
26346 2004-08-19 17:09 pbartok
26349 - Added Right property
26350 - Added RightToLeft property
26352 2004-08-19 16:27 jordi
26354 * ThemeGtk.cs: experimental GTK theme support
26356 2004-08-19 16:26 jordi
26358 * ITheme.cs, Theme.cs: move themes from an interface to a class
26360 2004-08-19 16:25 jordi
26362 * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
26365 2004-08-19 16:04 pbartok
26368 - Added colormap basics
26369 - Added a way to re-initialize with a different display handle
26370 - Fixed setting of the window background color
26371 - Added various X11 imports related to colors and colormaps
26373 2004-08-19 15:51 pbartok
26376 - Removed packing hints (Paolo suggested this a while back)
26377 - fixed colormap type
26378 - Added default Atom types
26379 - Added Screen and color structs and enums
26381 2004-08-19 15:39 pbartok
26384 - Added missing Draw() method
26385 - Added missing RecreateHandle event
26387 2004-08-19 15:30 pbartok
26390 - Added handling of WM_CLOSE
26392 2004-08-18 13:16 jordi
26394 * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
26397 2004-08-18 09:56 jordi
26399 * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
26401 2004-08-17 15:31 ravindra
26403 * SWF.csproj: Updated project.
26405 2004-08-17 15:25 pbartok
26408 - Drawing improvement; don't call UpdateBounds if we are not visible
26409 (or have been minimized)
26411 2004-08-17 15:24 pbartok
26414 - Finished IsVisible
26415 - Added Win32GetWindowPlacement
26417 2004-08-17 15:08 jackson
26419 * Panel.cs: Initial checkin of the Panel
26421 2004-08-17 14:25 pbartok
26424 - Fixed broken handling of default window sizes
26426 2004-08-17 13:29 jackson
26428 * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
26429 has a large startup time.
26431 2004-08-17 10:25 jackson
26433 * HandleData.cs: union areas properly
26435 2004-08-17 10:12 jackson
26437 * HandleData.cs: union areas properly
26439 2004-08-16 20:00 ravindra
26441 * ToolBar.cs, ToolBarButton.cs: Added attributes.
26443 2004-08-16 18:48 ravindra
26445 * ToolBar.cs: Added attributes.
26447 2004-08-16 17:17 ravindra
26449 * SWF.csproj: Updated project.
26451 2004-08-16 17:16 jackson
26453 * XplatUIX11.cs: Check for more expose events before sending a
26454 WM_PAINT so they can all be grouped together. This makes dragging a
26455 window across another window redraw in a sane way.
26457 2004-08-16 15:47 pbartok
26460 - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
26461 support OnMouseEnter/Leave()
26462 - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
26465 2004-08-16 15:46 pbartok
26467 * XplatUIStructs.cs, XplatUIX11.cs:
26468 - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
26469 OnMouseEnter/Leave()
26471 2004-08-16 15:34 jackson
26473 * XplatUIX11.cs: Group multiple expose events in HandleData, make
26474 sure messages get the message field set to WM_NULL if they are not
26477 2004-08-16 15:24 jackson
26479 * HandleData.cs: HandleData is used for storing message information
26482 2004-08-15 17:23 ravindra
26484 * ColorDepth.cs: Added attribute.
26486 2004-08-15 17:23 ravindra
26488 * SWF.csproj: Updated project for ToolBar Control.
26490 2004-08-15 17:20 ravindra
26492 * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
26493 control and also dos2unix format.
26495 2004-08-15 17:13 ravindra
26497 * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
26498 ToolBarButtonClickEventArgs.cs,
26499 ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
26500 ToolBarTextAlign.cs: First Implementation of ToolBar control.
26502 2004-08-15 15:31 pbartok
26505 - First (mostly) working version
26507 2004-08-13 16:15 pbartok
26510 - Fixed Anchor default
26512 2004-08-13 15:43 pbartok
26515 - Changed GetCursorPos signature
26517 2004-08-13 15:42 pbartok
26519 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
26520 - Changed signature for GetCursorPos
26522 2004-08-13 15:25 pbartok
26526 - Fixed resizing/exposure handling
26528 2004-08-13 15:22 jordi
26530 * ThemeWin32Classic.cs: removes redundant code and fixes issues
26533 2004-08-13 14:55 jordi
26535 * TrackBar.cs: change from wndproc to events
26537 2004-08-13 13:00 jordi
26539 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
26540 XplatUIX11.cs: implements PointToClient (ScreenToClient)
26542 2004-08-13 12:53 pbartok
26545 - Changed GetWindowPos to also provide client area size
26546 - Fixed broken prototypes for several win32 functions
26548 2004-08-13 12:53 pbartok
26550 * XplatUI.cs, XplatUIDriver.cs:
26551 - Changed GetWindowPos to also provide client area size
26553 2004-08-13 12:52 pbartok
26556 - Added generation of WM_POSCHANGED
26557 - Changed GetWindowPos to also provide client area size
26559 2004-08-13 12:52 pbartok
26562 - Added Dispose() and destructor
26563 - Fixed resizing and bounds calculation
26565 - Added memory savings for invisible windows
26567 2004-08-13 12:46 jordi
26569 * TrackBar.cs: adds timer and grap window
26571 2004-08-13 10:25 jackson
26573 * Timer.cs: SWF Timer
26575 2004-08-12 16:59 pbartok
26577 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
26578 - Implemented method to get current mouse position
26580 2004-08-12 14:29 jordi
26582 * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
26583 enhancement, fix mouse problems, highli thumb, etc
26585 2004-08-12 13:31 pbartok
26588 - Fixed Anchoring bugs
26590 2004-08-12 13:01 jackson
26592 * StatusBar.cs: Don't forget things
26594 2004-08-12 12:54 jackson
26596 * ThemeWin32Classic.cs: Handle owner draw status bars
26598 2004-08-12 12:54 jackson
26600 * StatusBar.cs: Implement missing properties, events, and methods.
26601 Handle mouse clicking
26603 2004-08-12 10:19 jackson
26605 * StatusBarPanelClickEventArgs.cs,
26606 StatusBarPanelClickEventHandler.cs: Classes for handling status
26607 bar panel click events
26609 2004-08-12 10:10 jackson
26611 * Control.cs: Add missing properties
26613 2004-08-12 09:46 pbartok
26615 * BindingsManagerBase.cs:
26616 - Name changed to BindingManagerBase.cs
26618 2004-08-12 09:25 jordi
26620 * ScrollableControl.cs: calls ctrlbase instead of exeception
26622 2004-08-11 16:28 pbartok
26624 * InputLanguageChangingEventArgs.cs:
26625 - Never check in before compiling. Fixes the last check-in
26627 2004-08-11 16:26 pbartok
26629 * InputLanguageChangingEventArgs.cs:
26630 - More signature fixes
26632 2004-08-11 16:20 pbartok
26634 * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
26635 Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
26636 ImageListStreamer.cs, InputLanguage.cs,
26637 InputLanguageChangedEventArgs.cs,
26638 InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
26639 LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
26640 ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
26641 XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
26644 2004-08-11 16:16 pbartok
26648 - Added .Net 1.1 method
26650 2004-08-11 15:25 pbartok
26653 - Fixed BindingManagerBase.cs filename
26655 2004-08-11 15:22 pbartok
26657 * BindingManagerBase.cs:
26658 - Was checked in with wrong filename
26660 2004-08-11 14:50 pbartok
26665 2004-08-11 13:41 jordi
26667 * XplatUIWin32.cs: Fixes ClientRect
26669 2004-08-11 13:19 pbartok
26671 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
26673 - We had SetWindowPos and MoveWindow to set window positions and
26674 size, removed MoveWindow. We have GetWindowPos, so it made sense to
26675 keep SetWindowPos as matching counterpart
26676 - Added some X11 sanity checking
26678 2004-08-11 12:59 pbartok
26681 - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
26682 (It seems that SetBounds is just a front for SetBoundsCore and
26683 SetBoundsCore updates the underlying window system and
26684 UpdateBounds is responsible for updating the variables associated
26685 with the Control and sending the events)
26686 - Major cleanup of Size handling; we now have two sizes, client_size
26687 and bounds. Bounds defines the window with decorations, client_size
26690 2004-08-11 12:55 pbartok
26692 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
26693 - Added method to calculate difference between decorated window and
26696 2004-08-11 12:54 pbartok
26699 - Forcing redraw on resize
26701 2004-08-11 11:43 pbartok
26704 - Removed disposing of the actual images when the list is disposed
26706 2004-08-11 09:13 pbartok
26709 - Now properly reparents windows
26711 2004-08-11 08:37 pbartok
26716 2004-08-11 07:47 pbartok
26719 - Rewrote the collection stuff. Might not be as fast now, not
26720 keeping the number of children around and accessible directly, but
26721 it's more straightforward
26723 2004-08-11 07:44 pbartok
26725 * AccessibleObject.cs:
26726 - Fixed to match ControlCollection rewrite
26728 2004-08-11 07:43 pbartok
26731 - Added missing creation of the collection list
26733 2004-08-10 20:08 jackson
26735 * StatusBar.cs: Get the paint message from WndProc
26737 2004-08-10 19:31 jackson
26739 * ThemeWin32Classic.cs: Create Brushes as little as possible
26741 2004-08-10 19:20 jackson
26743 * UICues.cs: Add Flags attribute
26745 2004-08-10 19:19 jackson
26747 * StatusBarPanel.cs: Signature cleanup
26749 2004-08-10 19:10 jackson
26751 * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
26752 Initial implementation of status bar item drawing
26754 2004-08-10 17:27 jordi
26756 * TrackBar.cs: add missing methods, properties, and restructure to
26759 2004-08-10 16:24 jackson
26761 * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
26762 ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
26765 2004-08-10 13:21 jordi
26767 * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
26768 enhancements and standarize on win colors defaults
26770 2004-08-10 12:52 jackson
26772 * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
26773 ThemeWin32Classic.cs: Implement DrawItem functionality
26775 2004-08-10 12:47 jordi
26777 * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
26779 2004-08-10 12:32 jordi
26781 * Control.cs: throw ontextchange event
26783 2004-08-10 11:43 pbartok
26786 - Added more to the still unfinished Dock/Anchor layout code
26788 2004-08-10 11:39 pbartok
26790 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
26791 - Added GetWindowPos method
26793 2004-08-10 11:36 pbartok
26796 - Implemented several methods
26798 2004-08-10 09:47 jackson
26800 * TrackBar.cs: Allow control to handle buffering
26802 2004-08-10 09:41 jackson
26804 * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
26806 2004-08-10 09:24 jackson
26808 * Label.cs, LinkLabel.cs: Let Control handle buffering.
26810 2004-08-10 09:09 jackson
26812 * StatusBar.cs: Let Control handle all the buffering.
26814 2004-08-10 09:08 jackson
26816 * Control.cs: Control will now handle the buffering code, so each
26817 control does not have to implement this.
26819 2004-08-10 08:34 jackson
26821 * XplatUIDriver.cs: Use default colors from the theme
26823 2004-08-09 17:12 pbartok
26826 - Fixed several bugs Ravindra pointed out
26828 2004-08-09 16:11 pbartok
26831 - Added incomplete dock layout code
26832 - Added support for mouse wheel
26834 2004-08-09 16:09 pbartok
26837 - Added handling for middle and right mousebutton
26838 - Added handling for mouse wheel
26839 - Added handling for key state and mouse state and position
26840 - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
26843 2004-08-09 15:40 jackson
26845 * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
26846 StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
26849 2004-08-09 15:37 jackson
26851 * StatusBar.cs: Initial implementation of StatusBar
26853 2004-08-09 15:36 jackson
26855 * ITheme.cs: Add support for drawing status bar and getting status
26858 2004-08-09 15:35 pbartok
26863 2004-08-09 15:34 jackson
26865 * ThemeWin32Classic.cs: Add support for drawing status bar and get
26866 status bar item sizes
26868 2004-08-09 15:21 jackson
26870 * ThemeWin32Classic.cs: Use known colors for default control
26873 2004-08-09 15:12 jackson
26875 * ThemeWin32Classic.cs: Make the default font static, it is static
26876 in control so this doesn't change functionality and creating fonts
26879 2004-08-09 14:56 pbartok
26882 - Added GrabMode enum
26884 2004-08-09 14:55 pbartok
26886 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
26887 - Removed Run method, was only required for initial development
26889 2004-08-09 14:51 pbartok
26891 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
26892 - Implemented GrabWindow/ReleaseWindow methods to allow pointer
26895 2004-08-09 13:48 pbartok
26898 - Fixed default sizing for child windows
26900 2004-08-09 12:56 pbartok
26903 - Added generation of WM_DESTROY message
26904 - Added handling of window manager induced shutdown
26906 2004-08-09 11:31 jackson
26908 * ThemeWin32Classic.cs: New names for control properties
26910 2004-08-09 11:25 jackson
26912 * Control.cs: Use new color names
26914 2004-08-09 11:02 jackson
26916 * XplatUI.cs: Get default window properties from the theme
26918 2004-08-09 11:01 jackson
26920 * ITheme.cs: The theme engine now controls default window
26923 2004-08-09 11:00 jackson
26925 * ThemeWin32Classic.cs: Add default window color properties
26927 2004-08-09 10:17 jackson
26929 * ThemeWin32Classic.cs: Use correct default back color
26931 2004-08-09 10:05 jackson
26933 * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
26936 2004-08-09 09:56 jackson
26938 * XplatUI.cs: Remove defaults, these are handled by the theme now.
26940 2004-08-09 09:54 jackson
26942 * Control.cs: Get default properties from the theme.
26944 2004-08-09 09:53 jackson
26946 * ITheme.cs: Themes now handle default control properties
26948 2004-08-09 09:53 jackson
26950 * ThemeWin32Classic.cs: Themes now handle default control
26951 properties so coloring will be consistent
26953 2004-08-08 16:54 jordi
26955 * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
26957 2004-08-08 15:08 jordi
26959 * XplatUIX11.cs: fixes keyboard crash
26961 2004-08-08 13:47 jordi
26963 * Label.cs: add cvs header info
26965 2004-08-08 12:09 jackson
26967 * ThemeWin32Classic.cs: Add pen_buttonface
26969 2004-08-08 11:52 jordi
26971 * Label.cs, LinkLabel.cs: [no log message]
26973 2004-08-08 11:34 jordi
26975 * ThemeWin32Classic.cs: Use Windows Standard Colours
26977 2004-08-07 17:32 jordi
26979 * TrackBar.cs: throw exceptions of invalid enums values
26981 2004-08-07 17:31 jordi
26983 * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
26986 2004-08-07 16:56 jackson
26988 * HorizontalAlignment.cs: Initial checkin
26990 2004-08-07 13:16 jordi
26992 * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
26995 2004-08-07 13:05 jordi
26997 * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
26998 GetSysColor defines
27000 2004-08-06 18:01 pbartok
27002 * ThemeWin32Classic.cs:
27003 - Fixed some rounding issues with float/int
27005 2004-08-06 18:00 jackson
27007 * DockStyle.cs, AnchorStyles.cs:
27009 Add flags and serializable attributes.
27011 2004-08-06 17:46 pbartok
27014 - Implemented GetParent
27016 2004-08-06 17:18 pbartok
27019 - Fixed some rounding issues with float/int
27021 2004-08-06 17:17 pbartok
27023 * X11Structs.cs, XplatUIX11.cs:
27024 - Fixed Refresh and Invalidate
27026 2004-08-06 15:30 pbartok
27028 * Control.cs, X11Structs.cs, XplatUIX11.cs:
27029 - Fixed recursive loop when resizing
27030 - Improved/fixed redrawing on expose messages
27032 2004-08-06 09:53 jordi
27034 * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
27035 keyboard navigation
27037 2004-08-06 08:02 pbartok
27039 * X11Structs.cs, XplatUIX11.cs:
27040 - Fixed reparenting
27041 - Fixed window border creation
27043 2004-08-05 15:38 pbartok
27046 - Attempted fix for reparenting problems
27048 2004-08-04 15:14 pbartok
27051 - Fixed Invalidation bug (calculated wrong client area)
27052 - Added ClientSize setter
27054 2004-08-04 15:13 pbartok
27057 - Added AutoScale properties
27059 2004-08-04 15:13 pbartok
27062 - Added latest files
27064 2004-08-04 14:11 pbartok
27066 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
27068 - Added Invalidate handling
27070 2004-08-03 17:09 jordi
27072 * XplatUIDriver.cs: fixes spelling mistake
27074 2004-07-27 09:53 jordi
27076 * TrackBar.cs: fixes trackbar events, def classname, methods
27079 2004-07-27 09:29 jordi
27081 * ScrollBar.cs: fixes scrollbar events
27083 2004-07-27 04:38 jordi
27085 * Control.cs: changes to be able to run winforms samples
27087 2004-07-26 11:42 jordi
27089 * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
27090 ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
27092 2004-07-26 05:41 jordi
27094 * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
27095 MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
27098 2004-07-22 09:22 jordi
27100 * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
27101 check link overlapping, implement events, and fixes
27103 2004-07-21 10:28 jordi
27105 * DialogResult.cs, IButtonControl.cs: fixes comments filenames
27107 2004-07-21 10:19 jordi
27109 * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
27110 LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
27111 LinkLabelLinkClickedEventArgs.cs,
27112 LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
27113 XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
27116 2004-07-19 13:09 jordi
27118 * Control.cs, Label.cs: label control re-written: added missing
27119 functionlity, events, and properties
27121 2004-07-19 10:49 jordi
27123 * Control.cs: fixes SetBounds logic
27125 2004-07-19 01:29 jordi
27127 * Control.cs: Call RefreshWindow only if the window has created
27129 2004-07-15 14:05 pbartok
27131 * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
27132 - Implemented ImageList and ImageList.ImageCollection classes
27133 - Added ColorDepth enumeration
27134 - Updated SWF VS.Net project
27136 2004-07-15 11:06 jordi
27138 * XplatUIStructs.cs: added MsgButons enum
27140 2004-07-15 11:03 jordi
27142 * Control.cs: added basic mouse handeling events
27144 2004-07-15 03:38 jordi
27146 * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
27147 Vertical TrackBar control implementation
27149 2004-07-13 09:33 jordi
27151 * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
27153 2004-07-13 09:31 jordi
27155 * Control.cs, Form.cs: commit: new properties and fixes form size
27158 2004-07-09 14:13 miguel
27160 * ProgressBar.cs: Spelling
27162 2004-07-09 11:25 pbartok
27165 - Removed usage of Rectangle for drawing. Miguel pointed out it's
27168 2004-07-09 11:17 miguel
27170 * ProgressBar.cs: 2004-07-09 Miguel de Icaza <miguel@ximian.com>
27172 * ProgressBar.cs: Fixed spelling for `block'
27174 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
27177 Avoid using the += on rect.X, that exposed a bug in the compiler.
27179 2004-07-08 23:21 pbartok
27181 * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
27182 AnchorStyles.cs, Application.cs, ApplicationContext.cs,
27183 BaseCollection.cs, Binding.cs, BindingContext.cs,
27184 BindingMemberInfo.cs, BindingsCollection.cs,
27185 BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
27186 BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
27187 ButtonState.cs, CaptionButton.cs, CheckBox.cs,
27188 ContainerControl.cs, Control.cs, ControlEventArgs.cs,
27189 ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
27190 ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
27191 CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
27192 DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
27193 FrameStyle.cs, GiveFeedbackEventArgs.cs,
27194 GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
27195 HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
27196 IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
27197 InputLanguageChangedEventArgs.cs,
27198 InputLanguageChangedEventHandler.cs,
27199 InputLanguageChangingEventArgs.cs,
27200 InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
27201 InvalidateEventArgs.cs, InvalidateEventHandler.cs,
27202 KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
27203 KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
27204 LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
27205 MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
27206 PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
27207 QueryAccessibilityHelpEventArgs.cs,
27208 QueryAccessibilityHelpEventHandler.cs,
27209 QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
27210 RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
27211 ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
27212 ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
27213 TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
27214 UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
27215 XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
27216 XplatUIX11.cs, lang.cs: