1 2006-08-22 Jackson Harper <jackson@ximian.com>
3 * Binding.cs: We don't use IsBinding because it requires the
4 control to be created, which really shouldn't be necessary just to
5 set a property on the control.
7 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9 * ComboBox.cs: Some CB.ObjectCollection methods must throw
10 ArgumentNullReferenceException when the argument is null.
12 2006-08-21 Jackson Harper <jackson@ximian.com>
14 * Timer.cs: Track the thread that the timer is started in (NOT
15 CREATED), this way messages for it will only be triggered on its
17 * XEventQueue.cs: Track the timers here, this makes timers per
19 * XplatUIX11.cs: The timers are moved to the XEventQueue.
21 2006-08-19 Chris Toshok <toshok@ximian.com>
23 * XplatUIX11.cs: after further communication with pdb, we get the
24 best of both worlds. SetZOrder working for un-Mapped windows, and
25 no X errors for un-mapped windows.
27 2006-08-19 Chris Toshok <toshok@ximian.com>
29 * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
30 as it was causing pdn toolbars to not have the correct stacking.
32 2006-08-18 Mike Kestner <mkestner@novell.com>
34 * ListView.cs : guard against negative ClientArea.Width in scrollbar
35 calculation. Not sure why control should ever be setting a negative
36 width though. Fixes #78931.
38 2006-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
40 * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
41 null items in ObjectCollection class.
42 * ListBox.cs.: Likewise.
44 2006-08-18 Atsushi Enomoto <atsushi@ximian.com>
46 * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
47 as the base method in ThemeWin32Classic should work fine.
50 2006-08-18 Jackson Harper <jackson@ximian.com>
52 * Binding.cs: When validating if the value entered doesn't convert
53 properly reset to the old value.
54 * RadioButton.cs: Don't fire click when we get focus.
56 2006-08-18 Jackson Harper <jackson@ximian.com>
58 * FileDialog.cs: Paint the selection on the directory combobox the
61 2006-08-17 Jackson Harper <jackson@ximian.com>
63 * ErrorProvider.cs: Don't allow the error control to be selected.
64 * Control.cs: Don't send the SetFocus messages, the control
65 activation will do this, and if we do it blindly here validation
68 2006-08-17 Jackson Harper <jackson@ximian.com>
71 * ContainerControl.cs: Make validation events fire in the correct
72 order. TODO: For some reason the first validation event is not
75 2006-08-17 Mike Kestner <mkestner@novell.com>
77 * ComboBox.cs : some null guarding for ComboListBox.Scroll.
79 2006-08-17 Mike Kestner <mkestner@novell.com>
81 * ComboBox.cs : implement scroll wheel support for popped-down
84 2006-08-17 Jackson Harper <jackson@ximian.com>
86 * TreeView.cs: Specify treeview actions (old patch that didn't get
87 committed for some reason).
88 - Don't let the mouse wheel scroll us too far. Just want to make
89 the bottom node visible, not scroll it all the ways to the top.
91 2006-08-17 Jackson Harper <jackson@ximian.com>
93 * XplatUIX11.cs: Mouse wheel events go to the focused window.
95 2006-08-17 Mike Kestner <mkestner@novell.com>
97 * ComboBox.cs : don't do mouseover selection in simple mode.
99 2006-08-16 Jackson Harper <jackson@ximian.com>
101 * Form.cs: Fire the closing events for all the mdi child windows
102 when a window is closed. If the cancel args are set to true, the
103 main window still gets the event fired, but it doesn't not close.
104 * MdiWindowManager.cs: Do this closing cleanup in a Closed
105 handler, instead of when the button is clicked, so cancelling the
106 close works correctly.
107 * ComboBox.cs: Send the mouse down to the scrollbar.
109 2006-08-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
111 * ListBox.cs: When passing 'null' to SelectedItem,
112 set SelectedIndex to -1, to unselect items. This is the
113 observed behaviour in .Net.
115 2006-08-16 Peter Dennis Bartok <pbartok@novell.com>
117 * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
118 MS flags saying there won't be any. (fixes #78800)
119 * Control.cs (HandleClick): Made virtual
121 2006-08-16 Atsushi Enomoto <atsushi@ximian.com>
123 * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
124 cultures. Fixed bug #78399.
126 2006-08-16 Jackson Harper <jackson@ximian.com>
128 * Form.cs: Use the MdiClients MdiChildren property to access
129 MdiChildren instead of creating the array from the child controls.
130 * MdiClient.cs: Maintain a separate array of the mdi children, so
131 that insertion order is maintained when the Z-order is changed.
133 2006-08-16 Mike Kestner <mkestner@novell.com>
135 * ListView.cs : add an ItemComparer and default to it for sorting.
136 Fixes #79076, but sorting needs a complete overhaul to be compat with
139 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
141 * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
143 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
145 * Hwnd.cs (Mapped): Properly traverse the tree
147 2006-08-15 Chris Toshok <toshok@ximian.com>
149 * Binding.cs: fix PullData/SetPropertyValue. We don't want to
150 pass manager.Current.GetType() to ParseData. It has to be the
151 property type. So, hold off doing the ParseData until we're in
152 SetPropertyValue where we know the type. This fixes the crash in
153 #78821 but the textbox is still empty.
155 2006-08-15 Chris Toshok <toshok@ximian.com>
158 - when we're scrolling, only call Edit() again if the
159 current cell is still unobscured. Fixes bug #78927.
160 - when handling mousedown on a cell, ensure the cell is visible
162 - remove the properties from DataGridRow, and remove the
163 DataGridParentRow class altogether.
166 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
168 * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
169 fire OnTextChanged by ourselves. There's no point calling base,
170 we don't set the base value anywhere else. Fixes #78773.
172 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
174 * ListBox.cs: Call CollectionChanged when modifying
175 an item from Items indexer, to update the actual items
178 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
180 * PrintDialog.cs: Small fixes for focus and a pair of checks,
181 to match .Net behaviour.
183 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
185 * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
187 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
189 * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
191 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
193 * MessageBox.cs: Prevent potential NRE exception.
194 * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
196 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
198 * MessageBox.cs: Calculate the owner of a messagebox, also make
199 it topmost. Fixes #78753
201 2006-08-14 Chris Toshok <toshok@ximian.com>
203 * XplatUIX11.cs: A couple of fixes so that metacity will let us
204 programmatically move windows. first, set the PPosition hint as
205 well as the USPosition hint. Second include some code from pdb
206 that sets the window type to NORMAL when we set the transient for
207 hint. This is because, in the absence of a window type, metacity
208 thinks any window with TransientFor set is a dialog, and refuses
209 to let us move it programmatically. fascists.
211 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
213 * XplatUIX11.cs: When setting normal hints, take into consideration
214 an different hints previously set so we don't delete them (fixes #78866)
216 2006-08-12 Chris Toshok <toshok@ximian.com>
218 * ToolBarButton.cs: make Layout return a boolean, if something to
219 do with the button's layout changed.
222 - add another parameter to Redraw, @force, which all existing
224 - make the Layout function return a boolean which is true if the
225 layout has actually changed. Redraw now uses this (and @force)
226 to determine when to invalidate. At present the only place
227 where @force can be false is the call from OnResize, when
228 background_image == null. So, resizing a toolbar when the
229 layout doesn't change results in no drawing.
231 2006-08-12 Chris Toshok <toshok@ximian.com>
233 * ThemeWin32Classic.cs: fix the bottom right corner painting. had
234 the VScrollBar and HScrollbar reversed. oops.
236 * DataGrid.cs: fix the logic that assigns sizes to the implicit
237 scrollbars. we were assigning them twice (once in
238 Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
239 therefore causing two scrollbar resizes (and redraws?) to happen
242 2006-08-12 Chris Toshok <toshok@ximian.com>
244 * ToolBarButton.cs: redraw the entire button if the theme tells us
247 * Theme.cs: add ToolBarInvalidateEntireButton.
249 * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
250 buttons, just the border.
252 * ThemeNice.cs: redraw the entire toolbar button since we need to
253 draw the highlight image.
255 * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
256 we need to redraw the entire button (not just the border).
258 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
260 * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
261 for vertical bars. Fixes the mismatches shown by #78513
263 2006-08-11 Alexander Olk <alex.olk@googlemail.com>
265 * FileDialog.cs: If a saved/remembered path doesn't exist
266 anymore, fall back to "Desktop".
268 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
270 * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
271 parent. It's apparently legal to not have one
273 - SetZOrder: Don't try to set Z-Order on an unmapped window
274 - CreateWindow: 0,0 are legal coordinates for a window. don't move
275 it unless the coordinates are negative
277 2006-08-10 Mike Kestner <mkestner@novell.com>
279 * ListControl.cs: allow null for DataSource. Clear DisplayMember
280 when setting to null per msdn docs. Fixes #78854.
282 2006-08-10 Chris Toshok <toshok@ximian.com>
284 * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
285 flickering by setting a clip rectangle on the Graphics when we
286 need to redraw just a particular menuitem. Also, rename "OnClick"
287 to "OnMouseDown" to reflect what it actually is.
289 * Form.cs: track the OnMouseDown change.
291 2006-08-10 Peter Dennis Bartok <pbartok@novell.com>
293 * CommonDialog.cs: Properly inherit the CreateParams from the form
294 and only change what we need. Fixes #78865
296 2006-08-10 Chris Toshok <toshok@ximian.com>
298 * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
299 flickering in flat mode (and most of the flickering in general) by
300 only invalidating the button border (and not the entire rectangle)
301 when the state changes. A couple of cases still flicker:
302 ToggleButtons, and the dropdown arrow case when the user mouse
305 2006-08-10 Alexander Olk <alex.olk@googlemail.com>
307 * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
308 for german keyboards. Numlock state shouldn't affect the behaviour
309 of the Del key. Fixes bug #78291.
311 2006-08-10 Chris Toshok <toshok@ximian.com>
313 * ListControl.cs: remove the items.Clear line from BindDataItems,
314 as this is the first thing done by both subclasses in their
315 SetItemsCore overrides. Also, add a ItemChanged handler, and when
316 passed -1, refresh the list. This gets databinding working when
317 the datasource is set on the list before the datasource is
318 populated (as in wf-apps/ReportBuilder.)
320 * ComboBox.cs: remove the argument to BindDataItems. This call
321 should really go away, and be initiated by the ListControl code.
325 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
327 * TextControl.cs (Document.ctor): Initialize caret so we don't crash
328 if no data is in the document when the control is displayed
330 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
332 * TextBoxBase.cs: Don't try moving the caret if we don't have a window
335 - PositionCaret: Allow positioning of caret but don't call methods
336 requiring a handle if the window isn't created yet
337 - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
338 - owner_HandleCreated: Don't position the caret, just update it's
339 location. User might have already set a different position
341 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
343 * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
344 windows. Screws up the returned coordinates for child windows.
345 Fixes #78825. I'm hoping this doesn't break something, since the
346 code was explicitly put in 8 months ago, but no bug was attached.
347 Menus still seem to work properly.
349 2006-08-08 Chris Toshok <toshok@ximian.com>
351 * DataGrid.cs: make BeginInit/EndInit actually do what they're
352 supposed to do - delay data binding until the EndInit call. Also,
353 make the table style collection's CollectionChangeAction.Refresh
356 * GridTableStylesCollection.cs: raise a CollectionChangeEvent
357 (with action = Refresh) when a consituent table's MappingName is
360 2006-08-08 Chris Toshok <toshok@ximian.com>
362 * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
363 Invalidate, since changing the text can change the size of the all
366 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
368 * Form.cs (AddOwnedForm): Still need to add the form to our listif
371 2006-08-08 Chris Toshok <toshok@ximian.com>
373 * PrintControllerWithStatusDialog.cs: don't .Close() the status
374 dialog, as this causes X errors later on, since we actually
375 destroy the window. Instead, .Hide() it.
377 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
379 * ComboBox.cs: Added focus reflection for popup window
381 - Removed transient setting for non-app windows for now, not sure it
383 - Fixed logic checking if we have captions when deciding
384 override_redirect, WS_CAPTION is two bits and a 0 check was not
386 - Removed the WINDOW_TYPE stuff, it was unneeded and making things
389 - AddOwnedForm: Don't just add the form to the list, call the property
390 to ensure the driver is informed about the ownership as well
391 - CreateHandle: Set the TopMost status in the driver if we have an owner
392 * XplatUI.cs: Fixed debug statement
394 2006-08-08 Jonathan Pobst <monkey@jpobst.com>
395 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
396 GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
397 ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs,
398 TrackBarRenderer.cs: Make constructor private.
399 * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
400 * ProfessionalColorTable.cs: Make properties virtual.
402 2006-08-06 Duncan Mak <duncan@novell.com>
404 * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
407 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
408 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
409 GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
410 ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
411 TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
412 Initial import of new 2.0 classes.
414 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
415 * Application.cs: Add 2.0 VisualStyles properties.
417 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
418 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
419 XplatUIX11.cs: Create property to allow access to existing private
420 variable "themes_enabled"
422 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
424 * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
425 file size, as otherwise our class libraries fail using windows. Fixes
428 2006-08-04 Jackson Harper <jackson@ximian.com>
431 * XplatUIX11.cs: Move the toolwindow window manager creation into
432 the X11 driver, this way on win32 we can let windows create/handle
435 2006-08-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
437 * PrintDialog.cs: Remove some redundant checks, add some others,
438 clean some code, and move the focus to the text boxes when the
439 values are incorrect.
441 2006-08-04 Alexander Olk <alex.olk@googlemail.com>
443 * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
445 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
447 * NumericUpDown.cs: Setting the Minimum and Maximum is now
448 handled correctly. Fixes bug #79001.
450 2006-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
452 * PrintDialog.cs: The "Copies" numeric up down must have
453 set the Minimum property to 1; only if the value is bigger
454 than 1, activate "Collate" check box. This is the behaviour of .Net.
455 Also modify the Document elements only if it is not null.
457 2006-08-03 Jackson Harper <jackson@ximian.com>
459 * TreeNodeCollection.cs: Fix copyto to use the correct nodes
460 length. (We have a larger array then actual node count).
462 2006-08-03 Jackson Harper <jackson@ximian.com>
464 * ComboBox.cs: Don't show selection by default.
465 - The SelectAll isn't needed here, since the focus code should do
467 - DDL style lists to manual selection drawing, so when they
468 get/lose focus they have to invalidate.
470 2006-08-03 Peter Dennis Bartok <pbartok@novell.com>
472 * TextBoxBase.cs: Don't always show all selections by default.
474 2006-08-03 Jonathan Pobst <monkey@jpobst.com>
475 * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
476 HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
479 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
481 * Control.cs: Removing the controls in a ControlCollection with
482 Clear now hides the controls as expected. Fixes bug #78804.
484 2006-08-03 Jackson Harper <jackson@ximian.com>
486 * Control.cs: Revert previous focus patch, it breaks reflector.
488 2006-08-03 Jackson Harper <jackson@ximian.com>
490 * ComboBox.cs: Cleanup selection and focus with the combobox.
491 This also eliminates some duplicated keyboard code, since now
492 everything is handled by the main class.
493 - Make list selection work on mouse up instead of down, to match
496 2006-08-02 Jackson Harper <jackson@ximian.com>
498 * Control.cs: Setting focus needs to go through the whole
501 2006-08-02 Chris Toshok <toshok@ximian.com>
503 * PrintPreviewDialog.cs: change MinimumSize to use
504 base.MinimumSize so it works.
506 2006-08-02 Peter Dennis Bartok <pbartok@novell.com>
509 - UpdateCaret: Added sanity check in case caret isn't defined yet
510 - Line.Delete: Now updating selection and caret markers if we're
511 transfering a node (Properly fixes #78323)
512 - SetSelectionEnd: Added sanity check
513 * TextBoxBase.cs: Removed broken attempt to fix #78323
515 2006-08-01 Chris Toshok <toshok@ximian.com>
517 * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
518 Close() call is handled in Form, not here.
520 2006-08-01 Chris Toshok <toshok@ximian.com>
522 * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
525 * PrintPreviewDialog.cs: add scrollbars, and add an image cache
526 for sizes < 100% zoom. The code now aggressively attempts to keep
527 from calling document.Print (), and tries not to use the scaling
528 g.DrawImage whenever possible (it still does if you scale to >
529 100%, since usually that involves huge images).
531 * PrintPreviewControl.cs: hook up the close button.
533 2006-08-01 Jonathan Pobst <monkey@jpobst.com>
534 * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
535 ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
536 ItemDragEventHandler.cs, LabelEditEventHandler.cs,
537 LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
538 MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
539 PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
540 SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
541 Removed [Serializable] for 2.0 Event Handlers.
543 2006-07-31 Jackson Harper <jackson@ximian.com>
545 * TextBoxBase.cs: Make ShowSelection invalidate when changed.
546 * TextControl.cs: Uncomment out the body of this method.
548 2006-07-31 Alexander Olk <alex.olk@googlemail.com>
550 * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
553 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
555 * TextBoxBase.cs: Added internal property ShowSelection to allow controls
556 that embed TextBox and need selections visible even if textbox is not
557 focused to enforce that behaviour.
558 * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
561 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
564 - Added new SetSelectionStart/SetSelectionEnd overloads
565 - Fixed viewport width assignment to be accurate
566 - Adjusted alignment line shift calculations to allow cursor on right
567 aligned lines to be always visible at the right border (like MS)
569 - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
570 - TextBoxBase_SizeChanged: recalculating canvas on size changes
571 - CalculateScrollBars: Use ViewPort size instead of window size, to
572 properly consider space occupied by the border and scrollbars
574 - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll
575 calculations; no longer leaves artifacts
576 - CaretMoved: Adjusted window scrolling to match MS and fixed several
577 calculation bugs (Still missing right/center align calculations)
579 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
581 * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
582 use of both scroll rect and clip rect, as they do the same.
584 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
586 * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key
587 in the event handler (fixes #78912)
589 2006-07-31 Chris Toshok <toshok@ximian.com>
591 * ThemeWin32Classic.cs: use grid.RowsCount here instead of
592 grid.ListManager.Count, since grid.ListManager might be null.
593 This of course begs the question "why are we drawing rows for a
594 grid with no list manager (and therefor no rows)?" Fixes the
597 2006-07-31 Chris Toshok <toshok@ximian.com>
599 * RelatedPropertyManager.cs: Don't always chain up to the parent
600 ctor. instead, call SetDataSource if the parent's position is !=
601 -1. Fixes the crash in #78822.
603 2006-07-31 Chris Toshok <toshok@ximian.com>
605 * DataGrid.cs (get_ListManager): use field instead of property
606 accessors for datasource and datamember.
607 (RowsCount): make internal again.
608 (OnMouseDown): end edits before resizing columns/rows.
609 (OnMouseUp): restart edits after resizing columns/rows.
611 2006-07-30 Peter Dennis Bartok <pbartok@novell.com>
613 * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
614 This fixes the situation where the last set cursor is displayed
615 whenever the mouse is over scrollbars.
617 2006-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
619 * PrintDialog.cs: Fix the behaviour of PrinterSettings and
620 Document properties, as well as initial values.
622 2006-07-29 Peter Dennis Bartok <pbartok@novell.com>
624 * XplatUIWin32.cs (SetBorderStyle): Setting both border
625 and ClientEdge results in a 3-pixel border, which is
628 2006-07-28 Jackson Harper <jackson@ximian.com>
630 * TreeNodeCollection.cs: Fix the clear method.
631 - Fix the Shrink also
633 2006-07-27 Jackson Harper <jackson@ximian.com>
635 * TreeView.cs: Make sure the visible order is computed when we
636 attempt to size the scrollbars (for trees that mess with the
637 scrolling when they shouldn't.
638 - Make sure to give the scrollbars valid values.
640 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
642 * XplatUIX11.cs: Move motion compression code to where it
643 has less performance impact
645 2006-07-26 Jackson Harper <jackson@ximian.com>
647 * UpDownBase.cs: When the control is selected make the child
648 controls non selectable, so that a click on them won't do a
650 - Don't give focus to the text box when the spinner is selected.
651 * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
653 2006-07-26 Chris Toshok <toshok@ximian.com>
655 * ThemeWin32Classic.cs: add print preview rendering. I'm not
656 satisfied with this solution. If the bitmaps are small, we should
657 just cache them in the PrintPreviewDialog and draw them here.
658 Also, the layout is broken for the 2-up and 3-up cases.
660 * Theme.cs: add PrintPReviewControlPaint.
662 * PrintPreviewDialog.cs: first pass implementation.
664 * PrintPreviewControl.cs: first pass implementation. No
667 * PrintDialog.cs: only validate fields if that particular portion
668 of the UI is enabled. Also, set the document's controller to a
669 PrintControllerWithStatusDialog wrapping the document's print
672 * PrintControllerWithStatusDialog.cs: if we're printing to a file,
673 bring up a SaveFileDialog (i hope we don't want to match the
674 behavior of the crappy windows file entry) and set the
675 PrinterSettings.PrintFileName accordingly.
677 2006-07-26 Jackson Harper <jackson@ximian.com>
679 * ContainerControl.cs: Add a field that disables auto selecting
680 the next control in a container when the container is activated.
681 * UpDownBase.cs: Don't select the text box when the up down is
684 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
686 * XEventQueue.cs: Added methods for peeking (used for compression
687 of successive events)
688 * XplatUIX11.cs (GetMessage): We're now compressing consecutive
689 mouse move events (fixes #78732)
691 2006-07-25 Jackson Harper <jackson@ximian.com>
693 * UpDownBase.cs: Use an internal class for the textbox so that we
694 can control focus. the updown control should always have focus,
695 if either the text area or the buttons are clicked.
696 - Send the key messages to the textbox, since it never actually
698 - Activate and decativate the textbox caret.
700 2006-07-24 Jackson Harper <jackson@ximian.com>
702 * Control.cs: Use the directed select when selecting a control,
703 this way the container controls override will get called and the
704 whole ActiveControl chain will get triggered. TODO: probably need
705 to make sure this gets done everywhere instead of the old
707 * ContainerControl.cs: Implement the directed Select method to
708 find and activate the correct child control.
710 2006-07-22 Mike Kestner <mkestner@novell.com>
712 * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
713 menu handling code so that clicks without a grab work too.
716 2006-07-22 Alexander Olk <alex.olk@googlemail.com>
718 * FileDialog.cs: Enable the BackButton when dirstack has one element.
719 Added some small optimizations.
721 2006-07-21 Matt Hargett <matt@use.net>
723 * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
725 2006-07-21 Peter Dennis Bartok <pbartok@novell.com>
727 * Control.cs (GetNextControl): Fixes to make all of Jackson's unit
728 tests pass and match MS in some strange border cases.
730 2006-07-21 Chris Toshok <toshok@ximian.com>
732 * ThemeWin32Classic.cs: handle drawing of the relation links and
735 * Theme.cs: change args to DataGridPaintParentRow.
737 * DataGrid.cs: Don't use controls for the relation links and
738 parent buttons, so we have to handle all their interactions in
739 MouseMove, MouseDown, MouseUp, etc. Also, store a lot more stuff
740 when we're navigating through child tables, so we can reinstate
741 selection, expanded state, current cell, etc.
743 2006-07-20 Chris Toshok <toshok@ximian.com>
745 * ToolBar.cs: When we redraw a button, for whatever reason,
746 there's no reason to redraw the entire toolbar. Also, don't call
747 Control.Refresh from within Redraw, as it's much heavier than
748 Invalidate (which is really what we want).
750 2006-07-20 Chris Toshok <toshok@ximian.com>
752 * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
753 DataGridTextBoxColumn.cs, DataGridTextBox.cs,
754 ThemeWin32Classic.cs, ListControl.cs: After staring at stack
755 traces from within a debug IBindingList datasource
756 (in mono/winforms/datagrid) for *days*, I've finally gotten things
757 to work in a similar fashion.
759 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
761 * ListBox.cs: Don't call Sort () when setting
762 the Sorted property to false (avoid an unnecessary sort).
764 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
766 * ListControl.cs: DataSource should throw an ArgumentException
767 instead of a normal exception when the argument is not of the
770 2006-07-20 Mike Kestner <mkestner@novell.com>
772 * Control.cs: add InternalPreProcessMessage to allow us to steal
773 key events before MWF gets its paws on them. Adapted from a
775 * ToolBar.cs: add GotLostFocus handing for flat toolbars, with
776 up/down/left/right navigation. Override the new internal control
777 method to steal the events since they never make it to WndProc.
778 * ToolBarButton.cs: don't worry about pushed when setting hilight
779 since the drawing code prefers pushed to hilight. Invalidate on
780 Hilight changes. Fixes #78547 and #78525.
782 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
784 * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
785 the canvas size. Fixes #78868
787 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
789 * Splitter.cs: Track requested split position until first layout
790 is performed. Fixes #78871
792 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
794 * Application.cs: Removed code that forces 1.x for the version
795 number if the version started with 0. Not sure why that code was
796 there and I couldn't find any bugs that indicated we needed it.
799 2006-07-20 Alexander Olk <alex.olk@googlemail.com>
801 * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
802 ResetDefaults(), just write some output to the console until it's
803 implemented. Fixes bug #78907 for now. Eliminated two warnings.
805 2006-07-19 Jonathan Chambers <joncham@gmail.com>
807 * PropertyGridView.cs: set StartPosition of drop down forms
808 so they appear in correct initial spot. Fixes #78190.
810 2006-07-19 Mike Kestner <mkestner@novell.com>
812 * ThemeWin32Classic.cs: use parent background color when drawing
813 flat toolbars. Restructure the conditionals to make sure non-flat
814 non-Divider toolbars are filled too. Fixes #78837.
816 2006-07-19 Mike Kestner <mkestner@novell.com>
818 * ListBox.cs: Sort on collection changes even if the handle
819 isn't created yet. Fixes #78813.
821 2006-07-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
823 * ListControl.cs: DisplayMember should never be null,
824 and now we assign String.Empty when null is passed to it (this
827 2006-07-17 Mike Kestner <mkestner@novell.com>
829 * ListViewItem.cs: restructure Font and subitem Font handling
830 to hold a specific font and refer back to owner on null.
833 2006-07-17 Mike Kestner <mkestner@novell.com>
835 * ToolBar.cs: bandaid for side-effect of previous patch which was
836 discarding explicit heights for non-AutoSize toolbars. Need to
837 extend my format tester to deal with AutoSize=false. Fixes #78864.
839 2006-07-15 Jackson Harper <jackson@ximian.com>
841 * LabelEditTextBox.cs:
842 * TreeView.cs: Use a new LabelEdit class for node editing, this
843 class automatically 'closes' itself when it gets the enter key or
845 - Use the client rectangle when setting the trees scrollbars, so
846 border style is taken into account.
848 2006-07-14 Jackson Harper <jackson@ximian.com>
851 * TreeView.cs: Make the editing work similar to MSs, firing the
852 events correctly and ending edits correctly.
854 2006-07-14 Mike Kestner <mkestner@novell.com>
857 * ToolBar.cs: layout restructuring and redraw enhancements to support
858 formatting changes gracefully, like setting TextAlign, ImageList,
859 ButtonSize, and Appearance. Handles explicit button sizing quirks
860 of the MS controls. Things like flat toolbars ignoring button size
861 but becoming constant sized at the largest button's size. Normal
862 toolbars with an image set cannot be shrunk smaller than the image,
863 but text can be clipped/ignored.
864 * ThemeWin32Classic.cs: don't draw text if text_rect height or width
865 is zero. Seems like DrawString should be smart enough to not put
866 anything on screen though. Also trim labels and ellipsize at the char
868 Fixes #78711 and #78483.
870 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
872 * FolderBrowserDialog.cs: Disable "New Folder" button and
873 "New Folder" contextmenu menuitem if a folder like "My Computer"
876 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
878 * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
879 * FolderBrowserDialog.cs:
880 - Use MWFConfig to store and read size and position settings
881 - Added code to create a new folder (button or context menu).
882 Use TreeView labeledit to change the name of the new folder.
884 2006-07-14 Jackson Harper <jackson@ximian.com>
886 * TreeView.cs: Raise the OnAfterLabelEdit event correctly. Also,
887 when the tree is scrolled we end editing.
889 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
891 * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
894 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
896 WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
897 BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
898 BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
899 CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
900 ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
901 ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
902 ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
903 FormClosedEventHandler.cs, FormClosingEventArgs.cs,
904 FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
905 ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
906 ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
907 ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
908 ListViewItemSelectionChangedEventHandler.cs,
909 ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
910 ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
911 MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
912 PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
913 PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
914 RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
915 SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
916 SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs,
917 TabControlCancelEventHandler.cs, TabControlEventArgs.cs,
918 TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
919 TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
920 ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
921 ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
922 TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
923 TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
924 TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
925 WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
926 WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
927 WebBrowserNavigatingEventHandler.cs,
928 WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
930 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
932 MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
933 RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
934 SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
935 TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
936 ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
937 ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
938 ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
939 ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
940 ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
941 ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
942 ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
943 ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
944 TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
945 WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
946 ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
947 AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
948 BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
949 ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
950 FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
951 HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
952 ListViewItemStates.cs, MaskFormat.cs: Added
954 2006-07-13 Jonathan Chambers <joncham@gmail.com>
956 * PropertyGridView.cs: Fix keyboard navigation of drop down.
957 Patch from eno for bug 78558.
959 2006-07-13 Jackson Harper <jackson@ximian.com>
961 * TreeView.cs: When an edit is finished make sure that the
962 selected node is visible.
963 - When setting the top/bottom use the scrollbars is_visible, so
964 everything will be set correctly even if the tree isn't visible
967 2006-07-13 Jackson Harper <jackson@ximian.com>
969 * ComboBox.cs: Revert the item->index part of my previous patch.
970 * TreeView.cs: Use LostFocus instead of Leave for detecting when
971 the edit box has lost focus (duh).
972 - Just make the edit box not visible when we get return, that will
973 take the focus, which will call EndEdit
974 * TreeNode.cs When we start editing, notify the treeview.
976 2006-07-12 Jackson Harper <jackson@ximian.com>
978 * ComboBox.cs: Clear out old items before setting the item list.
979 This prevents databound controls from having their items added
981 - Switch the combobox to use indices whereever possible instead of
982 using Item's. This allows usto navigate through lists that have
983 more then one item with the same string value (ie a, b, b, a).
984 - Scroll the listboxes scrollbar when a non visible item is
986 - Allow keypress to cycle through all the possible values. For
987 example if you have b1, b2, b3 and hold down the B key all the
988 values will be cycled through.
990 2006-07-12 Jackson Harper <jackson@ximian.com>
993 * ListView.cs: Don't need to override SETFOCUS anymore, we can do
994 this using the internal methods.
995 * Control.cs: Add OnGotFocusInternal. A new method that allows
996 controls to "override" OnGotFocus and change focus behavior if
998 - Same thing for LostFocus
999 * ComboBox.cs: Pass off focus to the text control properly.
1001 2006-07-12 Alexander Olk <alex.olk@googlemail.com>
1003 * FileDialog.cs: Added GetFoldersOnly to MWFVFS
1004 * FolderBrowserDialog.cs: Almost a complete rewrite.
1005 - Better support for Environment.Specialfolders
1006 - Added support for MWFVFS
1007 - Made setting SelectedPath work
1009 2006-07-12 Jackson Harper <jackson@ximian.com>
1011 * Control.cs: Optimze getting all the controls.
1013 2006-07-11 Jackson Harper <jackson@ximian.com>
1015 * ContainerControl.cs: Override SETFOCUS in the container control,
1016 so that it is not selected on mouse click.
1018 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
1020 * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel.
1021 Hopefully we will have a better way once all of focus is complete.
1023 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
1025 * ThemeWin32Classic.cs: Commented out some debug code and fixed
1026 a compile error with csc.
1028 2006-07-11 Jackson Harper <jackson@ximian.com>
1030 * Control.cs: When hiding a control only select the next control
1031 if the current control was focused.
1032 - Don't handle enter/leave when setting/killing focus, this is
1033 done by the container control.
1034 - Remove is_selected, it's not needed anymore.
1035 - Add utility methods for selecting a child control, and for
1036 firing the Enter/Leave events.
1037 * ContainerControl.cs: When a control is activated fire the
1039 - Don't wrap when processing the tab key, so that focus can be
1040 moved outside of the container.
1041 - Use the correct active control
1043 2006-07-11 Jackson Harper <jackson@ximian.com>
1045 * ComboBox.cs: Remove some debug code that was blinding me.
1046 * UpDownBase.cs: These controls actually aren't implicit, they are
1047 visible to the user.
1049 2006-07-10 Chris Toshok <toshok@ximian.com>
1051 * DataGrid.cs: move back to the is_adding boolean field. god i
1052 hate this is_editing/is_adding/is_changing stuff.
1054 2006-07-10 Chris Toshok <toshok@ximian.com>
1056 * DataGridTableStyle.cs: just check if the property type is bool.
1057 if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
1058 Don't use CanRenderType.
1060 * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
1061 if our text == NullText. Remove CanRenderType.
1063 * DataGridBoolColumn.cs: nuke CanRenderType.
1065 * DataGrid.cs: reenable some code to end the current edit inside
1066 of set_CurrentCell. This fixes the other 1.1.16 regression.
1067 Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
1068 Also, remove the visible_row_count arg from CalcRowHeaders, since
1069 we don't need to worry about the actual height of the area.
1071 2006-07-10 Chris Toshok <toshok@ximian.com>
1073 * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
1076 * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
1077 the real sense of the IsInEditOrNavigateMode property (true =
1078 navigate, false = edit). Also, update OnKeyPress to reflect this.
1080 * DataGridTableStyle.cs (CreateColumnsForTable): even if the
1081 column style exists, we still need to set its property descriptor
1082 to match up with our list manager.
1084 2006-07-10 Chris Toshok <toshok@ximian.com>
1086 * ThemeWin32Classic.cs: implement the new row/header painting
1087 approach. The parent row painting will likely go away and
1088 replaced with label controls, but the rest seems to work ok (and
1091 * Theme.cs: change the way we draw datagrid rows. we don't draw
1092 the row headers as a block now. Instead we draw them in the
1093 normal draw-row loop. Add some calls for drawing parent rows and
1096 * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
1097 a default table style. Set the defaults from ThemeEngine.Current,
1098 not SystemColors. Fix lots of misc issues with property setters.
1100 * DataGrid.cs: move loads of style information out of this class
1101 as it's being duplicated with DataGridTableStyle. keep track of a
1102 special DataGridTableStyle for the properties we used to mirror
1103 here. Switch all the style properties to access this table style
1104 instead of instance fields of this class. Also add a internal
1105 class to represent parent rows (more needs to be stored here, like
1106 the selection state from the parent table, as well as the
1107 expansion state.) Also, for datasources with relations, do the
1108 right thing for collapse/expand, and add support for the
1109 navigation/parent row buttons.
1111 Lastly, fix the crash in the 1.1.16 build.
1113 * GridTableStylesCollection.cs: make the explicit interface
1114 implementations call the class's methods as opposed to duplicating
1117 * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
1118 0 so the text doesn't jump around when we move the cursor.
1120 2006-07-10 Jackson Harper <jackson@ximian.com>
1123 * ListBox.cs: Match MS's ToString (this makes debugging focus
1124 stuff infinitely easier).
1126 2006-07-10 Jackson Harper <jackson@ximian.com>
1128 * Control.cs (SelectNextControl): When checking the control's
1129 parent use this instead of ctrl.parent so that null can be passed
1130 to SelectNextControl. (I have unit tests for this).
1131 - Remove unused var.
1133 2006-07-10 Chris Toshok <toshok@ximian.com>
1135 * CurrencyManager.cs: correct one regression, the removal of the
1136 finalType field. Also, add a MonoTODO on CanAddRows, implement
1137 Refresh() correctly, and fix some event emission in
1140 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
1142 * FileDialog.cs: Don't use brackets for new folders if they exist
1143 under *nix. Instead use -(number of existing folders +1).
1145 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
1148 - Fixed really nasty bug #78771
1149 - Don't block the whole GUI when reading directories with a lot of
1150 entries. Use an other thread instead and call BeginInvoke to
1151 update the ListView in MWFFileView
1153 2006-07-07 Chris Toshok <toshok@ximian.com>
1155 * Control.cs (Dispose): release any Capture when disposing.
1157 2006-07-07 Chris Toshok <toshok@ximian.com>
1159 * LinkLabel.cs (Select): if we chain up to the parent, set
1160 focused_index to -1 so we'll search for the first available link
1161 the next time the user tabs into us. Also, if the direction is
1162 backward and focused_index == -1, start the search from the last
1165 2006-07-07 Chris Toshok <toshok@ximian.com>
1167 * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
1168 is beyond the end of the text, don't do anything.
1169 (CreateLinkPieces): set our ControlStyles.Selectable based on
1170 whether or not we have any links.
1171 (Link.Invalidate): use a loop instead of foreach.
1172 (Link.set_Start): null out owner.sorted_links so it'll be
1173 recreated by CreateLinkPieces.
1175 2006-07-06 Chris Toshok <toshok@ximian.com>
1177 * LinkLabel.cs: revert the SetStyle change.
1179 2006-07-06 Chris Toshok <toshok@ximian.com>
1181 * LinkLabel.cs (.ctor): SetStyle Selectable to true.
1182 (OnEnableChanged): s/Refresh/Invalidate
1183 (OnGotFocus): if we have a focused index already, refocus it (so
1184 if we mouse out/in to the window it'll focus the right link).
1185 (OnKeyDown): move the tab handling out of here.
1186 (OnLostFocus): don't set focused_index to -1, so we can refocus it
1188 (OnMouseDown): don't Capture here - Control handles it. Also,
1189 focus the active link.
1190 (OnMouseUp): don't deal with Capture.
1191 (OnPaintBackgroundInternal): remove.
1192 (OnTextAlignChanged): CreateLinkPieces before calling the
1193 superclass's method.
1194 (OnTextChanged): call CreateLinkPieces before calling superclass's
1196 (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
1198 (Select): implement this, moving the selection between different
1199 links, and call parent.SelectNextControl if we don't have another
1200 link to focus in the given direction.
1201 (CreateLinkPieces): call Invalidate instead of Refresh.
1203 2006-07-06 Chris Toshok <toshok@ximian.com>
1205 * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
1206 new LinkLabel internals.
1208 * LinkLabel.cs: fairly major rewrite. get rid of all the loops
1209 over pieces looking for active/focused/etc links. also, deal with
1210 runs of text (and links) with embedded \n's in them, and use
1211 MeasureCharacterRanges instead of MeasureString to figure out the
1212 regions text occupies. Lastly, do the usual s/Refresh/Invalidate
1215 2006-07-04 Jackson Harper <jackson@ximian.com>
1217 * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
1218 XKB or key auto repeat, do it manually. Without key auto repeat,
1219 when a key is held down we get key press, key release, key press,
1220 key release, ... with auto repeat we get key press, key press, key
1221 press ..., and then a release when the key is actually released.
1223 2006-07-03 Jackson Harper <jackson@ximian.com>
1226 * ThemeWin32Classic.cs: Tabs do not obey normal background color
1227 rules, they are always control color regardless of the background
1230 2006-07-02 Alexander Olk <alex.olk@googlemail.com>
1232 * FileDialog.cs: Added internal class MWFConfig.
1233 Removed Registry support and replaced it with support for the new
1234 MWFConfig class. See MWFConfig comments for more information.
1236 2006-06-30 Alexander Olk <alex.olk@googlemail.com>
1238 * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
1239 rectangle. Added some patches from eno from bug #78490 and fixed
1240 the arrow position for small up and down CPDrawScrollButtons.
1242 2006-06-30 Jackson Harper <jackson@ximian.com>
1244 * InternalWindowManager.cs: Remove some debug code.
1245 * Form.cs: When an MdiParent is set to null, the window is
1246 "detatched" and becomes a normal window.
1247 * MdiClient.cs: Don't bring the new child form to the front until
1248 it is activated (setting it as active does this), this makes the
1249 previously active forms titlebar get redrawn as inactive.
1251 2006-06-29 Peter Dennis Bartok <pbartok@novell.com>
1253 * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
1256 2006-06-29 Mike Kestner <mkestner@novell.com>
1258 * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
1259 arrow in keynav state. Fixes #78682.
1261 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
1263 * PrintDialog.cs: Reorder, relayout, remove extra code, set tab
1264 order (fixes #78393)
1266 2006-06-28 Jonathan Pobst <monkey@ipobst.com>
1268 * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs,
1269 ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
1270 ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
1271 FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
1272 GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
1273 ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs,
1274 PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
1275 Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
1276 TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
1277 ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
1278 enumerations (FlagsAttribute, SerializableAttribute, added/removed
1281 2006-06-28 Mike Kestner <mkestner@novell.com>
1283 * ComboBox.cs: implement scroll wheel support. Fixes #78360.
1285 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
1288 PropertyGridTextBox.cs : explicitly set BackColor to differentiate
1289 item lines from other area (It also makes BackColor consistent and
1290 compatible with .NET). Fixed bug #78564.
1292 2006-06-28 Jonathan Chambers <jonathan.chambers@ansys.com>
1294 * PropertyGrid.cs: refresh toolbar when PropertySort is set.
1295 Patch from Eno for #78555.
1297 2006-06-27 Chris Toshok <toshok@ximian.com>
1299 * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
1301 * DataGridColumnStyle.cs: same.
1303 * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
1305 * DataGridDrawingLogic.cs: nuke.
1307 2006-06-27 Chris Toshok <toshok@ximian.com>
1309 * DataGridTableStyle.cs: clean up the constructors, and build the
1310 list of child relations for this table. I have no idea if this is
1311 where we should be doing it (it probably isn't), but since we're
1312 already iterating over the properties..
1314 * DataGrid.cs: add row resizing. for now we add a DataGridRow
1315 struct and array for keeping track of row information, similar to
1316 what's shown in a hack on
1317 http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
1319 * Theme.cs: be consistent about the naming of DataGrid methods,
1320 prefering ColumnWidths and RowHeights over columnsWidths and
1323 * ThemeWin32Classic.cs: same, and also add support for variable
1324 sized rows (and the +/- expansion icons for related rows).
1326 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
1328 * TextBoxBase.cs: Applied Eno's patch from #78660
1330 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
1332 * Form.cs (ScaleCore): We don't want to scale our form if it's
1333 state is minimized or maximized, but we still need to scale our
1334 child windows. Also, added try/finally block to ensure layout
1335 gets reset (Fixes #78697)
1337 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
1339 * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
1341 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
1343 * Form.cs: Fixed c+p error and added check to resize form if minimum
1344 size is bigger than current size (Fixes #78709)
1346 2006-06-26 Peter Dennis Bartok <pbartok@novell.com>
1348 * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
1350 2006-06-26 Mike Kestner <mkestner@novell.com>
1352 * ComboBox.cs: only do Keypress handling in the combo when there
1353 are items in the collection. Fixes #78710.
1355 2006-06-26 Chris Toshok <toshok@ximian.com>
1357 * Binding.cs: make this work bi-directionally. also, clear up
1358 other mixups between Push/Pull Data (e.g. we're supposed to pull
1359 data when validating).
1361 * BindingManagerBase.cs: trim some fully qualified collection
1364 * PropertyManager.cs (get_IsSuspended): oops, fix this check.
1366 2006-06-23 Chris Toshok <toshok@ximian.com>
1368 * PropertyManager.cs: It appears (according to the unit tests)
1369 that PropertyManager doesn't use
1370 PropertyDescriptor.AddValueChanged to track propery value changes
1371 in its datasource, but uses the same scheme as Binding, where it
1372 looks for a <Property>Changed event and binds to it.
1374 Also, according to the docs, IsSuspended always returns false for
1375 a property manager with a non-null datasource.
1377 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
1379 * Form.cs: (ShowDialog): If we're returning a forced cancel we still
1380 need to update the actual DialogResult. (Fixes #78613)
1382 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
1384 * Form.cs (ShowDialog): Release any captures before running the
1385 new message pump (fixes #78680)
1387 2006-06-22 Mike Kestner <mkestner@novell.com>
1389 * ListView.cs: Layout column widths properly in details mode even
1390 if HeaderStyle.None is set. Fixes #78691.
1392 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
1394 * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
1396 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
1398 * Control.cs (ContainsFocus): Using new driver method to get focused
1399 window, instead of trying to use internal tracking var, which can
1400 recursion issues (Fixes #78685)
1401 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
1402 XplatUIWin32.cs: Added GetFocus method to return focused window
1404 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1406 * ColorDialog.cs: when the mouse button is pressed inside the color
1407 matrix, don't let the cursor move out of it until the button is
1408 released, which is the behavior on windows. Changed 'colours' by
1409 'colors' to use the same word consistently.
1411 2006-06-21 Chris Toshok <toshok@ximian.com>
1413 * DataGrid.cs: add in some basic navigation stuff (navigating to a
1414 child relation and back, using a stack). Also, remove
1415 GetDataSource and the code that calls it - it's not needed. Also,
1416 track CurrencyManager.ListName's removal.
1418 2006-06-21 Chris Toshok <toshok@ximian.com>
1420 * CurrencyManager.cs: push some of the original type checking from
1421 BindingContext.CreateBindingManager to here, and remove some of
1422 the finalType stuff. Need more tests to make sure I've got the
1423 ListName part right, and we might need more in SetDataSource.
1425 * PropertyManager.cs: add a ctor that takes just the datasource,
1426 and no property name. Make SetDataSource work with a null
1427 property_name, and make Current return the data_source if the
1428 property descriptor is null. this makes 'string foo = "hi";
1429 BindingContext[foo].Current' return "hi" as it should.
1431 * RelatedCurrencyManager.cs: make this code more generic - there's
1432 no reason the parent manager has to be CurrencyManager, and
1433 there's no reason to pass the DataRelation. It suffices to use a
1434 BindingManagerBase and PropetyDescriptor.
1436 * RelatedPropertyManager.cs: make a similar change here.
1438 * BindingContext.cs: make CreateBindingManager the beautiful, tiny
1439 flower I knew it could be.
1441 2006-06-20 Chris Toshok <toshok@ximian.com>
1443 * PropertyManager.cs: the PropertyChangedHandler is invoked when
1444 data in the source has changed and we need to update the control,
1445 so s/PullData/PushData.
1447 * CurrencyManager.cs: Refresh is meant to update the control from
1448 data in the datasource. So, s/PullData/PushData.
1450 * BindingContext.cs: add more ugliness (we weren't handling the
1451 case where data_source = DataTable and data_member = column_name).
1453 * Binding.cs: fix PushData/PullData mixup. Both are interpreted
1454 from the perspective of the datasource. PullData pulls from the
1455 control, PushData pushes to the control.
1457 2006-06-20 Chris Toshok <toshok@ximian.com>
1459 * BindingContext.cs: rewrite the CreateBindingManager code to
1460 handle navigation paths more or less properly. This could
1461 definitely stand some more work, in particular to push the
1462 recursion up to the toplevel. But that relies on fixes in other
1463 places (System.Data comes to mind).
1465 Also, move to a flat hashtable (and encode the twolevel nature of
1466 the dictionary into the hash key). This lets us implement the
1467 IEnumerable.GetEnumerator method.
1469 * RelatedCurrencyManager.cs: new class. Update our view based on
1470 our relation and our parent CurrencyManager's position.
1472 * CurrencyManager.cs: split out some logic from the ctor into
1473 SetView, so it can be called from the new RelatedCurrencyManager
1476 * RelatedPropertyManager.cs: new class. Update our datasource
1477 based on the position of our parent CurrencyManager.
1479 * PropertyManager.cs: split out some logic from the ctor into
1480 SetDataSource, so it can be called from the new RelatedDataSource
1481 subclass. Also, make the Current getter return the value
1482 of the PropertyDescriptor, not the data_source.
1484 * Binding.cs: no need to duplicate the string splitting code here.
1486 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
1489 - set_Enabled: OnEnabledChanged is not called if the inherited state
1490 of the control is not altered, even though we might be changing the
1491 internal state of the control (#78458)
1492 - set_Enabled: (Re)Moved the enabling/disabling of the window to
1493 OnEnabledChanged, to allow easy altering of any child window state
1494 - OnEnabledChanged: Added code to enable/disable driver window state
1495 - OnParentEnabledChanged: Instead of firing the event, call
1496 OnEnabledChanged, which will fire the event and also a) set driver
1497 window state and pass the enabled state to any grandchildren (#78458)
1499 2006-06-19 Jackson Harper <jackson@ximian.com>
1501 * InternalWindowManager.cs: We don't set the cursor explicitly
1502 thats done via the response to NCHITTESTs.
1503 - Don't need to adjust for titlebar heights anymore, the
1504 coordinates are coming in the correct coordinates now (see peters
1508 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
1510 * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
1511 being translated relative to whole window, instead of client window.
1512 That caused broken offsets on mouseclick (and caused gas for our
1513 InternalWindowManager)
1515 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
1518 - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
1519 - Undo(): Added replay of cursor move on DeleteChars action; added
1520 calling Undo() again if a recorded cursor move is invalid (to
1521 ensure that some action is performed on Undo)
1522 * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
1524 2006-06-16 Jackson Harper <jackson@ximian.com>
1526 * MdiClient.cs: Instead of just sizing maximized windows when
1527 there is a resize we also have to adjust the Y of minimized
1528 windows, so they stay pinned to the bottom of the mdi container.
1529 - Eliminate separate tracking of the active control, we can just
1530 get this from the controls collection.
1531 - Paint the decorations for the newly activated titlebar so we get
1533 * InternalWindowManager.cs:
1534 * ThemeWin32Classic.cs: Minimized windows get all three buttons
1535 even if they are a tool window.
1537 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
1539 * TextControl.cs (Undo): Handle non-existent cursor locations in the
1540 undo buffer, these can happen when text was deleted and the cursor
1541 was recorded first. Since we will also have a recorded cursor
1542 after the delete this is not an issue. (Fixes #78651)
1544 2006-06-14 Peter Dennis Bartok <pbartok@novell.com>
1546 * AccessibleObject.cs: Remove dependence on Control.is_selected;
1547 instead properly track control states internally (allows us to
1548 remove is_selected from Control)
1550 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1552 * ImageListStreamer.cs: correctly generate the 1bpp mask for images
1553 whose width is not a multiple of 8.
1555 2006-06-13 Jackson Harper <jackson@ximian.com>
1557 * MdiClient.cs: Only maximize the next child if the current one
1560 2006-06-13 Chris Toshok <toshok@ximian.com>
1562 * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
1563 modified. Also, guard against grid or grid_drawing being null in
1566 * DataGrid.cs: Reformat tons of getters/setters. In the
1567 DataMember setter, just call SetNewDataSource instead of
1568 duplicating some of its functionality. In SetNewDataSource, don't
1569 check ListManager for null, since the property getter creates the
1572 * DataGridTableStyle.cs: don't set TableStyle or call
1573 SetDataGridInternal on the column here, it's done in
1574 GridColumnStylesCollection.Add.
1576 * GridColumnStylesCollection.cs: fix all the explicit interface
1577 implementations to just call our methods. Nuke AddInternal() and
1578 move the body of it to Add(). Also, add a call to
1579 column.SetDataGridInternal to Add().
1581 * DataGridTextBoxColumn.cs (.ctors): call this() instead of
1582 base()+duplicate code. Also, use the Format property instead of
1583 format to generate an Invalidate ala MS. Lastly, create the
1584 textbox here, unconditionally.
1585 (set_Format): call Invalidate.
1586 (get_TextBox): no need to call EnsureTextBox.
1587 (Commit): remove the message box.
1588 (Edit) remove the call to EnsureTextBox.
1589 (EndEdit): call HideEditBox instead of ReleaseHostedControl.
1590 (EnterNullValue): no need to check textbox for null.
1591 (HideEditBox): no need to check textbox for null.
1592 (SetDataGridInColumn): add the textbox to the grid's controls.
1593 (EnsureTextBox): nuke.
1595 2006-06-13 Jackson Harper <jackson@ximian.com>
1597 * MdiWindowManager.cs: Hook up to the maximized menus paint event
1598 and redraw the buttons when needed. Unhook when the window is
1600 * MainMenu.cs: Add an internal Paint event, the mdi window manager
1601 needs this so that it can redraw its buttons when the menu is
1603 * InternalWindowManager.cs:
1604 * Form.cs: The method order has changed for DrawMaximizedButtons,
1605 so that it can be a PaintEventHandler.
1607 2006-06-13 Jackson Harper <jackson@ximian.com>
1609 * MdiClient.cs: When we close a maximized mdi window, the next mdi
1610 window is activated and maximized, even if it wasn't before.
1611 - When a new window is activated repaint the decorations of the
1612 old one, so that it no longer has the Active "look" (the blue
1614 * InternalWindowManager.cs: Open up CreateButtons to base classes
1615 so they can recreate the buttons on state changes.
1616 - If a window is maximized give it all three buttons
1617 * MdiWindowManager.cs: Create the titlebar buttons when the state
1618 is changed, this is needed because a toolwindow will not have all
1619 three buttons until it is maximized.
1621 2006-06-13 Atsushi Enomoto <atsushi@ximian.com>
1623 * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
1626 2006-06-12 Jackson Harper <jackson@ximian.com>
1628 * KeysConverter.cs: Make sure we handle the Ctrl special case
1629 if its the only key.
1631 2006-06-12 Jackson Harper <jackson@ximian.com>
1633 * Theme.cs: Add a method to get the size of a managed window
1635 * InternalWindowManager.cs: Remove the ButtonSize property, this
1636 should be retrieved from the theme.
1637 * MdiWindowManager.cs: Get the button size from the theme
1638 * ThemeWin32Classic.cs: Make the method to get the managed window
1639 titlebar button size public.
1640 - Handle the different button sizes of maximized toolwindows
1641 (should match any maximized window).
1642 - Get the titlebar height from the theme, not the WM (which gets
1645 2006-06-12 Jackson Harper <jackson@ximian.com>
1647 * InternalWindowManager.cs: Handle NC Double Clicks, passing the
1648 event down to the mdi window manager.
1649 - Expose some extra stuff to base classes
1650 - Make sure to end the Capture on an NC Mouse up, so that we can
1651 get double clicks properly, and the sizing doens't stick.
1652 - When doing PointToClient contain it in the workable desktop
1653 area, this prevents windows from changing size when the cursor is
1654 pulled outside of the working area while sizing.
1655 * MdiWindowManager.cs: When we get a double click maximize the
1657 - Reset the cursor after handling mode changes.
1659 2006-06-12 Peter Dennis Bartok <pbartok@novell.com>
1661 * XplatUIX11.cs (WorkingArea): Read the actual workarea for the
1662 current desktop, instead of just assuming a 0, 0 origin. This
1663 is needed for our internal window manager, to know the top
1664 margin of the desktop
1666 2006-06-12 Chris Toshok <toshok@ximian.com>
1668 * DataGrid.cs (set_CurrentCell): concede focus as we move around.
1669 we need this to get rid of the selected background in the bool
1671 (CancelEditing): move the ConcedeFocus call to above the Abort
1672 call. Also, set is_changing to false and invalidate the row
1673 header if we were changing before.
1674 (ProcessKeyPreviewInternal): remove, since noone outside this
1675 class calls it anymore. Roll the code into ProcessKeyPreview.
1676 (EndEdit): remove the internal version.
1677 (InvalidateCurrentRowHeader): make private.
1679 * DataGridBoolColumn.cs: simplify this class a bunch. remove the
1680 Keys.Escape handling (and with it the last call to
1681 DataGrid.EndEdit from outside the class.)
1684 2006-06-12 Chris Toshok <toshok@ximian.com>
1686 * DataGridTextBox.cs (.ctor): isedit defaults to false.
1687 (OnKeyPress): set isedit to true.
1688 (ProcessKeyMessage): remove Keys.Enter handling from here. it's
1689 already handled by the grid.
1691 * DataGrid.cs (set_CurrentCell): more work here. it's still not
1693 (set_DataSource): SetDataSource always returns true, so stop
1694 putting it in an if statement.
1695 (EndEdit): get rid of some {}'s
1696 (ProcessGridKey): return true in case Keys.Escape.
1697 (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
1698 (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
1699 PositionChanged, stopped connecting to CurrentChanged.
1700 (GetDataSource): simplify this a bunch.
1701 (SetDataSource): change return type from bool to void.
1702 (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
1703 to this, and make sure we don't set ListManager.Position inside
1705 (OnListManagerItemChanged): if we're passed an actual index,
1708 * CurrencyManager.cs (set_Position): don't call PullData here.
1710 2006-06-09 Jackson Harper <jackson@ximian.com>
1712 * TreeNode.cs: Recalculate the visible order before doing the
1713 Expand/Collapse Below calls, because those calls generate an
1715 - Reduce calls to the TreeView property, which is mildly expensive
1716 by using a local var.
1717 * Form.cs: Layout the MDI child windows when creating the parent
1719 - Don't use the internal constructor anymore
1720 * MdiClient.cs: use the parent form width/height (if available)
1721 when laying out the child windows, we do this because the
1722 mdiclient isn't docked yet when the initial layout is done.
1723 - Don't need an internal constructor anymore.
1725 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1727 * FileDialog.cs: handle access errors when trying to create a folder
1728 or changing to a directory. No need to initialize out parameters.
1730 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
1732 * FileDialog.cs: Append a number when creating a new folder if the
1733 folder already exists (use parenthesis instead of square brackets)
1735 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
1738 - Disabled registry support for windows and added better registry
1739 error checking for other systems (need to investigate why it
1740 works perfectly on my system)
1741 - If a folder already exist show an error MessageBox instead of
1742 trying to create an indexed name.
1743 - Fixed a non intentional typo.
1745 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1747 * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
1749 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
1751 * FileDialog.cs: When creating a new folder don't crash if the
1752 folder already exists.
1754 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
1756 * FileDialog.cs: Allmost a complete rewrite.
1757 - added a "virtual" file system that handles the differences
1758 between unix and windows file systems (especially the directory
1759 structure). Moved most of the directory and file handling code
1761 Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
1762 UnixFileSystem and FSEntry.
1763 - Recently used folder/directory, size, location and used file names
1764 (file name ComboBox) are now stored in the registry and get read
1765 before the dialog shows up (fixes part 6 of bug #78446).
1766 - Creation of new folders/directories is now possible (context menu
1767 or ToolBar). Added TextEntryDialog for this that fills in the gap
1768 until ListView.LabelEdit works.
1769 - Fixed cursor handling (bug #78527) and focus handling for
1771 - Various "Search in" ComboBox enhancements. The content of the
1772 dropdown listbox now almost matches ms.
1773 - Changed the behaviour when the user switches to SpecialFolder
1774 Recent to show the ListView in View.Details.
1775 - Beside using the ToolBar to change the View property of the
1776 file ListView it is now possible to use the context menu too.
1778 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
1780 * ComboBox.cs: Don't create a new ObjectCollection when an item
1781 gets inserted. Just insert the item in the existing object_items
1784 2006-06-08 Jackson Harper <jackson@ximian.com>
1786 * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
1787 that the treeview and root node checks are done also, this fixes a
1788 regression i caused in the unit tests.
1790 2006-06-07 Wade Berrier <wberrier@novell.com>
1792 * RichTextBox.cs: More ISO8859-1 -> unicode
1794 2006-06-07 Mike Kestner <mkestner@novell.com>
1796 * ComboBox.cs : use items to hold highlight/selection so that
1797 collection insertions don't require synchronization.
1799 2006-06-07 Jackson Harper <jackson@ximian.com>
1801 * InternalWindowManager.cs: Simplify (and FIX) the window sizing
1802 routine. We now always keep the sized edge at the cursor instead
1803 of computing movement and adjusting rects. There is one buglet
1804 with this method though when the cursor is moved over area that
1805 the window can not expand too (such as the toolbars on the desktop).
1807 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1809 * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
1810 here. Fixes crash on startup in AlbumSurfer.
1812 2006-06-07 Peter Dennis Bartok <pbartok@novell.com>
1814 * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
1817 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1819 * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
1820 statement to avoid calling XNextEvent which will block if another thread
1821 took the event that we were expecting. Fixes bug #78605.
1823 2006-06-07 Mike Kestner <mkestner@novell.com>
1825 * ListView.cs : isolated checkbox clicking from the selection logic.
1826 Toggle check state on item doubleclicks. Really fixes #78454 part2.
1828 2006-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1830 * Form.cs: Check that the value passed to Form.DialogResult
1831 is a valid enum value.
1833 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1835 * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
1836 Computer'. Clicking it in the network view goes to 'My Computer'.
1837 Added CIFS filesystem type. Display the mount point of filesystems.
1838 Avoid duplicate mount points (happens for me with CIFS);
1840 2006-06-06 Jackson Harper <jackson@ximian.com>
1842 * InternalWindowManager.cs: Draw the maximized windows buttons
1845 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1847 * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
1848 all other dialogs. Fixes bug #78585.
1850 2006-06-06 Mike Kestner <mkestner@novell.com>
1852 * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
1853 Only invalidate checkbox on checkstate changes to avoid flicker.
1854 * ListBox.cs : avoid unselect/select when clicking selected item.
1855 avoid reselection flicker for already multiselected items.
1858 2006-06-06 Jackson Harper <jackson@ximian.com>
1860 * MdiWindowManager.cs: When the window is closed do an NCRecalc on
1861 the parent form so that the menu is removed if needed.
1863 2006-06-06 Mike Kestner <mkestner@novell.com>
1865 * ListBox.cs : add ScrollWindow call to UpdateTopItem. fix
1866 Prev/Next/PrevPage/NextPage/Home/End index calculation. Fixes #78559.
1868 2006-06-06 Mike Kestner <mkestner@novell.com>
1870 * CheckedListBox.cs : rebuild check collection on Add. Fixes #78426.
1873 2006-06-06 Jackson Harper <jackson@ximian.com>
1875 * Control.cs: Use the property (instead of the field) to get the
1876 default cursor so it is instantiated correctly.
1877 * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
1878 resizes so we need to manually repaint the window decorations here.
1879 - Set the titlebar button locations as soon as they are created,
1880 otherwise they are not set correctly on win32.
1882 2006-06-06 Chris Toshok <toshok@ximian.com>
1884 * CurrencyManager.cs (set_Position): call PullData before
1886 (AddNew): after calling IBindingList.AddNew, update our
1887 listposition, and call OnCurrentChanged/OnPositionChanged (without
1889 (OnCurrentChanged): remove the call to PullData from here.
1890 (OnItemChanged): remove the call to PushData from here.
1891 (OnPositionChanged): change the test from == null to != null to
1892 match the other methods.
1893 (ListChangedHandler): the grossest part of the patch. Implement
1894 this such that it passes the unit tests in CurrencyManagerTest and
1895 the output more or less matches that of MS's implementation.
1897 2006-06-06 Mike Kestner <mkestner@novell.com>
1899 * ListView.cs : only update check state on single click.
1900 * ThemeWin32Classic.cs : fix focus drawing for details view without
1901 fullrowselect. Fixes #78454.
1902 * XplatUIX11.cs : fix for double click emission.
1904 2006-06-05 Jonathan Chambers <jonathan.chambers@ansys.com>
1906 * PropertyGridView.cs : Applied Atsushi's patch to fix
1907 font dialog bug (#78197).
1909 2006-06-05 Jackson Harper <jackson@ximian.com>
1911 * TreeNode.cs: Compute the next node for expanding/collapsing
1912 correctly. We now factor in nodes without a NextNode
1913 correctly. (Fixes somes cases in nunit-gui).
1914 * InternalWindowManager.cs: Set the bounds when updating the
1915 virtual position of a tool window.
1917 2006-06-05 Chris Toshok <toshok@ximian.com>
1919 * DataGrid.cs: rename cached_currencymgr to list_manager.
1920 (set_CurrentCell): move SetCurrentCell code here, and clean it up
1922 (CurrentRow, CurrentColumn): single accessors so we can make the
1923 cursor movement code a lot easier to understand.
1924 (CurrentRowIndex): implement this in terms of CurrentRow.
1925 (BeginEdit): clean this up a bit.
1926 (CancelEditing): sort out the is_editing/is_changing/is_adding
1928 (EndEdit): minor changes.
1929 (OnKeyDown): add a comment about a (most likely) unnecessary
1931 (OnMouseDown): cancel editing when we click on a row header. And
1932 use the CurrentRow setter, not CurrentCell.
1933 (ProcessDialogKey): directly call ProcessGridKey.
1934 (UpdateSelectionAfterCursorMove): factor out this common block of
1935 code (it's used everywhere that we move the cursor by updating row
1937 (ProcessGridKey): pretty substantial overhaul. Use the
1938 CurrentRow/CurrentColumn properties to make the code a lot more
1939 readable. Only use the CurrentCell property when we have to
1940 modify both row and column at once. Tab behavior is still broken,
1941 and Delete is untested.
1942 (Select): if we have no selected rows, set selection_start to
1944 (EditCurrentCell): rename EditCell this. It was only ever invoked
1945 with CurrentCell as the arg, so drop the arg and rename it.
1947 * DataGridColumnStyle.cs: clean up the constructors a little, and
1948 drop CommonConstructor().
1950 * DataGridTextBox.cs (.ctor): set accepts_return to true so we
1951 actually get notified when the user hits it.
1952 (ProcessKeyMessage): *substantially* simplify this method.
1953 There's no reason (that I can see) for the textbox to be making
1954 calls into the datagrid at all. Remove all of them but the ones
1955 for Enter handling. those will take some more work.
1957 * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
1958 calling HideEditBox.
1959 (HideEditBox): if we have an active textbox, render it invisible
1960 without causing a re-layout of the datagrid.
1962 2006-06-05 Mike Kestner <mkestner@novell.com>
1964 * ListView.cs : fix NRE crasher when focuseditem is cleared by
1965 collection changes by resetting it to Items[0]. Fixes #78587.
1967 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1969 * MessageBox.cs: if the height of the text is larger than the icon_size,
1970 use that. Fixes bug #78575.
1972 2006-06-05 Jackson Harper <jackson@ximian.com>
1974 * TreeView.cs: Fix line drawing when scrolling. To do this each
1975 node is basically responsible for drawing its entire horizontal
1976 area. When drawing a node it draws its parent node lines if
1978 - Adjust the clip area to the viewport rectangle
1979 - Fix Left/Right key handling to match MS. (It expand/collapses
1980 and moves to parents/first child but does not move selection to
1982 - Fix SetTop to work with new bound calculation code
1983 - When scrollbars are no longer needed we need to reset scrolling
1984 vars and recalculate the visible order so the redraw is correct
1985 * TreeNode.cs: We can't expand/collapse nodes with no children.
1987 2006-06-03 John Luke <john.luke@gmail.com>
1989 * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
1990 so the colors work without dev packages
1992 2006-06-02 Peter Dennis Bartok <pbartok@novell.com>
1995 - Select: Implemented to just use activate. Seems to match MS
1996 behaviour closest. Documented to only do actual control walking
1997 based on it's parameters if in a container control so I moved
1999 - Removed selection check logic from our internal Select() method
2000 * ContainerControl.cs:
2001 - Select: Moved selection logic from Control here, since MS documents
2002 that containers obey the bool arguments. No longer calling base
2004 2006-06-02 Jackson Harper <jackson@ximian.com>
2006 * TreeView.cs: If the selected node isn't changed when we get
2007 focus update the previously selected node so that we see the
2010 2006-06-02 Mike Kestner <mkestner@novell.com>
2012 * ComboBox.cs: restructure grab and general mouse event handling.
2013 Make the composite control raise mouse events like it was a single
2014 control for leaves/enters/motion/up/down events. fix dropdown list
2015 coordinate mangling and refactor it into the scrollbar subclass to
2016 reduce code duplication. Fixes #78282 #78361 and #78457.
2018 2006-06-02 Mike Kestner <mkestner@novell.com>
2020 * ScrollBar.cs: remove Capture setting/clearing, as it happens
2021 automatically in the Control.WndProc.
2023 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2025 * FileDialog.cs: fix crash when running SharpChess, which sets the
2026 FilterIndex to 2 with only one Filter.
2028 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2030 * ToolBar.cs: add SizeSpecified property.
2031 * ToolBarButton.cs: when the ButtonSize is calculated by the container,
2032 try to figure out our real size, otherwise fallback to what the
2035 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
2037 * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
2038 * Control.cs (WndProc): MS always calls the DefWndProc to pass
2041 2006-06-01 Mike Kestner <mkestner@novell.com>
2043 * ListView.cs: revamp the focus management in ListView. It still
2044 causes churn of LostFocus/GotFocus emissions on clicks, but it's
2045 better than not handling focus at all. Will revisit when pdb feels
2046 the general focus handling is solid. Fixes #78526.
2048 2006-06-01 Jackson Harper <jackson@ximian.com>
2050 * TreeView.cs: Set the default border style in the constructor.
2051 - Move painting to use OnPaintInternal instead of capturing
2052 WM_PAINT, this is the correct way of doing things
2053 - UpdateBelow shouldn't invalidate the scrollbar area
2054 - Cap the top on update below in case the node was above the top
2055 of the viewport rectangle.
2056 - ExpandBelow and Collapse below need to obey Begin/End Update.
2057 * TreeNode.cs: Make is_expanded internal so the treenode
2058 collection can change it without firing the whole event chain.
2059 * TreeNodeCollection.cs: When clearing all the child nodes make
2060 sure to recalc the visible order.
2061 - Improve algo for remove the top node
2063 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
2065 * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
2066 SendMessage directly calling window procedures, which in turn might
2069 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
2071 * Control.cs: Don't handle WM_SETFOCUS if the same window already
2072 has focus (works around X11 sending a FocusIn after our SetFocus)
2073 * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
2075 2006-06-01 Alexander Olk <alex.olk@googlemail.com>
2077 * Mime.cs: Fix for the NET_2_0 build.
2078 NameValueCollection needs StringComparer now.
2080 2006-05-31 Chris Toshok <toshok@ximian.com>
2082 * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
2083 return (via an out parameter) the starting X of the column.
2084 (UpdateVisibleColumn): track change to FromPixelToColumn.
2085 (HitTest): add a ColumnResize case here.
2086 (DrawResizeLine): new function, probably poorly named.
2088 * DataGrid.cs (.ctor): get rid of cached_currencymgr_events. We
2089 only need to keep one reference.
2090 (set_ListManager): same.
2091 (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
2092 Also, add support for HitTestType.ColumnResize.
2093 (OnMouseMove): add column resize behavior here, and change the
2094 cursor to the correct one as we move around the datagrid.
2095 (OnMouseUp): terminate the column resize if we're resizing.
2096 (ProcessGridKey): from the MS docs, Alt-0 enters the null value
2097 for the current cell.
2098 (ConnectListManagerEvents): use cached_currencymgr.
2099 (DisconnectListManagerEvents): fill this in, using
2101 (SetCurrentCell): remove cached_currencymgr_events handling.
2102 (SetDataMember): only call DisconnectListManagerEvents if
2103 cached_currencymgr is != null.
2104 (SetDataSource): same.
2105 (OnListManagerCurrentChanged): cached_currencymgr_events ->
2108 2006-05-31 Jackson Harper <jackson@ximian.com>
2110 * BindingManagerBase.cs: Remove somedebug code that creeped into
2112 * TreeNode.cs: We get the indent level dynamically right now, so
2113 don't track it as a member.
2114 * TreeNodeCollection.cs: Make sure all nodes added to the list
2115 have parents, treeviews/topnodes setup properly.
2116 - Don't attempt to track indent level.
2118 2006-05-30 Jackson Harper <jackson@ximian.com>
2120 * BindingContext.cs: Create the currency manager tables here.
2121 This allows us to more easily create null tables (when bad data
2122 members are used), and more easily create related currency
2124 * CurrencyManager.cs: All the table creation stuff is done by the
2125 binding context now.
2126 - Current should throw an exception if listposition is -1.
2127 - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
2130 2006-05-30 Mike Kestner <mkestner@novell.com>
2132 * ListView.cs: allow reexpansion of zero-width column headers.
2135 2006-05-28 Chris Toshok <toshok@ximian.com>
2137 * CurrencyManager.cs (get_Current): after the late binding
2138 listposition = -1 fix, we need to guard against it here and return
2139 null, otherwise we raise an exception (which is swallowed
2140 elsewhere, and breaks datagrid databinding.)
2142 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
2144 * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
2145 than WM_SYSKEY, don't throw if get something unexpected (#78507)
2147 2006-05-26 Jackson Harper <jackson@ximian.com>
2150 * ThemeWin32Classic.cs: For color comparisons just use the ARGB
2151 values, it's faster and it's all we care about (we don't care if
2152 the names aren't equal).
2153 * KeyboardLayouts.cs: Eliminate some dead code.
2155 * X11Keyboard.cs: Lazy init keyboard detection.
2156 - Cleanup access modifiers a little.
2158 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
2160 * XplatUIX11.cs: Once again, attempting to get layout just right.
2162 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
2164 * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
2165 the sizes of each link section, that will result in sizes that
2166 match DrawString's layout (Fixes #78391)
2168 2006-05-27 Alexander Olk <alex.olk@googlemail.com>
2170 * FileDialog.cs: If AddExtension property is true autocomplete the
2171 extensions in SaveFileDialog correctly. Fixes bug #78453.
2172 Set MyNetwork and MyComputer to "C:\" for windows. This should
2173 fix part 8 of bug #78446 for now.
2175 2006-05-26 Chris Toshok <toshok@ximian.com>
2177 * DataGrid.cs (ColumnStartedEditing): fill these in. for now just
2178 invalidate the current row header if we need to, but presumably
2179 we'll invalidate the row corrsponding to the bounds or
2181 (GridHScrolled): switch back to this method, as it's part of the
2183 (GridVScrolled): same.
2184 (OnMouseWheel): hack up something that more or less works. Call
2185 GridHScrolled/GridVScrolled directly, instead of duplicating much
2187 (EnsureCellVisibility): reinstate a bunch of this code, since we
2188 can't just set the scrollbar Value and expect to do all the work
2189 in the ValueChanged handler. Also, Call Update() after scrolling
2190 in one direction so the other XplatX11.ScrollWindow call has the
2191 proper stuff in the proper places.
2192 (EditCell): set is_editing to true before calling .Edit.
2194 * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
2195 don't bother comparing first.
2196 (OnKeyPress): call grid.ColumnStartedEditing before calling
2197 base.OnKeyPress. this will set is_changing and invalidate the row
2198 header if necessary.
2199 (ProcessKeyMessage): for WM_CHAR messages, call
2200 ProcessKeyEventArgs directly. swallow anything other than WM_CHAR
2203 * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
2204 it's done in the DataGrid.
2205 (NextState): call grid.ColumnStartedEditing, which takes care of
2206 invalidating the row header (and setting is_changing).
2208 * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
2209 here. it's done in the DataGrid.
2211 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2213 * Control.cs: allow changing the cursor when the mouse position is
2214 out of bounds but Capture is set.
2215 * LinkLabel.cs: handle the case when the mouse button is pressed on the
2216 linklabel but released somewhere else.
2218 2006-05-25 Jackson Harper <jackson@ximian.com>
2220 * TreeView.cs: When we get focus if there is no selected node make
2222 - Remove some uneeded setup code from Draw.
2223 * TreeNodeCollection.cs: If the tree doesn't have a top node when
2224 a new node is inserted make the new node the top.
2226 * Timer.cs: Use Utc time so that no local time zone stuff needs to
2227 be used (should be faster).
2229 2006-05-25 Chris Toshok <toshok@ximian.com>
2231 * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
2232 problem with the last commit.
2234 2006-05-25 Chris Toshok <toshok@ximian.com>
2236 * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
2237 need the invalidate call here, while scrolling right-to-left via
2238 the left arrow key (i.e. moving the editing cell while scrolling).
2240 * DataGrid.cs (.ctor): remove the initialization of
2241 ctrl_pressed/shift_pressed. We no longer track them using key
2242 up/down handlers, but by using Control.ModifierKeys. Also, switch
2243 to using ValueChanged handlers on the scrollbars instead of
2244 Scrolled event handlers. This simplifies a bunch of the scrolling
2246 (GridHValueChanged): rename from GridHScrolled, and change it to
2247 work with the new event args.
2248 (GridVValueChanged): same.
2249 (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
2250 (OnMouseWheel): actually scroll the datagrid. Don't change the
2252 (ProcessGridKey): correct all the keyboard navigation stuff I
2253 could find. Ctrl up/down/left/right/home/end work now.
2254 (EnsureCellVisibility): correct method name spelling. Also,
2255 simplify this a touch by not explicitly calling the
2256 ScrollToRow/ScrollToColumnInPixels methods. We just set the
2258 (OnKeyUpDG): no need for this method now.
2260 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2262 * LinkLabel.cs: display the OverrideCursor when hovering the label.
2265 2006-05-25 Chris Toshok <toshok@ximian.com>
2267 * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
2270 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
2272 * Application.cs: Moved setting of is_modal and closing to before
2273 we create the control, to allow the event handlers called as a
2274 result of creation affect closing. Also removed Gonzalo's previous
2275 change to setting DialogResult, the behaviour has been moved to
2278 - ShowDialog(): Removed explicit creation of the form, let RunLoop
2280 - ShowDialog(): If no dialog result is set, we need to return Cancel
2281 - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
2282 the close is cancelled
2284 2006-05-25 Jackson Harper <jackson@ximian.com>
2286 * StatusBar.cs: We only need to update the sizes of the other
2287 panels when we have auto size contents. Also we are only updating
2288 the contents of the panel, not the borders, so compensate for the
2289 border width (TODO: get this width from the theme somehow).
2290 * TreeView.cs: Scrollable is true by default
2291 - Use invalidate instead of refresh where needed
2292 - Factor the scrollable value into scrollbar updating
2293 - Update the scrollbars if the Scrollable property is altered
2294 - Update the selected node if its ImageIndex is changed
2295 - Handle null nodes in UpdateNode (mainly so we don't have to
2296 check if selected is null when updating it
2297 - Fix VisibleCount to use the ViewportRectangle so that scrollbars
2298 are factored into the visible count
2299 - Use VisibleCount for clarity in the code
2300 - When the font is changed we need to recurse through all the
2301 nodes and invalidate their sizes
2303 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2305 * Application.cs: set the DialogResult to fixed when the main form is
2306 hidden or destroyed while being modal.
2308 2006-05-25 Miguel de Icaza <miguel@novell.com>
2310 * Theme.cs: Use Tangoified messagebox icons.
2312 (GetSizedResourceImage): Also cope with width = 0 and do not
2313 trigger a warning in that case (0 means "give me your icon from
2314 the resouce, no special size needed).
2316 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
2318 * Application.cs: Leave runloop if the the main modal form is
2319 hidden (fixes #78484)
2321 2006-05-25 Atsushi Enomoto <atsushi@ximian.com>
2323 * BindingContext.cs : reject null datasource in Contains() and
2325 * CurrencyManager.cs : check data_member validity when data_source
2326 is dataset. When it is late binding, the initial position is -1.
2328 2006-05-24 Jackson Harper <jackson@ximian.com>
2330 * TreeNodeCollection.cs: Dont't recalculate the visible order on
2331 inserted nodes that aren't visible. This changes the
2332 max_visible_order which confuses scrollbar settings.
2333 - Use the enumerator to get the prev node instead of duplicating
2335 * TreeView.cs: Use new method for setting scrollbar values
2336 - Don't set the bounds every time the scrollbar is updated
2337 - When updating below the root node use an invalidate instead of a
2338 refresh to prevent the child controls (scrollbars) from being
2339 refreshed. (UpdateBelow still needs to be reworked anyways).
2340 - Reenable SetBottom now that visible orders are set correctly,
2341 added some debug code incase we ever get bad values there again.
2342 - Set the scrollbar max to 2 less then the max value, this
2343 compensates for the max value being one above the node count, and
2344 for scrollbars adding one extra "notch".
2345 - When drawing image nodes if there is an imagelist we draw the
2346 first image in the list if the supplied image index is out of the
2347 image list's bounds.
2349 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
2351 * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when
2352 we receive a size change from the WM (Fixes #78503)
2354 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
2356 * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip
2357 rectangle (Fixes #78501)
2359 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
2362 - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button
2364 - Fixed MouseMove to no longer switch pressed state unless the left
2365 mouse button is pressed. Atsushi provided the original patch (#78485)
2367 2006-05-24 Jackson Harper <jackson@ximian.com>
2369 * ScrollBar.cs: New internal methods that allow us to change a
2370 couple values on the scrollbar (the most common case is maximum
2371 and large change) without getting multiple invalidates.
2373 2006-05-24 Chris Toshok <toshok@ximian.com>
2375 * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
2376 (Edit): save off the original state in oldState, and set
2377 grid.is_editing to true.
2378 (OnKeyDown): abort editing if escape is pressed. also, call
2379 NextState if space is pressed.
2380 (OnMouseDown): call NextState.
2381 (NextState): factor out shared code from OnKeyDown and OnMouseDown
2382 here. Also, only invalidate the row header once (on the initial
2383 is_changing switch) to save on redraws.
2385 2006-05-24 Chris Toshok <toshok@ximian.com>
2387 * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
2388 if the value in the cell is different than it was before. This
2389 keeps us from triggering a layout when we move around a datarid
2390 with a highlighted cell.
2391 (Edit): suspend layout when creating/positining the text box, and
2392 resume passing false so we don't ever actually re-layout.
2393 (ReleaseHostedControl): same.
2394 (EnsureTextBox): reformat slightly, and set WordWrap to false.
2396 * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
2397 control-key sequences should go to the datagrid - remove that
2398 lock. Also, modify the conditions under which we move between
2399 cells when moving the cursor within a cell, and remove the "this"
2400 and "base" from field accesses. We weren't even consistent, given
2401 they all were in the base class.
2403 2006-05-24 Atsushi Enomoto <atsushi@ximian.com>
2405 * Binding.cs : (.ctor)
2406 An obvious NRE fix for BindingTest.CtorNullTest().
2408 2006-05-23 Chris Toshok <toshok@ximian.com>
2410 * TextBoxBase.cs (get_Text): don't add a trailing newline, add
2411 them between lines. This fixes some quirks editing cells in the
2414 2006-05-23 Jackson Harper <jackson@ximian.com>
2416 * TreeView.cs: Use begin/end update when doing expand/collapse all
2417 so that we don't get flicker on the scrollbar.
2419 2006-05-23 Jackson Harper <jackson@ximian.com>
2421 * TreeNode.cs: Bounds are computed 'on the fly' now. This allows
2422 treenode calculations to be independant of the painting code. To
2423 do this nodes track a visible order which is calculated by the
2425 - Call new methods for expanding/collapsing nodes. These methods
2426 use scrollwindow so we don't have to update everything below the
2428 * TreeView.cs: Refactored drawing and scrolling code. We don't
2429 need to update nodes when drawing anymore or calculate scrollbar
2431 - Added new methods for expanding/collapsing nodes. These methods
2432 use ScrollWindow so as to not have to redraw all the nodes below.
2433 * TreeNodeCollection.cs: Recalc visible order and scrollbars when
2434 we add/remove nodes or sort.
2435 - Handle removing the selected and the top node properly.
2437 2006-05-23 Chris Toshok <toshok@ximian.com>
2439 * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
2440 maybe this should actually happen in the datagrid code?
2441 (EndEdit): no need to invalidate anything, given that
2442 ReleaseHostedControl causes the datagrid to relayout, which
2443 invalidates everything anyway.
2445 * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
2447 (set_SelectionBackColor): call InvalidateSelection instead of
2449 (set_SelectionForeColor): same.
2450 (BeginEdit): Flesh this out a bit.
2451 (CancelEditing): only do any of this if we're editing/adding.
2453 (OnMouseDown): there's no need to cancel editing here, it's done
2455 (SetCurrentCell): only invalidate the current row header if it's a
2456 different row than the new one.
2457 (ShiftSelection): fix this to work like MS does.
2458 (ResetSelection): factor out the invalidation of selected_rows to
2459 InvalidateSelection.
2460 (SetDataSource): cancel any editing that's going on.
2462 * DataGridColumnStyle.cs
2463 (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
2464 call the non-interface version.
2466 * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
2467 header rectangle with the clip rectangle so we don't redraw the
2468 entire header for just a small area. Gets rid of the last flicker
2469 when horizontally scrolling.
2470 (DataGridPaintRow): same.
2472 2006-05-23 Mike Kestner <mkestner@novell.com>
2474 * ListViewItem.cs: remove size for line hack from LargeIcon layout.
2475 * ThemeWin32Classic.cs: don't draw line. it's really the top of a
2476 poorly placed checkbox on the MS control. Fixes Alex's unfiled
2477 Critical bug report.
2479 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
2481 * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
2482 and this fixes #78493
2484 2006-05-23 Miguel de Icaza <miguel@novell.com>
2486 * Theme.cs (GetSizedResourceImage): Scale images if the proper
2489 * FileDialog.cs: Do not change the background for the side bar as
2490 it wont work nicely with the theme, and also reduces the artifacts
2491 in rendering the icons (which I want to fix too).
2493 * MimeIcon.cs (ResourceImageLoader): Load images from assembly
2494 resources, not resgen resources.
2496 (PlatformDefaultHandler): Pull images using the new API.
2498 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
2500 * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
2501 a reference to the hwnd and will not remove it unless there are
2502 no pending exposures (fixes #78341)
2503 * XplatUI.cs: Improved debug
2505 2006-05-23 Atsushi Enomoto <atsushi@ximian.com>
2507 * MenuAPI.cs : don't handle OnClick event when it was not the left
2508 button. Fixed bug #78487.
2510 2006-05-23 Mike Kestner <mkestner@novell.com>
2512 * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
2513 prefer submenus to the top menu for item lookup, to avoid popping down
2516 2006-05-23 Alexander Olk <alex.olk@googlemail.com>
2518 * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
2519 Graphics.FillRectangle as the visual results are really bad (even
2520 on win). We now draw perfect arrows (and perfect shadows when the
2521 scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
2522 Pen.DashPattern to draw the dots of each line.
2524 2006-05-22 Alexander Olk <alex.olk@googlemail.com>
2526 * FileDialog.cs: Update the filename combobox when navigating through
2527 the ListView with the cursor keys. Fixes part 7 of bug #78446.
2529 2006-05-22 Mike Kestner <mkestner@novell.com>
2531 * ListView.cs: raise SelectedIndexChanged on keyboard selection.
2534 2006-05-22 Mike Kestner <mkestner@novell.com>
2536 * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
2537 requests. Fix a misspelled parameter and a copy paste exception error
2540 2006-05-22 Peter Dennis Bartok <pbartok@novell.com>
2542 * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
2543 to get the same width/height (5/13) on X11 as the default font has on
2544 win32. This means that our DefaultFont emSize is smaller than the
2545 the MS SWF equivalent (even thought the width/height stays the same)
2547 2006-05-20 Jackson Harper <jackson@ximian.com>
2550 * MdiWindowManager.cs:
2551 * InternalWindowManager.cs: Make sure to use the border width from
2554 2006-05-20 Jordi Mas i Hernandez <jordimash@gmail.com>
2556 * PrintDialog.cs: Implements printer details
2558 2006-05-19 Alexander Olk <alex.olk@googlemail.com>
2560 * FileDialog.cs: Added focus handling for PopupButtonPanel.
2561 Fixes part 1 and 2 of bug #78446
2563 2006-05-19 Peter Dennis Bartok <pbartok@novell.com>
2565 * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
2566 instead of sticking to the first ever calculated value
2568 2006-05-19 Mike Kestner <mkestner@novell.com>
2570 * ComboBox.cs: fix mouse motion selection to use MousePosition and
2571 PointToClient, since Capture is set. Fixes #78344.
2573 2006-05-19 Mike Kestner <mkestner@novell.com>
2575 * ListView.cs: match MS behavior in Details view where items are not
2576 drawn if Columns.Count == 0.
2577 * ThemeWin32Classic.cs: only highlight ListView selection if focused.
2578 Use a separate pen to draw the check, since changing the width affects
2579 the box as well. Fixes #78454.
2581 2006-05-18 Miguel de Icaza <miguel@novell.com>
2583 * ListView.cs: ArgumentOutOfRangeException, single versions of the
2584 exception should throw the name of the invalid argument.
2586 * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
2587 there are no files listed.
2589 2006-05-18 Jackson Harper <jackson@ximian.com>
2591 * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
2594 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
2596 * Control.cs: Brought back our old UpdateZOrder method as a private
2597 function and switched our calls from UpdateZOrder to the new one.
2598 This fixes the Paint.Net canvas disappearing bug.
2600 2006-05-18 Jackson Harper <jackson@ximian.com>
2603 * ThemeWin32Classic.cs:
2604 * InternalWindowManager.cs: Move the drawing into the theme,
2605 expose everything the theme should need from the window manager.
2607 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
2609 * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value
2610 from the call to NativeWindow to avoid walking up the parent chain
2611 further than needed (speeds up setting cursors and avoids setting
2612 the wrong cursor if a parent has another cursor defined)
2613 * Cursor.cs: When loading an icon as cursor, MS uses the center of
2614 the icon as hotspot, not what's contained as hotspot in the icon
2615 file. This fixes the perceived drawing offset seen with Paint.Net
2617 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
2620 - Store the calculated rectangle in Hwnd object and use it when
2621 setting the client size
2622 - Force Toolwindows to always be type Dock, to ensure they're on top
2624 2006-05-18 Mike Kestner <mkestner@novell.com>
2626 * ComboBox.cs: first pass at ComboBox rework. Layout is more
2627 consistent with MS positioning. IntegralHeight, ItemHeight, Sizing.
2628 Correctly initialize textcontrol and ListBox on DropDownStyle changes.
2629 Substantial refactoring to remove confusing nested classes. Coding
2630 standard and Get+Set->property refactorings. Shift to index based
2631 highlighting in ComboListBox instead of constantly using IndexOf and
2632 Items[]. Add invalidations on resize for DropDownList to fix ugliness
2633 in FileDialog growth. Draw borders manually since Simple mode needs
2634 to look like two independent controls. Make listbox border
2635 conditional to DropDownStyle. Improved OwnerDraw support.
2637 2006-05-18 Sebastien Pouliot <sebastien@ximian.com>
2639 * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor.
2640 Don't set the disposed graphics to null, so we can throw the "right"
2641 exception if the graphics is reused later (added a flag to avoid
2642 double disposing). Some behaviours are different under 2.0 and are
2643 filled under bug #78448.
2645 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
2647 * Control.cs: When double-buffering is enabled, we need to reset
2648 our graphics context between paint calls. Otherwise, any
2649 transformations and other alterations on the context will
2650 become cumulative (#77734)
2652 2006-05-18 Mike Kestner <mkestner@novell.com>
2654 * ListView.cs: do focused item selection like MS on clicks.
2655 Rework focus handling for ItemControl so LostFocus invalidates as
2657 * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
2658 the ListView ItemControl has focus.
2660 2006-05-17 Peter Dennis Bartok <pbartok@novell.com>
2662 * XplatUIX11.cs: If client_window ends up being width or height zero
2663 due to border settings, move it off window inside whole_window (#78433)
2665 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
2667 * Mime.cs: Shrink the mime file cache correctly.
2669 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
2671 * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
2673 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
2675 * XplatUIX11.cs (AddExpose): More sanity checks
2677 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
2680 - AddExpose: Don't add expose ranges outside the size of our
2682 - Cast opacity values to Int32 to avoid crashes with certain
2684 - Added disabled code paths that protect against illegal cross-
2685 thread painting (Developers.exe)
2687 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
2689 * ProgressBar.cs: Invalidate the control when it's resized
2690 since block size is based on control size. (#78388)
2692 2006-05-16 Miguel de Icaza <miguel@novell.com>
2694 * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
2695 of setting the incoming argument to the "reset" value, we set the
2696 this.datamember to string.empty (before we were invalidating the
2701 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
2703 * Form.cs: Only apply transparency settings after the form
2704 is created. (Fixes #77800)
2706 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
2708 * ApplicationContext.cs: Grab the HandleDestroyed event so
2709 we know when to fire OnMainFormClosed
2711 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
2713 * Application.cs: Introduced sub-class to allow tracking of
2714 threads and centralized triggering of the event mess for
2715 ThreadExit, AppExit, etc.. (#76156)
2717 2006-05-16 Alexander Olk <alex.olk@googlemail.com>
2720 - Do not return a null icon index value for a mime subclass.
2721 Instead try the main mime type class too.
2722 - Seems that some newer distributions don't have a link to some
2723 gnome default icons anymore. So check the default gnome dir too.
2726 2006-05-16 Jackson Harper <jackson@ximian.com>
2728 * MdiClient.cs: Don't paint the parent background image if we have
2729 our own background image.
2731 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
2734 - PerformLayout: Do not shrink space filled by DockStyle.Fill
2735 controls, all filled controls are supposed to overlap (#78080)
2736 - UpdateZOrder is supposed to update the control's z-order in the
2737 parent's z-order chain. Fixed to behave like that
2738 - BringToFront: Removed obsolete code
2739 - SendToBack: Simplyfied
2740 - SetChildIndex: Trigger layout calculations when Z-order changes
2741 since layout is done by z-order
2743 2006-05-16 Chris Toshok <toshok@ximian.com>
2745 [ fixes bug #78410 ]
2746 * DataGrid.cs (set_AlternatingBackColor): use
2747 grid_drawing.InvalidateCells instead of Refresh().
2748 (set_BackColor): call grid_drawing.InvalidateCells.
2749 (set_BackgroundColor): use Invalidate instead of Refresh.
2751 * DataGridDrawingLogic.cs (InvalidateCells): new function, just
2752 invalidate the cell area.
2754 2006-05-15 Chris Toshok <toshok@ximian.com>
2756 [ fixes bug #78011 ]
2757 * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
2758 on to DataGridPaintRow.
2759 (DataGridPaintRow): take a clip argument, and only draw the cells
2760 which intersect it. same with the not_usedarea.
2762 * Theme.cs (DataGridPaintRow) add @clip parameter.
2764 * DataGrid.cs (ScrollToColumnInPixels): simplify, use
2765 XplatUI.ScrollWindow.
2766 (ScrollToRow): same.
2768 * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
2769 with last column which was causing a gray swath to appear with the
2770 XplatUI.ScrollWindow code.
2772 2006-05-15 Chris Toshok <toshok@ximian.com>
2774 * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
2775 use XplatUI.ScrollWindow.
2776 (VerticalScrollEvent): use XplatUI.ScrollWindow.
2778 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
2780 * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
2782 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
2784 * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
2785 file since there are no equivalent X11 cursors
2787 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
2789 * MonthCalendar.cs : DateTimePicker should reflect selected date
2790 on mouse*up*, not mouse*down*. Fixed originally reported part of
2793 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
2795 * TabControl.cs : When argument index is equal or more than tab
2796 count, just ignore. Fixed bug #78395.
2798 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
2800 * Control.cs: Dispose all child controls when control is diposed (#78394)
2802 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
2804 * ColorDialog.cs: Finally it is possible to select the color with
2807 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
2809 * PrintDialog.cs: Fix typo
2811 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
2813 * PrintDialog.cs: PrintDialog is not resizable
2814 * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
2815 color. Made some ToolBar drawing methods protected virtual.
2817 2006-05-13 Jordi Mas i Hernandez <jordimash@gmail.com>
2819 * PrintDialog.cs: Implementation of the PrintDialog
2821 2006-05-12 Chris Toshok <toshok@ximian.com>
2823 * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
2824 thumb, instead use MoveThumb. This has the side effect of making
2825 most of the other thumb moving machinery use MoveThumb as well.
2826 (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
2827 need to actually invalidate the rectangle where the new thumb will
2829 (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
2830 We force an Update() after, so it's not as fast as it could be,
2831 but at least there's zero flicker and no droppings.
2832 (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
2833 (UpdateThumbPos): add another argument (dirty), which says whether
2834 or not to calculate/add dirty regions which we later invalidate.
2835 For cases where we know we're going to use MoveThumb, we pass
2836 false for this. Otherwise, pass true.
2838 2006-05-12 Jackson Harper <jackson@ximian.com>
2840 * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
2843 2006-05-12 Peter Dennis Bartok <pbartok@novell.com>
2845 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
2846 and GetClipRegion methods and UserClipWontExposeParent property.
2847 * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
2848 overriding UserClipWontExposeParent property, setting to false, since
2849 Win32 handles the required expose messages to draw our clipped parent
2851 * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
2852 PaintEventStart to set the user clip region if set.
2854 - Now internally tracking the Region for the control since we need to
2855 store it if the handle is not yet created and only set it when it
2856 becomes created. Before setting the region forced handle creation
2857 - Added code to draw the parents underneath a user-clipped region
2858 * Hwnd.cs: Added UserClip property
2860 2006-05-12 Chris Toshok <toshok@ximian.com>
2862 * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
2863 (set_Maximum): same.
2864 (set_Minimum): same.
2865 (set_SmallChange): same.
2866 (OnMouseUpSB): remove the call to refresh when releasing the
2867 thumb. We shouldn't need it.
2869 2006-05-12 Miguel de Icaza <miguel@novell.com>
2871 * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
2872 AutoSize set to None, we do not need to relayout everything, we
2873 just need to invalidate the current region.
2875 (Draw): Do not draw the entire ClientArea, just redraw the
2876 clip area being passed.
2878 * MdiClient.cs: Make MdiClient constructor with the Form argument
2881 2006-05-12 Jackson Harper <jackson@ximian.com>
2883 * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
2884 parents background image, but strangely not their own.
2885 - (DrawStatusBarPanel): Take into account horizontal alignment
2886 when drawing the strings and icons.
2888 2006-05-12 Mike Kestner <mkestner@novell.com>
2890 * ListBox.cs: avoid invalidations for focus when the collection is
2893 2006-05-12 Chris Toshok <toshok@ximian.com>
2895 * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
2896 invalidate the entire thumb area. Call InvalidateDirty which
2897 limits the redraw to the thumb itself and surrounding pixels.
2899 * XplatUIX11.cs (ScrollWindow): optimize copying.
2901 2006-05-12 Chris Toshok <toshok@ximian.com>
2903 * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
2904 Figure out the positioning/layout in a single pass instead of
2905 multiple recursive invocations. Speeds up the initial display of
2906 the data grid. Also, make many things private that were
2907 originally public but unused outside this class.
2909 2006-05-11 Jackson Harper <jackson@ximian.com>
2911 * MdiClient.cs: Improved layout code.
2913 2006-05-11 Jonathan Chambers <jonathan.chambers@ansys.com>
2915 * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
2918 2006-05-11 Chris Toshok <toshok@ximian.com>
2920 * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
2921 union of that will always be {0,0,width,height}.
2923 2006-05-11 Jackson Harper <jackson@ximian.com>
2925 * Form.cs: Match MS's DefaultSize for forms (they must have
2926 changed the size in sp2).
2928 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
2930 * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
2932 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
2934 * TextControl.cs : Fixed bug #78109. This incorrect position
2935 comparison caused crash on automatic line split.
2936 * TextBoxBase.cs : reduce duplicate code.
2938 2006-05-10 Jackson Harper <jackson@ximian.com>
2940 * MdiClient.cs: Active form is only sent to the back when using
2941 the Next form functionality, when a form is clicked the current
2942 active shouldn't be sent to the back.
2943 - Layout the mdi windows when the container is first made visible.
2944 * Form.cs: Give the MdiClient a ref to the containing form when we
2947 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
2949 * LinkLabel.cs : link_font could be uninitialized, so populate one
2950 before actual use. Fixed bug #78340.
2952 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
2954 * XplatUIX11.cs : clipboard format native value is IntPtr.
2957 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
2960 - Instead of showing context menus directly we send WM_CONTEXTMENU,
2961 which is passed up the parent chain by DefWndProc
2962 - We now handle WM_CONTEXTMENU to display any menu, or pass it
2963 to DefWndProc (#77956)
2964 * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
2966 2006-05-10 Jackson Harper <jackson@ximian.com>
2968 * MdiClient.cs: We need to remove the controls from the mdi
2969 collection, when we close the window.
2970 * MdiWindowManager.cs: Special handling of closing mdi windows.
2971 * InternalWindowManager.cs: Make the close method virtual so the
2972 mdi window manager can handle it specially.
2974 2006-05-10 Jordi Mas i Hernandez <jordimash@gmail.com>
2977 - Recalculate grid when the data source has changed
2978 - Matches styles provided by user from all data sources types
2979 * DataGridTableStyle.cs: For columns that provided by the user set the
2980 with the preferred value is there was unassigned.
2981 * CurrencyManager.cs: throw OnItemChanged event
2983 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
2985 * PictureBox.cs: Don't animate until handle is created. Start animation
2986 when handle is created.
2988 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
2990 * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
2992 * XEventQueue.cs: We don't need to provide the extra info
2994 2006-05-10 Jackson Harper <jackson@ximian.com>
2996 * MdiClient.cs: If the mdi clients parent form has a background
2997 image set, we draw that background image for the mdi area's
3000 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
3002 * TextBoxBase.cs: Set IBeam cursor (#78347)
3004 2006-05-10 Mike Kestner <mkestner@novell.com>
3006 * ToolBar.cs: fix some text padding issues with ButtonSize
3007 calculation. Update the default size to match MS documentation.
3008 * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
3009 button size. Fixes #78296.
3011 2006-05-10 Mike Kestner <mkestner@novell.com>
3013 * ListBox.cs: use is_visible for scrollbar positioning in case the
3014 control isn't on screen yet. Fix off by one with Right vs Width
3015 usage. Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
3017 2006-05-10 Jackson Harper <jackson@ximian.com>
3019 * X11Dnd.cs: Drop to a control with another control on top of it.
3020 * ToolBar.cs: Work on a copy of the buttons list, so that it can
3021 be modified in click handlers. TODO: Look for similar problems in
3024 2006-05-09 Jackson Harper <jackson@ximian.com>
3026 * Form.cs: Window managers need the old window state when setting
3028 * InternalWindowManager.cs: Allow the base mdi window manager to
3029 handle more of the MDI only stuff (like maximize buttons).
3030 * MdiWindowManager.cs: Fix some snafus in changing the window
3031 state. Add all the menu functionality, for both popup and
3033 * MdiClient.cs: When a new form is selected the currently
3034 activated form is sent to the back, this matches MS.
3035 - Implement a new method to activate the next mdi child window.
3037 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
3040 - Added new InternalCapture method to allow controls to prevent
3041 the capture behaviour on the click handlers
3042 - Switched to use InternalCapture
3044 - Using InternalCapture to prevent mouse captures from being released
3045 on mouse button release (Fixes #78100)
3046 * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
3047 returns Form borders if a caption is present. (Fixes #78310)
3049 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
3051 * TreeNode.cs: Changed serialization .ctor to not require every field
3052 to be present. (#78265)
3053 * OwnerDrawPropertyBag.cs: Added serialization .ctor
3055 2006-05-05 Alexander Olk <alex.olk@googlemail.com>
3057 * MimeIcon.cs: for is faster than foreach for strings.
3059 2006-05-05 Mike Kestner <mkestner@novell.com>
3061 * CheckedListBox.cs: update check handling code to not use selected.
3062 * ListBox.cs: rewrite of mouse selection handling to correspond to MS
3063 behavior for visual feedback, motion response, shift/ctrl handling,
3064 and properly deal with all 4 selection modes. Updates to bounds
3065 handling logic. Add scroll wheel support. [Fixes #77842]
3067 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
3070 - Moved adding of Implicit controls into .ctor. That way, subsequent
3071 creation of the controls will not cause them to think they are
3072 toplevel windows (fixes #78200 header problem)
3073 - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
3074 - Switched visibility setting of header control to use internal field
3075 to avoid triggering handle creation
3076 - Now checking if handle is created before causing a refresh when items
3077 are added (This makes us now match handle creation time with MS)
3078 * Splitter.cs: Removed loading of private splitter cursor, switched to
3079 Cursors version now that that is loading the right ones
3080 * Cursors.cs: Load proper splitter cursors from resources
3081 * Cursor.cs: Added second method of loading resource cursors for the
3082 VS.Net users amongst us
3084 2006-05-05 Mike Kestner <mkestner@novell.com>
3086 * ListView.cs: give header_control a minimum size based on the
3089 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
3091 * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
3092 window seems to do that with metacity, so set that type. (#78120)
3094 2006-05-05 Mike Kestner <mkestner@novell.com>
3096 * ListViewItem.cs: fix Details mode checkbox layout bug.
3097 * ThemeWin32Classic.cs: draw a ListView column header for unused space
3098 at the end of the header, if it exists. [Fixes for #78200]
3100 2006-05-04 Jackson Harper <jackson@ximian.com>
3102 * MdiClient.cs: Add a helper property to get the container form.
3103 * MdiWindowManager.cs: We have to make sure to use the menu origin
3104 when drawing the icons and buttons, this fixes maximized window
3105 icons/buttons on win32.
3106 * InternalWindowManager.cs: Reset the restore captions when a
3107 window goes from Maximized to Minimized and vice versa. Move the
3108 DrawMaximizedButtons into the MdiWindowManager source, tool
3109 windows can't be maximized. NOTE: This could use a little
3110 refactoring if time ever permits.
3112 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
3114 * TextBox.cs: Add MWFCategoryAttributes
3115 * TextBoxBase.cs: Add MWFCategoryAttributes
3116 * Form.cs: Add MWFCategoryAttributes
3118 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
3120 * Control.cs: Add MWFCategoryAttributes
3121 * ScrollableControl.cs: Add MWFCategoryAttributes
3123 2006-05-03 Alexander Olk <alex.olk@googlemail.com>
3125 * ThemeWin32Classic.cs: Draw the ToolBar top border only if
3126 Divider is true. Fix a little glitch in PropertyToolBar
3129 2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
3132 - Dispose: Call base.Dispose, this causes the disposed event
3133 to be fired (and probably other, more important stuff)
3134 - SetVisibleCore: Set is_visible to true after creating the
3135 window so that the window still gets created invisible (if
3136 WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
3137 to generate a WM_ACTIVE message
3138 * Form.cs: Call Dispose when we want to destroy the window, instead of
3139 just destroying the handle (Dispose will do that for us)
3141 - RootWindow also needs a queue, so we can properly process the
3142 property change events from RootWindow (like Activate)
3143 - Generatic synthetic WM_ACTIVE message when the active window is
3146 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
3148 * LinkLabel.cs: Trigger a recalc of our label dimensions when
3151 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
3153 * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
3154 for determining width and height (image might not be assigned if
3155 we're drawing an imagelist)
3157 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
3159 * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
3160 * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
3162 * Theme.cs: No longer returns hardcoded menu height, instead calls
3164 * Form.cs (OnLoad): Scaling happens before triggering Load events
3167 2006-05-01 Mike Kestner <mkestner@novell.com>
3169 * MenuItem.cs: fix NRE for text == null. Fixes #78250.
3171 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
3173 * TextBoxBase.cs: Removed Fixme
3174 * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
3176 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
3179 - ScrollWindow: We were passing hwnd.ClientRectangle which returns
3180 the rectangle relative to the parent, considering borders. We
3181 don't really want that.
3182 - ScrollWindow: Fixed warning to be more understandable
3183 * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
3184 scrollbars and scroll only the visible area
3185 * RichTextBox.cs: Removed debug output
3187 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
3189 * NumericUpDown.cs (Text): Just use base
3190 * UpDownBase.cs: Ensure txtView is created before using it
3192 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
3194 * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
3195 casting to IntPtr to avoid 64bit overflow errors
3197 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
3200 - AllowDrop: Don't force handle creation.
3201 - CreateHandle: Added call to tell driver if we're allowed to drop
3203 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
3205 * FileDialog.cs: Remember the last directory not only for the
3206 current instance but also for new FileDialog instances.
3208 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
3210 * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
3211 broke sending async messages
3213 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
3216 - ScrollWindow: Fixed method. We finally generate expose events again
3217 for scrolled areas. This was causing 'garbage' when scrolling
3218 textbox and other controls that used ScrollWindow
3219 - Switched from using the regular queue for paint events to the MS
3220 model of 'generating' paint events when the queue is empty.
3221 We use the new XQueueEvent.Paint subclass to store which windows
3223 - AddExpose now takes the x/y/width/height of the exposed area
3224 and inserts the window into the paint queue if not already there
3225 - InvalidateWholeWindow: Switched to use new AddExpose method
3226 - UpdateMessageQueue: Added which queue to monitor for paint events
3227 - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
3228 the unlikely case nothing above handles it. We reset the expose
3229 pending states to get them off the queue.
3230 - GetMessage: Now pulls a paint event if no other events are in the
3232 - Invalidate: Switched to new AddExpose method
3233 - PeekMessage: Updated to understand pending paint events
3234 - UpdateWindow: Fixed logic bug. We were only updating if the window
3235 didn't need updating. Also switched to sending WM_PAINT directly,
3237 * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
3238 and random access Remove(). The random access is needed to handle
3239 UpdateWindow() where a WM_PAINT is sent directly without accessing
3241 * ScrollBar.cs: Added Update() calls to cause immediate updates to
3242 allow for better feedback when scrolling. Scrollbars are small and
3243 the immediate update should make it 'feel' more responsive without
3244 slowing things down. ScrollBar still needs it's invaliate logic
3245 updated to not always invalidate the whole bar on certain changes.
3247 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3250 (BackColor): if the control does not support a transparent background,
3251 return the default backcolor when the parent backcolor is transparent.
3253 2006-04-28 Peter Dennis Bartok <pbartok@novell.com>
3255 * Application.cs: Updated to new StartLoop/GetMessage API
3256 * RichTextBox.cs: Provide some output on RTF parsing errors
3257 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
3258 new queue_id argument to GetMessage and PeekMessage to allow faster
3259 handling of per-thread queues in drivers.
3260 * Hwnd.cs: Added Queue tracking and property
3261 * MenuAPI.cs: Updated to new StartLoop/GetMessage API
3262 * XEventQueue.cs: Added thread trackingA
3263 * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
3265 - Implemented new per-thread queue
3266 - GetMessage: Fixed return/break behaviour on several cases. We were
3267 returning stale messages in some cases, instead of just processing
3270 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
3272 * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
3274 2006-04-27 Peter Dennis Bartok <pbartok@novell.com>
3276 * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
3277 fixed off-by-one comparisons between Width/Height and Right/Bottom.
3279 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
3281 * PropertyGridView.cs: Fix drop down width.
3283 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
3285 * ThemeWin32Classic.cs: Peter thinks that three additional lines are
3286 a mess in DrawToolBar, so I removed one of them.
3288 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
3290 * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
3291 needed (clip). Otherwise we get artifacts.
3293 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
3295 * FixedSizeTextBox.cs: Added constructor to allow specifying which
3297 * UpDownBase.cs: Set the spinner control to be fixed height vertical,
3298 and switched FixedSizeTextBox to only be fixed vertical (#78116)
3299 * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
3300 if it matches the scale base font (avoids unneeded scaling)
3302 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
3304 * X11DesktopColors.cs: One gtk_init_check should be enough
3306 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
3308 * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
3311 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
3314 - Generate OnTextChanged for Backspace even if we're only deleting
3315 the current selection
3316 - When setting the Text property, only select all text if the
3317 control does not have focus when it is being set. Otherwise
3318 just place the cursor at the beginning of the control
3320 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
3322 * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
3323 Added a little helper to draw PropertyGrid ToolBar with a different
3324 border and a different BackColor.
3325 * PropertyGrid.cs: Some background parts didn't get painted with the
3326 correct background color. Added a class that helps us to draw the
3327 correct border for PropertyGridView and a class that helps us to
3328 draw ToolBars with a different backcolor
3329 * PropertyGridView.cs: Draw PlusMinus with the correct colors.
3331 2006-04-25 Jonathan Chambers <jonathan.chambers@ansys.com>
3333 * PropertyGrid.cs: Bug 78196, font size, and splitter location.
3334 * PropertyGridView.cs: Bug 78196, font size, and splitter location.
3336 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
3338 * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
3339 into the palette entries. Also, since we're working on a copy
3340 we needed to copy the palette back onto the bitmap.
3341 * Cursor.cs: Same fix as XplatUIWin32.cs.
3343 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
3345 * ImageListStreamer.cs: Need to read the var (or we're off)
3347 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
3349 * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs,
3350 XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
3351 TextBoxBase.cs: Unused var fixes
3352 * AxHost.cs: Small 2.0 fix
3353 * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms
3354 as it seems that is what at least Metacity expects. This will make
3355 icons show up on 64bit platforms. We still have some 64bit size
3356 issues, though, since the startup app window size still won't match.
3358 2006-04-25 Mike Kestner <mkestner@novell.com>
3360 * *.cs: cleanup newly reported exception var unused warnings.
3362 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
3364 * ThemeWin32Classic.cs: Button image alignment now matches exactly
3367 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
3369 * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
3370 image. The image position is always the same, no matter if the
3371 button is pressed or not.
3373 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
3375 * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
3376 selection and set the correct filename for SaveFileDialog.
3377 Patch by Emery Conrad.
3379 2006-04-24 Mike Kestner <mkestner@novell.com>
3381 * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
3382 check for item.X outside the ClientRect instead of item.Y. Fixes
3385 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3387 * ImageListStreamer.cs: some images store a wrong grow factor, so don't
3388 trust that value blindly and do some sanity check. Fixes bug #77814.
3390 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3392 * ImageListStreamer.cs: save the mask as a 1bpp image.
3394 2006-04-21 Mike Kestner <mkestner@novell.com>
3396 * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
3397 pass Checked and Indeterminate to the Theme Engine. Improve
3398 encapsulation with ListBox.
3399 * ListBox.cs: Keep a StringFormat instead of calculating it every item
3400 draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
3401 nested types. Move all CheckState functionality to CheckedListBox.
3402 Make IntegralHeight work like MS. Rewrite of Layout engine. Fix
3403 OwnerDrawVariable layout/rendering. Fix multicolumn rendering. Fix
3404 ScrollAlwaysVisible handling. Refactor "selected" collections to use a
3405 single base list. Fix scrollbar sizing and placement to mirror MS.
3406 * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
3408 * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
3409 for CheckedListBox by using new DrawItemState info. Center the
3410 checkboxes on the items. Use new StringFormat property.
3412 2006-04-18 Jackson Harper <jackson@ximian.com>
3414 * Form.cs: MdiChildren don't do default locations the same way as
3415 regular forms. This prevents a crash when trying to position the
3418 2006-04-17 Jonathan Chambers <jonathan.chambers@ansys.com>
3420 * PropertyGridTextBox.cs: Formatting, copyright
3421 * PropertiesTab.cs: Formatting
3422 * PropertyGrid.cs: Formatting
3423 * PropertyGridView.cs: Formatting, fix drop down, enabled double
3424 click toggling of values
3426 2006-04-17 Peter Dennis Bartok <pbartok@novell.com>
3428 * KeyPressEventArgs: Added 2.0 only setter for KeyChar
3429 * Control.cs (.ctor): verify_thread_handle is static, don't reset
3430 every time a control is created
3431 * Application.cs: Removed obsolete EnableRTLMirroring method
3433 2006-04-18 Gert Driesen <drieseng@users.sourceforge.net>
3435 * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
3436 SelectedIndex to -1. Fixes bug #78121.
3438 2006-04-17 Jackson Harper <jackson@ximian.com>
3440 * Binding.cs: Handle null values for Current and BindingContext.
3441 This occurs when binding is a little delayed.
3442 * CurrencyManager.cs: return null for Current when there are no
3444 - Hookup to the listchanged event on the DataView and update
3445 bindings when the list is changed. This fixes late binding of
3448 2006-04-17 Jackson Harper <jackson@ximian.com>
3451 * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
3454 2006-04-15 Alexander Olk <alex.olk@googlemail.com>
3456 * ThemeWin32Classic.cs: Draw disabled combo button in the correct
3458 * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
3459 with the correct ButtonState
3461 2006-04-14 Peter Dennis Bartok <pbartok@novell.com>
3463 * XplatUIX11.cs: Improved distinguishing between window types to
3464 tell the WM a type closer to what the app wants (Fixes #78107)
3466 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
3468 * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
3471 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
3473 * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
3474 drawing code to reflect the size grip changes
3476 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3478 * ImageListStreamer.cs: fix handling of the mask that follows the main
3479 bitmap when deserializing and serialize it properly. The generated mask
3480 should better be a 1bpp image, but I'll do that later.
3482 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
3484 * FileDialog.cs: Show something in the DirComboBox on *nix if the
3485 path doesn't fit into some of our Current.Places
3487 2006-04-13 Jackson Harper <jackson@ximian.com>
3489 * ComboBox.cs: Use borders instead of drawing our own decorations,
3490 try to obey correct rules for heights.
3493 * ThemeClearLooks.cs:
3494 * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
3495 this is now handled by borders.
3496 - Remove unused DrawListBoxDecorationSize method.
3498 2006-04-13 Mike Kestner <mkestner@novell.com>
3500 * MenuAPI.cs: null guarding for the disbled click check fixes crash
3503 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
3505 * ThemeWin32Classic.cs:
3506 - Fixed CPDrawStringDisabled
3507 - Corrected drawing of disabled menu items
3508 - Fixed drawing of disabled radio buttons (bug #78095)
3509 - Draw check in a disabled CheckBox with color ControlDark
3511 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
3513 * Form.cs: Use the provided width when calculating the menu size;
3514 when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
3515 and ClientSize.Width won't be updated yet
3516 * Application.cs: Use Visible instead of Show() to make form visible,
3517 this way we create the handle later and menusize is considered
3519 2006-04-12 Mike Kestner <mkestner@novell.com>
3521 * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
3524 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
3526 * TextBox.cs: Implemented context menu
3528 2006-04-12 Mike Kestner <mkestner@novell.com>
3530 * ListView.cs: implement box selection. fixes #77838.
3531 * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
3533 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
3535 * XplatUIX11.cs: Added setting of window type when transient window
3536 is created (metacity would move it otherwise)
3537 * X11Structs.cs: Added WINDOW_TYPE atoms
3538 * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
3539 background (the control is Opaque but still wants transparent
3542 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
3544 * Control.cs: Added OnPaintBackgroundInternal to allow controls
3545 that set Opaque but don't mean it (like all ButtonBase-derived
3546 controls) to still draw their background
3547 * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
3550 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
3552 * Control.cs (PaintControlBackground): Set the graphics object
3553 on our PaintEvent to null to prevent it from being disposed
3554 when the PaintEvent gets disposed
3556 2006-04-12 Alexander Olk <alex.olk@googlemail.com>
3558 * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
3559 * ThemeNice.cs, ThemeClearlooks.cs: fix typo
3561 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
3564 - Added transparency check to BackColor property. Transparent
3565 backgrounds are only allowed if the control styles permit it
3566 - Added recursive painting of parent control background and
3567 foreground if a control with a transparent backcolor is drawn
3568 (Thanks to Tim Ringenback for providing his 'hack' as a base
3569 for this patch) Fixes #77985 and #78026.
3570 - Added Opaque style check before calling OnPaintBackground, no
3571 need to draw the background if the control is opaque
3572 - Removed ControlAccessibleObject owner variable (inherited from
3573 base, no need to define again)
3574 - Added some documentation links explaining the drawing events
3577 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
3579 * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
3580 that the affected control is the located at the left border of our
3581 parent (Fixes #77936)
3583 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
3585 * TextBoxBase.cs: When rendering disabled or readonly controls,
3586 draw the background with 'Control' instead of 'Window' color as
3587 long as the user hasn't specifically set a color
3589 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
3591 * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
3592 since that won't be updated if the user types text (only if it's
3593 programatically set)
3595 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
3597 * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
3598 layout changes do to app-triggered resizes will have the proper
3599 display rectangle for layout
3601 2006-04-11 Alexander Olk <alex.olk@googlemail.com>
3603 * ThemeWin32Classic.cs:
3604 - Make use of the SystemBrushes and SystemPens wherever possible
3605 - Corrected some highlight colors
3606 - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
3608 * Theme.cs: Added Empty field to CPColor struct
3610 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
3612 * ScrollabeControl.cs: We need to consider whether or not a scrollbar
3613 is displayed when calculating the display rectangle. Thanks to Mike
3614 for teaching me the err of my ways.
3616 2006-04-10 Peter Dennis Bartok <pbartok@novell.com>
3618 * ScrollableControl.cs:
3619 - Rewrote DisplayRectangle code, now returning the proper x/y coords
3620 (instead of 0,0) and we now return the real width/height instead of
3621 just the clientrectangle, adjusted for padding. The rectangle is
3622 now cached and created by the new CalculateDisplayRectangle method.
3623 - Created new CalculateDisplayRectange method, which basically does
3624 what get_DisplayRectangle() did originally, but now using the
3625 right edge instead of DisplayRectangle to determine the size of
3627 - get_Canvas(): Fixed it to properly calculate canvas for
3628 right/bottom controls which seem to be placed to the right/bottom
3629 of any controls that have a fixed location
3630 - Removed TODO that's taken care of
3631 - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
3632 and SetDisplayRectLocation according to new MSDN2 docs
3633 - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
3634 event when that is called, this is added for compatibility
3635 - ScrollControlIntoView(): Implemented.
3636 - Switched scrollbars to be implicit, they shouldn't be selectable
3637 * ContainerControl: Now that ScrollControlIntoView is implemented, we
3638 call it when the active control is set/changed
3639 * ScrollBar.cs: Added support for generating Win32 scrollbar messages
3640 * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
3641 implicit_control variable (used for native Win32 message generation)
3642 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new
3643 HorizontalScrollBarHeight and VerticalScrollBarWidth properties
3644 * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
3645 * XplatUIStructs.cs: Added ScrollBarCommands enum
3647 2006-04-10 Jackson Harper <jackson@ximian.com>
3650 * CheckedListBox.cs:
3657 * PrintPreviewControl.cs:
3663 * UpDownBase.cs: Fixup base event overrides.
3665 2006-04-06 Mike Kestner <mkestner@novell.com>
3667 * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
3668 all user-initiated value changes to min <= value <= max-thumbsz+1.
3669 (set_Value): check for vert/horiz when calculating new thumb position.
3670 (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
3672 (OnMouseMoveSB): refactor the thumb dragging code and refine
3673 invalidation logic to reduce flicker.
3674 (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
3675 (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
3676 (UpdateThumbPosition): small code readability cleanup
3678 2006-04-10 Alexander Olk <alex.olk@googlemail.com>
3680 * ThemeNice.cs: Small UI polishing. Draw borders a little bit
3683 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
3685 * ThemeNice.cs: Use a better graphics effect when a button is pressed
3687 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
3689 * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
3690 * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
3691 This dramatically reduces the number of Pen.Dispose calls.
3692 Where possible call ResPool methods only once instead of calling it
3693 over and over again (for example for the same color).
3695 2006-04-06 Mike Kestner <mkestner@novell.com>
3697 * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
3698 Also remove an unused private field on the collection. Fixes #77972.
3700 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
3702 * ThemeNice.cs: Added ToolBar drawing code
3704 2006-04-06 Mike Kestner <mkestner@novell.com>
3706 * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
3707 I'm assuming that means we need to look up the toplevel for the
3708 provided control. Fixes the crash trace in #77911 but exposes another
3709 crash in some strange reflection usage in NDocGui.
3711 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
3713 * ThemeNice.cs: Gave it a little silver touch and added Images
3715 * FontDialog.cs: FontDialog is not resizable
3716 * FileDialg.cs: Added SizeGripStyle.Show
3718 2006-04-05 Jackson Harper <jackson@ximian.com>
3720 * KeyboardLayouts.cs: Remove warning.
3722 2006-04-05 Jackson Harper <jackson@ximian.com>
3724 * Control.cs: Enable OnPaintInternal so we can use it for drawing
3725 all of our controls instead of Paint +=.
3740 * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
3741 use OnPaintInternal. Remove Width/Height and Visible checks in
3742 paint handler, this is done at a higher level now.
3743 * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
3744 * PaintEventArgs.cs: Add a handled flag so controls that don't
3745 want anymore painting after OnPaintInternal can make sure OnPaint
3748 2006-04-05 Mike Kestner <mkestner@novell.com>
3750 * Form.cs: fix the menu WndProc hacks to respect the native enabled
3751 state of the form, so that we don't process events when Modal dialogs
3752 are up. Fixes #77922.
3754 2006-04-05 Alexander Olk <alex.olk@googlemail.com>
3756 * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
3759 2006-04-05 Mike Kestner <mkestner@novell.com>
3761 * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
3763 2006-04-05 Mike Kestner <mkestner@novell.com>
3765 * ListView.cs (HeaderMouseMove): null guarding for the over column
3766 when setting up the drag_to_index. Fixes #78015.
3768 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
3770 * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
3771 in the taskbar. Transient windows seem to accomplish that.
3773 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
3776 - Re-enabled CreateParams.X/Y code for FormStartPosition
3777 - Added code for manual placement when creating the Control
3778 - Incomplete patch to treat MDI forms differently when
3779 setting the ClientSizeCore. (Still need to figure out handling
3782 - When we're explicitly setting the X/Y position of a non-Child
3783 window, let the WM know. Metacity really wants this.
3785 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
3787 * ThemeNice.cs: Added CPDrawButton
3789 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
3791 * ThemeNice.cs: Changed the color for focused buttons and activated
3792 the arrows for small scroll buttons.
3794 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
3796 * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
3797 anymore. Changed some method modifiers to protected (virtual)
3798 * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
3800 * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
3801 Updated drawing of menus, buttons and progressbars; added
3804 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3806 * ImageListStreamer.cs: implemented serialization/deserialization
3809 2006-04-03 Alexander Olk <alex.olk@googlemail.com>
3811 * ThemeWin32Classic.cs:
3812 - Removed all the DrawFrameControl stuff; CPDrawButton,
3813 CPDrawCheckBox and CPDrawRadioButton are now handled directly
3815 - Updated and corrected the drawing code of CPDrawButton,
3816 CPDrawCheckBox and CPDrawRadioButton to better match ms
3817 - Updated theme checkbox and radiobutton code to use the CP*
3820 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
3822 * XplatUIX11.cs: Enable clipping again now that the libgdiplus
3825 2006-03-31 Jackson Harper <jackson@ximian.com>
3827 * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
3829 * UpDownBase.cs: Don't CreateGraphics manually, use a
3830 Refresh. Ideally we would invalidate the correct areas here.
3832 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
3835 - We now track the mapping state of windows. If a window (or
3836 one of it's parents) is not mapped we no longer permit
3837 WM_PAINT messages to be generated since we'd otherwise get
3838 lots of BadMatch X errors. Jackson did all the work figuring
3840 - Destroying the caret if the window it's contained in is
3841 destroyed. Can't use regular DestroyCaret method since it
3842 might fall into a drawing function (trying to remove the
3843 caret) and with that generate new BadMatch errors. Again,
3844 Jackson tracked this down.
3845 - Changed DestroyChildWindows to SendWMDestroyMessages, we now
3846 make sure we send the messages to all windows. (The old code
3847 would send the WM_DESTROY to the window, and then all child
3848 windows would be 'gone' because the WM_DESTROY handle lookup
3849 would no longer find the destroyed window)
3850 * Hwnd.cs: Added Mapping property to track mapping state of hwnd
3851 * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
3853 2006-03-31 Jackson Harper <jackson@ximian.com>
3855 * ScrollableControl.cs: Dont recalc if we are not visible.
3857 2006-03-31 Mike Kestner <mkestner@novell.com>
3859 * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
3860 the visibility branch.
3862 2006-03-31 Jackson Harper <jackson@ximian.com>
3864 * ScrollBar.cs: Cap values when incrementing/decrementing.
3866 2006-03-31 Mike Kestner <mkestner@novell.com>
3868 * MenuAPI.cs: setup menu.tracker for popup/context menus.
3869 * ToolTip.cs: guard against timer expirations with no active control.
3870 Not sure why it happened.
3872 2006-03-31 Mike Kestner <mkestner@novell.com>
3874 * ThemeWin32Classic.cs: add some horizontal padding space for the tip
3876 * ToolTip.cs: Position the tooltip based on where the cursor is at
3877 popup time, not at MouseEnter time. Add a Down state so that we don't
3878 redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
3879 positioning offset. Lookup DisplaySize at positioning time, since it
3880 can theoretically change during invocation.
3881 * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
3882 * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
3884 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
3886 * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
3887 Fixes behaviour when the Text property of the box is String.Empty
3889 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
3891 * XplatUIX11.cs: Only send mouseleave for our client windows, not
3892 for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
3895 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
3897 * FileDialog.cs: Visual enhancement for the popup buttons in
3900 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
3902 * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
3905 2006-03-30 Alexander Olk <alex.olk@googlemail.com>
3907 * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
3908 highlighted menu items to match ms
3910 2006-03-30 Peter Dennis Bartok <pbartok@novell.com>
3912 * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
3914 2006-03-30 Mike Kestner <mkestner@novell.com>
3916 * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
3917 * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
3918 go active to account for HotLight to Selected transition.
3919 * MenuItem.cs: add internal Selected prop. Fill out the Status
3920 property by calculating it from item info. Add HotLight,
3921 NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
3923 2006-03-30 Mike Kestner <mkestner@novell.com>
3925 * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
3927 2006-03-29 Jackson Harper <jackson@ximian.com>
3929 * Form.cs: Implement TODO.
3931 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
3933 * PrintPreviewDialog.cs: Implemented missing methods and events; still
3934 missing proper dialog setup in the constructor
3936 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
3938 * ProgressBar.cs: Added 2.0 Style property that apps seem to use
3940 - Implemented CheckForIllegalCrossThreadCalls, removed TODO
3941 - Fixed ResetBindings and removed TODO
3942 - Added check for cross-thread calls to get_Handle()
3943 - Added Marshaller attribute for set_Font to satisfy class status
3944 * FontDialog.cs: Removed TODOs that seemed implemented
3945 * UpDownBase.cs: Removed unneeded TODO and Fixme
3946 * MessageBox.cs: Implemented support for Default button and removed TODO
3947 * FileDialog.cs: Removed obsolete TODO
3948 * DomainUpDown.cs: Removed obsolete TODO
3949 * ButtonBase.cs: Removed obsolete TODO
3950 * XplatUIWin32.cs: Removed obsolete TODO
3952 - Removed obsolete TODO
3953 - Calling CheckAcceptButton when the acceptbutton is changed to allow
3954 internal status updates
3955 - Making sure the active control is selected when the control is created
3956 * CurrencyManager.cs: Removed obsolete TODO
3958 2006-03-29 Mike Kestner <mkestner@novell.com>
3960 * *.cs: fix remaining corcompare issues for 1.1 API with the exception
3961 of PrintPreviewDialog and RichTextBox.
3963 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
3965 * Theme.cs: Added a little helper to SystemResPool to get the Dark,
3966 DarkDark, Light and LightLight colors for a specific color
3967 * ThemeWin32Classic.cs:
3968 - Use Button drawing code to draw RadioButtons and CheckBoxes with
3970 - Make use of the new ResPool helper CPColor
3971 - Draw ProgressBar and StatusBar with correct 3D borders
3973 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
3975 * ColorDialog.cs: Return selected color. Fixes bug #77940.
3977 2006-03-28 Mike Kestner <mkestner@novell.com>
3979 * ListView.cs: fix Icon layout to plan for scrollbar widths when
3980 calculating col/row counts.
3982 2006-03-28 Mike Kestner <mkestner@novell.com>
3988 switch to explicit interface method implementation for some methods
3989 corcompare identifies as inconsistent with MS.
3991 2006-03-28 Mike Kestner <mkestner@novell.com>
3995 add a few missing methods from the class status output.
3997 2006-03-28 Alexander Olk <alex.olk@googlemail.com>
3999 * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
4002 2006-03-28 Mike Kestner <mkestner@novell.com>
4004 * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
4006 2006-03-27 Mike Kestner <mkestner@novell.com>
4008 * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
4009 the Hilight state to adapt to Alex's CPDrawBorder3D changes.
4011 2006-03-27 Alexander Olk <alex.olk@googlemail.com>
4013 * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
4015 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
4017 * ThemeWin32Classic.cs:
4018 - GroupBox: Inserted a little gap between the text and the lines
4020 - Made the code in CPDrawBorder3D more readable
4021 - Corrected the drawing location of the up and down arrows in
4024 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
4026 * ControlPaint.cs: Corrected line widths in DrawBorder for
4027 ButtonBorderStyle Inset and Outset
4029 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
4031 * ThemeWin32Classic.cs:
4032 - Rewrote the totally broken CPDrawBorder3D method. That was
4033 one of the main problems for the terrific ThemeWin32Classic
4035 - Updated and corrected Button drawing
4036 - Correct the dimensions of the SizeGrip to match ms ones
4037 - Removed a small drawing glitch in DrawComboBoxEditDecorations
4038 * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
4039 Border3DStyle.Sunken to match ms.
4041 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
4043 * ThemeWin32Classic.cs: First small part of the "de-uglify
4044 ThemeWin32Classic" effort, SizeGrip
4046 2006-03-24 Jackson Harper <jackson@ximian.com>
4048 * XplatUIX11.cs: Give a max idle time of one second, this matches
4049 MS and forces an Idle event every second when there are no other
4050 events in the queue.
4052 2006-03-24 Mike Kestner <mkestner@novell.com>
4054 * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
4055 * ListView.Item.cs: fix layout issues with null image lists and images
4056 smaller than checkbox size.
4057 * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
4058 mode like MS does. It's weird, but consistent. ;-)
4061 2006-03-24 Mike Kestner <mkestner@novell.com>
4063 * ListView.cs: Scroll wheel support for the item control. Fixes
4066 2006-03-23 Jackson Harper <jackson@ximian.com>
4068 * ScrollableControl.cs: Special case negative sized areas, not
4070 * MonthCalendar.cs: Save the rect of the clicked date so we can
4071 use it for invalidation.
4072 - Try to cut down on the number of invalidates
4073 - Invalidate the rect the mouse is over and was over when moving
4074 the mouse, so we get the focus box following the cursor.
4076 2006-03-23 Mike Kestner <mkestner@novell.com>
4078 * ThemeWin32Classic.cs: fix FullRowSelect selection background and
4079 focus rectangle drawing. Fixes #77835.
4081 2006-03-23 Mike Kestner <mkestner@novell.com>
4083 * XplatUIX11.cs: rework the fix for #77828 by changing the order of
4084 the if and else if and reverting back to the original == check on the
4087 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
4089 * FontDialog.cs: Update the example panel if the selected index of
4090 the fontListBox changes.
4092 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
4094 * FileDialog.cs: Make FileDialog remember which directory it was in
4095 last in the same execution.
4097 2006-03-22 Mike Kestner <mkestner@novell.com>
4099 * FileDialog.cs: make the DropDownMenu on the toolbar display
4100 RadioChecks since they are mutually exclusive and that's what MS does.
4102 2006-03-22 Mike Kestner <mkestner@novell.com>
4104 * Theme.cs: add Color param to CPDrawMenuGlyph.
4105 * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
4106 checks and radio marks and arrows are visible on highlighted items.
4107 * ControlPaint.cs: update to use new Theme signature.
4109 2006-03-22 Mike Kestner <mkestner@novell.com>
4111 * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
4112 is active. Fixes #77870.
4114 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
4116 * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
4117 to be focused/selected after startup
4119 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
4122 - Corrected behaviour of Color, AllowFullOpen, FullOpen,
4123 CustomColors and ShowHelp properties
4124 - Some internal rewrites to get better results when using the
4127 2006-03-22 Mike Kestner <mkestner@novell.com>
4129 * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
4130 HoverSelection. Fixes #77836.
4132 2006-03-22 Mike Kestner <mkestner@novell.com>
4134 * FileDialog.cs: bugfixes for the toolbar. Use PushButtons instead of
4135 ToggleButtons. (De)Sensitize the Back button around a stack count of
4136 1, not 0. Update ButtonSize based on a pixel count of the win32
4137 control. Adjust the toolbar size/location for new button size.
4139 2006-03-22 Jackson Harper <jackson@ximian.com>
4141 * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
4143 * ScrollBar.cs: When doing increments and decrements we need to
4144 set the Value property so that ValueChanged gets raised. A
4145 possible optimization here would be to make an internal SetValue
4146 that doesn't invalidate immediately.
4147 * ToolTip.cs: Tooltips get added to their container (when
4148 supplied) so they get disposed when the container is disposed.
4149 - Don't create tooltips for String.Empty. This prevents all these
4150 little 2-3 pixel windows from showing up when running nunit-gui
4152 * Form.cs: Don't set topmost when setting the owner if the handles
4153 haven't been created yet. The topmost set will happen when the
4154 handles are created.
4156 2006-03-22 Peter Dennis Bartok <pbartok@novell.com>
4159 - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
4160 - SetVisible: Sending WINDOWPOSCHANGED for all controls when made
4161 visible (to allow them to recalculate their sizes)
4163 2006-03-21 Mike Kestner <mkestner@novell.com>
4165 * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
4166 methods. Removed a ton of redundant code. Still not really happy with
4167 the border rendering, but I think that's mainly because of the
4168 ControlDarkDark being black instead of a dark grey. Depending on how
4169 close we want to be, we might want to revisit those color choices.
4170 Among the new features added during the refactor were DropDownArrow
4171 pressed rendering, Disabled image rendering. Proper flat appearance
4172 boundary rendering. Removed the Divider and Wrapping dividers since I
4173 can't figure out any combination of themes and conditions to make the
4174 MS control draw a horizontal line on a toolbar despite what the
4175 Divider property docs indicate.
4176 * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
4177 conditions and incorrect layout. Updated to coding standard.
4178 * ToolBarButton.cs: refactored layout and positioning code from
4179 ToolBar to here. Invalidate wherever possible instead of forcing
4180 redraws of the whole toolbar.
4181 (Known remaining issues: explicit ButtonSize smaller than provided
4184 2006-03-21 Mike Kestner <mkestner@novell.com>
4186 * ContextMenu.cs (Show): use the position parameter instead of just
4187 showing at the MousePosition.
4189 2006-03-21 Jackson Harper <jackson@ximian.com>
4191 * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
4192 control handle this.
4193 * TreeNodeCollection.cs: If we are clearing the root node we need
4194 to reset top_node so calcs can still happen.
4195 * ThemeWin32Classic.cs: This is a Flags so we need to check
4198 2006-03-21 Jackson Harper <jackson@ximian.com>
4200 * DataGrid.cs: Create columns when the binding context has been
4202 * X11Structs.cs: Keysyms are uints.
4203 - Add size to fix build.
4205 2006-03-21 Peter Dennis Bartok <pbartok@novell.com>
4207 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
4209 - Added ResetMouseHover method to allow controls to retrigger
4210 hovering if they need it more than once
4211 - Implemented MouseHoverTime and MouseHoverSize properties
4212 * Timer.cs: Start() must reset the interval
4213 * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
4216 2006-03-21 Jackson Harper <jackson@ximian.com>
4218 * X11Keyboard.cs: improved layout detection. Move the nonchar
4219 tables into this file.
4220 * KeyboardLayouts.cs: Move the tables into resource files.
4222 2006-03-21 Mike Kestner <mkestner@novell.com>
4224 * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
4226 2006-03-21 Alexander Olk <alex.olk@googlemail.com>
4228 * Mime.cs: Various speed optimizations. Looking up mime types
4229 is now 2 times faster than before
4231 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
4233 * CreateParams.cs: Added internal menu field
4235 - Switched call order for UpdateBounds; now we always call
4236 the one that also takes ClientSize, and we're calculating the
4237 client size via driver method in the others. The previous
4238 method of tracking client size by difference wasn't working
4239 for forms where even the starting client size wouldn't match
4240 the overall form size (due to borders) (Part of fix for #77729)
4241 - CreateParams(): Do not use parent.Handle unless the handle is
4242 already created. Causes havoc with Nexxia and throws off our
4243 creation of controls
4245 - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
4246 - Switched handling of ConfigureNotify over to new PerformNCCalc
4247 method (consolidates code)
4248 - Changed RequestNCRecalc to use new PerformNCCalc method
4249 - Added calls to RequestNCRecalc when menus and borders are changed
4250 to allow app to set NC size. (Part of fix for #77729) This matches
4251 when MS send a WM_NCRECALC on Win32 windows.
4252 - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
4253 (Part of fix for #77729). This matches what MS does, they also
4254 send that message when the form is made visible.
4255 - XException.GetMessage: Improved usability of X errors by including
4256 a translation of the window into Hwnd and Control class
4257 - Improved debug info for window creation, reparenting and destruction
4258 - Created helper method WindowIsMapped() [Currently not used]
4259 * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
4261 - CreateParams: Now setting our menu on the new internal menu field
4262 - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
4263 avoid calculating the same property twice
4265 - Improved usability of ToString() for debugging purposes
4266 - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
4267 determine the height of the menu, instead of just the font. This
4268 required to also create a graphics context and to keep a bmp
4269 around (for performance reasons)
4271 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
4273 * MenuAPI.cs: Added OnMouseUp method
4275 - Now remembering the requested client size, avoids size errors
4276 - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
4277 instead of base if the menu is active. This is required due to
4278 control now capturing and releasing on down/up and it would
4279 prematurely release our menu capture
4281 2006-03-17 Jackson Harper <jackson@ximian.com>
4283 * KeyboardLayouts.cs: Add the czech layouts.
4285 2006-03-16 Jackson Harper <jackson@ximian.com>
4287 * Control.cs: Use the viewport space when sizing not the controls
4288 client size, so things like ScrollableControl that effect the
4289 viewport size (when scrollbars are added) are computed correctly.
4290 * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
4292 - Handle creating BindingManagers for null data sources.
4293 * DataGrid.cs: Bind the cached_currencymgr_events to the real data
4294 source, otherwise when rows are added they are added to the 'fake'
4295 datasource and we will crash when trying to set the position in
4297 - Use Implicit scrollbars on the datagrid so they arent
4300 2006-03-16 Jackson Harper <jackson@ximian.com>
4303 * InternalWindowManager.cs:
4304 * MdiWindowManager.cs:
4305 * X11Keyboard.cs: I really want Mike to love me again (fix
4308 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
4311 - OnMouseDown: Switch to editing mode when clicking on the cell
4312 even if we're clicking on the cell that's currently
4314 - ProcessGridKey: Left/Right now wrap like MS.Net does
4315 - ProcessGridKey: Tab now knows to add a new row when tab is
4316 pressed in the cell of the last column of the
4318 - ProcessGridKey: Enter now adds another row if pressed in the last
4319 row and selectes the new row, same column cell
4320 - ProcessGridKey: Home/End navigate columns, not rows, like
4321 originally implemented
4322 - Broke ProcessKeyPreview code out into an extra Internal method
4323 so it can be called from the edit code
4324 * DataGridTextBox.cs (ProcessKeyMessage):
4325 - Switched to accept Tab keypresses
4326 - Added F2 handling to allow jumping to the end of the edited cell
4327 - Added logic to allow moving caret left/right inside edited cell
4328 and making the edited cell jump when the caret hits cell borders
4329 - Tab and Enter are now passed to the datagrid after being handled
4331 - Removed capture code now that Control handles it
4332 - set_SelectionStart now ensures caret is visible
4334 2006-03-16 Jackson Harper <jackson@ximian.com>
4336 * TrackBar.cs: Debackwards the increment/decrement for handling
4337 mouse clicks on the bar with vertical trackbars.
4338 * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
4341 2006-03-16 Mike Kestner <mkestner@novell.com>
4343 * ListView.cs: make shift/ctrl keyboard and mouse selection
4344 consistent with the MS control. Fix a bug in
4345 SelectedListViewItemCollection.Clear that was pissing me off for the
4346 better part of a day because the collection was being altered
4347 underneath us as we walked the list.
4349 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
4351 * Control.cs: Not sure how we could miss this so long, but it seems
4352 that MS.Net has Capture set all the way from before calling
4353 OnMouseDown through sending the mouse events until after
4354 OnMouseUp. This will fix DataGrid's selection being set to end
4355 at the location of the MouseUp.
4357 2006-03-15 Jackson Harper <jackson@ximian.com>
4359 * BindingContext.cs: Check the binding after its added so that it
4360 can initialize the binding managers and hookup to events.
4361 * Binding.cs: Data members seem to sometimes include rows/cols in
4362 the format Row.Column we now take this into account.
4363 - Hookup to the position changed event so we can update the
4364 control when the position has changed in the data set.
4365 * CurrencyManager.cs: Take into account the row/col naming
4366 convention when creating dataset tables.
4367 * BindingContext.cs: Using a newer better way of storing
4368 datasource/datamember pairs. Hopefully this better matches MS for
4369 looking up binding managers.
4372 2006-03-15 Jackson Harper <jackson@ximian.com>
4374 * BindingContext.cs: The currency manager needs the data member
4375 name, if the member is a data set we use the name to find the
4377 * CurrencyManager.cs: When creating the list prefer an IList over
4379 - Attempt to create a DataTable from a DataSet (TODO: might need
4380 some better error checking here, although MS doesn't seem to have much)
4381 - If we have a DataTable create a view and use it as our list.
4383 2006-03-15 Mike Kestner <mkestner@novell.com>
4385 * ListView.cs: keep a matrix of the icon mode layout to facilitate
4386 keyboard navigation. Support Up/Down/Left/Right selection correctly
4387 for all 4 View modes.
4388 * ListViewItem.cs: add internal row/col fields for icon layouts.
4390 2006-03-15 Jackson Harper <jackson@ximian.com>
4392 * TabControl.cs: Redraw the tabs when we resize so their newly
4393 calculated sizes are drawn on screen.
4394 * X11Keyboard.cs: Begginnings of XIM support. We also now support
4395 composite characters.
4396 * XplatUIX11.cs: Keyboard driver needs to know about focus changes
4397 - filter events so that composite characters can be created
4399 * X11Structs.cs: Add XIMProperties enum.
4401 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
4403 * Control.cs (BringToFront, SendToBack): Don't use window or handle
4406 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
4408 * Control.cs (PerformLayout): We don't need to consider visiblity
4409 for anchoring, only for docking. This fixes 'whacky' alignment
4410 in listbox and other controls that use implicit scrollbars after
4411 the previous PerformLayout patch
4412 * ListBox.cs: Switched to use implicit scrollbars
4414 2006-03-14 Mike Kestner <mkestner@novell.com>
4418 - chain up the "new event" overrides to base and use
4419 OnEvent to raise them. Part of fix for bug #76509.
4421 2006-03-14 Alexander Olk <alex.olk@googlemail.com>
4423 * FileDialog.cs: Do not select an item in the parent directory
4426 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
4428 * Control.cs (PerformLayout): It would seem that we considered
4429 invisible windows for our layout. Not quite the right thing
4430 to do. Now we don't any longer, thereby fixing bug #76889.
4432 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
4434 * Control.cs (CanFocus): I goofed. A control can have focus
4435 even though it's not selectable. Made it match MS docs.
4437 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
4439 * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
4440 center by default (fixes #76895)
4441 * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced
4442 all uses of Border3DSides.All with the explicit ORd together
4443 Left|Right|Top|Bottom because I assume that nobody was aware
4444 that All also implies a center fill. Most places I checked had
4446 * ProgressBarStyle.cs: Added
4448 2006-03-13 Mike Kestner <mkestner@novell.com>
4450 * ListView.cs: fix breakage in drag shadow header positioning
4451 from Peter's csc compilation fix.
4453 2006-03-13 Mike Kestner <mkestner@novell.com>
4455 * ListView.cs: fix NRE produced by backspacing twice in a focused
4458 2006-03-13 Mike Kestner <mkestner@novell.com>
4460 * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
4462 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
4464 * Hwnd.cs: Added fixed_size field to track windows whose size cannot
4466 * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
4467 the allowed size before making programmatic size changes
4469 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
4471 * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are
4472 set, metacity is broken and will still use the emty sizes in
4473 the struct. (Fix for #77089)
4475 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
4477 * XplatUIStructs.cs: Split WindowStyles into WindowStyles and
4478 WindowExStyles and marked both enums as Flags
4479 * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
4480 NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
4481 to match WindowStyles split
4483 - SetWMStyles: Added cehck to not apply WM attributes to Child windows
4484 - Updated to match WindowStyles split
4486 - Fixed FosterParent creation, was using ExStyle on the Style field
4487 (This should help with Popup focus issues)
4488 - Updated to match WindowStyles split
4490 2006-03-13 Jackson Harper <jackson@ximian.com>
4492 * MdiWindowManager.cs: Use the system menu height. Fixes some
4493 strange sizing issues.
4495 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
4497 * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
4499 - Scroll to caret after inserting text (#77672)
4500 - Make scroll range one pixel higher, fixes off-by-one error (and
4501 makes underlines visible on the last line)
4503 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
4505 * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
4506 the keyboard state from being stuck with keys in 'pressed' state when
4507 focus is switched away via keyboard
4508 * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
4509 reset the keyboard if no X11 KeyUp events are expected to come
4510 * X11Structs.cs: Switched type of Visible to bool to match driver
4512 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
4515 - Switched caret to be just 1 pixel wide, matches MS and looks less
4517 - Moved caret display 1 pixel down from the top of the control
4519 - InsertCharAtCharet: Update the selection start if moving the caret
4520 (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
4521 - No longer always creating the caret when the caret methods are
4522 called. Only the actual ShowCaret/HideCaret will do that now
4523 - Only setting caret visible if the owner control has focus
4524 - UpdateView: Added invalidation-shortcut logic for center and right
4525 aligned text. Previously we'd update all according to the left
4526 logic which caused drawing errors. Also fixed height of invalidated
4527 areas, now properly invalidating the whole area (was off-by-one)
4528 - owner_HandleCreated: Always generate the document when the
4529 handle is created; this ensures that
4531 - Fixed situation where caret would disappear under the right
4532 window border, also improved scrolling behaviour on left-
4534 - Fixed right-aligned textboxes to have a border to the
4535 right instead of the caret being under the right border
4537 - Switched from 'nested' to simple visible/not visible tracking
4538 for caret (part of fix for #77671)
4539 - No longer passing through translated FocusIn/FocusOut messages
4540 since we were notifying too often and the wrong windows. Instead
4541 we just notify our focussed window of receiving or loosing focus
4542 * XplatUIWin32.cs: Switched from 'nested' show/hide
4543 counting for caret to simple visible yes/no behaviour (part of
4546 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
4548 * Mime.cs: Remove debug code...
4550 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
4552 * MimeGenerated.cs: Removed
4553 * Mime.cs: Mime now reads the mime data (magic, globs, aliases
4554 and subclasses) from /usr/(local/)share/mime and
4555 $HOME/.local/share/mime.
4557 2006-03-10 Jackson Harper <jackson@ximian.com>
4559 * MdiWindowManager.cs: Recalc the NC area when a window is
4560 maximized/restored so that the menu area is drawn on forms that
4563 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
4565 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
4566 XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
4567 us to force a WM_NCCALCRESIZE message being sent. This is needed
4570 2006-03-10 Jackson Harper <jackson@ximian.com>
4572 * Form.cs: We need to use the ActiveMenu when calculating menu
4574 - Fix nullref when the window manager hasn't been created yet.
4575 * Control.cs: Fix nullref when we try to bring a control to the
4576 front that has no parent.
4577 * MdiWindowManager.cs: Use the MaximizedMenu for calculating
4579 - Add a dummy item to the maximized menu so it always has the
4580 correct height. Otherwise when there are no menus we don't get our
4584 2006-03-10 Jackson Harper <jackson@ximian.com>
4586 * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
4588 * Form.cs: Make the window_state internal so the window managers
4590 - When an MDI child is maximized let its window manager create the
4591 main menu (so it can add its icon).
4592 - Notify the window managers of state changes
4593 - Let the window manager paint its buttons and handle button
4594 clicks on the menu when it is maximized.
4595 * InternalWindowManager.cs: Move the prev_bounds into the mdi
4596 window manager, since tool windows don't use it, only mdi windows.
4597 - Tell the main form that we don't want it to handle NCPAINT
4598 itself to avoid extra painting.
4599 - Handle clicks on a maximized windows menu.
4600 - Handle window state changes
4601 - Handle minimize/maximize clicks correctly by setting the window state.
4602 * MdiWindowManager.cs: Add an icon menu that (the menu you get
4603 when clicking on the forms icon).
4604 - New method to create a forms maximized menu. This is its normal
4606 - Handle window state changes.
4607 - Handle sizing of maximized windows. Maximized windows are just
4608 drawn bigger then the parent visible area. All controls are still
4609 there, they are just outside the visible area (this matches windows).
4610 * MdiClient.cs: No scrollbars when a child window is maximized.
4611 - Let the children windows figure out how big they should be when
4612 sizing maximized windows.
4613 - Implement a version of ArrangeIconicWindows somewhat similar to
4614 Windows version. There are some little differences, but I don't
4615 think any app will rely on the layout of minimized mdi windows.
4617 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
4619 * Padding.cs: Several fixes to allow compiling with csc 2.0
4621 2006-03-09 Jackson Harper <jackson@ximian.com>
4624 * MenuItem.cs: Cheap hack so we can add items to the list without
4625 the events being raised. This allows adding mdi items during
4626 drawing. TODO: Should probably find a better time to add the items.
4628 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
4630 * ThemeWin32Classic.cs:
4631 - CheckBox_DrawText: Added logic to not wrap if not enough space
4632 is available (Fix for bug #77727)
4633 - RadioButton_DrawText: Added logic not to wrap if not enough
4634 space is available (Fix for bug #77727). Also removed some
4635 duplicate code, DrawString always drawing the regular text
4636 before hitting the if statement.
4638 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
4640 * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
4642 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
4644 * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
4645 * ContainerControl.cs: Partial implementation of some 2.0 scaling
4646 methods. Moved the new 2.0 properties into alphabetical order with
4647 other properties and added MonoTODO tags
4649 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
4651 * AutoScaleMode.cs: Added. Fix build.
4653 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
4655 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
4656 XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
4657 and was requiring premature handle creation for calls from above
4658 * Form.cs, Control.cs: Removed handle arguments from calls to
4659 CalculateClientRect()
4661 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
4663 * ListView.cs (HeaderMouseMove): Fix csc compilation.
4664 drag_column.column_rect is MarshalByRef and can't be used that way
4666 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
4668 * AxHost.cs: Added deserialization constructor for
4669 AxHost+State (fixes 77743)
4671 2006-03-09 Mike Kestner <mkestner@novell.com>
4674 - Added column drag reordering for details view.
4675 - fixed behavior when mouse is dragged off column and
4676 AllowColumnReorder is false.
4677 * ColumnHeader.cs: clone the format too in Clone.
4678 * Theme.cs: add DrawListViewHeaderDragDetails method.
4679 * ThemeWin32Classic.cs:
4680 - impl new method for drawing drag column shadows and targets.
4681 - support column offset for details mode in DrawListViewItem.
4683 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
4685 * TextControl.cs: Reset the char_count when the document is cleared
4686 (Fixes bug reported on mono-winforms mailing list)
4688 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
4690 * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
4691 of calling base we simply process the key ourselves, since both
4692 DefWindowProc and the handled method would set m.Result.
4695 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
4697 * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
4698 method also moves the window; instead implemented a copy of
4699 Control.ScaleCore (Part of fix for #77456)
4701 - Created new CreateGraphicsInternal method to allow providing
4702 a graphics context when no handle is created without triggering
4703 handle creation. (Part of fix for #77456)
4704 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
4706 - Switched Constructor to require TextBoxBase instead of Control (to
4707 allow uncast access to CreateGraphicsInternal)
4708 - Safeguarded use of owner.Handle property. No longer accessing it
4709 unless the handle is already created.
4710 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
4711 - Now triggering a recalc when owning control becomes visible
4712 * TextBox.cs, RichTextBox.cs: Switched to use new internal
4713 TextBoxBase.CreateGraphicsInternal() method to avoid triggering
4714 premature handle creation (Part of fix for #77456)
4716 - We now only destroy our double-buffering buffers when the
4717 control is resized or disposed, but not when visibility
4718 changes. (The code even re-created them twice every time)
4719 - Now requiring a redraw of the buffer on visibility changes
4720 (fixes bug 77654 part 2)
4721 - Not passing OnParentVisibleChanged up unless the control
4723 - CanFocus: Fixed to match MS documentation
4724 - Focus: Fixed to return actual focus state and to check if
4725 setting focus is legal before setting it
4727 2006-03-08 Peter Dennis Bartok <pbartok@novell.com>
4729 * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
4730 when to draw focus rectangle by looking at parent focus and
4731 selected state instead. This fixes TabPages on Linux sometimes
4732 having none or multiple focus rectangles.
4733 * XplatUIX11.cs (SetFocus):
4734 - Don't set the focus if the same window already has focus
4735 - Use SendMessage instead of PostMessage (like it's Win32
4736 equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
4737 to match MS behaviour
4738 * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
4741 2006-03-07 Jackson Harper <jackson@ximian.com>
4743 * PictureBox.cs: Revert line I accidently committed last week.
4745 2006-03-07 Peter Dennis Bartok <pbartok@novell.com>
4748 - Added new IsRecreating and ParentIsRecreating properties to
4749 allow testing if RecreateHandle has been called on ourselves
4750 or one of our parents
4751 - WndProc(WM_DESTROY): If our control handle is being recreated
4752 we immediately need to create the handle when receiving the
4753 destroy, that way our child windows find a valid parent handle
4754 when they themselves are being recreated upon WM_DESTROY receipt
4755 (fix for bug #77654 part 1)
4757 - DestroyWindow: WM_DESTROY must be sent to our own window before
4758 notifying any child windows. MS documents that child windows
4759 are still valid when WM_DESTROY is received. (Control now relies on
4761 - Added some fine-grain debug options
4763 2006-03-06 Jackson Harper <jackson@ximian.com>
4765 * MdiClient.cs: Redid scrolling logic a bit to create a virtual
4766 box and base calculations off this.
4767 * MdiChildContext.cs:
4768 * MdiWindowManager.cs: Don't need to ensure scrollbars here
4771 2006-03-06 Peter Dennis Bartok <pbartok@novell.com>
4773 * Splitter.cs: In situations where the affected control is added
4774 to the parent's control list after the splitter, we would not
4775 populate affected. Now we try populating it on mousedown, if
4776 it's not already set, and force it to be re-set whenever our
4779 2006-03-03 Matt Hargett <matt@use.net>
4781 * Control.cs: implement Control.Padding
4782 * Padding.cs: -Padding.All returns -1 when constructing with the
4783 implicit default ctor
4784 -Padding.ToString() matches MS.NET
4785 * ContainerControl.cs: implement
4786 ContainerControl.AutoScaleDimensions
4787 * ListControl.cs: implement ListControl.FormattingEnabled
4788 * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
4790 * TabPage.cs: Implement UseVisualStyleBackColor.
4791 * PictureBox.cs: Implement PictureBox.InitialImage.
4793 2006-03-03 Mike Kestner <mkestner@novell.com>
4795 * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
4796 event declarations to proxy to base event.
4797 * ListViewItem.cs: update to use ItemControl.
4798 * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
4799 * ThemeWin32Classic.cs: update to new ListView theme API and fix
4800 column header label rendering for 0 width columns.
4802 2006-03-03 Peter Dennis Bartok <pbartok@novell.com>
4804 * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
4805 that causes the control to be created. Fixes #77476.
4807 2006-03-02 Jackson Harper <jackson@ximian.com>
4809 * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
4812 2006-03-02 Peter Dennis Bartok <pbartok@novell.com>
4814 * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
4815 passed in for the EventArgs (fixes #77690)
4817 2006-03-01 Jackson Harper <jackson@ximian.com>
4819 * ScrollBar.cs: Refresh afterbeing resized.
4821 2006-02-28 Mike Kestner <mkestner@novell.com>
4823 * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
4824 Clean up a tracker compile warning.
4825 * MenuItem.cs: add internal PerformPopup method.
4828 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
4830 * TextBoxBase.cs (set_Text): Recalculate the document (causing an
4831 implicit expose) when the text is set to null
4833 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
4835 * RichTextBox.cs (FlushText): When newline is true, we always
4836 need to split the line, even if no text is on it and we may
4837 never eat newlines. (Fixes #77669)
4839 2006-02-28 Mike Kestner <mkestner@novell.com>
4841 * ListView.cs: Add UpdateSelection internal method. Remove SelectItem
4842 and set Selected instead.
4843 * ListViewItem.cs: Call owner.UpdateSelection to manipulate the
4846 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
4848 * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
4850 2006-02-28 Alexander Olk <alex.olk@googlemail.com>
4853 - Got rid of the panel. All controls are now directly added to
4855 - It is now possible to set a font with the Font property
4856 - MinSize and MaxSize property do now what they should
4857 - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
4858 - Searching and selecting a font with the font textbox works now,
4859 the same applies to the style and size textbox
4860 - Draw the correct 3D border in the example panel
4861 - Fixed a little mem leak (unused fonts didn't get disposed)
4862 - Many other internal updates/rewrites...
4865 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
4868 - InsertRTFFromStream: Added 'number of characters inserted' argument
4869 - set_SelectedRTF: Now using the number of characters to calculate
4870 the new location for the selection and cursor (x/y cannot be used
4871 due to potentially already wrapped text)
4873 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
4875 * TextControl.cs: Added property and implemented means to allow
4876 disabling recalculation of a document (can be used to speed up
4877 multiple inserts and is needed to make RTF inserts predictable, see
4879 * RichTextBox.cs: Using the new NoRecalc property of Document to
4880 keep x/y insert locations predictable. Also makes it faster inserting
4883 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
4885 * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
4886 it's easier for a child control to handle the other messages without
4887 having to duplicate the special functionality
4889 - WndProc: Removed calling base handler for WM_KEYDOWN and added
4890 code to handle processing the key ourselves, in order to get
4891 access to the result of KeyEventArgs.Handled. We now only call
4892 ProcessKey if they key hasn't been handled already. Fixes #77526.
4893 - set_Text: If null or empty string is given, just clear the
4894 document. Fixes part of #77526
4896 2006-02-27 Jackson Harper <jackson@ximian.com>
4898 * SizeGrip.cs: Paint the background color before painting the grip
4899 so things look right.
4900 * MdiClient.cs: Add the sizegrip when both scrollbars are used.
4902 2006-02-27 Mike Kestner <mkestner@novell.com>
4905 - Restructure layout and invalidation model to remove a ton of
4906 flicker from the control and speed up performance in general.
4907 - Add manual column resize, flickers like crazy, but I already have
4908 some ideas on how I'll fix that. (#76822)
4909 - Merge the three Icon-based views into a single layout method.
4910 - Move item selection interaction logic from the item since
4911 interaction with the collections is more appropriate to the view.
4912 - Deselection on non-item clicks.
4914 - Encapsulate most of the layout. Add some internal props to trigger
4915 layout. Move to a model where Items invalidate themselves instead
4916 of just invalidating the whole control every time something changes.
4917 - Invalidate on Text/Caption changes.
4918 - switch to an offset based layout model to avoid having to absolute
4919 position every element on item moves.
4920 - correct checkbox layout to conform to MS layout.
4921 * ThemeWin32Classic.cs:
4922 - refactor some column header drawing code.
4923 - fix string justification for column headers (#76821)
4924 - make SmallIcon labels top justified for compat with MS impl.
4925 * ThemeClearlooks.cs:
4926 - adjust to new ListViewItem internal checkbox bounds api.
4928 2006-02-27 Jackson Harper <jackson@ximian.com>
4930 * Control.cs: Change where implicit controls fall in the zorder.
4931 They are now on top of all children.
4932 - Synced AddImplicit code with Add
4933 - Removed unused enumerator.
4934 * SizeGrip.cs: Remove the TODO as its been TODONE.
4936 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
4938 * TextControl.cs(Insert): Combine the last lines unless the insertion
4939 string ends with \n\n, otherwise we leave one line too many (Fixes
4940 something I noticed with the testapp for #77526; the bug itself was
4941 already fixed in the previous checkin)
4943 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
4946 - SelectionColor and SelectionFont methods no longer set absolute
4947 styles. Instead, the keep font or color respectively (This
4948 resolves a long-standing FIXME in the code)
4949 - When flushing RTF text, the insert code now considers text trailing
4950 behind the insertion point (Fixes the bug where when replacing
4951 the selected text via SelectedRTF the remainder of the line behind
4952 the selection would stay on the first insertion line)
4954 - AppendText now updates the selection points after inserting text
4955 - AppendText now ensures that the last tag (sometimes 0-length) of
4956 the document is used for the style information (Fixes part of
4959 - Created new FontDefiniton class to allow describing partial style
4961 - StreamLine() now takes a lines argument, to allow it to decide
4962 whether an encountered zero-length tag is the last in the document
4963 (which must be kept to not loose the font/color contained in it,
4965 - Created Combine() and Split() methods for Marker structs, to
4966 support marker updates due to reformatted documents (soft line
4968 - Implemented Document.CaretTag setter
4969 - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
4970 of the last line (Not the cause, but also exposed by bug #77220)
4971 - Added LineTag argument to InsertString method, to allow callers
4972 to force a certain tag to be used (required to force use of the
4973 trailing zero-length tag of a document)
4974 - Now updating markers in Combine(), to avoid stale tag markers
4975 - Added some method descriptions to aid maintenance
4976 - Implemented new FormatText concept, allowing additive/subtractive
4977 formatting by only specifying the components that are to be
4978 changed. This was needed for resolving the RTB.SelectedColor/
4979 RTB.SelectedFont fixmes
4980 - Added Break() support method to allow breaking up linetags (used
4981 for partial formatting)
4982 - Added GenerateTextFormat() method. It is used for partial
4983 formatting and allows to generate a full font/color from given
4984 attributes and an existing tag.
4986 2006-02-26 Jackson Harper <jackson@ximian.com>
4988 * XplatUIX11.cs: Use the correct caption height.
4989 - Translate hittest coordinates to screen coords to match MS.
4990 * XplatUIWin32.cs: When we create MDI windows we need to reset
4991 some of the style flags, so we get a nice blank window, and can
4992 draw all the decorations ourselves.
4993 - Set a clipping rectangle on the non client paint event, the
4994 window manager drawing code needs one.
4995 * Form.cs: The window manager needs to know when the window state
4997 * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
4998 don't need to factor in border and title sizes in these
4999 methods. TODO: Remove the args and fix the call points.
5000 * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
5002 - Let the driver set the cursors.
5003 - Improve active window handling
5004 - Correct sizes for title bars and buttons.
5005 - Match MS drawing better
5006 * MdiWindowManager.cs: We don't need to handle border style
5007 updates specially anymore.
5008 - Check for scrollbars when windows are done moving
5009 - Handle Active properly.
5010 * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
5011 correctly. I am spewing the exception though, so we don't hide the
5014 2006-02-26 Pedro Martinez Julia <pedromj@gmail.com>
5016 * DataGridViewRowPostPaintEventArgs.cs,
5017 DataGridViewCellPaintingEventArgs.cs,
5018 DataGridViewRowCollection.cs,
5019 DataGridViewRowPrePaintEventArgs.cs,
5020 DataGridViewCell.cs: Clear a few warnings and implement a few
5021 exceptions that should be thrown.
5023 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
5025 * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
5026 'inheriting' our parent's (non-default) cursor. (Part of
5029 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
5031 * XplatUIX11.cs: Fixed cast to make csc happy
5033 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
5035 * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
5036 it's for the client area (part of fix for #77479 and needed
5037 for MDI window cursor handling)
5039 - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
5040 the appropriate default cursors and also passing the message
5042 - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
5043 for non-client areas
5045 2006-02-15 Jackson Harper <jackson@ximian.com>
5047 * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
5048 is a real MDI window
5050 2006-02-14 Alexander Olk <alex.olk@googlemail.com>
5052 * X11DesktopColors.cs: Instead of checking the desktop session
5053 string for "KDE" check if it starts with "KDE"
5055 2006-02-10 Jackson Harper <jackson@ximian.com>
5057 * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
5060 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
5062 * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
5065 - Got rid of the panel. All controls are now directly added to
5067 - Changed to mono coding style
5069 2006-02-10 Jackson Harper <jackson@ximian.com>
5071 * InternalWindowManager.cs: We don't need the set visibility to
5072 false hack anymore now that peter has written beautiful shutdown
5075 2006-02-10 Peter Dennis Bartok <pbartok@novell.com>
5077 * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
5078 where already explicitly destroyed
5080 2006-02-10 Jackson Harper <jackson@ximian.com>
5082 * MdiClient.cs: Handle the case where windows are too high or to
5083 the left and we need scrollbars.
5085 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
5087 * MimeIcon.cs: Added some icons
5090 - Got rid of the panel. All controls are now directly added to
5092 - Changed to mono coding style
5093 - On Linux "My Computer" and "My Network" will now show some
5094 more usefull information. A new class, MasterMount, gathers
5095 this information from /proc/mount. Updated MWFFileView to make
5096 use of this information
5097 - Fixed a bug that caused FileDialog to crash when
5098 ".recently_used" file had a zero size
5099 - FilterIndex does now what it should
5101 * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
5104 2006-02-09 Jackson Harper <jackson@ximian.com>
5106 * ComboBox.cs: Don't touch if null.
5108 2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
5110 * Cursor.cs: 64bit safeness fix
5111 * XplatUIX11.cs: Removed several unneeded and one moronic cast.
5113 2006-02-09 Jackson Harper <jackson@ximian.com>
5115 * Form.cs: If a form is made into an MDI form update the styles so
5116 all the props can get set correctly.
5117 - Kill the mdi_container when we dont need it anymore.
5118 * InternalWindowManager.cs: Add missing NOT
5120 2006-02-08 Jackson Harper <jackson@ximian.com>
5122 * InternalWindowManager.cs: Respek clipping when drawing MDi
5125 2006-02-08 Jackson Harper <jackson@ximian.com>
5127 * Hwnd.cs: Add bits to track non client expose events.
5128 * XplatUIX11.cs: Track non client expose events on the hwnd. This
5129 gives us a proper invalid rect and will allow for some nice
5130 optimizations with NC client drawing
5131 - MDI windows are children windows, so move their style handling
5132 into the child window block.
5133 * InternalWindowManager.cs: Remove a state reset that was
5134 getting invoked at the wrong time. Fixes managed windows getting
5135 into a 'stuck' captured state.
5137 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
5139 * TextControl.cs (Document.ctor): Now initializing
5140 selection_anchor. Fixes #77493
5142 2006-02-07 Jackson Harper <jackson@ximian.com>
5144 * TrackBar.cs: The increment/decrements were backwards.
5146 2006-02-07 Mike Kestner <mkestner@novell.com>
5148 * Theme*.cs : remove ThemeEngine.Current usage as it just points back
5149 to the instance itself.
5151 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
5153 * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
5154 on ulongs and pointers, the size differs between 32bit and 64bit
5157 2006-02-07 Mike Kestner <mkestner@novell.com>
5159 * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
5160 for 64 bit platforms to work around a metacity bug.
5162 2006-02-07 Jackson Harper <jackson@ximian.com>
5164 * TrackBar.cs: Process the input keys we need, and hookup to
5165 KeyDown instead of using WndProc, so we get key messages.
5167 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
5169 * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
5171 * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
5172 we need to translate the XdndVersion atoms array before sending it
5174 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
5177 - The preceeding 64bit fixes had a bug: ChangeProperty expects the
5178 number of bits for the property, not the number of bytes. The
5179 change to provide IntPtr.Size broke 32bit. (64bit was also wrong
5180 but would not crash since it specified 8 bits instead of 4 bits)
5181 - More 64bit fixes: Switched all atoms from int to IntPtr (they are
5182 defined as XID -> long in the C headers)
5183 - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms
5184 references since those are now IntPtr to begin with
5185 - Switched all Atom.XXX 'int' casts to IntPtr casts
5186 - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
5187 - Fixed XInternAtom signature for 64bit, now returns an IntPtr
5188 - Added XChangeActivePointerGrab DllImport (for X11DnD)
5190 - Changed 'int' type for Atoms in XEvent structures to IntPtr
5191 - Changed atom in HoverStruct to be IntPtr
5193 - Removed local DllImports, switched code to use those from XplatUIX11
5194 - Removed/fixed casts related to the switch of Atom to be a IntPtr
5196 2006-02-06 Mike Kestner <mkestner@novell.com>
5198 * XplatUIX11.cs : many more 64 bit pinvoke changes. I've audited all the
5199 method signatures in the import region. There may still be some
5200 lingering struct marshaling issues, as I didn't drill down into those.
5203 2006-02-06 Jackson Harper <jackson@ximian.com>
5205 * ComboBox.cs: Dont manually set the top_item, this is computed
5206 when the scrollbar position is set.
5208 2006-02-06 Mike Kestner <mkestner@novell.com>
5210 * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
5211 startup crashes on amd64. There's other fixes needed. All pinvoke
5212 usage of Atom needs to be mapped to IntPtr for example. And there are
5213 likely other int/long issues to be addressed.
5215 2006-02-04 Alexander Olk <alex.olk@googlemail.com>
5217 * FileDialog.cs: One more...
5219 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
5221 * FileDialog.cs: Next try
5223 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
5225 * FileDialog.cs: First part of fix for #77464
5227 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
5229 * ButtonBase.cs, ContainerControl.cs, Forms.cs,
5230 ThemeWin32Classic.cs: Fix for #77458. Correct handling of
5231 AcceptButton border drawing.
5233 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
5235 * Form.cs: Moved positioning of form after auto scaling is applied,
5236 otherwise it would possibly use wrong form size.
5238 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
5240 * Control.cs (RecreateHandle): No need to re-create any child
5241 controls, the child windows will get destroyed automatically by
5242 the windowing system or driver, and re-created when the handle
5243 is being accessed the first time. Fixes #77456
5244 * Form.cs: No longer setting the form to closing if the handle is
5245 being recreated. This seems like the right thing to do, don't
5246 have a bug or testcase for this, though.
5248 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
5250 * FileDialog.cs: Suspend/Resume layouting when changing sizes of
5251 controls to avoid unwanted side effects
5253 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
5256 - ScaleCore needs to scale the bounds, not the ClientSize of the
5257 control. Fixes #77416.
5258 - DefaultSize is 0,0 for control
5260 - DefaultSize is 100, 20
5261 - SetBoundsCore: Now enforcing the height, no matter if the provided
5262 height is more or less than the preferred one, as long as AutoSize
5264 * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
5266 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
5269 - ResumeLayout: Fixed logic when to call PerformLayout, we may not
5270 call unless both performLayout is true *and* we have a pending
5272 - ResumeLayout: MS does not completely nest Suspend and Resume,
5273 they bottom out at 0, fixed our code to match that.
5274 - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
5275 SetBoundsCore, we were updating even when we shouldn't. This fixes
5276 swf-anchors mis-anchoring when resizing the app fast and lots.
5277 - UpdateDistances: Now only setting the left and top distance if
5278 we have a parent and are not suspended, this is based on
5279 a suggestion by Don Edvaldson in bug #77355.
5280 - OnVisibleChanged: Fixed logic when to create the control. We may
5281 not create the control if we have no parent or if it's not visible;
5282 switched to using Visible property instead of is_visible field
5283 since the property also considers parent states. This fixes a bug
5284 when starting Paint.Net
5286 2006-02-02 Jackson Harper <jackson@ximian.com>
5288 * Form.cs: If the forms handle hasn't been created yet don't call
5289 into xplatui to make it top most, just set the topmost flag on the
5290 form in CreateParams
5291 * XplatUIX11.cs: Handle WS_EX_TOPMOST.
5293 2006-02-01 Jackson Harper <jackson@ximian.com>
5295 * ScrollableControl.cs: Refactored the Recalculate method a
5296 little, this wasn't handling all the variants of bottom and right
5297 bars needed to be added and added/removed based on their
5298 counterparts being added/removed (which changes the drawable
5299 size). Also we special case client widths and heights of 0 and
5300 don't add the scrollbar for those.
5302 2006-02-01 Peter Dennis Bartok <pbartok@novell.com>
5305 - Added method to get AbsoluteGeometry(); currently unused, but might
5306 be used in the future, if we try again to figure out toplevel
5307 coordinates with some more crappy window managers
5308 - Added FrameExtents() method to retrieve the WM set decoration size
5309 - Tried to fix up AddConfigureNotify and handling of ReparentNotify
5310 to deal with at least KDE, FVWM and metacity (Fixes #77092)
5312 - Added whacky_wm tracking var for metacity
5313 - Added logic to have default menu height if the actual menu height
5314 has not yet been calculated (part of fix for #77426)
5315 * Form.cs: Keep track whether client size has been set and re-set
5316 it if a menu is added/removed afterwards (Fixes #77426)
5318 2006-01-31 Jackson Harper <jackson@ximian.com>
5320 * Control.cs: When a new Site is set on the component attempt to
5321 pull the AmbientProperties from it.
5323 2006-01-31 Peter Dennis Bartok <pbartok@novell.com>
5325 * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
5326 in the background of the owning form. Fixes #77332
5328 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
5330 * MimeIcon.cs: Fix for #77409
5332 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
5334 * XplatUIX11GTK.cs: Initial import
5336 2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
5338 * FixedSizeTextBox: fixes class signature
5340 2006-01-30 Jackson Harper <jackson@ximian.com>
5342 * FixedSizeTextBox.cs: New internal class that represents a
5343 textBox that will not be scaled.
5346 * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
5349 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
5351 * XplatUIX11.cs: Retrieve default screen number instead of
5352 assuming 0. Attempted fix for #77318
5354 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
5357 - GetWindowPos: When a window is parented by FosterParent, use
5358 the desktop instead of FosterParent as the base to get coordinates
5359 - CreateWindow: Don't make FosterParent the parent window for Popups
5360 if we don't want a taskbar entry, Popups automatically don't get one
5361 * Hwnd.cs: Need to call remove to actually remove the key from the
5364 2006-01-30 Mike Kestner <mkestner@novell.com>
5366 * MenuAPI.cs: adjust MainMenu item popup location to y=0.
5368 2006-01-30 Jackson Harper <jackson@ximian.com>
5371 * TreeNode.cs: Raise events no matter how the treenode is
5372 checked. Patch by Don Edvalson.
5374 2006-01-30 Jackson Harper <jackson@ximian.com>
5376 * TreeNode.cs: Signature fix.
5378 2006-01-29 Alexander Olk <alex.olk@googlemail.com>
5380 * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
5382 2006-01-20 Mike Kestner <mkestner@novell.com>
5384 * Form.cs: Add ActiveTracker property to do Captures and perform mouse
5385 event forwarding when menus are active.
5386 * MenuAPI.cs: kill the GrabControl hack. Use Form.ActiveTracker.
5387 Most of the patch is pdb's with a little rework.
5389 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
5391 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs:
5392 Removed GetMenuDC and ReleaseMenuDC methods; replaced
5393 by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
5394 * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
5395 * InternalWindowManager.cs: Added use of PaintEventStart/End to
5396 handling of WM_NCPAINT message, now passing the PaintEventArgs to
5397 the PaintWindowDecorations method
5398 * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
5399 * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
5400 * MenuAPI.cs: Made tracker window invisible
5402 - Removed GetMenuDC and ReleaseMenuDC methods
5403 - Implemented the client=false path for PaintEventStart and
5406 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
5408 * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
5409 * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
5412 - MaximizeBox, MinimizeBox: Recreate the handle when setting
5414 - CreateParams: Reworked the styles to match MS look'n'feel,
5415 removed automatic setting of MinimizeBox, MaximizeBox, etc. via
5416 the WS_OVERLAPPEDWINDOW style. This fixes #76823.
5418 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
5420 * XplatUIX11.cs(GetWindowState): Now throwing an exception when the
5421 window is not mapped, since otherwise every form that's being
5422 created is considered minimized, which is wrong.
5423 * Form.cs: Catching the exception and returning our internal value
5426 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
5428 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
5429 SetWindowMinMax() to have means to tell the driver about the minimum,
5430 maximum and maximized state window sizes. (Part of the fix for #76485)
5432 - Implemented tracking of minimum and maximum window size, now calling
5433 new SetWindowMinMax() driver method to tell the driver (Part of the
5435 - Finished handling of WM_GETMINMAXINFO method, now setting all values
5436 (Completes fix for #76485)
5437 - Calling new SetWindowMinMax driver method when the handle for a
5438 form is created, to make sure the driver knows about it even if
5439 the values have been set before the window was created
5440 - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
5441 to avoid messing up our anchoring calculations (partial fix
5443 * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
5445 - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
5446 - Improved GetWindowState() to detect 'Minimized' state on Metacity
5447 (and presumably other freedesktop.org compliant WMs). Left the
5448 assumption unmapped=minimized, needed for SetVisible to work.
5449 - Now setting the window state when creating windows
5450 - Fixed SetVisible to consider/set the window state when mapping
5451 a Form. We cannot set the state before it's mapped, and we cannot
5452 use Form.WindowState once it's mapped (since it would ask the
5453 driver and get 'normal'. Therefore, we grab the state before
5454 mapping, map, and then set state.
5455 - Implmemented SetWindowMinMax method; Metacity does not seem to
5456 honor the ZoomHints, though.
5458 - Removed MINMAXINFO (moved to XplatUIStructs)
5459 - Added SetWindowMinMax stub (on Win32 the only way to set that
5460 information is in response to the WM_GETMINMAXINFO message, which
5461 is handled in Form.cs)
5462 - Added logic to SetVisible to set the proper window state when a
5463 form is made visible (fixes #75720)
5465 2006-01-26 Jackson Harper <jackson@ximian.com>
5467 * Control.cs (BeginInvoke): Automagically handle EventHandlers the
5468 same way we handle them with Invoke.
5470 2006-01-25 Peter Dennis Bartok <pbartok@novell.com>
5473 - Added tracking of window state so CreateParams can return
5474 the appropriate style
5475 - Moved setting of WS_CAPTION style in CreateParams to allow
5476 styles without caption
5477 * DataGridTextBoxColumn.cs: We are now also creating the TextBox
5478 control if the TextBox property is accessed. Fixes #77345
5480 - get_Created: now uses is_disposed and is_created to determine
5481 return value (suggested by Jackson)
5482 - CreateHandle: No longer exits if the handle is being recreated
5483 - RecreateHandle: If the handle is not yet created call the
5484 appropriate method to create either control or handle. If the
5485 control is already created CreateHandle will simply exit instead
5486 of just creating the handle
5487 * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
5488 now SendMessage WM_DESTROY directly to the control when DestroyWindow
5491 - When DestroyWindow is called, instead of waiting for the
5492 DestroyNotification from X11, we directly post it to the WndProc
5493 and immediately dispose the hwnd object.
5494 Same applies to DestroyChildWindows, and this obsoletes the
5495 expose_pending tracking. Contrary to Win32 behaviour we destroy our
5496 child windows before our own, to avoid X11 errors.
5497 - Removed the direct sending of WM_PAINT on UpdateWindow
5499 - Reworked DoEvents and GetMessage to allow access to internal queue
5500 even when trying non-blocking access to the queue. Fixes #77335.
5501 Based on a patch suggestion by Don Edvalson. The new private
5502 GetMessage can now also be used as a backend for a PeekMessage
5504 * XplatUI.cs: Improved debug output for CreateWindow
5506 2006-01-25 Jackson Harper <jackson@ximian.com>
5508 * Help.cs: Allow param to be null. Patch by Don Edvalson.
5510 2006-01-24 Jackson Harper <jackson@ximian.com>
5512 * ComboBox.cs: Clamp the max value set for the vertical scrollbar
5513 when we have a MaxDropItems lower then the selected index.
5515 2006-01-24 Jackson Harper <jackson@ximian.com>
5517 * Control.cs: Don't allow selection of non visible controls, allow
5518 selection of controls without parents.
5520 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
5522 * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
5523 * DataGridDrawingLogic.cs: Add editing row only when is necessary
5525 2006-01-23 Jackson Harper <jackson@ximian.com>
5527 * UpDownBase.cs: Make the textbox handle all the selection and
5528 tabbing. This fixes tabing to updown controls.
5530 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
5532 * TextBoxBase.cs: fixes exception thown the object was null
5534 2006-01-23 Jackson Harper <jackson@ximian.com>
5536 * ButtonBase.cs: Just use the base CreateParams. They set
5537 visibility and enabled correctly.
5540 * MonthCalendar.cs: Lets let the base set as much of the
5541 createparams as possible so we don't have duplicate code all over
5544 2006-01-22 Alexander Olk <alex.olk@googlemail.com>
5546 * ThemeGtk.cs: Added TrackBar and some experimental code to
5547 get double buffering back
5549 2006-01-21 Jordi Mas i Hernandez <jordimash@gmail.com>
5551 * DataGrid.cs: Allows row number set internally higher than the last
5552 when creating a new row. Restores the editing functionality.
5554 2006-01-20 Mike Kestner <mkestner@novell.com>
5556 * MimeIcon.cs: delay Image creation until the icons are accessed
5557 instead of creating 190 scaled images on GnomeHandler startup.
5559 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
5561 * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
5562 first call base before processing the event. Fixes #77279
5564 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
5566 * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
5567 that the stride for the GDI bitmap would match the stride of
5570 2006-01-19 Alexander Olk <alex.olk@googlemail.com>
5572 * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
5574 2006-01-19 Jackson Harper <jackson@ximian.com>
5576 * ComboBox.cs: Hookup the text controls keydown event so we get
5577 those when the text control has the focus.
5579 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
5581 * Label.cs: Now using the base events instead of defining new ones;
5582 this allows us to just call the base properties without having to
5583 duplicate all base property logic
5585 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
5587 * Label.cs: A label by default is not a tabstop (Fixes one of our
5588 failing nunit tests)
5590 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
5592 * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
5593 * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
5595 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
5597 * Cursor.cs: Reimplemented creating cursor bitmaps without using
5598 the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
5601 - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream)
5602 constructor creates images that can't be saved. Part of the fix
5604 - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
5605 - SetWindowState: Switched ShowWindow flags (part of an upcoming
5606 bug fix for handling window state in forms properly)
5608 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
5610 * ThemeGtk.cs: Simplify ScrollBar drawing
5612 2006-01-18 Jackson Harper <jackson@ximian.com>
5614 * Splitter.cs: Set the default dock style for the splitter control
5617 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
5619 * ThemeGtk.cs: Corrected StateType and ShadowType for
5622 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
5624 * Control.cs: Make use of Theme.DoubleBufferingSupported
5626 - Added drawing for flat style buttons
5627 - Added ScrollBar drawing
5629 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
5631 * ThemeClearlooks.cs: Removed some unneeded code.
5632 * ThemeGtk.cs: First part of ThemeGtk enhancements.
5634 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
5636 * LinkLabel.cs: We need to update the hover drawing when
5637 leaving the control as well.
5639 2006-01-18 Jordi Mas i Hernandez <jordimash@gmail.com>
5641 * DataGrid.cs: Clicking on non empty areas in the columns
5642 area was giving an exception
5644 2006-01-17 Jackson Harper <jackson@ximian.com>
5646 * ThemeWin32Classic.cs:
5647 * ListView.cs: Do not draw/clip the headers when the header style
5650 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
5652 * DataGrid.cs: Fixes 77260
5654 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
5656 * DataGrid.cs: Clicking on a column on a empty grid was giving
5659 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
5661 * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
5662 or any keypress will crash the grid.
5664 2006-01-17 Mike Kestner <mkestner@novell.com>
5666 * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
5667 * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for
5668 invisible/previously-visible items.
5671 2006-01-17 Alexander Olk <alex.olk@googlemail.com>
5673 * ThemeClearlooks.cs:
5674 - Added CL_Draw_Button method; now other theme controls that are
5675 not derived from button or do not have a button can draw buttons
5677 - Updated ComboBox drawing
5678 - Beautified RadioButton drawing
5679 - Corrected drawing of bottom and left tabs
5680 - Beautified DateTimePicker and MonthCalendar
5681 - Added CPDrawButton and CPDrawRadioButton
5683 2006-01-16 Jackson Harper <jackson@ximian.com>
5685 * ComboBox.cs: Set the initial value of the scrollbar to the
5686 current index. Reduce the numbers of refreshs and IndexOfs called.
5688 2006-01-14 Alexander Olk <alex.olk@googlemail.com>
5690 * FileDialog.cs: When the file listview is focused hitting the
5691 backspace key moves the fileview to the parent directory
5693 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
5696 - Added RecreateHandle call when changing taskbar visibility to
5697 trigger reparenting in Win32 driver (Fixes #75719)
5698 - If a window has minimize or maximize buttons, it cannot have
5701 - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
5702 the toplevel form with FosterParent (A toolwindow not on the
5703 taskbar) (Fixes #75719)
5704 - Made FosterParent a toolwindow
5706 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
5708 * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
5710 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
5712 * ToolTip.cs: If SetToolTip is called from a control and the mouse
5713 is currently over that control, make sure that tooltip_window.Text
5716 2006-01-13 Mike Kestner <mkestner@novell.com>
5718 * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
5720 2006-01-13 Jackson Harper <jackson@ximian.com>
5722 * TreeView.cs: On MS GetNodeAt never actually factors in the X
5723 value passed. Also redraw the selected node when we recieve
5724 focus, so tabbing between trees works correctly.
5726 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
5728 * MimeIcon.cs: GnomeHandler: older gnome versions don't have
5729 ~/.gconf/%gconf-tree.xml, so use
5730 .gconf/desktop/gnome/interface/%gconf.xml
5732 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
5734 * TextControl.cs: Draw text in gray if control is disabled
5736 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
5738 * TreeView.cs: Draw the focus rectangle outside the highlight, to
5739 make sure it's always visible. Fixes #76680.
5741 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
5743 * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
5745 2006-01-13 Jonathan Chambers <jonathan.chambers@ansys.com>
5747 * PageSetupDialog.cs: Added.
5748 * PrintDialog.cs: Attributes.
5749 * PrintPreviewControl.cs: Updates.
5750 * PrintPreviewDialog.cs: Updates.
5752 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
5754 * Control.cs: Undid my selection check fix, since it's not needed
5756 - Now considering the presence of hscroll/vscroll when sizing
5757 vscroll/hscroll respectively. Fixed bug #77077
5758 - Added Left/Up/Down/Right to IsInputKey list to prevent
5759 ContainerControl from stealing them. This fixes what I broke
5760 with my last checkin.
5762 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
5764 * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
5765 I finally understand how the property can be set without a setter :-)
5767 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
5770 - Switched RunLoop to use static Message.Create to create a
5772 - Added PreProcessMessage call in runloop for keyboard events; this
5773 is part of the fix for #77219, I overlooked this originally in the
5774 MSDN doc for PreProcessMessage
5776 - Removed call to PreProcessMessage from handling of keyboard
5777 messages; it's supposed to be done in the message pump
5778 - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
5779 per MSDN documentation.
5780 - IsInputChar: All chars are input chars by default; removed the
5781 parent calling chain, MS does not document that
5782 - PreProcessMessage: If IsInputChar is true, we want to return false
5783 to allow dispatching of the message
5784 - When selecting the next control, now also check that we're not
5785 selecting ourselves again and therefore return a false positive.
5787 - Tried to match return values for IsInputKey and ProcessDialogKey
5788 to what MS returns; moved processing of our special keys outside
5789 ProcessDialogKey since MS does not seem to return true on those.
5790 - Moved code that previously was in ProcessDialogKey into new private
5791 ProcessKey method, which gets called upon receipt of WM_KEYDOWN
5792 - Reworked handling of WM_CHAR to not have to duplicate code from
5793 Control.cs anymore, instead we simply call down to base.
5795 2006-01-12 Jackson Harper <jackson@ximian.com>
5797 * ComboBox.cs: We always need to refresh the text area when
5798 EndUpdate is called. Fixes the combobox in the file dialog.
5799 * Control.cs: Don't create the creator_thread until the controls
5800 handle is created. Also in InvokeRequired we check if the
5801 creator_thread is null. This gives the effect of InvokeRequired
5802 returning true if the controls handle is not created yet, and
5805 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
5808 - Added StartLoop() driver method. This is used to allow drivers to
5809 prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
5810 loop for a particular thread
5811 - Added EndLoop() driver method. This is called once the message
5812 pump for the thread is shut down
5813 - Added SupportsTransparency method to allow the driver to indicate
5814 opacity support for windows
5816 - Removed TODO attribute, completed AllowTransparency property
5817 - Added documented logic to Opacity
5818 * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
5819 ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
5820 versions of CompatibleTextRendering
5821 * X11Structs.cs: Added opacity atom to our atom enumeration
5822 * Hwnd.cs: Added opacity tracking (we need to track since the opacity
5823 of a form might be set before it's reparented by the WM, and we need
5824 the opacity value without calling up to Form)
5825 * XplatUIDriver.cs: Added StartLoop(), EndLoop() and
5826 SupportsTransparency() driver methods
5827 * Application.cs: Now calling StartLoop and EndLoop driver methods
5829 - Added opacity atom registration
5830 - Added StartLoop()/EndLoop() methods. They're empty right now but
5831 will need to get implemented when we switch to a per-thread queue
5832 - Implemented SupportsTransparency() method
5833 - Implemented SetWindowTransparency() method
5834 - Added support for setting the opacity value when a window is
5835 reparented (since the opacity needs to be set on the WM frame)
5836 * XplatUIOSX.cs, XplatUIWin32.cs:
5837 - Added SupportsTransparency(), StartLoop() and EndLoop() methods
5839 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
5841 * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
5843 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
5845 * FileDialog.cs: Added ToolTip for MWFFileView
5846 * MimeIcon.cs: Rewrote GnomeHandler.
5847 - Get currently used gnome icon theme from
5848 ($HOME)/.gconf/%gconf-tree.xml
5849 - Make use of inherited icon themes
5850 - Support SVG icon themes like Tango via librsvg
5852 2006-01-12 Miguel de Icaza <miguel@novell.com>
5854 Revert's Jackson's revert which broke 2.0 builds. Fix both
5857 * Application.cs: Move the use_compatible_text_rendering outside
5858 the NET_2_0 define. If we ever need to use the
5859 use_compatible_text_rendering on the individual controls they will
5860 access the variable from the common shared code paths.
5862 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
5865 - Added more granular debug options
5866 - Added method to print both window text and id
5867 - Switched debug output to use new Window() debug method
5868 - Added IsEnabled() driver method
5869 - Added EnableWindow() driver method
5871 - Removed end_modal; no longer needed, new loop handles termination
5872 via 'closing' variable
5873 - If form is modal, setting DialogResult will now initiate loop
5874 termination via 'closing' variable
5875 - Added support for is_enabled/WS_DISABLED to CreateParams
5876 - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
5878 - Removed code that's now in RunLoop from ShowDialog()
5879 - Added various documented sanity checks to ShowDialog()
5880 - Added handling of WM_DESTROY message; we set 'closing' on getting
5881 the message to indicate the message pump to terminate
5882 - Added handling of new internal WM_CLOSE_INTERNAL message - it's
5883 send by the Application.ExitThread method. (We send the message
5884 to destroy the window after all other events have been
5885 processed through the queue, instead of destroying the handle
5887 - Moved code from Close() method to WM_CLOSE handler; added logic
5888 to only send close-related events if the form is not displayed
5890 * Splitter.cs (..ctor): Fixed typo in resource name
5892 - DrawBackgroundImage: Explicitly selecting the wrap mode for the
5894 - set_Cursor: Now only setting calling into XplatUI if the handle for
5895 the control is already created; this avoids implict handle creation
5896 or crashes if it's not created
5897 - set_Enabled: Now setting the enabled state via the new driver method
5898 instead of just tracking it
5899 - CreateParams: Added logic to set WS_DISABLED based on enabled state
5900 - CreateControl: Reordered event firing and method calls to more
5901 closely fire events in the order MS does. Now setting the
5902 enabled state in the driver when creating the control.
5903 - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
5905 * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
5906 MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED
5907 * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
5909 - Added tracking of window enabled state (get_Enabled/set_Enabled)
5910 - Added EnabledHwnd property to easily allow a driver to find the
5911 handle of the first enabled window in the parent chain (this is
5912 used by drivers to pass up input events of disabled windows)
5913 * XplatUIDriver.cs: Added IsEnabled() method
5915 - Removed crude and obsolete exiting tracking variable
5916 - Removed internal ModalRun(); replaced by RunLoop()
5917 - Implemented private CloseForms() method to allow closing all
5918 windows owned by a particular (or all) threads
5919 - Exit() now properly closes all windows without forcing the message
5921 - Removed obsolete InternalExit() method
5922 - Changed Run() methods to use new RunLoop() message pump
5923 - Implemented new RunLoop() method for both modal and non-modal forms
5925 - get_CreateParams: Added setting of WS_DISABLED
5926 - Simplified ShowDialog(); now all the work is done in RunLoop(),
5927 invoked via Form.ShowDialog()
5928 * NativeWindow.cs: We don't remove the window from the collection when
5929 the handle is destroyed; there might still be messages for it in the
5930 queue (mainly the resulting WM_DESTROY); instead it will be removed
5931 when Control calls InvalidateHandle in the WM_DESTROY handler
5933 - CreateWindow: Added logic to handle the WS_DISABLED window style
5934 - EnableWindow: Implemented based on Hwnd.Enabled
5935 - GetMessage: Reset PostQuitState so the method can be called again
5936 - Implemented support for disabled windows (passing messages to the
5937 first enabled parent) in handling all input messages
5938 - Added optimizations for handling Expose events
5939 - Implemeted new driver method IsEnabled()
5940 - Now always resetting paint pending tracking vars when we start paint
5941 - Re-implemented UpdateWindow via just sending a WM_PAINT message
5942 * XplatUIOSX.cs: Added IsEnabled method stub
5943 * XplatUIWin32.cs: Implemented new IsEnabled() method
5945 2006-01-11 Jackson Harper <jackson@ximian.com>
5947 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
5948 LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
5950 * ColorDialog.cs: Clear out the old form before adding the new
5953 2006-01-11 Jackson Harper <jackson@ximian.com>
5955 * X11Dnd.cs: Make sure to add all the text formats when adding
5956 strings to the data object.
5957 * TreeNodeCollection.cs: When adding to a sorted tree we need to
5958 do some redrawing too. Also change the UpdateNode to an
5959 UpdateBelow so the newly added node gets painted.
5961 2006-01-11 Miguel de Icaza <miguel@novell.com>
5963 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
5964 LinkLabel.cs, PropertyGrid.cs: Implement the
5965 UseCompatibleTextRendering property for 2.x
5967 * Application.cs (SetCompatibleTextRenderingDefault): Add.
5969 2006-01-11 Jackson Harper <jackson@ximian.com>
5971 * TreeView.cs: Use the property for setting the selected node so
5972 the correct events get raised.
5973 * TreeNode.cs: Update the tree when the fore/back colours of a
5976 2006-01-10 Jackson Harper <jackson@ximian.com>
5978 * TreeView.cs: Allow setting SelectedNode to null.
5980 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
5982 * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
5984 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
5986 * PrintControllerWithStatusDialog.cs: Update page number in dialog.
5988 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
5990 * PrintDialog.cs: Added attributes and set default property values.
5992 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
5994 * PrintControllerWithStatusDialog.cs:
5995 Added PrintControllerWithStatusDialog.
5997 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
5999 * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
6000 XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
6002 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
6004 * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
6006 2006-01-09 Jonathan Chambers <jonathan.chambers@ansys.com>
6008 * ComboBox.cs: Added KeyDown event handler for processing arrow keys
6009 and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
6011 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
6013 * MimeIcon.cs: Added internal class SVGUtil.
6015 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
6017 * FileDialog.cs: Don't crash if there are two files with the
6018 same name but different locations.
6020 2006-01-08 John BouAntoun <jba-mono@optusnet.com.au>
6022 * MonthCalendar.cs: Fixed annoying rendering bug when selecting
6023 dates across multiple month grids. Used to not highlight entire
6024 month, but does now.
6026 2006-01-06 Jackson Harper <jackson@ximian.com>
6028 * MonthCalendar.cs: Removed DoEvents call to prevent a running
6029 message loop. Change timer intervals to numbers that seem more
6032 2006-01-06 John BouAntoun <jba-mono@optusnet.com.au>
6034 * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
6035 object for location info since screen object is now implemented.
6037 2006-01-05 Jackson Harper <jackson@ximian.com>
6039 * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
6040 * AsyncMethodResult.cs: We no longer use a WeakReference for the
6041 AsyncMethodResult, this is because we ALWAYS want the
6042 ManualResetEvent to get set.
6043 * Control.cs: When disposing use an async invoke to call shutdown
6044 code, so that thigns don't block on the finalizer thread. Also
6045 check if we even have a message loop before trying to send
6046 messages, if we don't then don't bother sending messages.
6047 - No more weak references for async methods
6048 * XplatUIDriver.cs: No more weak references for async methods.
6050 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
6052 * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
6053 returns two FontFamily with the same name
6055 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
6057 * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of
6058 drawing disabled text. Instead using the ColorGrayText color
6060 2006-01-04 Jackson Harper <jackson@ximian.com>
6062 * TreeNode.cs: redraw the node when its image index is changed.
6064 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
6066 * RichTextBox.cs: Same fix as last, just for SelectionColor. This
6067 time I checked there are no others like it.
6069 2006-01-04 Jackson Harper <jackson@ximian.com>
6071 * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
6072 this gives the behavoir I was looking for.
6073 * Control.cs: Special case Invoking EventHandlers, this matches MS
6074 and fixes part of bug #76326.
6076 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
6078 * ThemeClearlooks.cs, FileDialog.cs:
6079 - Reflect the latest Theme class changes
6080 - Remove Mono.Unix.Syscall.time in FileDialg and replace it
6083 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
6085 * Theme.cs: Cache UI resource images and resize them if needed
6087 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
6089 * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
6090 is called. This fixes the crash in Nexxia when setting the font
6091 attributes in the chat. [However, RTF needs a look-over to make sure
6092 that all SelectionXXX methods handle the special case that selection
6093 is empty and therefore the change must be applied to all text starting
6094 at the cursor/selection start]
6096 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
6098 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
6099 XplatUIOSX.cs: Added SendMessage and PostMessage methods
6100 * X11Keyboard.cs: Switched to new way of calling PostMessage
6102 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
6104 * Theme.cs: Added theme interface for images to allow the theme to
6105 control what images are used for things like FileDialog, MessageBox
6107 * MessageBox.cs: Now uses the new Theme icon/image interfaces
6109 2006-01-03 Alexander Olk <alex.olk@googlemail.com>
6112 - Removed some dead code
6113 - Opening a recently used file does work now
6114 - Small UI enhancements
6117 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
6119 * FileDialog.cs: Forgot too add __MonoCS__
6121 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
6123 * FileDialog.cs: We are able to read recently used files now let's
6124 go on and write them.
6126 2006-01-01 Alexander Olk <alex.olk@googlemail.com>
6128 * FileDialog.cs: Breathe some life into "last open"/"recently used"
6130 * MimeIcon.cs: Do a check for the top level media type also
6132 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
6134 * ThemeClearlooks.cs:
6135 - Added CPDrawStringDisabled
6136 - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
6137 some chars if the text doesn't fit into text_rect
6138 - DrawListViewItem: If View = View.LargeIcon center the image;
6139 rewrote the drawing of ListViewItem.Text if View =
6142 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
6144 * MimeIcon.cs: Use default KDE icon theme if there is no
6145 "48x48" directory for the current icon theme, fixes #77114
6146 * Mime.cs: Disable not working and actually not used code.
6147 * ThemeWin32Classic.cs:
6148 - Replace "new SolidBrush" in GetControlBackBrush and
6149 GetControlForeBrush with ResPool.GetSolidBrush
6150 - Changed DrawListViewItem from private to protected virtual
6152 - Added form.MaximizeBox = true
6153 - Don't throw an exception if there is a broken symbolic link
6155 2005-12-23 Jackson Harper <jackson@ximian.com>
6157 * TabControl.cs: Give the panels focus, keyboard navigation is
6158 fixed so this works correctly now.
6159 - We need these key events also.
6160 * ToolBar.cs: Remove some of the poor mans double buffering.
6162 2005-12-24 Alexander Olk <alex.olk@googlemail.com>
6164 * ComboBox.cs: The internal TextBox now returns the focus.
6166 2005-12-23 Jackson Harper <jackson@ximian.com>
6168 * ThemeWin32Classic.cs: Draw the text for all tab appearances.
6170 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
6172 * Control.cs: Removed debug code
6173 * XplatUIX11.cs: Changed DestroyChildWindows to also consider
6176 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
6178 * Control.cs: When creating the control, update the Z-order after
6179 all it's children are created, too. (Fixes nexxia not showing
6182 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
6184 * Control.cs: Do not update the anchoring distances if layout is
6185 suspended, instead do it once layout is resumed
6187 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
6190 - After many hours of debugging, for both Jackson and
6191 myself, it turns out that it helps to set the parent of a control
6192 if you want to actually see it onscreen. In the spirit of that
6193 discovery, we're now setting the parent of the control and
6194 it's children when the control's handle is created. This fix
6195 will make Lutz Roeder's Reflector run happily.
6196 - now just creating the handle instead of the whole control when
6197 getting a graphics context for the control.
6199 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
6201 * ScrollableControl.cs: When calculating the canvas, don't consider
6202 the scrollbar widths. Instead, predict if horizontal scrollbar
6203 will affect canvas when deciding on vertical display and vice versa.
6205 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
6207 * RichTextBox.cs: Set default RTF font for documents that don't
6208 have a font table (Fixes #77076)
6210 2005-12-22 Jackson Harper <jackson@ximian.com>
6212 * TextBoxBase.cs: It's difficult to do, but you can have an empty
6213 clipboard. This prevents a NullRef in that case.
6214 * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
6215 clipboard. PRIMARY is for the currently selected text only. (We
6216 should implement PRIMARY at some point.
6218 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
6220 * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
6221 a Unicode function with a structure that was defined in Ansi way.
6224 2005-12-21 Jackson Harper <jackson@ximian.com>
6226 * StatusBar.cs: Statusbar handles its fore/back colours on it's
6227 on. Because thats how it rolls. (and this avoids it using ambient
6229 * ThemeWin32Classic.cs: Use the proper back color for filling.
6230 * Menu.cs: Use the system menu bar color for drawing menu
6231 bars. Using the window back color will bring ambient colours into
6234 2005-12-21 Alexander Olk <alex.olk@googlemail.com>
6236 * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
6237 Bitmaps were created and not disposed.
6239 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
6241 * Control.cs (CreateControl): Don't do anything if the control is
6242 already created, otherwise we'd fire the OnCreated event more than
6245 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
6247 * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
6248 will always match. Instead return -1. Fixes #76464.
6250 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
6252 * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
6253 neither the beginning nor the end of the line (Fixes bug #76479)
6255 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
6258 - ControlNativeWindow.ControlFromHandle(): Now handling situation
6259 where handle is invalid
6260 - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
6261 instead of slower linear search
6262 * NativeWindow.cs: Don't remove the window from the hashtable until
6263 after the driver has destroyed it (since the driver might use
6264 Control.FromHandle to lookup the control object
6265 * Hwnd.cs: Added DestroyPending property to track if a window is
6266 already destroyed as far as the driver is concerned and only hasn't
6267 yet notified the control
6269 - Activate(): Check if the window is still valid before using the
6271 - Implemented DestroyChildWindow() method to mark child windows as
6272 destroyed when a window is destroyed. This prevents situations
6273 where we might call an X method based on queued events for a
6274 window that already has been destroyed but we haven't yet pulled
6275 the destroy method from the queue.
6276 - Added a call to the new DestroyChildWindow() method to the drivers
6277 DestroyWindow code. Also now marking the destroyed window itself
6280 2005-12-20 Jackson Harper <jackson@ximian.com>
6283 * StatusBarPanel.cs: Don't calculate panel sizes on draw
6284 anymore. Just do them when needed, also track the rects of panels
6285 so that we can optimize refreshing more in the future.
6287 2005-12-20 Alexander Olk <alex.olk@googlemail.com>
6289 * ColorDialog.cs: Fixed focus drawing in small color controls
6291 2005-12-19 Jackson Harper <jackson@ximian.com>
6293 * InternalWindowManager.cs:
6294 * MdiWindowManager.cs: Cleanup some coordinate system changes so
6295 moving windows works properly.
6297 2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
6300 - Removed call to InitLayout() from SetBoundsCore(); doc says
6301 it's only called when a control is added to a container
6302 - Split InitLayout logic, moved to separate UpdateDistances() method
6303 since we need to perform those calculations more often than just
6304 when adding the control to a container. (Needed to fix #77022)
6305 - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
6306 - Reduced the OnBindingContextChanged events count, don't send them
6307 unless the control is created, we still aren't totally matching
6308 MS, but I can't quite figure out some of their rules
6310 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
6312 * ThemeClearlooks.cs: Corrected distance between ProgressBar
6315 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
6317 * ThemeClearlooks.cs:
6318 - Updated ProgressBar drawing
6319 - Corrected drawing of ScrollBars and scroll buttons
6320 - Some temporary fixes for minor pixel artefacts
6322 2005-12-18 Peter Dennis Bartok <pbartok@novell.com>
6325 - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
6326 cause events to be sent in the same order as MS does.
6327 - Added ChangeParent() method to trigger various OnXXXChanged events
6328 that need to be fired when a parent changes (This is a reworking
6329 of the patch from r54254, with the X11 errors fixed)
6330 - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
6331 since on MS we get OnLayoutChanged events when calling Clear()
6332 - Changed Enabled property to consider parent state as well, if a
6333 parent is not enabled, the control will not be either
6334 - Changed Parent property to simply call Controls.Add() since that
6335 now does all the work required, this way we avoid code duplication
6336 - Threw in a few OnBindingsContextChanged calls to try and match
6337 when MS sends them. We seem to send a few too many, though.
6338 - Added call to CreateControl when adding the control to a parent.
6339 We were never calling CreateControl. Still needs some work, in
6340 some places we treat HandleCreated and ControlCreated as equal,
6342 - Removed obsolete commented out code from UpdateZOrder()
6344 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
6346 * ThemeClearlooks.cs: Updated TrackBar drawing.
6348 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
6350 * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
6352 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
6354 * FileDialog.cs: Add the Help button and the open readonly
6355 checkbox only if needed
6357 2005-12-16 Jackson Harper <jackson@ximian.com>
6359 * Control.cs: Make sure we have an active menu before trying to
6360 process commands on it. Prevents menu-less forms from crashing
6361 when Alt is pressed.
6362 * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
6364 * RichTextBox.cs: Expand statement to help out gmcs and fix the
6367 2005-12-16 Jackson Harper <jackson@ximian.com>
6369 * InternalWindowManager.cs: Don't translate tool windows screen
6370 coordinates. This fixes windows 'bouncing' around when being moved.
6372 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
6375 - MaxLength now treats 2^31-1 equal to unlimited length (this is
6376 not quite MS compatible, MS uses that number only for single line
6377 and 2^32-1 for multi-line, but I figure it won't hurt keeping
6379 - Now enforcing the MaxLength limit when entering characters
6380 - Added argument to internal Paste() method to track if it's called
6381 from programatically or via keyboard, since keyboard driven pastes
6382 need to enforce max-length
6383 - Added logic to Paste to only paste as many chars as MaxLength
6385 * RichTextBox.cs: Updated to use new obey argument for internal Paste()
6387 - Added Length property to return number of characters in document
6388 - Added private CharCount property which only tracks actual chars
6389 in the document (no linefeeds) and fires event when CharCount
6391 - Added tracking of character count to all methods that alter it
6392 - Added LengthChanged event to allow applications to subscribe
6393 to any changes to the document
6395 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
6398 - Removed local password_char field (moved to TextBoxBase)
6399 - Now setting the document's password var when password is
6402 - Added password_char field (needed here so MultiLine can
6404 - Added logic to MultiLine property setter to set the document's
6405 variable when password display is allowed
6406 - Removed debug code and made some debug code conditional
6408 - Added RecalculatePasswordLine() method to handle special password
6410 - Added PasswordChar property, also added related tracking vars
6411 - Draw() method now uses local text var for grabbing text to draw,
6412 this var is set to line.text unless we're doing password display,
6413 then it is set to the pre-generated all-password-chars line
6414 - Added calling RecalculatePasswordLine() method for password lines
6416 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
6419 - Added Reparented property to allow tracking of Window Manager
6420 reparenting actions (which affect X/Y calculations of toplevel
6422 - Made ToString() print window handles in hex
6424 - AddConfigureNotify(): Now uses reparented state off Hwnd to
6425 determine if X/Y needs offsetting
6426 - AddConfigureNotify(): Fixed offset calculations
6427 - Now adds ReparentNotify messages into the queue
6428 - Now processes ReparentNotify messages and causes a
6429 WM_WINDOWPOSCHANGED message to be sent upstream if a window
6430 is reparented (as most likely it's X/Y coordinates are changed
6433 2005-12-14 Jackson Harper <jackson@ximian.com>
6435 * XplatUIX11.cs: Tool windows still need to respek focus.
6437 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
6439 * Control.cs: Undid 54254 (causing XConfigure errors) so we can
6440 have a working release
6442 2005-12-13 Jackson Harper <jackson@ximian.com>
6444 * Form.cs: Update styles after setting the border style regardless
6445 of whether or not the window is using a window manager.
6447 2005-12-13 Jackson Harper <jackson@ximian.com>
6449 * Form.cs: We now hook into an internal window manager instead of just an
6450 MDI subsystem, this is so we can have properly behaving tool windows.
6451 * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
6452 * InternalWindowManager.cs: New internal class that acts as a
6453 window manager for tool windows and as a base for mdi windows.
6454 * MdiWindowManager.cs: New class that acts as a window manager for
6457 2005-12-12 Jackson Harper <jackson@ximian.com>
6459 * Control.cs: Updates so we match behavoir for for implicit
6460 controls. Fixes explosions in MDI.
6462 2005-12-12 Jackson Harper <jackson@ximian.com>
6464 * Control.cs: Implement Invalidate (Region).
6466 2005-12-12 Peter Dennis Bartok <pbartok@novell.com>
6469 - Changed handling of Controls.Add/Controls.Remove to fire (almost)
6470 the same events as MS does. MS fires events for each property
6471 except, for unknown reasons, Cursor, when the control is reparented.
6472 I can't seem to totally match add/remove since MS also fires some
6473 VisibleChanged events, which makes no sense. Consolidated the
6474 parenting code into a separate method so it can be called from
6475 both Add and Remove. set_Parent no longer needs any special logic
6476 as it calls the parent's add method which implicitly fires
6478 - Removed some obsolete code and debug output
6479 - Enabled state is inherited from parents, if this is enabled
6481 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
6483 * Form.cs: Removed commented out code
6485 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
6488 - Added internal version of Invoke, with additional argument
6489 indicating if we're calling it from a Dispose() handler. That
6490 way we can avoid BeginInvoke throwing an exception if we're
6491 calling for an already destroyed window.
6492 - Added a dispose argument to BeginInvokeInternal, and made the
6493 check if a valid window handle chain exists conditional on
6494 it not being a dispose call
6495 - Removed code in DestroyHandle to destroy our children. Since we
6496 now handle the WM_DESTROY message we will catch all our children
6498 - Now calling OnHandleDestroyed from our new WM_DESTROY handler
6500 - Added a field to track the application context of the form.
6501 - No need to set closing variable as response to WM_CLOSE, instead
6502 we destroy the window. We also call PostQuitMessage if the form
6503 has an application context (which makes it the main app form,
6504 which, when closed terminates the app)
6506 - Dropped Exit() method, it's naming was confusing
6507 - Added PostQuitMessage() which causes GetMessage to return false
6508 once the message queue is empty
6509 * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added
6511 * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
6512 no longer a valid XplatUI method, but left it in since it's used
6513 internally. Added empty PostQuitMessage() method.
6514 * MenuAPI.cs: Replaced call to Exit() with call to
6515 PostQuitMessage, even though this is probably no longer needed.
6516 * Hwnd.cs: Added 'pretty' ToString() to support debugging.
6517 * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
6519 - Replaced call to XplatUI.Exit() with PostQuitMessage()
6520 - Removed old debug code that would call XplatUI for exception
6521 display, enabled standard exception handling (Still not enabled
6522 though, until NativeWindow's ExternalExceptionHandler define
6525 - Added internal method to allow control to update NativeWindow
6526 after a window has been destroyed
6527 - Added handling of already destroyed windows when calling i
6529 - Added removal of handle from list on ReleaseHandle
6531 - Dropped GetMessageResult var and related code
6532 - Added PostQuitState to field to track if PostQuitMessage has been
6534 - Dropped Exit() method
6535 - Added PostQuitMessage() method
6536 - GetMessage now will return false if PostQuitState is set and no
6537 more messages are in the queue.
6538 - Expose handler will no longer generate WM_PAINT messages if we are
6539 in PostQuitState since it's very likely any windows have already
6540 been destroyed, and since Hwnd won't get updated until we have
6541 processed the DestroyNotify we'd be causing X errors.
6543 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
6545 * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
6546 Thanks to Mike for pointing out the err of my ways.
6548 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
6550 * Control.cs(PreProcessMessage): Moved menu handling back, but
6551 after all other key handling, to match MS (who handles Menu in
6553 * Menu.cs (WndProc): Removed my brainfart
6555 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
6557 * Control.cs(PreProcessMessage): Removed special menu handling
6558 * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
6560 2005-12-07 Mike Kestner <mkestner@novell.com>
6562 * Control.cs : special case SYSKEYUP so that we can adjust keynav
6563 state according in tracker.
6564 * Menu.cs : promote tracker field to base class and provide a tracker
6565 lookup capability. Add/Remove shortcuts dynamically if the top menu
6566 has a tracker. Unparent items that are removed from the collection.
6567 * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
6568 * Theme*.cs: add always_show_hotkeys field to support configurability
6569 of mnemonic display. win32 doesn't show mnemonics until Alt is
6572 2005-12-07 Jackson Harper <jackson@ximian.com>
6574 * MdiChildContext.cs: Use Control.ResetCursor.
6575 * Control.cs: ResetCursor needs to set the property so that the
6576 correct XplatUI call gets made.
6578 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
6580 * Control.cs: More fixes to make our key events match MS. We
6581 were not setting the modifier state on KeyData, and we were
6582 not generating any events when Alt was pressed with a key
6583 since handling of WM_SYSxxx was missing for the OnKey methods.
6585 2005-12-07 Jackson Harper <jackson@ximian.com>
6587 * MdiChildContext.cs: reenable the sizing code.
6588 - When the mouse leaves a window reset its cursor.
6590 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
6592 * ThemeClearlooks.cs: Reflect latest Hwnd changes
6594 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
6596 * Hwnd.cs: Now using the theme 3d bordersize to calculate
6597 widths of Fixed3D borders
6599 2005-12-07 Jackson Harper <jackson@ximian.com>
6601 * MdiClient.cs: Fix warnings. Earn Mike's love.
6603 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
6605 * ThemeClearlooks.cs:
6606 - Adjusted mouse over button color
6607 - Added first parts of CheckBox drawing
6608 - Added correct color for selected text background
6609 - Fixed ComboBox drawing
6610 - Added CPDrawBorder3D and CPDrawBorder
6612 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
6614 * XplatUIX11.cs: Added call to XBell for AudibleAlert
6616 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
6618 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
6619 XplatUIOSX.cs: Added AudibleAlert() method to have a means to
6620 alert users via sound. We could add an enum arg with different
6621 types of alerts in the future
6623 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
6625 * Control.cs: Fix behaviour problems pointed out by Mike
6627 2005-12-05 Mike Kestner <mkestner@novell.com>
6629 * StatusBarPanel.cs: add Invalidate method and hook it into all the
6630 prop setters. Calls parent.Refresh for now, but could be maybe be
6631 optimized with an internal method on StatusBar at some point.
6634 2005-12-05 Peter Dennis Bartok <pbartok@novell.com>
6636 * RichTextBox.cs: Implemented get_SelectionColor
6638 2005-12-05 Alexander Olk <alex.olk@googlemail.com>
6640 * ThemeClearlooks.cs:
6642 - Draw black button border only if button is Form.AcceptButton
6643 - Draw correct button color for pressed RadioButton if the mouse
6644 has entered the button
6645 - Updated ProgressBar drawing!
6646 - Updated CPDrawSizeGrip drawing
6647 - Updated StatusBarPanel drawing
6649 2005-12-05 Mike Kestner <mkestner@novell.com>
6651 * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
6652 * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
6654 2005-12-04 Alexander Olk <alex.olk@googlemail.com>
6656 * ThemeClearlooks.cs: Initial check-in, activate with
6657 export MONO_THEME=clearlooks
6658 * ThemeEngine.cs: Added ThemeClearlooks
6660 2005-12-03 Mike Kestner <mkestner@novell.com>
6662 * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
6665 2005-12-02 Jackson Harper <jackson@ximian.com>
6667 * Form.cs: If the child form has no menu the default main menu is
6668 used as the active menu.
6670 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
6672 * ListBox.cs: Check if any items exist before trying to resolve
6673 coordinates into items
6675 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
6677 * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
6678 as the second color for the background hatch
6680 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
6682 * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
6683 * RichTextBox.cs: FormatText position arguments are 1-based, now making
6684 sure that what we pass to FormatText is always 1-based. Fixes #76885
6686 2005-11-29 Miguel de Icaza <miguel@novell.com>
6688 * NumericUpDown.cs (EndInit): When we are done initializing,
6689 reflect any updates on the UI.
6691 2005-12-02 Jackson Harper <jackson@ximian.com>
6693 * ImplicitHScrollBar.cs:
6694 * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
6695 their container controls.
6696 * TreeView.cs: Use the new implicit scrollbars.
6698 2005-12-02 Jackson Harper <jackson@ximian.com>
6700 * TreeView.cs: Make top_node internal so the TreeNodeCollections
6702 * TreeNodeCollection.cs: If we remove the topnode we need to
6703 update topnode to the next node in line.
6704 - When clearing nodes go through the same process as removing
6705 them, so they get depareneted and checked if they are top node.
6707 2005-12-01 Jackson Harper <jackson@ximian.com>
6709 * TreeView.cs: When imagelists are used the image area is
6710 selectable as well as the text.
6711 - If there are no selected nodes select the first one.
6712 * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
6713 so don't do it more then we need to.
6715 2005-12-01 Jackson Harper <jackson@ximian.com>
6717 * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
6718 that arrows can be scaled.
6720 2005-12-01 Jackson Harper <jackson@ximian.com>
6722 * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
6723 fail. Patch by Dieter Bremes
6725 2005-11-30 Jackson Harper <jackson@ximian.com>
6727 * Form.cs: Property is 2.0 only
6728 * PrintDialog.cs: Signature fix.
6730 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
6733 - No longer artificially moves text 2 pixels down (now that we have
6734 borders this is no longer needed)
6735 - Added calcs for left, hanging and right indent
6737 2005-11-23 Mike Kestner <mkestner@novell.com>
6739 * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
6741 2005-11-30 Jackson Harper <jackson@ximian.com>
6743 * MdiChildContext.cs: Set the cloned menus forms, as these don't
6744 get cloned as part of CloneMenu ().
6745 * Menu.cs: Make sure the parent of the items get set correctly
6746 when they are added. And the owners are notified of the changes.
6747 * Form.cs: Create an ActiveMenu property, so that when MDI is used
6748 we can change the menu being displayed/handled by the form without
6749 changing the menu assosciated with the form.
6750 - Don't let Mdi children draw/handle menus.
6752 2005-11-30 Jackson Harper <jackson@ximian.com>
6754 * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
6755 a MenuChanged event. Just to make the API a little more
6758 * MenuItem.cs: Use the new OnMenuChanged
6759 * MdiChildContext.cs: Handle menu merging.
6760 * Form.cs: Implement MergedMenu.
6762 2005-11-30 Jackson Harper <jackson@ximian.com>
6764 * Menu.cs: We were misusing Add. Add goes behind the specified
6765 index according to the docs, and does not replace the specified
6766 index. So I added an Insert method.
6768 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
6770 * TextBoxBase.cs: Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
6771 Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
6773 * RichTextBox.cs: Added calls to base for DnD events
6775 2005-11-28 Peter Dennis Bartok <pbartok@novell.com>
6778 - Fixed drag-selection related crash; style fixes
6779 - Implemented undo class
6780 o Implemented method to capture document state for specified
6781 range in document tree
6782 o Implemented method to restore captured document state
6783 o Implemented cursor tracking
6784 o Implemented basic undo stack
6785 - Added undo cursor tracking to methods altering cursor location
6786 - Added undo tracking to selection deletion (still missing
6787 other text-altering hookups)
6789 - Added SelectionLength property
6790 - Implemented CanPaste()
6791 - Implemented Paste()
6792 - Added missing protected methods
6793 - Fixed RTF->Document conversion; now uses font index 0 and color
6794 index 0 as the default font for the parsed text
6795 - Fixed RTF<->Document font size translation
6796 - Fixed RTF generation, now properly handles cross-tag boundaries
6797 for single line selection
6798 - No longer always appends blank line to generated RTF
6800 - Added missing attributes
6801 - Hooked up undo-related methods
6803 - Implemented Copy()
6804 - Implemented Paste()
6806 - Fixed caret mis-behaviour on backspace across line-boundaries
6808 2005-11-29 Jackson Harper <jackson@ximian.com>
6810 * MdiClient.cs: Add a method for activating mdi children. Very
6811 basic right now. I imagine someday it might need more girth.
6812 * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
6813 children windows names are added to the menu item.
6814 * ThemeWin32Classic.cs: Draw the arrow if the item is an
6815 mdilist. This happens regardless of whether or not there are any
6816 mdi windows to see in the list, and according to my tests happens
6817 before the items are even added. Also happens if there isn't even
6818 an mdi client to get windows from.
6820 2005-11-29 Alexander Olk <alex.olk@googlemail.com>
6822 * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
6823 * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
6825 2005-11-29 Jordi Mas i Hernandez <jordimash@gmail.com>
6827 * DataGridTableStyle.cs:
6828 - Create always the styles for the missing columns even if they are
6829 provided by the user (not default table style)
6832 - Fixes SetDataBinding (always re-attach source)
6833 - Fixes SetNewDataSource (only clear styles if they are not for
6835 - Expands OnTableStylesCollectionChanged to handle style refresh
6838 2005-11-29 Jackson Harper <jackson@ximian.com>
6840 * FileDialog.cs: Implement missing bits, remove some dead
6842 * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
6843 creation of the panel so that the options set on the dialog are
6844 seen when the panel is created.
6845 * TreeView.cs: raise a click when items are clicked.
6847 2005-11-29 Jackson Harper <jackson@ximian.com>
6849 * MdiClient.cs: Pass some signature methods through to base.
6851 2005-11-28 Jackson Harper <jackson@ximian.com>
6853 * ListView.cs: Raise the click event when items are clicked.
6855 2005-11-28 Jackson Harper <jackson@ximian.com>
6857 * MdiClient.cs: Make this algorithm even more beautiful. And fix
6860 2005-11-27 Alexander Olk <alex.olk@googlemail.com>
6862 * ThemeNice.cs: - Removed 1 pixel bitmaps
6863 - Use SmoothingMode.AntiAlias where it makes sense
6864 (ScrollButton arrow for example)
6865 - Enhanced Button focus drawing
6866 - Fixed ComboBox drawing (no artefacts anymore, focus
6867 rectangle is back again, reduced size of ComboButton, etc.)
6868 - Fixed RadioButton focus drawing for Appearence.Button
6869 - Slight ScrollButton redesign
6870 - Some LinearGradientBrush size fixes
6871 - GroupBoxes have now rounded edges
6872 - Fixed StatusBar drawing
6874 2005-11-25 Alexander Olk <alex.olk@googlemail.com>
6876 * ThemeNice.cs: - Remove dead code
6877 - use correct background colors for menus, etc.
6878 - Fake pixel drawing with 1 pixel bitmaps
6880 2005-11-24 Jackson Harper <jackson@ximian.com>
6882 * MdiClient.cs: Size the scrollbars when resizing the window.
6883 - Resize the maximized windows when the client is resized
6884 * Form.cs: Make the child context available
6886 2005-11-23 Jackson Harper <jackson@ximian.com>
6888 * MdiChildContext.cs: Don't size windows if they are maximized.
6890 2005-11-23 Mike Kestner <mkestner@novell.com>
6892 * ContextMenu.cs: use MenuTracker.
6893 * Control.cs: remove menu handle usage.
6894 * Form.cs: remove menu handle usage.
6895 * Hwnd.cs: remove menu handle usage.
6896 * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
6897 motion and clicks to the new Tracker handlers.
6898 * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
6900 * MenuAPI.cs: refactored to combine popup and menubar event handling.
6901 Killed the MENU and MENUITEM data types and associated collections
6902 since we now keep the info on Menu and MenuItem. Expanded TRACKER into
6903 MenuTracker class that exposes the leftovers from the old MenuAPI
6904 static methods. Restructured Capture handling so that only one grab is
6905 done for the entire menu hierarchy instead of handing off grabs to
6906 submenus. Tracker now has an invisible control to Capture when active.
6907 * MenuItem.cs: add sizing accessors, kill Create
6909 * Theme.cs: remove menu handle and MENU(ITEM) usage.
6910 * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
6911 MENU(ITEM). remove menu handle usage, use Menu directly.
6912 * XplatUIDriver.cs: remove menu handle usage.
6913 * XplatUIOSX.cs: remove menu handle usage.
6914 * XplatUIWin32.cs: remove menu handle usage.
6915 * XplatUIX11.cs: remove menu handle usage.
6917 2005-11-22 Jackson Harper <jackson@ximian.com>
6919 * Hwnd.cs: Don't compute the menu size for
6920 DefaultClientRectangle.
6921 - Reenable menu sizes being computed for GetClienRectangle.
6922 * Form.cs: Remove comment of trechery
6924 2005-11-22 Jackson Harper <jackson@ximian.com>
6926 * Hwnd.cs: The adjustments for the menu bar are made when it is
6927 attached to the form.
6929 2005-11-19 Jackson Harper <jackson@ximian.com>
6931 * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
6932 (just like on windows).
6934 2005-11-19 Jackson Harper <jackson@ximian.com>
6936 * MdiChildContext.cs: Handle all the buttons ourselves. We can't
6937 use real buttons anymore because they are in non client area. The
6938 one TODO here is that I need to somehow invalidate a section of
6939 the non client area.
6941 2005-11-18 Jackson Harper <jackson@ximian.com>
6943 * Control.cs: Put the enum check back in now that MDI doesnt have
6944 to use this to set border styles.
6945 * Form.cs: Only set mdi child windows borders if the handle has
6947 * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
6948 this directly on to the driver.
6949 - Get the move start position before adjusting for the titlebar
6950 height, this fixes the windows "skipping" when they are first
6953 2005-11-18 Jackson Harper <jackson@ximian.com>
6955 * XplatUIX11.cs: Just compute the mdi borders separately as they
6956 don't totally match up with normal form borders.
6958 2005-11-18 Jackson Harper <jackson@ximian.com>
6960 * Control.cs: Set WS_ styles for borders, so that the driver does
6961 not have to retrieve the control instance to figure out what kind
6962 of borders it should have.
6963 * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
6964 driver can know its an mdi child easily.
6965 * XplatUIX11.cs: Get the border styles and whether the window is
6966 MDI from the Styles and ExStyles params instead of having to get a
6967 control. This prevents a chicken and egg problem.
6969 2005-11-18 Jackson Harper <jackson@ximian.com>
6971 * MdiClient.cs: Fix typo so scrollbars show up correctly.
6973 2005-11-18 Jackson Harper <jackson@ximian.com>
6975 * MdiClient.cs: Calculate when to add and remove scrollbars
6977 * MdiChildContext.cs: Adjust the y position to take the titlebar
6979 - No height for FormBorderStyle.None
6981 2005-11-18 Jackson Harper <jackson@ximian.com>
6983 * Control.cs: Allow non enum values to be used for
6984 InternalBorderStyle. MDI does this to set a special border style.
6985 - New utility methods for converting points to/from client coords
6986 - Add the newly created control to the Controls collection before
6987 updating its style. This way UpdateStyle can walk the control
6988 heirarchy to find the control if needed.
6989 so I don't need to create a new Point object all the time.
6990 * Form.cs: Let MDI windows handle their border styles.
6991 - Set styles on MDI windows so the correct title style is derived.
6992 * MdiChildContext.cs: Move all the painting and window handling
6993 into the non client area.
6994 - Use correct sizing and put correct buttons on frames based on
6995 the FormBorderStyle.
6996 - Notify the mdi client about scrolling
6997 - Need to handle the buttons ourselves now, because they are all
6998 in non client areas and we can't add controls there.
6999 * MdiClient.cs: Halfway to scrolling, this implementation is
7000 somewhat broken though, we need to check to make sure other
7001 windows aren't causing scrolling before removing the bars. Also
7002 the bars need to be drawn on top, maybe I can switch implicit
7003 controls to be on top.
7004 * Hwnd.cs: caption_height and tool_caption_height are now
7005 properties of an hwnd, this way they can be set by the driver
7006 based on the type of window they are. In X11 the window manager
7007 handles the decorations so caption_height is zero unless its an
7009 - Add 3 pixel borders for MDI windows (0xFFFF).
7010 - Get rid of some code duplication, have DefaultClientRectanle
7011 just call GetClientRectangle.
7012 * XplatUIX11.cs: Pass caption_height and tool_caption_height to
7014 - Set border styles differently for mdi windows.
7015 * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
7018 2005-11-15 Mike Kestner <mkestner@novell.com>
7020 * Menu.cs: when adding an item to the collection, if item is already
7021 parented, remove it from the parent.
7023 2005-11-13 Alexander Olk <alex.olk@googlemail.com>
7025 * X11DesktopColors.cs: Added KDE support
7027 2005-11-11 Peter Dennis Bartok <pbartok@novell.com>
7030 - Clipboard methods now can translate Rtf format
7031 - No longer removes clipboard contents whenever a new format is added
7032 to allow placing multiple formats on the clipboard
7033 * Clipboard.cs: Clipboard now supports getting a IDataObject and
7034 will place all formats contained in it onto the clipboard. Also
7035 now cleans the clipboard before placing a new object onto it
7037 - Implemented set_Rtf
7038 - Implemented set_SelectedRtf
7039 - Created InsertRTFFromStream() method to allow single code base
7040 for all properties and methods that insert RTF into document
7041 - Removed debug output
7043 - Fixed Delete(int) to fix up line numbers
7044 - Fixed ReplaceSelection to combine start and end line
7045 - Fixed serious DeleteChars bug that would leave the document tree
7047 - Improved DumpTree with several logic checks to detect broken
7049 - Removed debug lines
7050 - Fixed Caret.WordForward/WordBack moving code, now always also
7051 updates caret.tag (fixes crash when word-selecting across tag
7052 boundaries via keyboard)
7053 - Added Insert() method for inserting multiline text into documents
7054 - Fixed DeleteChars() calculation errors that would cause a broken
7055 tag chain with multiple tag lines
7056 - DeleteChars() no longer crashes on multi-tag lines if not all tags
7057 - Split() no longer moves caret if split is at caret location
7058 - ReplaceSelection() now updates the cursor and re-displays it
7059 - ReplaceSelection() now uses new Insert() method to avoid code
7061 - FormatText() can now handle formatting partial lines
7063 - Append now uses new TextControl.Insert() method (this avoids
7065 - Implemented Ctrl-X (Cut) (
7066 - Implemented Ctrl-C (Copy)
7067 - Implemented Ctrl-V (Paste) (Still some bugs related to screen
7068 regeneration when pasting text; roundtripping Copy&Paste within
7069 edit control still fails due to some calculation bugs in GenerateRTF)
7070 - The Delete key will now remove the current selection if it is visible
7071 * TextBox.cs: Removed debug lines
7072 * XplatUI.cs: Trigger initialization of DataFormats (which requires the
7073 driver to be initialized and can't therefore be done via a static ctor)
7075 2005-11-10 Peter Dennis Bartok <pbartok@novell.com>
7077 * TextControl.cs: Added backend code for finding char arrays and strings
7079 - Added mouse wheel scroll support
7080 - Added support for VScroll and HScroll events
7082 - Implemented all seven Find() variants
7083 - Implemented GetCharFromPosition()
7084 - Implemented GetCharIndexFromPosition()
7085 - Implemented GetLineFromIndex()
7086 - Implemented GetPositionFromCharIndex();
7087 - Implemented SaveFile for PlainText and UnicodeText
7088 - Fixed set_Font, now setting a new font applies that font to
7090 - Implemented generic Document to RTF converter
7091 - Implemented SaveFile for RichText format (still missing unicode
7092 conversion for non-ansi chars)
7093 - Implemented get_Rtf
7094 - Implemented get_SelectedRtf
7096 2005-11-09 Peter Dennis Bartok <pbartok@novell.com>
7098 * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
7099 to allow any captures to be released before triggering OnClick. This
7100 way a click handler may capture the mouse without interference.
7101 * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
7102 This way we send them even though X may not allow a grab (if the window
7103 isn't visible, for example)
7105 2005-11-08 Pedro Martinez Julia <pedromj@gmail.com>
7107 * DataGridViewRowEventArgs.cs: DataGridView implementation
7108 * DataGridViewElement.cs: DataGridView implementation
7109 * DataGridViewComboBoxCell.cs: DataGridView implementation
7110 * DataGridViewDataErrorContexts.cs: DataGridView implementation
7111 * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
7112 * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
7113 * ImageLayout.cs: DataGridView implementation
7114 * DataGridViewComboBoxColumn.cs: DataGridView implementation
7115 * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
7116 * DataGridViewSelectionMode.cs: DataGridView implementation
7117 * IDataGridViewEditingControl.cs: DataGridView implementation
7118 * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
7119 * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
7120 * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
7121 * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
7122 * DataGridViewColumnSortMode.cs: DataGridView implementation
7123 * DataGridView.cs: DataGridView implementation
7124 * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
7125 * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
7126 * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
7127 * Padding.cs: DataGridView implementation
7128 * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
7129 * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
7130 * DataGridViewRowEventHandler.cs: DataGridView implementation
7131 * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
7132 * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
7133 * DataGridViewButtonCell.cs: DataGridView implementation
7134 * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
7135 * DataGridViewEditMode.cs: DataGridView implementation
7136 * DataGridViewCellValueEventArgs.cs: DataGridView implementation
7137 * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
7138 * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
7139 * DataGridViewCheckBoxColumn.cs: DataGridView implementation
7140 * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
7141 * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
7142 * DataGridViewCellEventHandler.cs: DataGridView implementation
7143 * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
7144 * DataGridViewCellStyleConverter.cs: DataGridView implementation
7145 * DataGridViewSelectedRowCollection.cs: DataGridView implementation
7146 * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
7147 * DataGridViewColumnEventArgs.cs: DataGridView implementation
7148 * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
7149 * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
7150 * QuestionEventArgs.cs: DataGridView implementation
7151 * IDataGridViewEditingCell.cs: DataGridView implementation
7152 * DataGridViewTriState.cs: DataGridView implementation
7153 * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
7154 * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
7155 * DataGridViewColumnCollection.cs: DataGridView implementation
7156 * DataGridViewCellValueEventHandler.cs: DataGridView implementation
7157 * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
7158 * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
7159 * DataGridViewColumn.cs: DataGridView implementation
7160 * DataGridViewCellBorderStyle.cs: DataGridView implementation
7161 * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
7162 * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
7163 * DataGridViewRow.cs: DataGridView implementation
7164 * DataGridViewImageCellLayout.cs: DataGridView implementation
7165 * DataGridViewImageCell.cs: DataGridView implementation
7166 * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
7167 * DataGridViewCheckBoxCell.cs: DataGridView implementation
7168 * DataGridViewHeaderCell.cs: DataGridView implementation
7169 * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
7170 * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
7171 * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
7172 * DataGridViewTextBoxColumn.cs: DataGridView implementation
7173 * QuestionEventHandler.cs: DataGridView implementation
7174 * DataGridViewCellStyleScopes.cs: DataGridView implementation
7175 * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
7176 * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
7177 * DataGridViewCell.cs: DataGridView implementation
7178 * DataGridViewCellEventArgs.cs: DataGridView implementation
7179 * DataGridViewClipboardCopyMode.cs: DataGridView implementation
7180 * DataGridViewCellStyle.cs: DataGridView implementation
7181 * DataGridViewColumnHeaderCell.cs: DataGridView implementation
7182 * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
7183 * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
7184 * TextFormatFlags.cs: DataGridView implementation
7185 * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
7186 * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
7187 * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
7188 * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
7189 * DataGridViewButtonColumn.cs: DataGridView implementation
7190 * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
7191 * HandledMouseEventArgs.cs: DataGridView implementation
7192 * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
7193 * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
7194 * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
7195 * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
7196 * DataGridViewRowCollection.cs: DataGridView implementation
7197 * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
7198 * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
7199 * DataGridViewHitTestType.cs: DataGridView implementation
7200 * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
7201 * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
7202 * DataGridViewColumnEventHandler.cs: DataGridView implementation
7203 * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
7204 * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
7205 * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
7206 * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
7207 * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
7208 * DataGridViewContentAlignment.cs: DataGridView implementation
7209 * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
7210 * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
7211 * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
7212 * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
7213 * DataGridViewPaintParts.cs: DataGridView implementation
7214 * DataGridViewCellCollection.cs: DataGridView implementation
7215 * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
7216 * DataGridViewImageColumn.cs: DataGridView implementation
7217 * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
7218 * DataGridViewElementStates.cs: DataGridView implementation
7219 * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
7220 * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
7221 * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
7222 * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
7223 * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
7224 * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
7225 * DataGridViewRowHeaderCell.cs: DataGridView implementation
7226 * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
7227 * DataGridViewTextBoxCell.cs: DataGridView implementation
7228 * DataGridViewBand.cs: DataGridView implementation
7229 * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
7230 * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
7231 * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
7232 * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
7233 * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
7234 * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
7235 * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
7236 * DataGridViewSelectedCellCollection.cs: DataGridView implementation
7237 * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
7238 * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
7239 * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
7241 2005-11-08 Peter Dennis Bartok <pbartok@novell.com>
7243 * ThemeWin32Classic.cs:
7244 - Draw the outside focus rectangle around buttons
7245 - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
7246 doesn't use end caps for every dash of a line anymore. This
7247 workaround ignores the forecolor.
7249 2005-11-08 Kornél Pál <kornelpal@hotmail.com>
7251 * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
7254 2005-11-07 Jackson Harper <jackson@ximian.com>
7256 * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
7258 2005-11-07 Jackson Harper <jackson@ximian.com>
7260 * ScrollableControl.cs: Calculate the maximum and change vars
7261 (more) correctly so that scrollbars appear as a sensible size.
7263 2005-11-04 Jackson Harper <jackson@ximian.com>
7265 * TreeNodeCollection.cs: Refresh when nodes are cleared from the
7267 * TreeView.cs: When the tree is sorted null out the top_node so
7268 that it is recalculated.
7269 - Use dotted lines instead of dashed lines to match MS better.
7271 2005-11-04 Jordi Mas i Hernandez <jordimash@gmail.com>
7274 - Implements key search for items. Useful when browsing files with FileDialog
7275 - When changing view mode or when clear the items reset scrollbar positions
7277 2005-11-04 Jackson Harper <jackson@ximian.com>
7279 * CurrencyManager.cs: Implement the MetaDataChanged event, the
7280 Reset method, and the CheckEmpty. CheckEmpty is just a total guess
7281 as to what the method may do as there is no real way of creating a
7282 derived CurrencyManager and calling the method.
7284 2005-11-03 Jackson Harper <jackson@ximian.com>
7286 * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
7287 * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
7288 method which seems to just be used internally to refresh the tabs.
7290 2005-11-03 Jackson Harper <jackson@ximian.com>
7292 * TabControl.cs: Implement the remove method. Fix some broken
7295 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
7297 * DateTimePicker.cs:
7298 - Added missing DateTimePickerAccessibleObject class
7299 - Added missing events
7300 - Added OnFontChanged method
7301 * Form.cs: Added missing attributes
7302 * TreeView.cs: Added missing attributes
7304 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
7306 * GridItemCollection.cs: Fix signatures
7308 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
7310 * XplatUI.cs: Updated build rev/date
7311 * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs,
7312 DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
7313 * Application.cs: Trigger context-specific ExitThread events
7315 2005-11-03 Jackson Harper <jackson@ximian.com>
7319 * GridTableStylesCollection.cs:
7324 * MonthCalendar.cs: Signature fixes
7326 2005-11-03 Jackson Harper <jackson@ximian.com>
7328 * TreeNodeCollection.cs: Remove should not be virtual.
7329 * TreeView.cs: Implement the last of the missing methods.
7331 2005-11-03 Jackson Harper <jackson@ximian.com>
7333 * TreeNodeConverter.cs: Implement to get off my class-status back.
7335 2005-11-03 Jackson Harper <jackson@ximian.com>
7337 * TreeView.cs: Hookup the bits for drag and drop.
7338 * TreeNode.cs: Don't cache the tree_view or index anymore, now
7339 that nodes can be moved from tree to tree easily this just causes
7340 all sorts of problems.
7341 * TreeNodeCollection: Don't need to give treenodes an index and
7342 treeview anymore when they are added, these are computed on the
7343 fly. Also make sure to remove a node before its added.
7345 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
7348 - Added CaretSelection enum
7349 - Added comparison methods to Marker struct, makes selection code
7351 - Added SelectionStart and SelectionEnd as 'moveable' location for
7352 the CaretDirection enum and handler
7353 - Added selection_prev variable to track optimized invalidation for
7354 word and line selection
7355 - Added SelectionVisible property (returns true if there is a valid
7357 - Switched CaretHasFocus to only display the caret if there is no
7359 - Avoiding StringBuilder.ToString to retrieve a single char, instead
7360 using the direct character index; should be much faster
7361 - Added various conditional debug statements
7362 - Fixed invalidation calculation for selection ranges
7363 - Added ExpandSelection() method to support word and line selection
7364 - Switched SetSelectionToCaret to use new Marker compare overloads
7365 - Added central IsWordSeparator() method to determine word
7366 separators/whitespace and FindWordSeparator() to streamline common
7367 usage of IsWordSeparator()
7369 - Removed unneeded grabbed variable, it was just mirroring
7371 - No longer firing OnTextChanged event when Text setter is called,
7372 since the base will fire the event for us
7373 - Added handling of Ctrl-Up/Down selection
7374 - Added handling of Shift-Cursorkey selection
7375 - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
7377 - Added handling of Shift and Ctrl-Shift-Home/End selection
7378 - Removed some debug output
7379 - Added handling for single/double/tripple-click to place caret/
7380 select word/select line respectively (Fixes bug #76031)
7381 - Added support for drag expansion of word/line selection
7382 * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
7385 2005-11-02 Jackson Harper <jackson@ximian.com>
7387 * X11Dnd.cs: If the drag is going to and from a MWF window just
7388 copy the data instead of sending it out through the X Selection
7391 2005-11-02 Jackson Harper <jackson@ximian.com>
7394 * XplatUIX11.cs: When in a drag we don't want motion notify
7395 messages to get passed on to the other controls. This prevents
7396 mouse move messages from showing up in the drag source.
7398 2005-11-02 Jackson Harper <jackson@ximian.com>
7400 * X11Dnd.cs: Remove unneeded call to XAllowEvents. Make sure that
7401 the correct button is release to end a drag.
7402 * XplatUIX11.cs: Make the button state internal so the drag system
7403 can access it. Dragging needs to know about all button releases,
7404 not just left button.
7406 2005-11-02 Miguel de Icaza <miguel@novell.com>
7408 * Form.cs (Icon): If the icon is null, reset the icon to the
7411 * Cursor.cs: When writing the AND-mask bitmap do not include the
7412 number of colors, but hardcode those to two (black and white),
7413 fixes the loading of color cursors (Paint Dot Net).
7415 * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
7416 turn off autoscaling.
7418 * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
7420 2005-11-02 Jackson Harper <jackson@ximian.com>
7422 * X11Dnd.cs: Make sure to send a status message if the pointer
7423 enters a control that can not accept a drop, otherwise the cursor
7424 isn't updated correctly. Also tried to compress the lines of code
7427 2005-11-02 Jackson Harper <jackson@ximian.com>
7429 * X11Dnd.cs: Change cursors based on drag action. Also attempt to
7430 set actions correctly. This isn't perfect as XDND and win32 have
7431 some differences on how you allow actions. I'll clear this up by
7432 adding a path for drag from MWF to MWF windows.
7433 * XplatUIX11.cs: Hook into the dnd system.
7435 2005-11-02 Jordi Mas i Hernandez <jmas@softcatala.org>
7437 * ListView.cs: Fixes scroll bar visibility. Hide them if they were
7438 previously shown but they are no longer need it. Very obvious when
7439 browsing files with FileDialog.
7441 2005-11-01 Peter Dennis Bartok <pbartok@novell.com>
7443 * Control.cs: We always need to call OnPaintBackground. We pretty much
7444 ignore AllPaintingInWmPaint and always do the painting there, whether
7445 it's set or not, since we always ignore the WM_ERASEBKGND message
7446 (which we don't generate on X11). This fixes #76616.
7447 * Panel.cs: Removed unneeded background painting. This happens properly
7448 in Control.cs already
7450 2005-10-31 Mike Kestner <mkestner@novell.com>
7452 * Menu.cs: Add items to collection before setting their index.
7453 * MenuItem.cs : add range checking with ArgumentException like MS.
7456 2005-10-31 Jackson Harper <jackson@ximian.com>
7458 * ListBox.cs: Invalidate if the area is visible at all not just
7459 contained in the visible rect. Fixes unselection of semi visible
7462 2005-10-31 Jackson Harper <jackson@ximian.com>
7464 * Control.cs: Consistently name the dnd methods. Make them
7465 internal so we can override them to match some MS behavoir
7467 * Win32DnD.cs: Use the new consistent names.
7469 2005-10-31 Jackson Harper <jackson@ximian.com>
7471 * TreeView.cs: Don't draw the selected node when we lose focus.
7473 2005-10-31 Jackson Harper <jackson@ximian.com>
7475 * X11Dnd.cs: We still need to reset the state even though a full
7476 reset isn't being done, otherwise status's still get sent all over
7479 2005-10-31 Jackson Harper <jackson@ximian.com>
7481 * Control.cs: Make the dnd_aware flag internal so the dnd
7482 subsystem can check it. Catch exceptions thrown in dnd handlers to
7484 * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
7485 * X11Dnd.cs: Handle null data in the converters. Set the XDND
7486 version when sending a XdndEnter. Use the control/hwnd dnd_aware
7487 flags to reduce the number of dnd enters/status's sent.
7489 2005-10-31 Jackson Harper <jackson@ximian.com>
7491 * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
7493 2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com>
7495 * PictureBox.cs: Fixes 76512
7497 2005-10-28 Jackson Harper <jackson@ximian.com>
7499 * X11Dnd.cs: Early implementation to support winforms being a drag
7500 source for data on X11. Also restructured the converters so they
7501 can go both ways now.
7502 * XplatUIX11.cs: Tie ins to the the Dnd stuff.
7504 2005-10-27 Peter Dennis Bartok <pbartok@novell.com>
7506 * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
7509 2005-10-27 Jackson Harper <jackson@ximian.com>
7511 * TreeNode.cs: Implement serialization so my DnD examples will work.
7513 2005-10-24 Kornél Pál <kornelpal@hotmail.com>
7515 * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
7516 TreeView.cs: Don't dispose objects that are not owned.
7518 2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
7520 * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
7521 should retrieve the current cursor and report that, but XplatUI
7522 doesn't (yet) have an interface for that (and I'm not sure I even
7524 * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
7525 until any message loop processing is done (and the WM_SETCURSOR
7526 replaces the cursor to the proper one)
7528 - Fixed override behaviour, we can't set the cursor globally on X11,
7529 just for our windows.
7530 - Invalidating the System.Drawing X11 display handle when we are
7532 * Control.cs: Fix to make csc happy
7534 2005-10-23 Peter Dennis Bartok <pbartok@novell.com>
7537 - get_Text: Add last line (without trailing newline) to returned
7539 - get_TextLength: Count last line in returned length
7540 - ToString: Call Text property instead of duplicating code
7542 2005-10-23 Kornél Pál <kornelpal@hotmail.com>
7544 * ImageList.cs: Dispose ImageAttributes objects.
7546 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
7548 * ImageList.cs: Use attribute constructors with less arguments where
7551 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
7553 * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
7554 Use typeof instead of strings when assembly is referenced. Added
7557 2005-10-21 Jackson Harper <jackson@ximian.com>
7559 * ListView.cs: Raise a double click event. Also tried to somewhat
7560 fix when the selectedindexchanged event is raised. Its still
7563 2005-10-21 Jackson Harper <jackson@ximian.com>
7565 * TreeView.cs: New method to invalidate the plus minus area of a
7566 node without invalidating the whole node (maybe this can be used
7567 in some more places).
7568 * TreeNodeCollection.cs: When adding to an empty node we need to
7569 invalidate its plus minus area so the little block shows up.
7571 2005-10-21 Jackson Harper <jackson@ximian.com>
7573 * TreeView.cs: Make sure that when we invalidate a node the bounds
7574 are big enough to cover the selected box and the focus
7575 rectangle. Use a different colour for the lines connecting nodes
7576 so they show up with all themes.
7578 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
7580 * NativeWindow.cs: Don't call anything that could call into the driver,
7581 we might be on a different thread.
7583 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
7585 * Control.cs(Dispose): Since Dispose might run on a different thread,
7586 make sure that we call methods that could call into the driver via
7587 invoke, to avoid thread issues
7589 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
7591 * XplatUI.cs: Removed finalizer
7592 * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
7593 not allowing to be called on the finalizer thread.
7595 2005-10-21 Kornél Pál <kornelpal@hotmail.com>
7598 - Reverted r51889 and r51891.
7599 - Added ImageListItem class that stores unmodified image items and image
7600 properties required to create list images until handle is created.
7601 - Added AddItem and moved image creation logic to AddItemInternal.
7602 - Added CreateHandle method that creates images based on unmodified items.
7603 - Added DestroyHandle that changes state to store unmodified items.
7604 - Add and AddStrip methods no more create handle.
7605 - ReduceColorDepth has no return value.
7606 - Dispose destroys handle.
7607 - Modified other methods to reflect the above changes.
7608 - Implemented key support.
7609 - Added profile 2.0 members and attributes.
7610 - Added private Reset and ShouldSerialize methods that provide the same
7611 behavior as MS.NET but the Visual Studio .NET designer seems to ignore
7612 them as they are private.
7613 - Added some more comments about implementation details.
7615 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
7617 * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
7619 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
7621 * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
7623 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
7625 * DataGridDrawingLogic.cs: Fixes column hit calcultation
7626 * DataGridColumnStyle.cs: Remove debug message
7628 2005-10-20 Jackson Harper <jackson@ximian.com>
7630 * TreeView.cs: We can always get input keys regardless of whether
7631 or not editing is enabled. They are used for navigation.
7633 2005-10-20 Jackson Harper <jackson@ximian.com>
7635 * TreeNode.cs: Use the viewport rect for determining if a node
7636 needs to be moved for visibility. Don't use Begin/End edit. This
7637 calls a full refresh when its done.
7638 * TreeView.cs: New SetBottom works correctly. Make the viewport
7639 rect property internal so the treenodes can see it. When clicking
7640 on a node we need to ensure that its visible because it might just
7641 be partly visible when clicked.
7643 2005-10-20 Jackson Harper <jackson@ximian.com>
7645 * TreeNodeCollection.cs: Remove debug code.
7647 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
7649 * Datagrid.cs: Implements column sorting in Datagrid
7650 * DataGridColumnStyle.cs: Implements column sorting in Datagrid
7652 2005-10-20 Jackson Harper <jackson@ximian.com>
7654 * TreeNodeCollection.cs: Remove items properly. Update the correct
7655 area after removing them.
7657 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
7659 * Datagrid.cs: Should not call base.OnPaintBackground
7661 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
7663 * XplatUIX11.cs (GetMessage):
7664 - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
7665 window instead of client window
7666 - Now properly calculates NC_xBUTTONUP message coordinates
7667 - ScreenToMenu now properly calculates it's coordinates of whole
7668 window, since menus are in the whole window, not in the client
7670 - Added WholeToScreen coordinate translation method
7672 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
7674 * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
7675 want to return a message, loop back to the beginning of the function
7676 and grab the next real message to process instead.
7678 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
7680 * Splitter.cs: Properly set limits if no filler control is used
7682 2005-10-19 Jackson Harper <jackson@ximian.com>
7684 * ColorDialog.cs: Don't show the help button if it is not enabled
7685 instead of disabling it (this is what MS does). Don't create the
7686 panel until the dialog is run, otherwise the vars (such as
7687 ShowHelp) are not set yet.
7689 2005-10-19 Jackson Harper <jackson@ximian.com>
7691 * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
7692 are reduced when adding nodes.
7694 * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
7697 2005-10-19 Jackson Harper <jackson@ximian.com>
7699 * FolderBrowserDialog.cs: End editing our treeview so the window
7700 actually gets refreshed.
7702 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
7704 * Control.cs: Fixed logic flip on when to call OnPaintBackground.
7705 Obsoleted handling of WM_ERASEBKGND, now always draws our background
7708 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
7710 * MenuAPI.cs: Returns after Hidding window
7711 * XplatUIX11.cs: Added TODO found while debugging menu issues
7713 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
7715 * XplatUIX11.cs: Do not re-map the whole window when it's size
7716 becomes non-zero unless it's supposed to be actually visible
7718 2005-10-18 Jackson Harper <jackson@ximian.com>
7720 * TreeView.cs: We don't need to keep a count anymore.
7721 * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
7722 use the Grow method.
7724 2005-10-18 Jackson Harper <jackson@ximian.com>
7726 * TreeNodeCollection.cs: Insert is not supported on arrays, so
7727 implement it manually here.
7729 2005-10-18 Jackson Harper <jackson@ximian.com>
7731 * ImageList.cs: Dont kill the list when the colour depth is
7732 changed, just change the colour depth of all the images.
7733 - Same goes for setting the image size. Just resize them all
7734 instead of killing the list softly.
7736 2005-10-18 Jackson Harper <jackson@ximian.com>
7738 * Control.cs: Don't invalidate empty rectangles.
7740 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
7743 - Adds checked item to the Checked/Item lists (where empty before)
7744 - Do not add items to the Selected lists if they are already present
7746 - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
7747 - When deleting items make sure that we delete them for the Selected
7748 and Checked list also.
7750 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
7752 * Label.cs: Dispose objects no longer used
7753 * ThemeWin32Classic.cs: Dispose objects no longer used
7755 2005-10-18 Jackson Harper <jackson@ximian.com>
7757 * TabControl.cs: Don't refresh the whole control when the tabs are
7758 scrolled, we just need to refresh the tab area.
7760 2005-10-17 Jackson Harper <jackson@ximian.com>
7762 * XplatUIX11.cs: Compress code a little bit. Only calculate the
7763 after handle when we need it.
7765 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
7767 * Control.cs: When the parent size changes, recalculate anchor
7768 positions. Partial fix for #76462
7770 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
7772 * ThemeWin32Classic.cs: Make sure the picturebox has it's background
7775 2005-10-17 Jackson Harper <jackson@ximian.com>
7777 * MonthCalendar.cs: Don't create the numeric up down until our
7778 handle is created. Otherwise our handle is created in the
7779 constructor and we don't know if we are a WS_CHILD or WS_POPUP
7782 2005-10-17 Jackson Harper <jackson@ximian.com>
7784 * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
7787 2005-10-17 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
7788 * TreeNode.cs : small logical fix (was using local var instead of field)
7790 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
7792 * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
7794 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
7796 * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
7798 2005-10-16 Peter Dennis Bartok <pbartok@novell.com>
7801 - Re-implemented anchoring code. My first version was really broken.
7802 This fixes bug #76033. Unlike the previous implementation we will
7803 no longer have round errors since all numbers are calculated from
7804 scratch every time. Removed various anchor-related obsolete vars.
7805 - InitLayout no longer causes layout event firing and layout to be
7808 2005-10-16 Jackson Harper <jackson@ximian.com>
7810 * Hwnd.cs: Compute invalid area correctly (fixes my last commit
7813 2005-10-16 Jackson Harper <jackson@ximian.com>
7815 * TabControl.cs: Remove debug code.
7817 2005-10-16 Jackson Harper <jackson@ximian.com>
7819 * XEventQueue.cs: Increase the default queue size (very simple
7820 apps needed to grow the queue).
7821 * Hwnd.cs: No finalizer so we don't need to suppress
7822 finalization. Compute the invalid area manually so a new rectangle
7823 does not newto be created.
7824 * ScrollableControl.cs: Don't set any params (otherwise visibility
7825 isn't set correctly).
7826 * MdiChildContext.cs: New constructor takes the mdi parent so it
7827 doesn't have to be computed and avoids a crash on windows. Draw
7828 the window icon properly, and allow the text to be seen.
7829 * Form.cs: Use new MdiChildContext constructor. Make sure the
7830 child context isn't null in wndproc.
7831 * TabControl.cs: Don't set focus, this is muddling keyboard
7832 behavoir. Expand the tab rows when a window size increase will
7833 allow extra tabs to be seen. Don't allow tabs smaller than the
7834 width of a window to be scrolled out of view.
7836 * TreeView.cs: Use measure string to calculate a nodes width, the
7837 width is cached and only updated when the text or the font is
7838 changed. Don't check for expand/collapse clicks on the first level
7839 nodes if root lines are disabled.
7841 2005-10-16 Ritvik Mayank <mritvik@novell.com>
7843 * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
7845 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
7847 * DataGridBoolColumn.cs: fixes warning
7849 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
7851 * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
7852 to match more to match more precisely the MS Net behavior
7854 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
7856 * Hwnd.cs: Added field to track if window is mapped
7858 - Unmap windows if they become 0-size, re-map when
7859 they are >0 again; fixes #76035
7860 - Re-set our error handler after initializing X11Desktop
7861 to override any error handlers Gtk or whatever was called
7864 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
7866 * CheckedListBox.cs: Removed unused vars
7867 * ListView.cs: Fixed signatures
7868 * RichTextBox.cs: Removed unused vars
7869 * TextBoxBase.cs: Removed unused vars
7870 * XplatUIWin32.cs: Removed unused vars
7871 * XplatUIX11.cs: Removed unused vars
7872 * XplatUI.cs: Updated version and date to latest published
7874 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
7876 * Cursor.cs: Added private .ctor to work around a bug in
7877 resourceset (Thanks to Geoff Norton for the help on this)
7878 * SplitterEventArgs.cs: Made fields accessible so we don't
7879 waste boatloads of objects and can reuse the same one
7881 * XplatUIWin32.cs(DrawReversibleLine): Now also considers
7882 any captions and borders when generating screen coordinates
7883 * Splitter.cs: Reimplemented control, now fully complete, uses
7884 rubberband drawing, supports and obeys all properties, has
7887 2005-10-13 Miguel de Icaza <miguel@novell.com>
7889 * Form.cs (Form): Setup default values for autoscale and
7890 autoscale_base_size; Make these instance variables, not static
7893 (OnLoad): on the first load, adjust the size of the form.
7895 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
7897 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added
7898 width argument to DrawReversibleRectangle()
7899 * XplatUIWin32.cs, XplatUIX11.cs:
7900 - Implemented width for DrawReversibleRectangle()
7901 - Added logic to DrawReversibleRectangle that recognizes a zero
7902 width or height and only draws a line in that situation
7904 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
7906 * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
7907 * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
7908 * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
7909 method (it uses our FosterParent window to get a graphics context)
7911 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
7913 * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground
7914 and SetWindowBackground methods
7916 - Setting proper ControlStyles
7917 - We no longer call XplatUI.SetWindowBackground and XplatUI.
7918 EraseWindowBackground, instead we draw the window background
7919 ourselves in PaintControlBackground. This behaviour is
7920 required to match MS, where, when OnPaintBackground is not
7921 called, the background is not drawn.
7922 - Removed unneeded Refresh() in set_Text
7923 * Hwnd.cs: Dropped the ErasePending support. No longer needed
7925 - Created DeriveStyles method to translate from CreateParams to
7926 FormBorderStyle and TitleStyle, also handles BorderStyle (which
7927 matches FormBorderStyle enum values)
7928 - Consolidated SetHwndStyles and CalculateWindowRect border/title
7929 style calculations into single DeriveStyles method
7930 - Fixed CreateWindow to (finally) use Gravity. This prevents X11
7931 from redrawing the whole window on any resize or expose.
7932 - Fixed CreateWindow usage of SetWindowValuemask. Before not
7933 all styles were applied to our whole/client window appropriately
7934 - Removed EraseWindowBackground() and SetWindowBackground() methods
7935 - Removed handling of WM_ERASEBKGND message from DefWndProc, we
7936 no longer clear/redraw the background through X
7937 - Removed handling of erase_pending bit, we have no use for it (or
7940 - Removed generation and handling of WM_ERASEBKGND message
7941 - Removed EraseWindowBackground() and SetWindowBackground() methods
7942 - Removed handling of hwnd.ErasePending flag
7944 - Removed EraseWindowBackground() and SetWindowBackground() methods
7945 - We no longer call EraseWindowBackground on PaintEventStart, we
7946 ignore the fErase flag, erasing is handled in Control in the
7948 * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
7949 LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
7950 TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs,
7951 CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs,
7952 DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs,
7953 TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
7954 DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
7956 2005-10-12 Jonathan Chambers <jonathan.chambers@ansys.com>
7958 * PropertyGrids.cs: Get sub properties
7959 * PropertyGridView.cs: Fix drawing code
7961 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
7963 * ListBox.cs: Fixes 76383
7965 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
7967 * DataGridTextBoxColumn.cs: Sets location and size before attachment
7968 * ThemeWin32Classic.cs: Fixes border drawing and calculations
7969 * DataGridDrawingLogic.cs: Fixes border drawing and calculations
7972 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
7974 * ComboBox.cs: Fixes border drawing
7976 2005-10-10 Miguel de Icaza <miguel@novell.com>
7978 * MimeIcon.cs: Ignore errors if the file can not be read.
7980 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
7982 * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
7983 - Fixed border calculations
7984 - Fixed horizontal scrolling in single column listboxes
7985 - Fixed drawing issues
7987 2005-10-10 Peter Dennis Bartok <pbartok@novell.com>
7989 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to
7990 FormBorderStyle enum
7991 * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added
7992 code to determine FormBorderStyles from CreateParams
7994 - Fixed bug where we'd set the wrong window styles if we were
7995 not creating an MDI window
7996 - Added call to XplatUI.SetBorderStyle when form borders are set
7997 * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
7999 - Removed obsolete edge style
8000 - Switched from BorderStyle to FormBorderStyle
8002 2005-10-10 Jackson Harper <jackson@ximian.com>
8004 * Form.cs: Use the property to get the window handle instead of
8005 accessing it directly. Prevents a null reference exception.
8007 2005-10-10 Jackson Harper <jackson@ximian.com>
8009 * TreeView.cs: Don't adjust the rect given to DrawString now that
8010 our libgdiplus draws correctly.
8012 2005-10-08 Jackson Harper <jackson@ximian.com>
8014 * TreeView.cs: Don't try to find the clicked on node if there are
8015 no nodes in the tree.
8017 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
8023 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
8025 * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
8026 ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
8028 Use ResPool for brushes and dispose System.Drawing objects that
8029 are not used anymore.
8031 2005-10-07 Jackson Harper <jackson@ximian.com>
8033 * MdiChildContext.cs: Use the new borders instead of drawing them
8036 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
8038 * Calling UpdateBounds after changing the window's BorderStyle
8039 since the style can change the ClientSize
8041 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
8043 * Control.cs: Made PaintControlBackground virtual
8044 * Panel.cs: Overriding PaintControlBackground instead of using paint
8045 event; paint event method was interfering with 'real' users of the
8048 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
8050 * ThemeWin32Classic.cs: remove border drawing since it is handled
8051 by the base control class now and was causing double border drawing.
8053 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
8055 * Panel.cs: Redraw our background on paint. Not a pretty solution,
8056 but it does seem to match MS behaviour. This fixes bug #75324
8058 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
8060 * XplatUIX11.cs: A better DrawReversibleRectangle version, however
8061 somewhat hackish looking
8063 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
8066 - We now accept Enter even if AcceptEnter is false, if the containing
8067 form does not have an AcceptButton configured (fixes bug #76355)
8068 - Calculations are now fixed to no longer use Width/Height, but
8069 ClientSize.Width/Height, since we now support borders (this was
8070 a result of fixing borders and therefore bug #76166)
8071 - We no longer show the horizontal scrollbar if TextBox.WordWrap is
8072 true (fixes bug #76354)
8074 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
8077 - Defaulting BorderStyle and setting it in XplatUI when our window
8079 - Added enum check to InternalBorderStyle setter
8081 - Added drawing of window borders
8082 - Now properly calculates WM decorations offset for toplevel
8083 windows (fixes bug #74763)
8085 - Implemented BorderStyles for windows (we're letting win32 draw
8087 - Fixed the signature for SetWindowLong
8088 * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
8089 ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for
8091 * UpDownBase.cs: Remove drawing of borders, this is handled by
8092 the driver, outside the client area
8093 * ListView.cs: Removed bogus border calculations. The control should
8094 be oblivious to borders, since those are not part of the client
8096 * X11DesktopColors.cs: Commented out (currently) unneeded variables
8097 * ThemeWin32Classic.cs: Removed border calculations from ListView
8100 2005-10-06 Jackson Harper <jackson@ximian.com>
8102 * MdiChildContext.cs: Clear out the old virtual position remove
8103 all the unneeded calls to CreateGraphics.
8105 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
8107 * TextControl.cs: Use proper color for highlighted text; fixes #76350
8109 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
8112 - Added loading and setting of our new default icon
8113 - Only set icon if window is already created
8115 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
8118 - Do not explicitly set the foreground and background colors, to
8119 allow inheriting from parents (fixes #76302)
8120 - Use Control's InternalBorderStyle property to deal with borders
8122 2005-10-06 Jackson Harper <jackson@ximian.com>
8124 * MdiChildContext.cs: Use the new xplatui function to draw a
8127 2005-10-06 Jackson Harper <jackson@ximian.com>
8129 * Form.cs: Add the parent before creating the child context cause
8130 we need the parent when setting up the child.
8132 2005-10-06 Jackson Harper <jackson@ximian.com>
8134 * FolderBrowserDialog.cs: redo the tree population code so a
8135 second thread isn't used. Should be a lot faster and more stable
8138 2005-10-05 Jackson Harper <jackson@ximian.com>
8140 * TreeView.cs: There are no expand/collapse boxes if the node has
8143 2005-10-05 Jackson Harper <jackson@ximian.com>
8145 * X11DesktopColors.cs: Get menu colours for the gtk theme.
8147 2005-10-05 Alexander Olk <alex.olk@googlemail.com>
8149 * FileDialog.cs: Fix InitialDirectory
8151 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
8154 - Fixes changing between styles
8156 - Fixes last item crashing when navigating with keyboard
8158 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
8160 * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
8162 2005-10-05 Jackson Harper <jackson@ximian.com>
8164 * TreeView.cs: If updating the root node do a full refresh.
8165 * TreeNode.cs: The root node should be expanded by default. Also
8166 added a utility prop to tell if we are the root node.
8167 * TreeNodeCollection.cs: Only refresh if the node we are being
8168 added to is expanded. Also added a comment on a potential
8171 2005-10-04 Peter Dennis Bartok <pbartok@novell.com>
8173 * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize()
8174 in dispose method. Fixes #76330
8176 2005-10-04 Jordi Mas i Hernandez <jordi@ximian.com>
8178 * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
8180 - Implements vertical and horizontal scrolling using XplatUI
8181 - Fixes keyboard navagation
8182 - Fixes EnsureVisible
8184 - Handles and draws focus properly
8187 2005-10-04 Kornél Pál <kornelpal@hotmail.com>
8189 * ImageList.cs: Use upper case initials for internal fields. ImageStream:
8190 Create handle. NET_2_0: Destroy handle when value is null.
8192 2005-10-03 Jackson Harper <jackson@ximian.com>
8194 * ScrollBar.cs: My last scrollbar patch was broken. This is a
8195 revert and a new patch to prevent the thumb from refreshing so
8198 2005-10-02 Jackson Harper <jackson@ximian.com>
8200 * ScrollBar.cs: Don't update position if it hasn't actually
8201 changed. This occurs when you hold down the increment/decrement
8202 buttons and the thumb gets to the max/min.
8204 2005-10-01 Jackson Harper <jackson@ximian.com>
8207 * MdiChildContext.cs:
8208 * MdiClient.cs: Implement ActiveMdiChild in Form.
8210 2005-10-01 Jordi Mas i Hernandez <jordi@ximian.com>
8212 * ComboBox.cs: Include ComboBoxEdit flag for the edit item
8214 2005-10-01 Peter Dennis Bartok <pbartok@novell.com>
8216 * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
8219 2005-09-30 Jackson Harper <jackson@ximian.com>
8221 * ListBox.cs: Don't do a full refresh unless some data has
8224 2005-09-30 Jackson Harper <jackson@ximian.com>
8226 * TreeView.cs: Make sure that the checkboxes size is factored in
8227 even when not visible.
8229 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
8231 * FileDialog.cs: Fix Jordi's build break
8233 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
8236 - Use standard the Windows colours for the combobox as espected
8237 - Dispose objects that use resouces when no longer need them
8239 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
8241 * X11DesktopColors.cs: Initial incomplete implementation
8242 * XplatUIX11.cs: Added call to initialize X11DesktopColors
8244 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
8247 - Switched Theme color names to match the names defined in
8248 System.Drawing.KnownColors. Life's hard enough, no need to make
8250 - Added setters to all theme color properties so themes can set
8251 their color schemes. The setters also propagate the color changes
8252 to System.Drawing.KnownColors via reflection
8253 * ControlPaint.cs, Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
8254 ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
8255 DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
8256 use the new, more logical theme color names
8257 * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
8259 * ThemeWin32Classic.cs:
8260 - Removed code to set the old classic Windows colors. Instead it
8261 now relies on the colors returned by System.Drawing.KnownColors
8262 which will be either modern static colors (Unix) or colors
8263 read from the user's configuration (Win32)
8264 - Updated to use the new, more logical theme color names
8265 - Switched DataGrid drawing code to use only Theme colors instead of
8266 a mix of System.Drawing.KnownColors and Theme colors
8267 - DrawFrameControl(): Removed code that fills the button area, the
8268 fill would overwrite any previous fill done by a control. This
8270 - Added DrawReversibleRectangle() stub
8271 * ScrollableControl.cs: Set visible state to false when scrollbars
8272 are removed (pdn fix)
8273 * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added
8274 DrawReversibleRectangle() method to allow drawing primitive
8276 * XplatUIX11.cs: Implemented DrawReversibleRectangle()
8278 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
8280 * ImageList.cs: Add(Icon): Create handle.
8282 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
8285 * ThemeWin32Classic.cs:
8288 - Issues with drawing
8290 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
8292 * ImageList.cs: Moved RecreateHandle back to ImageList as event
8293 source has to be the ImageList.
8295 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
8297 * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
8299 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
8301 * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
8303 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
8305 * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
8307 2005-09-29 Jonathan Chambers <jonathan.chambers@ansys.com>
8308 * GridItem.cs: Fixed TODOs
8309 * GridItemCollection.cs: Added ICollection interface
8311 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
8313 * ImageList.cs: Resize icons when needed.
8315 2005-09-29 Jordi Mas i Hernandez <jordi@ximian.com>
8318 - Fixes GetBounds and returns on screen rects
8320 - Fixes vertical and horzintal scrolling of items
8321 * ThemeWin32Classic.cs:
8324 2005-09-29 Raja R Harinath <harinath@gmail.com>
8326 * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
8328 2005-09-29 Kornél Pál <kornelpal@hotmail.com>
8330 * ImageList.cs: Added comments about handle creation. Moved Handle,
8331 HandleCreated and OnRecreateHandle implementations to ImageCollection.
8332 Handle is created in Add methods.
8334 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
8336 * DataGridDrawingLogic.cs:
8337 - Takes rows into account on Colum calculations
8338 - Returns the column when clickig
8340 - Fixes default HitTestInfo values
8341 - Fixes HitTestInfo.ToString
8342 - Fixes ResetBackColor
8344 2005-09-28 Jackson Harper <jackson@ximian.com>
8346 * MdiChildContext.cs: Obey rules for fixed sized windows (no
8347 sizing or cursor changes). Also added some temp code to draw the
8348 titlebars text (Makes dev a little easier).
8350 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
8352 * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
8354 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
8356 * ListBox.cs: Fixes bug 76253
8358 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
8360 * ImageList.cs: Added comments about the current implementation. Added
8361 ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
8362 Format32bppArgb to preserve transparency and can use Graphics.FromImage
8363 while using the specified ColorDepth. ReduceColorDepth uses unsafe code
8364 with Bitmap.LockBits for better performance. Revised the whole file to
8365 match MS.NET behaviour and provide better performance. Non-public
8366 interface members are calling public members even when they throw
8367 NotSupportedException for better maintainability. Moved ColorDepth,
8368 ImageSize, ImageStream and TransparentColor implementations to
8369 ImageCollection for better performance as these properties are not used
8371 * ImageListStreamer.cs: Added a new internal constructor that takes an
8372 ImageList.ImageCollection and serializes Images based on
8373 ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
8374 match ImageList property name.
8376 2005-09-28 Kazuki Oikawa <kazuki@panicode.com>
8378 * ListBox.cs: Fixes IndexFromPoint for last item
8380 2005-09-27 Jackson Harper <jackson@ximian.com>
8382 * Form.cs: Set the position of new mdi children correctly.
8384 2005-09-27 Jackson Harper <jackson@ximian.com>
8386 * MdiClient.cs: New mdi children need to be added to the back of
8387 the controls collection so the zorder is set correctly. Also add a
8388 count of all the child windows that have been created.
8390 2005-09-27 Jackson Harper <jackson@ximian.com>
8392 * Form.cs (CreateParams): Setup MDI forms correctly.
8394 2005-09-27 Jackson Harper <jackson@ximian.com>
8396 * MdiChildContext.cs:
8403 * ScrollableControl.cs:
8404 * ComboBox.cs: Add implicit controls using the new implict control
8405 functionality in ControlCollection. Also try to block multiple
8406 control add in a suspend/resume layout to save some cycles.
8408 2005-09-27 Jackson Harper <jackson@ximian.com>
8410 * Control.cs: Add functionality to the controls collection to add
8411 'implicit controls' these are controls that are created by the
8412 containing control but should not be exposed to the user. Such as
8413 scrollbars in the treeview.
8414 * Form.cs: The list var of the ControlsCollection is no longer
8415 available because of the potential of implicit controls getting
8416 ignored by someone accessing the list directly.
8418 2005-09-26 Peter Dennis Bartok <pbartok@novell.com>
8420 * Control.cs: Fixed SetChildIndex; it no longer causes a child to
8421 loose it's parent. (Fixed bug introduced in r49103 when we added
8422 setting the child parent to null on Remove)
8424 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
8426 * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
8427 * Splitter.cs: Added missing attributes for BorderStyle property.
8428 * TextBoxBase.cs: Marked Calculate* methods internal.
8429 * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
8432 2005-09-26 Jordi Mas i Hernandez <jordi@ximian.com>
8434 * ListBox.cs: Fixes navigation to the last item in multicolumn lists
8436 2005-09-25 Jackson Harper <jackson@ximian.com>
8438 * TreeView.cs: Update the node bounds correctly regardless of
8439 whether the node is visible.
8441 2005-09-25 Jackson Harper <jackson@ximian.com>
8443 * ImageList.cs: Don't dispose the image after it is added to the
8444 image list. Only reformat images that need to be resized.
8446 2005-09-25 Jackson Harper <jackson@ximian.com>
8448 * ImageList.cs: Don't set the format when changing the image.
8450 2005-09-25 Jackson Harper <jackson@ximian.com>
8452 * TreeView.cs: We can't just assume the node has a font. Use the
8453 treeviews font if no node font is available.
8455 2005-09-25 Jackson Harper <jackson@ximian.com>
8457 * TreeView.cs: Allow the scrollbars to be reset with negative
8459 - Don't add scrollbars to negative sized windows.
8461 2005-09-23 Jackson Harper <jackson@ximian.com>
8463 * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
8464 old Mono.Posix. Also remove some stray code that shouldn't have
8467 2005-09-23 Jackson Harper <jackson@ximian.com>
8469 * TreeView.cs: Attempt at proper sizing of the horizontal
8470 scrollbar. Also don't resize the scrollbars unless they are
8473 2005-09-23 Jackson Harper <jackson@ximian.com>
8475 * TreeView.cs: We don't need to expand the invalid area when the
8476 selection changes, as this is all drawn in the node's bounding
8477 box. The area needs to be expanded (previous typo was contracting
8478 it) when the focus rect moves.
8480 2005-09-23 Jackson Harper <jackson@ximian.com>
8482 * TreeView.cs: Display the selection box under the correct
8483 circumstances. We were rendering white text with no selection box
8486 2005-09-23 Peter Dennis Bartok <pbartok@novell.com>
8488 * TextControl.cs(Split): Now updates selection start/end if it points
8489 into a line that's being split. Fixes a FIXME and bug #75258
8491 2005-09-23 Jackson Harper <jackson@ximian.com>
8494 * ListControl.cs: Don't use the path when retrieving binding
8495 managers from the binding context. My bat sense tells me that the
8496 path is only used on insertion.
8498 2005-09-22 Jackson Harper <jackson@ximian.com>
8500 * Splitter.cs: Set the cursor an easier way. (Thanks peter).
8502 2005-09-22 Jackson Harper <jackson@ximian.com>
8504 * Splitter.cs: There are special cursors used for splitting.
8505 * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
8507 2005-09-22 Jackson Harper <jackson@ximian.com>
8509 * Splitter.cs: Change the cursor appropriately when the splitter
8510 is moused over, so the user actually knows there is a splitter
8513 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
8515 * Label.cs : Fix ToString method to give same output as MS.NET
8517 2005-09-22 Jackson Harper <jackson@ximian.com>
8519 * TreeView.cs: Create the scrollbars when the handle is created
8520 and add them right away, just make them invisble. Also account for
8521 the window being shrunk vertically to the point that the vert
8522 scrollbar needs to be added.
8523 - Remove some 0.5 adjustments to get around anti aliasing issues.
8525 2005-09-22 Jordi Mas i Hernandez <jordi@ximian.com>
8527 * MainMenu.cs: Fixes default value
8528 * MenuItem.cs: Fixes default value
8530 2005-09-22 Kazuki Oikawa <kazuki@panicode.com>
8532 * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
8534 2005-09-21 Jackson Harper <jackson@ximian.com>
8536 * Control.cs: Don't try to set the border style on the window if
8537 it hasn't been created. When the window is created the border
8540 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
8542 * Control.cs (Update): Don't call XplatUI if we don't have a
8545 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
8547 * ContainerControl.cs: Instead of throwing an exception, print
8548 a one-time warning about Validate not being implemented
8549 * XplatUIWin32.cs: Removed debug output
8551 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
8553 * Control.cs: Only set XplatUI background if we expect the windowing
8554 system to handle the background. This stops controls that draw their
8555 own background from flickering
8557 * XplatUIX11.cs: Support custom visuals and colormaps for window
8558 creation. This allows, amongst other things, using MWF X11 windows
8561 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
8563 * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
8564 CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
8565 GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
8566 SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
8567 TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
8568 IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
8569 KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
8570 RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
8571 ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
8572 ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
8573 GridColumnStylesCollection.cs,
8574 IDataGridColumnStyleEditingNotificationService.cs,
8575 PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
8576 MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
8577 GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs,
8578 TreeNodeCollection.cs, AmbientProperties.cs,
8579 RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
8580 DataObject.cs, ErrorProvider.cs, Splitter.cs,
8581 DataGridLineStyle.cs, Shortcut.cs, Control.cs,
8582 FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
8583 BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
8584 IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
8585 FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
8586 IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
8587 NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
8588 PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
8589 SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
8590 FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
8591 DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
8592 ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
8593 RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
8594 MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
8595 ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
8596 CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
8597 MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
8598 NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
8599 ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
8600 SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
8601 Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
8602 RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
8603 DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
8604 ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
8605 PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
8606 DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
8607 ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
8608 AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
8609 RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
8610 CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
8611 SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
8612 Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
8613 SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
8614 ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
8615 TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
8617 2005-09-21 Jackson Harper <jackson@ximian.com>
8619 * TreeNode.cs: Call Before/After Expand not Collapse when
8622 2005-09-20 Jackson Harper <jackson@ximian.com>
8624 * XplatUIX11.cs: Use the more hand looking hand (in most themes).
8626 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
8630 - Fixes proper storing of subitems
8631 - Fixes not updated items
8633 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
8635 * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
8636 things if our window handle isn't created yet. Also disabled
8637 debug for TextBoxBase
8639 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
8641 * MenuAPI.cs: Remove filtering of events to allow menu usage
8643 2005-09-20 Miguel de Icaza <miguel@novell.com>
8645 * Cursor.cs: Allow null to be passed to Cursor.Current.
8647 2005-09-20 Alexander Olk <alex.olk@googlemail.com>
8649 * ThemeWin32Classic.cs:
8650 - Change some private methods/fields to protected virtual so that
8651 they can be accessed and overriden in derived classes
8652 - First refactoring of some methods. Derived themes now don't
8653 need to duplicate the complete code from ThemeWin32Classic
8655 - Added nice StatusBar
8656 - Derive from ThemeWin32Classic and not Theme
8657 - Removed duplicate ThemeWin32Classic code
8659 2005-09-20 Miguel de Icaza <miguel@novell.com>
8661 * Control.cs (ControlCollection.Add): If the value null is passed
8662 the control is ignored.
8666 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
8668 * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
8669 PostQuitMessage state.
8670 * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
8672 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
8674 * Application.cs: Our constructor will never get called, move
8675 initialization to fields; fixes bug #75933
8677 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
8680 - Allow files to be selected properly using file name
8682 - Add ability to change diretory (absolute / relative)
8683 using file name combo box.
8685 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
8688 - Fixes Multicolumn listboxes item wrong calculations
8689 - Allows to click when only one item is in the listbox
8690 - Fixes crash when no items using keyboard navigation
8692 2005-09-16 Alexander Olk <alex.olk@googlemail.com>
8694 * ComboBox.cs: Reverted almost everything from the latest patch which
8697 2005-09-16 Kazuki Oikawa <kazuki@panicode.com>
8700 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
8702 - When DropDownStyle is Simple, it does not show scrollbar
8703 to the last item of the list.
8704 - When DropDownStyle is Simple, it crashed when the list was
8705 scrolled down with the down cursor key.
8706 - Fixed a bug that when DropDownStyle is DropDownList, the
8707 selected item was not shown.
8708 - The position of the selected item was not preserved when
8709 the next dropdown happened.
8710 * ThemeWin32Classic.cs:
8711 - Items were wrapped at the right end.
8712 * CheckedListBox.cs:
8715 - Items should be fully shown.
8716 - When resizing and vertical scrollbar disappeared, the item
8717 of index 0 should be on the top of the list.
8718 - GetItemRectangle should consider the size of ver. scrollbar
8720 - SizingGrip area should not be allocated when it is not
8722 - Now it reflects MinWidth of the containing panel and
8723 fixed a crash that happens when its width becomes so small.
8725 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
8727 * CheckedListBox.cs: Fixes bug 76028
8728 * ListBox.cs: Fixes bug 76028
8730 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
8732 * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
8733 * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
8735 2005-09-12 Jordi Mas i Hernandez <jordi@ximian.com>
8737 * XplatUIX11.cs: fixes System.NullReferenceException in some situations
8739 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
8741 * IRootGridEntry.cs: Changed namespace to PropertyGridInternal
8743 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
8745 * IRootGridEntry.cs: Added
8746 * PropertyGridCommands.cs: Added
8747 * PropertiesTab.cs: Added missing methods and property
8748 * PropertyGridView.cs: Made class internal
8749 * PropertyGridTextBox.cs: Made class internal
8751 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
8753 * MimeIcon.cs: Try to check some other environment variables
8754 if "DESKTOP_SESSION" returns "default"
8756 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
8758 * ThemeNice.cs: Corrected background colors (e.g. menus)
8759 * ColorDialog.cs: Use correct background colors for controls
8761 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
8763 * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
8765 2005-09-08 Peter Dennis Bartok <pbartok@novell.com>
8767 * RichTextBox.cs: Added initial implementation
8768 * lang.cs: Removed. Was accidentally checked in long time ago
8769 * TODO: Removed. Contents were obsolete
8771 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
8773 * PropertiesTab.cs : Added
8775 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
8777 * PropertyGrid.cs : Update
8778 * PropertyGridView.cs : Update
8779 * System.Windows.Forms.resx : Added images and strings
8781 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
8783 * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
8785 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
8787 * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
8788 a busy loop right after the Ungrab the X11 display is otherwise
8791 2005-09-06 Jordi Mas i Hernandez <jordi@ximian.com>
8793 * ThemeWin32Classic.cs: Optimise the use of clipping
8795 2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com>
8797 * DataGrid.cs: fixes recursion bug
8799 2005-09-03 Alexander Olk <alex.olk@googlemail.com>
8802 - Draw RadioButton and CheckBox Buttons with DrawButtonBase
8805 2005-09-02 Alexander Olk <alex.olk@googlemail.com>
8807 * ThemeNice.cs: Draw nice ProgressBars
8809 2005-09-01 Miguel de Icaza <miguel@novell.com>
8811 * VScrollBar.cs: Another buglet found by Aaron's tool.
8813 * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
8816 2005-08-30 Alexander Olk <alex.olk@googlemail.com>
8819 - Added nicer menu drawing
8823 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
8825 * CreateParams.cs (ToString): Made output match MS
8826 * Control.cs (Text): Don't set Text or Focus via XplatUI unless
8827 handle is already created (to avoid forcing window creation)
8828 * XplatUIX11.cs: Set window text to caption after creating window,
8829 in case Text was set before window was created
8830 * Form.cs: Use this.Text instead of a static string as caption
8832 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
8834 * NotifyIcon.cs: Don't set the window to visible; this screws
8835 up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
8836 OnPaint without a bitmap)
8837 * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't
8838 happen very often anyway; we could add the check to the WM_PAINT
8839 event generation code
8841 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
8843 * NotifyIcon.cs: Fill the icon area with a background color, to
8844 avoid 'residue' when transparent icons are drawn
8846 - Handle whole_window == client_window when destroying windows
8847 - SystrayAdd(): Set client_window to whole_window value to
8848 get mouse and other events passed to NotifyIcon
8850 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
8852 * Form.cs: Set proper default for Opacity property
8854 - ShowSystray(): Don't bother creating telling the OS
8855 about the systray item if no icon is provided
8856 - Now handles WM_NCPAINT message to deal with whole/client window
8858 - Create window as visible to not get caught by Expose optimization
8859 * Hwnd.cs: Removed debug message
8860 * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
8861 StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched
8862 PaintEventStart/End to use new client argument
8864 - Commented out debug messages
8865 - Switched PaintEventStart/End to use new client argument
8866 * XplatUI.cs: Added client window bool to PaintEventStart()/
8867 PaintEventEnd() calls, to support drawing in non-client areas
8869 - Added client window bool to PaintEventStart()/PaintEventEnd()
8870 calls, to support drawing in non-client areas
8871 - Added conditional compile to allow using MWF BeginInvoke
8874 - Added some conditional debug output
8875 - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
8876 whole/client window split
8877 - Implemented handling of client argument to PaintEventStart()/End()
8879 - Throw exception if BeginInvoke() is called and the window handle
8880 or one of the window's parent handles is not created
8881 - Added conditional compile to allow using MWF BeginInvoke on
8883 - get_Parent(): Only sets parent if handle is created. This avoids
8884 forcing window handle creation when parent is set.
8885 - Now fires Layout and Parent changed events in proper order
8886 - Switched to use Handle instead of window.Handle for Z-Order setting,
8887 the get_Parent() patch above causes us to possibly get null for 'window'
8888 - Implemented handling of client argument to PaintEventStart()/End()
8889 - Now reports back to windows that WM_SETCURSOR was handled (to avoid
8891 - Now sends a Refresh() to all child windows when Refresh() is called
8893 2005-08-29 Peter Dennis Bartok <pbartok@novell.com>
8895 * Form.cs: Added (non-functional) Opacity property
8896 * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
8898 2005-08-29 Alexander Olk <xenomorph2@onlinehome.de>
8899 * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
8900 use export MONO_THEME=nice to activate it.
8901 Currently supported controls:
8905 - TabControl (TabAlignment.Top only, other will follow)
8906 * ThemeEngine.cs: Add theme nice
8907 * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
8910 2005-08-25 Jonathan Chambers <jonathan.chambers@ansys.com>
8912 * Splitter.cs: Resize docked control and its neighbor.
8914 2005-08-24 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
8915 -- Making Windows with Menus layout correctly --
8916 * Form.cs : The first leg of the fix
8917 Menu setter - adjust Client Size as needed to make space for the menu
8918 SetClientSizeCore - doesn't call base version to be able to pass the
8919 menu handle to XplatUI.CalculateWindowRect
8920 * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
8921 * XplatUIX11.cs: The critical second leg of the fix
8922 GetWindowPos needs to use a recalculated client_rect
8923 so that resizing the window doesn't break layout of child controls.
8924 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
8927 2005-08-23 Peter Dennis Bartok <pbartok@novell.com>
8929 * Label.cs: Now properly recalculates width and height on Font and Text
8930 changes if AutoSize is set
8932 2005-08-19 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
8933 * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
8935 2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
8937 * ImageList.cs: Makes ToString method compatible with MS
8939 2005-08-18 Jordi Mas i Hernandez <jordi@ximian.com>
8941 * MenuAPI.cs: fixes bug 75716
8943 2005-08-11 Umadevi S <sumadevi@novell.com>
8944 * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
8946 2005-08-11 Umadevi S <sumadevi@novell.com>
8947 * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
8949 2005-08-10 Umadevi S <sumadevi@novell.com>
8950 * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
8952 2005-08-07 Jordi Mas i Hernandez <jordi@ximian.com>
8954 * Menu.cs: fixes bug 75700
8955 * MenuAPI.cs: fixes navigation issues
8957 2005-08-09 Umadevi S <sumadevi@novell.com>
8958 * CheckedListBox.cs - simple fix for GetItemChecked.
8960 2005-08-08 Jordi Mas i Hernandez <jordi@ximian.com>
8962 * ComboBox.cs: Serveral fixes
8963 * ListBox.cs: Serveral fixes
8965 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
8967 * ComboBox.cs: Fixes FindString methods and GetItemHeight
8968 * ListBox.cs: Fixes FindString methods
8970 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
8972 * DataGrid.cs: fixes bugs exposed by new tests
8974 2005-08-04 Peter Dennis Bartok <pbartok@novell.com>
8976 * Mime.cs: Compile Mono assembly references only if compiling
8977 with Mono (Allows to build with VS.Net again)
8979 2005-07-28 Marek Safar <marek.safar@seznam.cz>
8981 * Control.cs (PaintControlBackground): Draw background image
8983 (CheckForIllegalCrossThreadCalls): Stubbed.
8985 * Form.cs (OnCreateControl): Center when should be centered.
8987 * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
8989 2005-07-19 Jordi Mas i Hernandez <jordi@ximian.com>
8991 * Binding.cs: Binding to properties should be case unsensitive
8993 2005-07-18 vlindos@nucleusys.com
8995 * DataGrid.cs: fixes setmember order
8997 2005-07-07 Alexander Olk <xenomorph2@onlinehome.de>
8999 * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
9000 * FileDialog.cs: FileDialog is now resizable and uses the new
9003 2005-07-06 Jordi Mas i Hernandez <jordi@ximian.com>
9005 * DataGridTextBoxColumn.cs: default value
9006 * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
9007 * GridTableStylesCollection.cs: fixes checking MappingName
9008 * DataGridDrawingLogic.cs: fixes drawing logic issues
9009 * DataSourceHelper.cs: rewritten to make compatible with more data sources
9010 * DataGrid.cs: fixes
9012 2005-07-06 Alexander Olk <xenomorph2@onlinehome.de>
9014 * MimeGenerated.cs: Use case sensitive comparer for
9015 NameValueCollections
9017 2005-07-01 Jordi Mas i Hernandez <jordi@ximian.com>
9019 * DataGridTextBoxColumn.cs: bug fixes, code refactoring
9020 * ThemeWin32Classic.cs: bug fixes, code refactoring
9021 * DataGridDrawingLogic.cs: bug fixes, code refactoring
9022 * DataGrid.cs: bug fixes, code refactoring
9023 * DataGridTextBox.cs: bug fixes, code refactoring
9024 * DataGridColumnStyle.cs: bug fixes, code refactoring
9025 * Theme.cs: bug fixes, code refactoring
9027 2005-07-01 Peter Bartok <pbartok@novell.com>
9029 * TextControl.cs: Quick fix for the reported crash on ColorDialog
9030 and other text box usage
9032 2005-07-01 Jackson Harper <jackson@ximian.com>
9034 * TabControl.cs: Make sure the bottom of the tab covers the pages
9037 2005-06-30 Peter Bartok <pbartok@novell.com>
9039 * Form.cs (ShowDialog): Assign owner of the dialog
9040 * TextBoxBase.cs: Always refresh caret size when deleting, caret
9041 might have been moved to a tag with different height
9043 2005-06-30 Jackson Harper <jackson@ximian.com>
9045 * Form.cs: Don't create an infinite loop when setting focus
9046 * MenuItem.cs: Don't dirty the parents if we don't have any
9048 2005-06-29 Ben Maurer <bmaurer@ximian.com>
9050 * LibSupport.cs: Rename
9052 2005-06-29 Peter Bartok <pbartok@novell.com>
9054 * TextBoxBase.cs: Re-align caret after deleting a character
9056 - DeleteChars(): Ensure that tag covers the provided position
9057 - StreamLine(): Drop reference for dropped tag
9059 2005-06-29 Peter Bartok <pbartok@novell.com>
9062 - Selections now work properly, anchoring at the initial location
9063 and properly extending in either direction (SetSelectionToCaret(),
9064 SetSelectionStart() and SetSelectionEnd())
9065 - No longer redraws the whole control on selection change, now
9066 calculates delta between previous and new selection and only
9067 invalidates/redraws that area
9068 - Fixed FindPos() math off-by-one errors
9069 - Changed DeleteChars() to verify the provided tag covers the
9070 provided position, selections may have a tag that doesn't cover
9071 the position if the selection is at a tag border
9072 - Fixed off-by-one errors in DeleteChars()
9073 - Added missing streamlining check in DeleteChars() to remove
9075 - Implemented Invalidate() method, now properly calculates exposures
9076 between two given lines/positions
9077 - Implemented SetSelection()
9078 - Obsoleted and removed FixupSelection()
9079 - Improved RecalculateDocument() logic, removing code duplication
9081 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
9083 * LibSupport.cs: changes to match different input/output arguments.
9085 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
9087 * LibSupport.cs: added libsupport.so init routine.
9089 2005-06-29 Jordi Mas i Hernandez <jordi@ximian.com>
9091 * ControlBindingsCollection.cs
9092 - Throws an exception on null datasource when adding
9093 - Checks for duplicated bindings when adding
9095 2005-06-28 Jackson Harper <jackson@ximian.com>
9097 * TreeView.cs (OnKeyDown): Support left and right properly
9098 (navigates as well as expanding and collapsing.
9099 - Add support for Multiply, this expands all the selected nodes
9103 2005-06-28 Jackson Harper <jackson@ximian.com>
9105 * TreeView.cs: Implement keyboard navigation, currently supports,
9106 LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
9107 support for toggling checkboxes with the space bar.
9109 2005-06-28 Jackson Harper <jackson@ximian.com>
9111 * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
9114 2005-06-28 Jackson Harper <jackson@ximian.com>
9116 * TreeView.cs: Add missing event.
9118 2005-06-27 Peter Bartok <pbartok@novell.com>
9121 - Made line ending size configurable (now allows for counting
9122 lineendings as \n or \r\n)
9123 - Added margin to viewport to keep caret visible on right side
9124 - Fixed translation routines for line/pos to documentpos to consider
9125 cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
9126 - Fixed some line-endings to be unix style
9127 - Fixed Document.FormatText to perform it's calculations 1-based
9128 - Added descriptions for a few methods that might otherwise get
9130 - Added NOTE section with some basic conventions to remember at
9132 - Major fixup for RichTextBox selection drawing:
9133 * Fixed crashes when multiple tags on a single line were selected
9134 * fixed selection box drawing not overlaying text
9135 * fixed bogus offset calculation for tags not starting at index 1
9136 * Switched behaviour from using multiple Substrings of a
9137 StringBuilder.ToString() to using multiple
9138 StringBuilder.ToString(start, length) statements, hoping this is
9139 faster (kept original version commented out in the code, in case
9140 original version was faster)
9141 * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if
9143 * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
9146 2005-06-27 Jackson Harper <jackson@ximian.com>
9148 * TabControl.cs: Move to the left and right with the arrow
9149 keys. These keys don't cycle beyond first and last like
9150 tab. Refresh all the tabs when scrolling them to the left or
9153 2005-06-27 Jackson Harper <jackson@ximian.com>
9156 - ToString: Added method
9157 - CreateParams: Remove TODO and comment
9158 - OnKeyDown: Cycle through bounds properly.
9159 - SelectedIndex: Scroll to the right or left if we need to
9160 display the newly selected tab.
9162 2005-06-23 Jackson Harper <jackson@ximian.com>
9164 * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
9167 2005-06-23 Jackson Harper <jackson@ximian.com>
9169 * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
9170 CTRL-SHIFT-TAB, and HOME, END are there any others?
9172 2005-06-23 Jackson Harper <jackson@ximian.com>
9174 * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
9176 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
9178 * DataGridTextBoxColumn.cs: fixes and enhancements
9179 * ThemeWin32Classic.cs: fixes and enhancements
9180 * DataGridBoolColumn.cs: fixes and enhancements
9181 * DataGridDrawingLogic.cs: fixes and enhancements
9182 * CurrencyManager.cs: fixes and enhancements
9183 * DataGrid.cs: fixes and enhancements
9184 * DataGridColumnStyle.cs: fixes and enhancements
9186 2005-06-22 Jackson Harper <jackson@ximian.com>
9188 * TabControl.cs: Add some missing methods that just call into the
9189 base. Make the TabPageCollection's IList interface behave in the
9190 same manner as the MS implementation.
9192 2005-06-22 Peter Bartok <pbartok@novell.com>
9194 * TextControl.cs: Added sanity check
9196 - Fixed wrapping behaviour, don't set wrap on single line controls
9197 (this fixes the breakage of colordialog introduced in an earlier
9199 - Added rudimentary support for autoscrolling right-aligned controls
9200 (still needs fixing, also, center alignment scroll is missing)
9202 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
9204 * ScrollBar.cs: Fixes thumbpos on Maximum values
9206 2005-06-21 Jonathan Chambers <jonathan.chambers@ansys.com>
9208 * PropertyGridView.cs: Pass context information to UITypeEditors
9210 2005-06-21 Peter Bartok <pbartok@novell.com>
9213 - Now calling PositionCaret with absolute space coordinates
9214 - Enabled vertical scrolling
9215 - Better tracking of scrollbar changes, tied into WidthChange
9217 - Improved cursor tracking
9218 - Removed debug output
9220 - PositionCaret coordinates are now works in absolute space, not
9222 - Improved tracking of document size
9223 - Added events for width and height changes
9225 2005-06-21 Peter Bartok <pbartok@novell.com>
9227 * Form.cs: Set focus to active control when form is activated
9229 - Added word-wrap functionality to RecalculateLine()
9230 - Added some short function descriptions for VS.Net to aid in
9231 writing dependent controls
9232 - Added Caret property, returning the current coords of the caret
9233 - Added ViewPortWidth and ViewPortHeight properties
9234 - Added Wrap property
9235 - Added CaretMoved event
9236 - Removed some old debug code
9237 - Split() can now create soft splits
9238 - Added PreviousTag()/NextTag() to allow walking "tag-lists"
9239 - Added method to format existing text
9240 - Fixed size/alignment calculations to use viewport
9241 - RecalculateDocument now can handle changing line-numbers while
9245 - Added some wrap logic, we don't wrap if alignment is not left
9246 - Added casts for scrollbar var, base class switched types to
9247 also support RichTextBoxA
9248 - Implemented handling of scrollbar visibility flags
9251 - Switched scrollbars type to RichTextBoxScrollBars to support
9253 - Added tracking of canvas width/height
9254 - Switched scrollbars to be not selectable (to keep focus on text)
9255 - Added central CalculateDocument() method to handle all redraw
9257 - Added ReadOnly support
9258 - Added WordWrap support
9259 - Fixed handling of Enter key (we now treat it as a DialogKey)
9260 - Fixed caret positioning when h or v scroll is not zero
9261 - Fixed placing/generation of vertical scrollbar
9262 - Added CalculateScrollBars() method to allow updating scrollbar
9263 limits and visibility
9264 - Fixed handling of horizontal scroll
9265 - Added handling of vertical scroll
9266 - Implemented auto-'jump' when caret moves to close to a left or
9267 right border and there is text to be scrolled into view (currently
9268 there's the potential for a stack overflow, until a bug in
9271 2005-06-21 Geoff Norton <gnorton@customerdna.com>
9273 * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
9275 2005-06-19 Alexander Olk <xenomorph2@onlinehome.de>
9279 - return application/x-zerosize for files with size zero
9280 (if no extension pattern matches).
9281 - check matches collection for strings too.
9282 - return only the first mime type if the name value
9283 collection has more than one mime type.
9285 2005-06-18 Jonathan Chambers <jonathan.chambers@ansys.com>
9287 * PropertyGrid.cs: Cleaned up some TODOs
9288 * PropertyGridView.cs: Added support for UITypeEditors
9290 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
9292 * DataGrid.cs: clears cached value
9294 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
9296 * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
9297 * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
9298 * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
9299 * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
9301 2005-06-16 Jordi Mas i Hernandez <jordi@ximian.com>
9303 * ThemeWin32Classic.cs: fixes colour
9305 2005-06-15 Peter Bartok <pbartok@novell.com>
9307 * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
9308 * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
9309 * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
9310 * Control.cs: Added some MWFCategory and MWFDescription attributes
9311 * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
9313 2005-06-15 Alexander Olk <xenomorph2@onlinehome.de>
9315 * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
9318 2005-06-14 Jordi Mas i Hernandez <jordi@ximian.com>
9320 * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
9321 * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
9322 * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
9323 * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
9324 * DataGrid.cs: default datagrid settings for Default Styles, fixes
9325 * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
9327 2005-06-13 Jackson Harper <jackson@ximian.com>
9329 * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
9330 isn't printed when the user enables dropping. (X11 does accept
9333 2005-06-13 Jackson Harper <jackson@ximian.com>
9335 * TreeView.cs: Remove some TODOS.
9337 2005-06-13 Jackson Harper <jackson@ximian.com>
9339 * Form.cs: Hook into the mdi framework.
9340 * MdiClient.cs: Use the base control collections add method so
9341 parents get setup correctly. Set the default back colour and dock
9343 * MdiChildContext.cs: New class, this bad actor handles an
9344 instance of an MDI window. Right now there is only basic
9345 support. You can drag, close, and resize windows. Minimize and
9346 Maximize are partially implemented.
9348 2005-06-13 Jackson Harper <jackson@ximian.com>
9350 * XplatUIX11.cs: Mash numbers together properly, otherwise we get
9351 freaky when both vals are negative. NOTE: There are probably other
9352 places in XplatUIX11 that this needs to be done.
9354 2005-06-13 Jordi Mas i Hernandez <jordi@ximian.com>
9356 * DataGrid.cs: implement missing methods, move KeyboardNavigation
9357 * DataGridColumnStyle.cs: fixes signature
9359 2005-06-12 Jackson Harper <jackson@ximian.com>
9361 * XplatUIX11.cs: Use sizing cursors similar to the ones on
9364 2005-06-11 Jackson Harper <jackson@ximian.com>
9366 * StatusBarPanel.cs: Signature cleanups. Implement
9369 2005-06-10 Jordi Mas i Hernandez <jordi@ximian.com>
9371 * DataGridTextBoxColumn.cs: Honors aligment
9372 * GridColumnStylesCollection.cs: Contains is case unsensitive
9373 * GridTableStylesCollection.cs: several fixes
9374 * DataGridTableStyle.cs: default column creation
9375 * DataGridDrawingLogic.cs: fixes
9376 * CurrencyManager.cs: ListName property
9377 * DataGrid.cs: multiple styles support
9378 * DataGridColumnStyle.cs: fixes
9381 2005-06-10 Peter Bartok <pbartok@novell.com>
9383 * Control.cs(Select): Moved SetFocus call to avoid potential
9384 loops if controls change the active control when getting focus
9385 * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
9388 2005-06-10 Matthias Felgner <matthiasf@voelcker.ocm>
9390 * ImageListConverter.cs: Implemented
9392 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
9394 * MonthCalendar.cs: Wired in NumericUpDown control for year
9396 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
9398 * MonthCalendar.cs: Removed MonoTodo attributes on Click and
9399 DoubleClick events, since they are not meant to be fired.
9401 2005-06-09 Peter Bartok <pbartok@novell.com>
9403 * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
9404 Jonathan's standalone controls into MWF, implemented missing
9405 events, attributes and methods; added xxxAccessible classes
9406 * AccessibleObject.cs: Made fields internal so other classes
9407 can change them if needed
9409 2005-06-09 Jonathan Gilbert <2a5gjx302@sneakemail.com>
9411 * UpDownBase.cs: Complete implementation
9412 * NumericUpDown.cs: Complete implementation
9413 * DomainUpDown.cs: Complete implementation
9415 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
9417 * DataGridTextBoxColumn.cs: drawing fixes
9418 * DataGridCell.cs: fixes ToString method to match MSNet
9419 * DataGridTableStyle.cs: fixes
9420 * DataGridBoolColumn.cs: fixes, drawing
9421 * DataGridDrawingLogic.cs: fixes, new methods
9422 * DataGridTextBox.cs: Keyboard and fixes
9424 - Keyboard navigation
9426 - Row selection (single, multiple, deletion, etc)
9429 2005-06-07 Jackson Harper <jackson@ximian.com>
9431 * ThemeWin32Classic.cs: Clear the background area when drawing
9434 2005-06-06 Peter Bartok <pbartok@novell.com>
9436 * ImageListStreamer.cs: Fixed signature for GetData
9437 * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
9439 - Added missing ChildAccessibleObject class
9440 - Added missing OnXXXFocus overrides, switched to using those
9441 instead of the event handler
9443 - Added Parent property for ControlAccessibleObject
9446 - Added ResetBindings()
9447 * ListBindingConverter.cs: Implemented some methods
9448 * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
9449 * ImageList.cs: Implemented basic handle scheme, removed TODOs
9450 * ContainerControl.cs: Fixed signature, now subscribing to the
9451 ControlRemoved event instead of overriding the handler, LAMESPEC
9452 * CurrencyManager.cs: Added missing attribute
9453 * MonthCalendar.cs: Added missing properties
9455 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
9457 * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
9459 2005-06-06 Gaurav Vaish and Ankit Jain
9461 * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
9462 * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
9464 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
9466 * Control.cs: fixes CreateParams Width / Height.
9468 2005-06-05 Peter Bartok <pbartok@novell.com>
9470 * Win32DnD.cs: Removed compilation warnings
9472 2005-06-05 Peter Bartok <pbartok@novell.com>
9474 * Control.cs (CreateParams): Since we don't know if one of the
9475 properties we use is overridden, lets make sure if we fail accessing
9476 we continue with a backup plan
9478 2005-06-05 Peter Bartok <pbartok@novell.com>
9481 - Removed debug output
9482 - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
9484 - Plugged resource leak
9485 * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
9488 2005-06-05 Peter Bartok <pbartok@novell.com>
9490 * XplatUIWin32.cs: Removed DnD code
9491 * Win32DnD.cs: Implemented drop source and drop target functionality
9493 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
9495 * UpDownBase.cs: remove duplicate addition of event, enable some code
9496 that was commented out.
9497 * NumericUpDown.cs: added missing attributes and Hexadecimal property.
9498 Validate input when a key is pressed. It works fine now for every
9499 combination of Hexadecimal. Only missing some drawing love when sharing
9500 space with other controls.
9502 2005-06-04 Peter Bartok <pbartok@novell.com>
9505 - We need to pass a window for DragDrop, so enable callback events
9506 - Added DnD callback events when being a DragSource
9507 * XplatUI.cs (StartDrag): Added window handle argument
9508 * XplatUIDriver.cs (StartDrag): Added window handle argument
9509 * QueryContinueDragEventArgs: Made fields internally accessible so
9510 drivers can set them
9511 * GiveFeedbackEventArgs: Made fields internally accessible so drivers
9514 2005-06-03 Jordi Mas i Hernandez <jordi@ximian.com>
9516 * DataGridTextBoxColumn.cs: column text editing
9517 * DataGridTableStyle.cs: Respect columns styles created by the user
9518 * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
9519 * DataGridBoolColumn.cs: bool column editing
9520 * DataGrid.cs: fixes to scrolling, properties, etc
9521 * DataGridTextBox.cs: handle keyboard
9522 * DataGridColumnStyle.cs: fixes
9524 2005-06-02 Jackson Harper <jackson@ximian.com>
9526 * ImageListStreamer.cs: Somewhat broken implementation of
9527 GetObjectData. The RLE needs some work to match MS properly.
9529 2005-06-02 Jackson Harper <jackson@ximian.com>
9531 * X11Dnd.cs: Attempting to keep at least one file in MWF
9534 2005-06-02 Peter Bartok <pbartok@novell.com>
9536 * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
9539 2005-06-02 Peter Bartok <pbartok@novell.com>
9541 * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
9542 * XplatUI.cs: Added DoDragDrop() method
9543 * XplatUIDriver.cs: Added DoDragDrop() method
9545 2005-06-02 Jackson Harper <jackson@ximian.com>
9547 * Splitter.cs: Implement BorderStyle.
9549 2005-06-02 Jackson Harper <jackson@ximian.com>
9551 * XplatUIX11.cs: Tie into the X11Dnd subsystem.
9552 * X11Dnd.cs: New file. A subsystem that handles drag and drop on
9555 2005-06-02 Peter Bartok <pbartok@novell.com>
9559 - Fixed broken insertion code for SetData, now also
9560 overwrites any existing entry of the same format name
9561 * Hwnd.cs: Added list of pointers that automatically gets
9562 freed when the window is disposed
9563 * XplatUI.cs: Call driver initialization method when loading
9566 - OnDragLeave takes EventArgs, not DragEventArgs
9567 - Added setting of WS_EX_ACCEPTFILES style when dropping is
9569 - Forces style update when drop state changes
9570 * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
9571 not perfect since we cannot (yet) call the IDataObject.GetData()
9572 method, we keep getting 0x80004005 error, dunno why)
9574 2005-06-02 Peter Bartok <pbartok@novell.com>
9576 * DragEventArgs.cs: Make fields internal so we can cache the
9577 object and re-set the fields from XplatUI
9579 2005-06-02 Jackson Harper <jackson@ximian.com>
9581 * Control.cs: Add some internal methods so the DnD subsystem can
9582 raise DnD events. Also call into the driver when AllowDrop is set.
9584 * XplatUIDriver.cs: New method for setting whether or not a window
9585 is allowed to accept drag and drop messages.
9587 2005-06-01 Jordi Mas i Hernandez <jordi@ximian.com>
9589 * ScrollBar.cs: Make sure that values sent in Scroll events
9590 are always between Maximum and Minimum.
9592 2005-06-01 Marek Safar <marek.safar@seznam.cz>
9594 * Menu.cs: Call MenuChanged when menuitem visibility has been
9596 * MenuItem.cs: Rebuild menu when item is (not) visible.
9597 * MainMenu.cs: MainMenu has special MenuChanged.
9598 * Theme.cs: Caption and FrameBorderSize are not fixed.
9599 * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
9600 * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
9602 * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
9603 * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
9605 2005-05-30 Jackson Harper <jackson@ximian.com>
9607 * DataFormat.cs: We can't statically initialize this stuff because
9608 it calls into the xplatui and could create a loop. So we lazy init
9611 2005-05-28 Jackson Harper <jackson@ximian.com>
9613 * Control.cs: Proper implementation of Product(Name/Version).
9615 2005-05-27 Jackson Harper <jackson@ximian.com>
9617 * DataObject.cs: Dont crash if no data is found.
9619 2005-05-26 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
9620 * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
9621 as per status page, guessing it should be set to true
9623 2005-05-26 Jordi Mas i Hernandez <jordi@ximian.com>
9625 * DataGridTextBoxColumn.cs: Draws text and basic text formatting
9626 * DataGridTableStyle.cs: set proper formatting text, def header text
9627 * ThemeWin32Classic.cs: new themable paramaters
9628 * DataGridBoolColumn.cs: paint check box, get data, fixes
9629 * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
9630 * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
9631 * DataGridColumnStyle.cs: fixes
9632 * Theme.cs: new themable paramaters
9634 2005-05-26 Peter Bartok <pbartok@novell.com>
9636 * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
9638 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
9639 * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
9641 2005-05-24 Peter Bartok <pbartok@novell.com>
9643 * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
9644 Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
9645 Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
9646 FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
9647 NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
9648 ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
9649 DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
9650 AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
9651 DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
9652 StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
9653 missing attributes, etc
9654 * DataGridPreferredColumnWidthTypeConverter.cs: Added
9656 2005-05-24 Peter Bartok <pbartok@novell.com>
9658 * Help.cs: Added, implemented trivial functions, throws up MessageBox
9659 when user tries to get help
9660 * DataObject.cs, DataFormats.cs, LinkArea.cs,
9661 SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
9662 to suppress warnings
9663 * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
9664 avoid unreachable code warning
9666 2005-05-20 Peter Bartok <pbartok@novell.com>
9668 * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
9670 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
9672 * DataGridTextBoxColumn.cs: Basic painting methods
9673 * DataGridTableStyle.cs: Set table style in the column
9674 * ThemeWin32Classic.cs: Use Theme for colors
9675 * DataGridDrawingLogic.cs: Implement more drawing
9676 * DataGrid.cs: drawing, theming, enhacements, fixes
9677 * DataGridColumnStyle.cs: fixes, drawing
9678 * Theme.cs: theming for Datagrid
9680 2005-05-20 Peter Bartok <pbartok@novell.com>
9682 * Cursor.cs: Implemented GetObjectData() method
9684 2005-05-20 Peter Bartok <pbartok@novell.com>
9686 * Cursors.cs: Added setting of cursor name
9688 - Implemented constructors
9689 - Implemented Draw and DrawStretched
9690 - Implemented Current property
9691 - Implemented == and != operators
9692 - Implemented Dispose()
9693 - Implemented ToString
9694 - Added missing attributes
9696 - Added missing reset for OverrideCursor when DoEvents is called
9697 - Fixed creation of cursor, logic was wrong
9699 - Added missing reset for OverrideCursor when DoEvents is called
9700 - Fixed creation of cursor, bit arrays were swapped
9701 * Clipboard.cs: Removed obsolete MonoTODO attribute
9703 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
9705 * ComboBox.cs: fixes OnSelectedItemChanged
9706 * ControlBindingsCollection.cs: fixes item range check
9708 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
9711 - Calc preferred height properly
9712 - Implement missing properties
9714 * NumericUpDown.cs: Implement missing events
9716 2005-05-19 Jackson Harper <jackson@ximian.com>
9718 * TabControl.cs: New method that resizes the tab pages before
9719 redrawing them. This as needed as the control is double buffered
9720 and sizing will not be recalculated unless ResizeTabPages is
9722 * TabPage.cs: Set base.Text instead of Text in the constructor so
9723 that UpdateOwner does not get called. Use the new Redraw method of
9724 TabControl instead of Refresh so the sizing is recalculated.
9725 * ThemeWin32Classic.cs: Draw the text for button tabs.
9727 2005-05-19 Jackson Harper <jackson@ximian.com>
9729 * Control.cs: Paint control background images. Fix typo where
9730 PaintControlBackground was not getting called correctly.
9732 2005-05-19 Peter Bartok <pbartok@novell.com>
9734 * ScrollableControl.cs (DisplayRectangle): Undid my last change until
9735 I can investigate, apparently I broke FileDialog
9737 2005-05-19 Marek Safar <marek.safar@seznam.cz>
9739 * AxHost.cs: Some simple properties.
9740 * Control.cs: window must be accessible after ctor.
9741 * Form.cs: Added TransparencyKey property.
9742 * TextBoxBase.cs: Implemented Clear. Text property can be null.
9743 * XplatUIWin32.cs: SetBorderStyle implemented.
9745 2005-05-18 Peter Bartok <pbartok@novell.com>
9747 * DataObject.cs: Entries are not global but particular to the
9748 DataObject, now it behaves that way
9749 * XplatUIWin32.cs: Implemented Clipboard methods
9750 * Clipboard.cs: Implemented
9751 * ScrollableControl.cs (DisplayRectangle): Fixed calculation
9752 * XplatUIOSX.cs: Updated to final clipboard prototypes
9753 * XplatUIX11.cs: Implemented Clipboard methods
9754 * XplatUIDriver.cs: Updated to final clipboard prototypes
9755 * XplatUIStructs.cs:
9756 - Added BITMAPINFOHEADER struct
9757 - Added ClipboardFormats enum
9759 - Added ClipboardStruct
9760 - Added Atom enum items for clipboard types
9761 - Fixed atom types for Selection event structures
9763 - Added internal properties and methods for drivers to enumerate
9765 - Switched initialization method to allow drivers to assign their
9766 own IDs even for the MS predefined clipboard IDs
9767 * XplatUI.cs: Updated to final clipboard interface
9769 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
9770 * PropertyGridView.cs: Fixed compiler warnings.
9772 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
9773 * PropertyGrid.cs: Added some event calls
9774 * PropertyGridView.cs: Change drawing code to use double buffering
9775 * PropertyGridTextBox.cs: Changed Text property name
9776 * GridItem.cs: Added Bounds property.
9777 * GridEntry.cs: Added Bounds property.
9779 2005-05-17 Lluis Sanchez Gual <lluis@novell.com>
9781 * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
9782 since GetType() may not return the correct type if the object is
9785 2005-05-17 Jordi Mas i Hernandez <jordi@ximian.com>
9787 * TreeNodeCollection.cs: fixes get/set item ranges
9789 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
9791 * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
9793 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
9795 * ComboBox.cs: Fix item range comparation
9796 * ListView.cs: Fix item range comparation
9798 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
9801 - Clear example panel when OnPaint is called
9802 - Better solution for displaying the example panel text
9803 - Select default indexes in the ListBoxes
9805 2005-05-11 Geoff Norton <gnorton@customerdna.com>
9807 * XplatUIOSX.cs: Avoid painting into invisible views. Fixes #74926
9809 2005-05-11 Peter Bartok <pbartok@novell.com>
9811 * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
9812 * SelectionRangeConverter.cs: Implemented
9813 * PropertyGrid.cs: Fixed attribute value
9815 - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
9816 - Added Sebastien Pouliot's CAS Stack Propagation fixes
9817 * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
9818 that's common to all drivers. First methods to go there are
9819 Sebastien Pouliot's CAS Stack Propagation helper methods
9820 * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
9821 Sebastien Pouliot for CAS Stack Propagation
9823 2005-05-11 Geoff Norton <gnorton@customerdna.com>
9826 XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
9828 2005-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
9830 * DataGridTextBoxColumn.cs: fixed some members
9831 * GridColumnStylesCollection.cs: indexed column is case insensitive
9832 * DataGridTableStyle.cs: fixes
9833 * ThemeWin32Classic.cs: add new theme parameter
9834 * Theme.cs: add new theme parameter
9835 * DataGridDrawingLogic.cs: Datagrid's drawing logic
9836 * DataGrid.cs: fixes, new internal properties, etc.
9837 * DataGridColumnStyle.cs: allows to set grid value
9840 2005-05-10 Peter Bartok <pbartok@novell.com>
9842 * AccessibleObject.cs:
9843 - Removed MonoTODO attribute on help, method is correct
9844 - Fixed Bounds property
9845 * AxHost.cs: Moved MonoTODO
9846 * ButtonBase.cs: Now setting AccessibleObject properties
9847 * RadioButton.cs: Setting proper AccessibleObject role
9848 * CheckBox.cs: Setting proper AccessibleObject role
9849 * ControlBindingsCollection.cs: Added properties, methods and attributes
9850 * DataFormats.cs: Fixed awkward internal API, and changed to enable
9851 userdefined DataFormats.Format items as well
9852 * ListControl.cs: Removed data_member from the public eye
9853 * OpenFileDialog.cs:
9855 - Added missing attributes
9856 * SaveFileDialog.cs: Added missing attributes
9857 * ImageListStreamer.cs: Fixed code that caused warnings
9858 * LinkLabel.cs: Removed unreachable code
9859 * TreeView.cs: Fixed code that caused warnings
9860 * PropertyGridView.cs: Fixed code that caused warnings
9861 * GridColumnStylesCollection.cs: Added missing attributes
9862 * GridTableStylesCollection: Added missing attribute
9863 * PropertyManager: Added .ctor
9864 * SecurityIDType: Added
9865 * DataObject.cs: Implemented class
9866 * LinkArea.cs: Added missing attribute
9868 2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
9870 * RadioButton.cs: call base method to allow to fire OnClick event
9871 * UpDownBase.cs: OnMouseUp call base method
9872 * CheckedListBox.cs: call base method before returning
9873 * TrackBar.cs: call base method before returning
9876 2005-05-10 Peter Bartok <pbartok@novell.com>
9878 * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
9881 2005-05-10 Peter Bartok <pbartok@novell.com>
9883 * DataFormats.cs: Implemented
9884 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
9885 XplatUIX11.cs: Added Clipboard APIs
9886 * XplatUIWin32.cs: Implemented Clipboard APIs
9887 * FolderBrowserDialog.cs: Added missing event, attributes
9889 2005-05-10 Jordi Mas i Hernandez <jordi@ximian.com>
9891 * CheckBox.cs: call base method to allow to fire OnClick event
9893 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
9895 * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
9897 2005-05-06 Peter Bartok <pbartok@novell.com>
9899 * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
9900 * Screen.cs: Implemented
9901 * HelpNavigator.cs: Added
9902 * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
9904 * HelpProvider.cs: Implemented all we can do until we have a CHM
9905 help library (which means that "What's This" does work now)
9907 2005-05-06 Jackson Harper <jackson@ximian.com>
9909 * XplatUIX11.cs: Fix waking up the main loop.
9911 2005-05-05 Peter Bartok <pbartok@novell.com>
9913 * XplatUI.cs: Updated revision
9914 * Form.cs: Removed enless loop
9915 * GroupBox.cs (OnPaint): Added call to base.OnPaint()
9916 * Label.cs (OnPaint): Added call to base.OnPaint()
9917 * ToolTip.cs: Made ToolTipWindow reusable for other controls
9918 * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
9919 * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
9921 * ButtonBase.cs: Moved base.OnPaint() call to end of method
9922 * ThemeWin32Classic.cs: Replaced references to ToolTip with references
9923 to ToolTip.ToolTipWindow for drawing and size methods; this allows
9924 reuse of ToolTipWindow by other controls
9925 * SizeGrip.cs: Moved base.OnPaint() call to end of method
9926 * XplatUIX11.cs: Now clipping drawing area (experimental)
9927 * PictureBox.cs: Moved base.OnPaint() call to end of method
9928 * Theme.cs: Fixed ToolTip abstracts to match new format
9929 * ErrorProvider.cs: Implemented
9931 2005-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
9933 * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
9937 - Implements LinkBehavior
9940 2005-05-03 Jackson Harper <jackson@ximian.com>
9942 * ListView.cs: Calculate the scrollbar positioning on resize and
9943 paint, so they get put in the correct place.
9945 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
9947 * ColorDialogs.cs: The small color panels are now handled by
9948 SmallColorControl. This fixes drawing of the focus rectangle
9949 and adds a 3D border.
9951 2005-05-03 Peter Bartok <pbartok@novell.com>
9953 * Control.cs: Modified version of Jonathan Chamber's fix for
9956 2005-05-03 Jackson Harper <jackson@ximian.com>
9958 * ListView.cs: Remove redraw variable. Control now handles whether
9959 or not a redraw needs to be done, and will only raise the paint
9960 event if redrawing is needed.
9962 2005-05-03 Jackson Harper <jackson@ximian.com>
9964 * Splitter.cs: No decorations for the splitter form. Cache the
9967 2005-05-03 Jackson Harper <jackson@ximian.com>
9969 * TreeView.cs: Use dashed lines to connect nodes. Use the
9970 ControlPaint method for drawing the focus rect instead of doing
9973 2005-05-02 Peter Bartok <pbartok@novell.com>
9975 * LinkLabel.cs: Fixed the fixes from r43566 and 43521
9977 2005-04-29 Jackson Harper <jackson@ximian.com>
9979 * ThemeWin32Classic.cs: Don't clear the GC that will clear the
9980 entire image buffer. Just clear the clipping rectangle.
9982 2005-04-29 Jackson Harper <jackson@ximian.com>
9984 * ThemeWin32Classic.cs: Don't draw list view items that are
9985 outside the clipping rectangle.
9987 2005-04-29 Jordi Mas i Hernandez <jordi@ximian.com>
9989 * ListBox.cs: added horizontal item scroll
9991 2005-04-29 Jackson Harper <jackson@ximian.com>
9993 * ThemeWin32Classic.cs: Remove some old debug code that was
9994 causing flicker with the new double buffering code.
9996 2005-04-29 John BouAntoun <jba-mono@optusnet.com.au>
9998 * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
9999 behave like combobox and comboboxlist (still not sure if this is
10002 2005-04-28 Jackson Harper <jackson@ximian.com>
10004 * ThemeWin32Classic.cs: Don't fill the middle of progress
10005 bars. This fills areas outside of the clip bounds that don't need
10008 2005-04-28 Jackson Harper <jackson@ximian.com>
10010 * Control.cs: Don't expose functionality to touch the image buffers.
10012 * ListView.cs: We do not need to (and no longer can) manipulate
10013 the image buffers directly. All of this is handled by Control.
10015 2005-04-28 Peter Bartok <pbartok@novell.com>
10017 * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
10018 RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
10019 RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
10021 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
10024 - Adjust control's height for non-simple comboboxes (bug fix)
10026 * MenuAPI.cs: remove unused var
10027 * ScrollBar.cs: remove unsed var
10029 * ListBox.cs: unselect items when clearing
10031 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
10033 * ListControl.cs: honors OnPositionChanged and default Selected Item
10034 * ListBox.cs: unselect items when clearing
10036 2005-04-27 Jackson Harper <jackson@ximian.com>
10038 * X11Keyboard.cs: Initialize a default keyboard and give a warning
10039 if a "correct" keyboard is not found. This will make us not crash,
10040 but might give some users bad keyboard layouts...seems to be the
10041 same thing rewind does.
10043 2005-04-27 Jackson Harper <jackson@ximian.com>
10045 * BindingManagerBase.cs: Attach the current/position changed
10046 handlers to their respective events.
10048 2005-04-27 Jackson Harper <jackson@ximian.com>
10050 * Control.cs: Make sure that the first WM_PAINT does a full draw,
10052 * ThemeWin32Classic.cs: Don't fill the background for picture
10053 boxes. This could overright user drawing.
10054 * ComboBox.cs: Just fill the clipping rect not the entire client
10055 rect when drawing the background. This prevents pieces of the
10056 image buffer from getting overwritten and is theoretically faster.
10058 2005-04-26 Jordi Mas i Hernandez <jordi@ximian.com>
10060 * ComboBox.cs: Databinding support fixes, fire missing events
10061 * ListControl.cs: implement missing methods and properties, fixes
10062 * ThemeWin32Classic.cs: Databiding support on Drawing
10063 * CheckedListBox.cs: Databinding support fixes, fire missing events
10064 * ListBox.cs: Databinding support fixes, fire missing events
10066 2005-04-25 Peter Bartok <pbartok@novell.com>
10068 * LinkLabel.cs: Length of LinkArea is not allowed to be negative
10070 2005-04-25 Jackson Harper <jackson@ximian.com>
10072 * TreeView.cs: Use the horizontal scrollbars height not width when
10073 determining how much of the client area is available.
10075 2005-04-25 Jackson Harper <jackson@ximian.com>
10077 * Control.cs: Double buffering is handled differently now. As per
10078 the spec, the extra buffer is created in the WM_PAINT message and
10079 passed down to the control's drawing code.
10087 * PropertyGridView.cs:
10099 * DateTimePicker.cs:
10101 * TreeView.cs: Update to new double buffering system.
10102 * MonthCalendar.cs: Uncomment block, as Capture is now
10103 working. Update to new double buffering
10104 * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
10105 * PaintEventArgs.cs: New internal method allows us to set the
10106 graphics object. This is used for double buffering.
10107 * ThemeWin32Classic.cs: Give the picture box drawing code a clip
10108 rectangle. The internal paint_area var has been removed from
10109 StatusBar. The clipping rect should be used instead.
10110 * Theme.cs: Give the PictureBox drawing method a clipping rect.
10111 * TabPage.cs: The RefreshTabs method was removed, so just call the
10112 tab controls Refresh method now.
10113 * TabControl.cs: Update to new double buffering. Make sure the
10114 handle is created before sizing the tab pages, otherwise we will
10115 get stuck in a loop.
10117 2005-04-24 Borja Sanchez Zamorano <borsanza@gmail.com>
10119 * LinkLabel.cs: Fix typo, bug #74719; patch
10120 from Borja Sanchez Zamorano
10122 2005-04-22 Jackson Harper <jackson@ximian.com>
10124 * TreeNode.cs: Implement Handle stuff.
10125 * TreeView.cs: Utility methods so nodes can get/lookup by handle.
10127 2005-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
10129 * DataGridTextBoxColumn.cs: call base constructors, fixes
10130 * GridColumnStylesCollection.cs: missing events, methods, and functionality
10131 * GridTableStylesCollection.cs: fixes, check duplicate mapping names
10132 * DataGridTableStyle.cs: implements create default column styles
10133 * DataGridBoolColumn.cs: which types can handle
10134 * DataGrid.cs: missing methods, fixes, new functionality
10135 * DataGridColumnStyle.cs: fixes
10137 2005-04-20 Alexander Olk <xenomorph2@onlinehome.de>
10138 * FolderBrowserDialog.cs:
10139 - Use a thread to fill the TreeView
10140 - Adjusted some sizes
10142 2005-04-19 Peter Bartok <pbartok@novell.com>
10144 * LinkLabel.cs: (Re-)create the pieces when setting the Text
10145 property. Fixes #74360.
10147 2005-04-19 Jackson Harper <jackson@ximian.com>
10149 * XEventQueue.cs: Lock when getting the lockqueue size.
10150 * PictureBox.cs: Call base OnPaint
10152 2005-04-19 Peter Bartok <pbartok@novell.com>
10154 * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
10155 messages were no longer being processed (this broke BeginInvoke)
10158 2005-04-18 Jackson Harper <jackson@ximian.com>
10160 * TreeView.cs: buglet that caused node images to get drawn
10161 regardless of whether or not they were in the clipping rectangle.
10163 2005-04-18 Jackson Harper <jackson@ximian.com>
10165 * CurrencyManager.cs: There are four rules for GetItemProperties:
10166 - If the type is an array use the element type of the array
10167 - If the type is a typed list, use the type
10168 - If the list contains an Item property that is not an object, use
10170 - use the first element of the list if there are any elements in
10173 2005-04-17 Jackson Harper <jackson@ximian.oom>
10175 * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
10176 click. This handles offsets for scrolling properly and reduces
10177 memory. Also fixed GetNode to not offset now that TopNode works
10179 * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
10181 2005-04-17 Jackson Harper <jackson@ximian.com>
10183 * CursorConverter.cs: Initial implementation.
10185 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
10187 * ListControl.cs: work towards complex data binding support on ListControl
10188 * CurrencyManager.cs: work towards complex data binding support on ListControl
10189 * ListBox.cs: work towards complex data binding support on ListControl
10192 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
10194 * GridTableStylesCollection.cs: fixes name and constructor
10195 * DataGridTableStyle.cs: fixes
10196 * DataGridBoolColumn.cs: fixes names and constructors
10197 * DataGrid.cs: define methods and properties. Some init implementations
10198 * DataGridCell.cs: define methods and properties. Some init implementations
10199 * GridTablesFactory.cs: Define methods and properties
10201 2005-04-15 Geoff Norton <gnorton@customerdna.com>
10203 * XplatUIOSX.cs: Handle proper mouse tracking even if the current
10204 graphics port changes. We still want the coordinates in global screen
10207 2005-04-14 Jackson Harper <jackson@ximian.com>
10209 * TreeView.cs: Handle clicks when plus minus is disabled. Don't
10210 check plus minus or checkbox clicks unless those features are enabled.
10212 2005-04-14 Jackson Harper <jackson@ximian.com>
10214 * TreeView.cs: Add methods for setting the top and bottom visible
10215 nodes. TreeNode::EnsureVisible uses these methods.
10216 * TreeNode.cs: Implement EnsureVisible
10218 2005-04-13 Jordi Mas i Hernandez <jordi@ximian.com>
10220 * Form.cs: Pospone menu assignation if the window has not been created yet
10221 * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
10224 2005-04-12 Jackson Harper <jackson@ximian.com>
10226 * TreeView.cs: Set the TopNode properly when scrolling
10227 occurs. This has the added benifit of reducing the amount of
10228 walking that needs to be done when drawing. Also removed an old
10230 * OpenTreeNodeEnumerator.cs: Fix moving backwards.
10232 2005-04-11 Jordi Mas i Hernandez <jordi@ximian.com>
10234 * Timer.cs: fixes interval setting when the timer is already enabled
10236 2005-04-10 Alexander Olk <xenomorph2@onlinehome.de>
10238 * FolderBrowserDialog.cs: First approach
10240 2005-04-09 Peter Bartok <pbartok@novell.com>
10242 * FolderBrowserDialog: Added
10244 2005-04-07 Jordi Mas i Hernandez <jordi@ximian.com>
10246 * LinkLabel.cs: move drawing code into the theme
10247 * ThemeWin32Classic.cs: drawing code and painting background bugfix
10248 * Theme.cs: define DrawLinkLabel method
10250 2005-04-05 Jackson Harper <jackson@ximian.com>
10252 * BindingContext.cs: Use weak references so these bad actors don't
10253 stay alive longer then they need to.
10255 2005-04-05 Jackson Harper <jackson@ximian.com>
10257 * ListControl.cs: Basic implementation of complex databinding.
10259 * ListBox.cs: Add calls to ListControl databinding methods.
10261 2005-04-05 Alexander Olk <xenomorph2@onlinehome.de>
10264 - Don't change PopupButtonState to Normal when the
10265 PopupButton gets pressed several times.
10266 - Renamed ButtonPanel to PopupButtonPanel
10268 2005-04-05 Jordi Mas i Hernandez <jordi@ximian.com>
10270 * ColorDialog.cs: Use cached objects instead of creating them
10271 * LinkLabel.cs: Use cached objects instead of creating them
10272 * Splitter.cs: Use cached objects instead of creating them
10273 * FontDialog.cs: Use cached objects instead of creating them
10274 * PropertyGridView.cs: Use cached objects instead of creating them
10275 * MessageBox.cs: Use cached objects instead of creating them
10276 * FileDialog.cs: Use cached objects instead of creating them
10277 * ThemeWin32Classic.cs: Use cached objects instead of creating them
10278 * TreeView.cs: Use cached objects instead of creating them
10280 2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
10282 * Control.cs: use Equals to compare the font since no == op
10283 * ScrollBar.cs: use Equals to compare the font since no == op
10285 2005-04-04 Alexander Olk <xenomorph2@onlinehome.de>
10287 * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
10289 2005-04-01 Jackson Harper <jackson@ximian.com>
10291 * Binding.cs: Implement IsBinding.
10292 * BindingManagerBase.cs:
10293 * PropertyManager.cs:
10294 * CurrencyManager.cs: Add IsSuspended property.
10296 2005-04-01 Jackson Harper <jackson@ximian.com>
10298 * Binding.cs: Had some IsAssignableFrom calls backwards.
10300 2005-04-01 Jackson Harper <jackson@ximian.com>
10302 * Binding.cs: Handle null data members when pulling data.
10303 * PropertyManager.cs: Handle the data member being a property that
10306 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
10308 * DataGridTextBoxColumn.cs: fixes signature
10309 * DataGrid.cs: calls right constructor
10311 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
10313 * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
10314 * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
10315 * GridTableStylesCollection.cs: implements GridTableStylesCollection
10316 * DataGridTableStyle.cs: implements DataGridTableStyle
10317 * DataGridBoolColumn.cs: implements DataGridBoolColumn
10318 * DataGridTextBox.cs: implements DataGridTextBox
10319 * DataGridColumnStyle.cs: implements DataGridColumnStyle
10321 2005-03-31 Alexander Olk <xenomorph2@onlinehome.de>
10323 * FileDialog.cs: Added simple PopupButton class for ButtonPanel
10325 2005-03-29 Peter Bartok <pbartok@novell.com>
10328 - Properly implemented CompanyName property
10329 - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
10330 returns a path that includes CompanyName, ProductName and
10331 Version (fixes bug #70330)
10333 2005-03-29 Stefan Buehler <sbuehler@gmx.ch>
10335 * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
10338 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
10340 * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
10342 - Added ReadOnly CheckBox
10343 - Further refactoring: moved some code from Open-/SaveFileDialog
10346 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
10348 * OpenFileDialog.cs: Fixed CheckFileExists
10350 Moved FileView and DirComboBox outside FileDialog class.
10351 They can now be used outside FileDialog
10353 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
10355 * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
10356 * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
10358 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
10360 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
10361 - Added missing CreatePrompt property in SaveDialog
10362 - Overall SaveDialog handling should be better now
10363 - Added non standard ShowHiddenFiles property
10364 - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
10365 - Added InitialDirectory and RestoreDirectory support
10367 2005-03-26 Alexander Olk <xenomorph2@onlinehome.de>
10369 * FileDialog.cs: Made dirComboBox usable
10371 2005-03-24 Alexander Olk <xenomorph2@onlinehome.de>
10373 * FileDialog.cs: Added Filter support (case sensitiv)
10375 2005-03-24 Jackson Harper <jackson@ximian.com>
10377 * TabControl.cs: Need a couple more pixels for the lines.
10379 2005-03-23 Jackson Harper <jackson@ximian.com>
10381 * TabControl.cs: Give the tab page focus when it is selected.
10383 2005-03-23 Jackson Harper <jackson@ximian.com>
10385 * TabControl.cs: Account for the drawing of tabs borders when
10386 invalidating. If the slider was clicked dont do click detection on
10389 2005-03-23 Jackson Harper <jackson@ximian.com>
10391 * TabControl.cs: Fix typo, emilinates an unneeded expose event.
10393 2005-03-22 Jonathan Chambers <jonathan.chambers@ansys.com>
10395 * CategoryGridEntry.cs: Added
10396 * GridItem.cs: Added helper properties
10397 * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
10398 * GridEntry.cs: Updated code for collection
10399 * PropertyGrid.cs: Cleaned up some formatting
10400 * PropertyGridView.cs: Added drop down functionality for enums.
10401 * GridItemCollection.cs: Added enumerator logic
10402 * PropertyGridEntry.cs: Added
10404 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
10407 - Removed unnecessary commented code
10408 - Fixed handling for entering the filename manually in the combobox
10410 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
10412 * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
10414 2005-03-18 Peter Bartok <pbartok@novell.com>
10416 * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
10417 them being touching the border
10419 2005-03-18 Peter Bartok <pbartok@novell.com>
10421 * TextControl.cs: Quick hack to center text better
10423 2005-03-18 Peter Bartok <pbartok@novell.com>
10426 - Don't throw NotImplemented exceptions, just print a notice once
10427 instead (requested by Miguel). This makes running existing SWF
10430 - Commented out Drag'N'Drop XplatUI call (no driver support yet)
10431 - Added context menu trigger on right click
10432 * Panel.cs: Trigger invalidate on resize
10434 - Removed old double-buffer drawing
10435 - Added ResizeRedraw style to force proper update of statusbar
10437 - Removed debug output
10438 * ThemeWin32Classic.cs:
10439 - Fixed drawing of status bar, now draws Text property if there
10440 are no defined panels
10442 2005-03-18 Jackson Harper <jackson@ximian.com>
10444 * ImageList.cs: When the image stream is set pull all the images
10446 * ImageListStreamer.cs: Implement reading image list streams.
10448 2005-03-18 Peter Bartok <pbartok@novell.com>
10450 * ThemeWin32Classic.cs (DrawPictureBox):
10451 - Fixed calculations for centered drawing
10452 - Fixed drawing for normal mode, not scaling the image on normal
10454 2005-03-18 Peter Bartok <pbartok@novell.com>
10456 * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
10459 - Made Open/Save button the accept button for FileDialog
10460 - Tied the cancel button to the IButtonControl cancel button
10461 - Save/Open now properly builds the pathname
10462 - Now handles user-entered text
10463 - Preventing crash on right-click if no item is selected
10464 - Fixed Text property, now uses contents of textbox
10465 - Fixed SelectedText property, now just returns the text part that
10466 is selected in the text box
10468 2005-03-18 Jackson Harper <jackson@ximian.com>
10470 * ThemeWin32Classic.cs: Use the proper func for drawing the focus
10471 rect, make sure to de-adjust the interior rect after drawing the
10474 2005-03-18 Peter Bartok <pbartok@novell.com>
10476 * MenuAPI.cs: Remove menu *before* executing selected action to
10477 prevent the menu from 'hanging around'
10479 2005-03-17 Geoff Norton <gnorton@customerdna.com>
10481 * XplatUIOSX.cs: Implemented WorkingArea property
10483 2005-03-17 Peter Bartok <pbartok@novell.com>
10485 * XplatUIX11.cs: Fixed menu coord calculations
10486 * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
10487 for calculating offsets
10489 2005-03-17 Peter Bartok <pbartok@novell.com>
10491 * Hwnd.cs: Do not consider menu presence for default client
10492 rectangle location/size
10493 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
10494 XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
10495 translation functions
10496 * FileDialog.cs: Fixed (what I presume is a) typo
10498 2005-03-17 Jonathan Gilbert <logic@deltaq.org>
10500 * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
10501 X access (avoids X-Async errors)
10503 2005-03-16 Jackson Harper <jackson@ximian.com>
10505 * TabControl.cs: Raise the SelectedIndexChanged event.
10507 2005-03-16 Alexander Olk <xenomorph2@onlinehome.de>
10509 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
10510 - Removed vertical ToolBar and replaced it with a custom panel
10511 (desktop and home button already work)
10512 - Added Help button (some controls get resized or relocated then)
10513 - Draw correct text depending on Open or Save.
10514 - Fixed some typos...
10516 2005-03-16 Jordi Mas i Hernandez <jordi@ximian.com>
10519 - Only change Maximum and Minimum when need it (bug fix)
10521 2005-03-15 Peter Bartok <pbartok@novell.com>
10523 * Form.cs: Use Handle for icon, to trigger creation if
10524 the window does not yet exist
10526 - CanSelect: Slight performance improvement
10527 - Focus(): Preventing possible recursion
10528 - Invalidate(): Removed ControlStyle based clear flag setting
10529 - WM_PAINT: fixed logic for calling OnPaintBackground
10530 - WM_ERASEBKGND: Fixed logic, added call to new driver method
10531 EraseWindowBackground if the control doesn't paint background
10533 - Moved EraseWindowBackground() method to internal methods
10534 - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
10535 is sent via SendMessage on BeginPaint call on Win32
10537 - Added EraseWindowBackground() method
10538 - No longer sends WM_ERASEBKGND on .Expose, but on call to
10539 PaintEventStart, which more closely matches Win32 behaviour
10540 - Fixed Invalidate() call, now updates new ErasePending Hwnd property
10541 - Fixed SetFocus() to properly deal with client and whole windows
10542 * Hwnd.cs: Added ErasePending property
10543 * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
10544 * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
10546 2005-03-12 Geoff Norton <gnorton@customerdna.com>
10549 - Fix hard loop when timers exist.
10550 - Fix bugs with middle and right click for 3 button mice.
10552 2005-03-11 Peter Bartok <pbartok@novell.com>
10555 - get_WorkingArea: Need to call X directly, GetWindowPos only
10556 returns cached data now
10557 - Added sanity check to GetWindowPos hwnd usage
10559 2005-03-11 Jackson Harper <jackson@ximian.com>
10561 * BindingManagerBase.cs: This method isn't used anymore as
10562 PullData now updates the data in the control.
10564 2005-03-11 Jordi Mas i Hernandez <jordi@ximian.com>
10566 * Form.cs: fixes menu drawing on X11
10567 * MenuAPI.cs: fixes menu drawing on X11
10569 2005-03-11 Peter Bartok <pbartok@novell.com>
10571 * Control.cs: Changed OnCreateControl behaviour based on a suggestion
10572 from Jonathan Gilbert; should fix bug #73606
10573 * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
10574 in Screen coordinates. Thanks, Jordi.
10575 * Form.cs: Added missing attribute
10577 2005-03-11 Peter Bartok <pbartok@novell.com>
10580 - Rudimentary Mdi support
10581 - Removed outdated FormParent code
10582 - Implemented lots of missing properties and methods, still missing
10583 transparency support
10584 - Added missing attributes
10585 - Implemented support for MaximumBounds
10586 - Added firing of various events
10587 * XplatUI.cs: Added SetIcon() method
10588 * XplatUIDriver.cs: Added SetIcon() abstract
10589 * XplatUIOSX.cs: Stubbed out SetIcon() method
10591 - Implemented SetIcon() support
10592 - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
10593 - Switched to unix line endings
10595 - Made POINT internal so for can access it as part of MINMAX
10596 - Implemented SetIcon() support
10597 - Implemented support for CLIENTCREATESTRUCT (but might have to drop
10598 native Mdi support again, might have to go managed)
10599 * Control.cs: Now fires the StyleChanged event
10600 * MdiClient.cs: Added; still mostly empty
10602 2005-03-10 Peter Bartok <pbartok@novell.com>
10604 * SaveFileDialog.cs: Added emtpy file
10606 2005-03-08 Peter Bartok <pbartok@novell.com>
10608 * Control.cs: Fixed bug #73190; now invokes CreateControl (which
10609 in turn triggers OnCreateContro) when creating a handle for the
10611 * TextControl.cs: Fixed endless loop in certain cases when
10612 replacing the current selection
10614 2005-03-08 Jordi Mas i Hernandez <jordi@ximian.com>
10617 - Honors NewValue changes in Scroll events allowing apps to change it
10618 - Adds First and Last Scroll events
10619 - Fixes Thumb events
10621 2005-03-07 Peter Bartok <pbartok@novell.com>
10623 * Hwnd.cs: Added DefaultClientRectangle property
10624 * XplatUI.cs: Now using the X11 driver Where() method, which provides
10625 more detailed debug information
10627 - Fixed size-change feedback loop, where we would pull an old size
10628 off the queue and mistakenly change our window's size to an
10630 - Now compressing ConfigureNotify events, to reduce looping and
10632 * TextBoxBase.cs: Preventing crash when no text is set and ToString()
10635 2005-03-07 Jackson Harper <jackson@ximian.com>
10637 * Binding.cs: Push data pushes from data -> property. Check if the
10638 property is readonly when attempting to set it.
10640 2005-03-07 Jackson Harper <jackson@ximian.com>
10642 * Binding.cs: Format and parse data correctly. Use ASsignableFrom
10643 instead of IsSubclassOf. Pulling data now sets the value on the
10645 * PropertyManager.cs:
10646 * CurrencyManager.cs: Just need to pull data when updating now,
10647 because PullData will set the value on the control.
10649 2005-03-04 Jackson Harper <jackson@ximian.com>
10651 * Binding.cs: Implement data type parsing and converting on pulled
10652 data. TODO: Are there more ways the data can be converted?
10654 2005-03-04 Jackson Harper <jackson@ximian.com>
10656 * Binding.cs: Support <Property>IsNull checks. Also bind to the
10657 controls Validating method so we can repull the data when the
10658 control loses focus.
10660 2005-03-03 Jordi Mas i Hernandez <jordi@ximian.com>
10663 - Fixes null string format
10666 - Adds enum type checks
10667 - Fixes redrawing and recalc need after changing some properties
10668 - Fixes on focus_item set after the event
10669 - Fixes adding columns after the control has been created
10671 * ThemeWin32Classic.cs:
10672 - Fixes CheckBox focus rectangle
10673 - Fixes ColumnHeader drawing
10676 2005-03-03 Jackson Harper <jackson@ximian.com>
10678 * Binding.cs: Bind to <Property>Changed events so we can detect
10679 when properties are changed and update the data.
10681 2005-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
10684 - Changes 32-bit pixel format to Format32bppArgb to allow transparency
10685 - Fixes ImageList constructor with ImageList container
10686 - Fixes image scaling (wrong parameters at DrawImage)
10688 2005-02-02 Jackson Harper <jackson@ximian.com>
10690 * Binding.cs: Make property searches case-insensitive. Eliminate
10691 some duplicated code.
10693 2005-03-01 Jordi Mas i Hernandez <jordi@ximian.com>
10696 - Handle focus event
10697 - Fix scrollbar events
10698 - Discard highlighted item if remove it
10699 - Fixes SelectedItem with strings
10701 2005-03-01 Peter Bartok <pbartok@novell.com>
10704 - Fixed Visible property, now follows (once again) parent chain
10705 to return false if any control in the chain is visible=false
10706 - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
10707 - Fixed several places where is_visible instead of Visible was used
10708 - Implemented FIXME related to focus selection when setting focused
10709 control to be invisible
10711 * XplatUIWin32.cs: Now using proper method to find out if window is
10712 visible. Thanks to Jordi for pointing it out
10714 2005-02-28 Jordi Mas i Hernandez <jordi@ximian.com>
10716 * ComboBox.cs: show/hide scrollbar instead of creating it
10718 2005-02-27 Jackson Harper <jackson@ximian.com>
10720 * CurrencyManager.cs: Add PositionChanged stuff.
10722 2005-02-27 Peter Bartok <pbartok@novell.com>
10724 * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
10725 * XplatUIOSX.cs: Added GetMenuOrigin() stub
10726 * XplatUIWin32.cs: Implemented GetMenuOrigin()
10728 - Implemented GetMenuDC()
10729 - Implemented GetMenuOrigin()
10730 - Implemented ReleaseMenuDC()
10731 - Implemented generation of WM_NCPAINT message
10732 - Implemented generation and handling of WM_NCCALCSIZE message
10733 * Form.cs: Added debug helper message for Jordi's menu work
10735 - Modified ClientRect property; added setter, fixed getter to handle
10736 setting of ClientRect
10737 - Added MenuOrigin property
10739 2005-02-26 Peter Bartok <pbartok@novell.com>
10742 - Destroys the caret if a window that's being destroyed contains it
10743 - Ignores expose events coming from the X11 queue for windows that
10744 already are destroyed
10745 - Now uses the proper variable for handling DestroyNotify, before we
10746 marked the wrong window as destroyed
10747 - Improved/added some debug output
10749 2005-02-26 Peter Bartok <pbartok@novell.com>
10751 * X11Keyboard.cs: Fixes to work on 64bit systems
10753 2005-02-26 Peter Bartok <pbartok@novell.com>
10756 - Now calling OnHandleDestroyed from DestroyHandle()
10757 instead of Dispose()
10758 - Removed bogus call to controls.Remove() from DestroyHandle()
10760 2005-02-26 Peter Bartok <pbartok@novell.com>
10762 * Control.cs: Properly destroy child windows when our handle is
10765 2005-02-25 Peter Bartok <pbartok@novell.com>
10768 - Added 'DriverDebug' define to allow tracing XplatUI API calls
10769 - Alphabetized Static Methods and Subclasses
10772 - Added XException class to allow custom handling of X11 exceptions
10773 - Created custom X11 error handler, tied into XException class
10774 - Added support for MONO_XEXCEPTIONS env var to allow the user
10775 to either throw an exception on X errors or continue running
10776 after displaying the error
10777 - Added handling of DestroyNotify message
10778 - Added handler for CreateNotify message (still disabled)
10779 - Improved (tried to at least) Where method to provide file and lineno
10781 - Added XErrorHandler delegate
10782 - Added XRequest enumeration (to suppor translation of errors)
10784 2005-02-25 Jackson Harper <jackson@ximian.com>
10786 * PropertyManager.cs: Implement editing features
10787 * CurrencyManager.cs:
10788 * Binding.cs: First attempt at UpdateIsBinding
10789 * BindingManagerBase.cs: Call UpdateIsBinding before
10790 pushing/pulling data.
10792 2005-02-25 Jordi Mas i Hernandez <jordi@ximian.com>
10794 * MenuAPI.cs: Respect disabled items
10795 * ThemeWin32Classic.cs
10796 - Caches ImageAttributes creation for DrawImageDisabled
10797 - Fixes vertical menu line drawing
10798 - Draws disabled arrows in disable menu items
10800 2005-02-24 Peter Bartok <pbartok@novell.com>
10803 - Added UserData property to allow associating arbitrary objects
10805 - Fixed leak; now removing Hwnd references from static windows array
10807 - Fixed Graphics leak in PaintEventEnd
10808 - Removed usage of HandleData, switched over to Hwnd class
10809 * HandleData.cs: Removed, obsoleted by Hwnd.cs
10811 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
10813 * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
10814 * ScrollBar.cs: Fixes bug
10815 * TrackBar.cs: removes death code, clipping, mimize refreshes,
10816 keyboard navigation enhancements
10818 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
10820 * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
10821 * GroupBox.cs: Add control styles
10822 * Label.cs: Add control styles
10823 * UpDownBase.cs: Add control styles
10824 * ListBox.cs: Add control styles
10825 * XplatUIWin32.cs: Fixes wrong parameter order
10828 2005-02-23 Chris Bacon <chris.bacon@docobo.co.uk>
10830 * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
10832 2005-02-23 Jackson Harper <jackson@ximian.com>
10834 * PropertyManager.cs: Implement property binding. This doesn't
10835 seem to work yet though as (I think) there are some bugs in
10836 System.ComponentModel.PropertyDescriptor.
10837 * BindingContext.cs: Use new PropertyManager constructor.
10839 2005-02-23 Jordi Mas i Hernandez <jordi@ximian.com>
10841 * ProgressBar.cs: use clip region in ProgressBar
10842 * ThemeWin32Classic.cs: use clip region in ProgressBar
10844 2004-02-22 Jackson Harper <jackson@ximian.com>
10846 * BindingsCollection.cs: Remove some debug code.
10848 2005-02-22 Jackson Harper <jackson@ximian.com>
10850 * BindingContext.cs:
10851 * ControlBindingsCollection.cs:
10852 * CurrencyManager.cs:
10854 * BindingManagerBase.cs: Initial implementation
10855 * BindingsCollection.cs: Add an internal contains method that the
10856 BindingManagerBase uses to ensure bindings aren't added twice to
10858 * PropertyManager.cs: Stubbed out.
10860 * ContainerControl.cs: Hook up databinding
10862 2005-02-22 Geoff Norton <gnorton@customerdna.com>
10865 OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
10866 Fixed Invalidate/Update chain.
10867 Fixed tons of other minor bugs (this is almost a complete rewrite).
10869 2005-02-22 Jordi Mas i Hernandez <jordi@ximian.com>
10871 * ComboBox.cs: do subcontrol creation when the control is created
10873 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
10875 * Label.cs: fixes image drawing (image and imagelist)
10876 * ThemeWin32Classic.cs: cache brushes
10878 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
10880 * Form.cs: Move menu drawing code to Theme class
10881 * ComboBox.cs: Move ComboBox drawing code to Theme class
10882 * MenuItem.cs: Move menu drawing code to Theme class
10883 * MenuAPI.cs: Move menu drawing code to Theme class
10884 * ThemeWin32Classic.cs: New methods
10885 * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
10886 * ListBox.cs: Move Listbox drawing code to Theme class
10887 * Theme.cs: New methods
10889 2005-02-20 Peter Bartok <pbartok@novell.com>
10892 - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
10893 only process mnemonics on those)
10894 - Fixed event sequence for key handling; first calling
10895 ProcessKeyEventArgs now
10897 - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
10898 for processing non-character keys
10899 - Fixed WM_CHAR to generate proper event sequence before processing
10900 * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
10903 2005-02-19 Peter Bartok <pbartok@novell.com>
10905 * UserControl.cs: Added TextChanged event; added attributes
10906 * SizeGrip.cs: Implemented resizing and optional display of grip
10907 * Form.cs: Fixed attribute
10908 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
10909 Changed meaning of ScrollWindow bool argument; instead of the
10910 clear attribute (which will be true usually anyway), it gives the
10911 option of moving child controls as well.
10913 - Changed to match new ScrollWindow argument
10914 - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
10915 now handles the implicit parent window a WM puts around us
10916 * ScrollableControl.cs: Implemented (not the prettiest, but it seems
10918 * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
10919 * TreeView.cs: Adjusted to new ScrollWindow arguments
10921 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
10923 * Form.cs: Menu integration with non-client area
10924 * MenuItem.cs: Menu integration with non-client area
10925 * MenuAPI.cs: Menu integration with non-client area
10927 2005-02-18 Peter Bartok <pbartok@novell.com>
10929 * MethodInvoker.cs: Added
10930 * MdiLayout.cs: Added
10931 * SendKeys.cs: Started implementation
10932 * ErrorIconAlignment.cs: Added
10934 2005-02-18 Peter Bartok <pbartok@novell.com>
10936 * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
10937 * Form.cs: Added handling for Menu-related Non-client messages
10939 2005-02-17 Peter Bartok <pbartok@novell.com>
10941 * UpDownBase.cs: Fixed typo, compilation errors
10942 * DomainUpDown.cs: Fixed attribute value
10944 2005-02-16 Miguel de Icaza <miguel@novell.com>
10946 * UpDownBase.cs: Attach entry events.
10948 Add ForeColor property, Focused, InterceptArrowKeys (interception
10949 does not work yet).
10951 2005-02-17 Jordi Mas i Hernandez <jordi@ximian.com>
10954 - Redraw non client are on Setmenu
10955 - Calc proper menu starting point
10957 2005-02-17 Peter Bartok <pbartok@novell.com>
10959 * Application.cs: Fixed message_filter check
10961 2005-02-17 Peter Bartok <pbartok@novell.com>
10963 * Application.cs: Now calls registered message filters
10964 * DockStyle.cs: Fixed attribute
10965 * Form.cs: Fixed attribute
10966 * Menu.cs: Fixed attribute
10967 * ToolTip.cs: Fixed attribute
10968 * TreeNode.cs: Added missing attributes and arranged in regions
10969 * PropertyGrid.cs: Fixed signatures
10970 * TreeNodeCollection.cs: Added attributes
10971 * Splitter.cs: Added missing attributes; arranged into regions
10972 * TabPage.cs: Added missing attributes; arranged into regions
10973 * TextBoxBase.cs: Added missing attributes
10974 * TextBox.cs: Added missing attributes
10975 * ArrangeDirection.cs: Added missing attributes
10976 * TreeNodeConverter.cs: Added stub (needed for TreeNode)
10977 * ToolBarButton.cs: Fixed attributes
10978 * AnchorStyles.cs: Fixed attribute
10979 * TrackBar.cs: Fixed attributes
10980 * TabControl.cs: Added missing attributes and arranged into regions
10981 * ToolBar.cs: Fixed attribute
10982 * StatusBar.cs: Fixed signature, organized into regions and added
10984 * StatusBarPanel.cs: Fixed attributes
10985 * ContentsResizedEventArgs.cs: Implemented
10986 * ContentsResizedEventHandler.cs: Implemented
10987 * DateBoldEventArgs.cs: Implemented
10988 * DateBoldEventHandler.cs: Implemented
10989 * UpDownEventArgs.cs: Implemented
10990 * UpDownEventHandler.cs: Implemented
10992 2005-02-16 Jordi Mas i Hernandez <jordi@ximian.com>
10994 * Form.cs: first Menu NC refactoring
10995 * MenuAPI.cs: first Menu NC refactoring
10997 2005-02-16 Peter Bartok <pbartok@novell.com>
10999 * ImeMode.cs: Added missing attributes
11000 * Menu.cs: Fixed attribute
11001 * GroupBox.cs: Fixed attribute
11002 * Label.cs: Fixed attribute
11003 * ColorDialog.cs (RunDialog): Removed TODO attribute
11004 * ComboBox.cs: Fixed attributes
11005 * ListControl.cs: Added missing attributes
11006 * PropertyGrid.cs: Fixed attributes
11007 * Control.cs: Fixed attributes
11008 * ListViewItem.cs: Added TypeConverter attribute
11009 * NotifyIcon.cs: Fixed attributes
11010 * ListView.cs: Fixed attributes
11011 * ButtonBase.cs: Fixed attribute
11012 * ImageList.cs: Added missing attributes
11013 * ContainerControl.cs: Fixed signature
11014 * CheckedListBox.cs: Fixed attribute; added missing attributes
11015 * Panel.cs: Fixed attributes
11016 * PropertyTabChangedEventArgs.cs: Added missing attribute
11017 * PropertyValueChangedEventArgs.cs: Added missing attribute
11018 * Binding.cs: Fixed attribute
11019 * ListViewItemConverter: Implemented ListViewSubItemConverter class
11020 * ListBox.cs: Fixed attribute; added missing attributes;
11021 * ScrollableControl.cs: Added missing attributes
11022 * PictureBox.cs: Added missing attributes; implemented missing property
11023 * DateTimePicker.cs: Added missing attributes
11024 * Theme.cs (ToolWindowCaptionHeight): Fixed type
11025 * MonthCalendar.cs: Fixed attributes
11026 * StatusBarPanel.cs: Added missing attributes
11027 * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
11029 2005-02-16 Peter Bartok <pbartok@novell.com>
11031 * TextBoxBase.cs: The previous method to enforce height yet remember
11032 the requested high was less than ideal, this is an attempt to do
11034 * Control.cs: Added comment about possible problem
11035 * Copyright: Updated format
11036 * GridItemType.cs: Fixed swapped values
11038 2005-02-15 Jackson Harper <jackson@ximian.com>
11040 * BaseCollection.cs: Use property so we never access an
11041 uninitialized list. Also initialize the list in the property.
11043 2005-02-15 Peter Bartok <pbartok@novell.com>
11045 * GroupBox.cs (ProcessMnemonic): Implemented
11046 * Label.cs (ProcessMnemonic): Implemented
11047 * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
11050 2005-02-15 Peter Bartok <pbartok@novell.com>
11052 * RadioButton.cs (ProcessMnemonic): Implemented
11053 * CheckBox.cs (ProcessMnemonic): Implemented
11055 - Added handling of WM_SYSxxx keyboard messages to support mnemonic
11057 - Added internal method to allow calling ProcessMnemonic from other
11059 * ContainerControl.cs:
11060 - Started support for handling validation chain handling
11061 - Implemented ProcessMnemonic support
11062 - Added Select() call to Active, to make sure the active control
11064 * Form.cs: Setting toplevel flag for Forms (this was lost in the
11065 FormParent rewrite)
11066 * ThemeWin32Classic.cs:
11067 - DrawCheckBox(): Fixed stringformat to show hotkeys
11068 - DrawRadioButton(): Fixed stringformat to show hotkeys
11069 * CommonDialog.cs: Removed WndProc override, not needed
11071 2005-02-14 Peter Bartok <pbartok@novell.com>
11073 * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
11074 missed those in the rewrite
11076 2005-02-14 Miguel de Icaza <miguel@novell.com>
11078 * NumericUpDown.cs (Increment, ToString): Add.
11079 (DecimalPlaces): implement.
11083 * UpDownBase.cs: Add the designer attributes.
11085 2005-02-13 Peter Bartok <pbartok@novell.com>
11087 * Panel.cs: Removed border_style, now in Control
11088 * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
11089 ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
11091 2005-02-13 Peter Bartok <pbartok@novell.com>
11093 * MouseButtons.cs: Added missing attributes
11094 * XplatUIStructs.cs: Added enumeration for title styles
11095 * LeftRightAlignment.cs: Added missing attributes
11096 * Hwnd.cs: Switched to use client_window as handle (slower, but makes
11097 it compatible with Graphics.FromHwnd()
11098 * SelectedGridItemChangedEventArgs.cs: Fixed property type
11099 * Keys.cs: Added missing attributes
11100 * SelectionRange.cs: Added missing attributes
11101 * SelectionRangeConverter.cs: Added
11103 - Introduced SetBorderStyle, SetMenu, GetMenuDC and
11104 ReleaseMenuDC methods
11105 - Renamed ReleaseWindow to UngrabWindow
11106 - Added proper startup notice to allow version identification
11108 - Added missing attributes
11109 - Removed FormParent concept
11110 * Label.cs: Removed border_style field, now in Control
11111 * RadioButton.cs: Now properly selects RadioButton when focus is
11113 * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
11115 - Added missing attributes
11116 - Added borderstyle handling
11117 - Removed FormParent concept support
11118 - Fixed calls to XplatUI to match changed APIs
11119 - Fixed bug that would case us to use disposed Graphics objects
11120 - Removed unneeded internal methods
11121 - PerformLayout(): Fixed to handle DockStyle.Fill properly
11122 - SelectNextControl(): Fixed to properly check common parents
11123 * TextBoxBase.cs: Removed border_style field (now in Control)
11125 - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
11126 fixed calculations for form size
11127 - Added support for localized strings and icons
11128 - Improved form size calculations, added border
11129 * ListView.cs: Removed border_style field (now in Control)
11130 * X11Structs.cs: Moved several structs from X11 driver here
11131 * X11Keyboard.cs: Changed debug message
11132 * Application.cs: Removed FormParent concept support
11134 - Resetting end_modal flag
11135 - Removed FormParent concept support
11136 * NativeWindow.cs: Removed FormParent concept support
11137 * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
11138 Client area and Non-Client whole window to allow support for WM_NC
11140 * XplatUIOSX.cs: Updated to match latest driver spec; added exception
11141 prevent using it until it supports Hwnd as per Geoff Norton's request
11142 * ToolBar.cs: Fixed drawing, was not doing proper drawing
11143 * PictureBox.cs: Removed border_style field, now in Control
11144 * XplatUIWin32.cs: Added new driver methods
11146 2005-02-12 Peter Bartok <pbartok@novell.com>
11148 * OpacityConverter.cs: Implemented
11149 * Hwnd.cs: Internal class to support drivers that need to emulate
11150 client area/non-client area window behaviour
11152 2005-02-11 Peter Bartok <pbartok@novell.com>
11154 * KeysConverter.cs: Implemented
11156 2005-02-11 Jordi Mas i Hernandez <jordi@ximian.com>
11158 * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
11159 * LinkLabel: Added missing attributes
11160 * MainMenu.cs: fixes ToString
11161 * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
11162 * ListBox.cs: fixes event position
11163 * TrackBar.cs: adds missing attributes and events
11165 2005-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
11167 * MenuItem.cs: Use SystemInformation and bug fixes
11168 * MenuAPI.cs: Use SystemInformation and bug fixes
11170 2005-02-09 Jackson Harper <jackson@ximian.com>
11172 * X11Keyboard.cs: We ignore some keys, but still need to set/reset
11173 their keystate otherwise things like VK_MENU get stuck "on".
11175 2005-02-09 Kazuki Oikawa <kazuki@panicode.com>
11177 * ListBox.cs: Fixes AddRange bug
11179 2005-02-09 Jordi Mas i Hernandez <jordi@ximian.com>
11182 - Add missing attributes
11183 - Add missing method
11185 * CheckedListBox.cs: Added missing attributes
11186 - Add missing attributes
11187 - Remove extra method
11189 * ComboBox.cs: Added missing attributes
11190 * VScrollBar.cs: Added missing attributes
11191 * ScrollBar.cs: Added missing attributes
11192 * ListBox.cs: Fixes signature, add missing consts
11193 * LinkArea.cs: Added missing attributes
11196 2005-02-08 Peter Bartok <pbartok@novell.com>
11198 * Menu.cs: Added missing attributes
11199 * MainMenu.cs: Added missing attributes
11200 * GroupBox.cs: Added missing attributes
11201 * Label.cs: Added missing attributes
11202 * CheckBox.cs: Implemented CheckBoxAccessibleObject class
11204 - Added Instance and Options properties
11205 - Added missing attributes
11206 * Cursor.cs: Made Serializable
11207 * NotifyIcon: Added missing attributes
11208 * MenuItem.cs: Added missing attributes
11209 * TextBoxBase.cs: Implemented AppendText() and Select() methods
11210 * Panel.cs: Added Missing attributes
11211 * MonthCalendar.cs: Fixed CreateParams
11213 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
11217 - Fixes issues with links
11218 - Adds the class attributes
11220 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
11223 - Fixes button when no items available in dropdown
11224 - Fixes repainting problems
11225 - Adds the class attributes
11227 2005-02-07 Geoff Norton <gnorton@customerdna.com>
11229 * XplatUIOSX.cs: Detect the menu bar and title bar height from
11230 the current theme. Cache these on startup.
11232 2005-02-07 Jackson Harper <jackson@ximian.com>
11234 * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
11235 the scrollbar buttons when they are depressed.
11237 2005-02-07 Geoff Norton <gnorton@customerdna.com>
11239 * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
11240 Get the display size from the main displayid. We currently dont
11241 support multiple display configurations.
11243 2005-02-07 Geoff Norton <gnorton@customerdna.com>
11245 * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
11247 2005-02-07 Miguel de Icaza <miguel@novell.com>
11249 * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
11251 2005-02-05 Jonathan Chambers <jonathan.chambers@ansys.com>
11253 * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
11255 2005-02-04 Jackson Harper <jackson@ximian.com>
11257 * ThemeWin32Classic.cs: Respect the clipping rect when
11258 drawing. Only fill the intersection of clips and rects so there
11259 isn't a lot of large fills.
11260 * ScrollBar.cs: Pass the correct clipping rect to the theme
11261 engine. Remove some debug code.
11263 2005-02-05 John BouAntoun <jba-mono@optusnet.com.au>
11265 * DateTimePicker.cs:
11266 - Fixed crash on DateTime.Parse, use Constructor instead
11268 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
11272 - Owner draw support (MeasureItem and DrawItem)
11274 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
11277 - Implements FindMergePosition and MergeMenu functions (very poor documented)
11278 - Fixes MenuItems.Add range
11280 - MergeMenu and Clone and CloneMenu functions
11282 2005-02-03 Jackson Harper <jackson@ximian.com>
11284 * ScrollBar.cs: Make abstract
11285 * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
11288 2005-02-03 Jackson Harper <jackson@ximian.com>
11290 * ScrollBar.cs: First part of my scrollbar fixups. This removes
11291 all the unneeded refreshes and uses invalidates with properly
11294 2005-02-03 Peter Bartok <pbartok@novell.com>
11296 * ComponentModel.cs: Added
11297 * IDataGridEditingService.cs: Added
11298 * Timer.cs: Added missing attributes
11299 * ToolTip.cs: Added missing attributes
11301 2005-02-03 Jonathan Chambers <jonathan.chambers@ansys.com>
11303 * PropertyGridView.cs: Added. Patch by Jonathan Chambers
11305 2005-02-03 Peter Bartok <pbartok@novell.com>
11307 * ListBox.cs: Added missing attributes
11309 2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
11312 - Fixes font height after font change
11313 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
11315 2005-02-02 Peter Bartok <pbartok@novell.com>
11317 * HandleData.cs: Introduced static methods to allow class
11318 to be more self-contained and track it's own HandleData objects
11319 * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
11320 HandleData to use new static methods
11322 2005-02-02 Jordi Mas i Hernandez <jordi@ximian.com>
11325 - Fixes default size and PreferredHeight
11327 - ObjectCollection.Insert implementation
11333 - ObjectCollection.Insert implementation
11334 - No selection after clean
11337 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
11339 * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
11341 2005-02-01 Jordi Mas i Hernandez <jordi@ximian.com>
11344 - Caches ItemHeight calculation for OwnerDrawVariable
11345 - Handles dropdown properly
11346 - Fixes several minor bugs
11348 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
11351 - Fixes 71946 and 71950
11352 - Fixes changing Multicolumn on the fly
11353 - Fixes keyboard navigation on Multicolumn listboxes
11355 2005-01-31 Geoff Norton <gnorton@customerdna.com>
11357 * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
11358 crash reporter log.
11360 2005-01-31 Geoff Norton <gnorton@customerdna.com>
11362 * XplatUIOSX.cs: Allow applications to actually exit.
11364 2005-01-31 Geoff Norton <gnorton@customerdna.com>
11366 * XplatUIOSX.cs: SetWindowStyle implemented. Reposition views in
11367 their parent at creation time rather than lazily later. Fixes a major
11368 regression we were experiencing.
11370 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
11372 * ThemeWin32Classic.cs: more date time picker painting fixes
11373 * DateTimePicker.cs: more monthcalendar drop down fixes
11374 * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
11376 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
11379 - When moving the thumb going outside the control should stop the moving
11380 - Adds the firing of missing events
11381 - Fixes no button show if Size is not specified
11382 - End / Home keys for keyboard navigation
11384 2005-01-30 Peter Bartok <pbartok@novell.com>
11386 * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
11387 sanity check to prevent theoretical loop
11388 * XplatUIWin32.cs (SetVisible): Removed debug output
11389 * XplatUIX11.cs (SystrayChange): Added sanity check
11390 * ScrollableControl.cs (OnVisibleChanged): Now calls base method
11391 * Control.cs (OnVisibleChanged): Added workaround for ParentForm
11392 behaviour, valid until the X11 client window rewrite is done
11393 * TextBox.cs (ctor): Setting proper default foreground and background
11396 2005-01-30 John BouAntoun <jba-mono@optusnet.com.au>
11398 * Theme: Added DrawDateTimePicker to interface
11399 * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
11400 * DateTimePicker.cs: Created (still needs keys and painting code)
11401 * DateTimePickerFormat.cs: added
11402 * MonthCalendar.cs: fixed CreateParams for popup window mode
11404 2005-01-29 Peter Bartok <pbartok@novell.com>
11406 * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
11407 this should also the calculations for ligher/darker
11408 * Theme.cs: Fixed defaults for ScrollBar widths/heights
11410 2005-01-29 Peter Bartok <pbartok@novell.com>
11412 * ArrangeDirection.cs: Added
11413 * ArrangeStartingPositon.cs: Added
11414 * SystemInformation.cs: Implemented
11415 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
11416 XplatUIX11.cs, Theme.cs: Added/implemented new static properties
11417 used by SystemInformation class
11418 * X11Strucs.cs: Added XSizeHints structure
11420 - Fixed CreateParams to make sure the menu window is always visible
11421 - TrackPopupMenu: Added check to make sure we don't draw the
11424 2005-01-29 Peter Bartok <pbartok@novell.com>
11426 * HandleData.cs: Added method for altering invalid area
11427 * TextBoxBase.cs: Implemented TextLength
11429 2005-01-28 Peter Bartok <pbartok@novell.com>
11431 * XplatUIX11.cs: Improvement over last patch, not sending
11432 the WM_PAINT directly anymore, instead we scroll any pending
11433 exposed areas and let the system pick out the WM_PAINT later
11435 2005-01-28 Peter Bartok <pbartok@novell.com>
11437 * SWF.csproj: Deleted, no longer used. Instead,
11438 Managed.Windows.Forms/SWF.csproj should be used
11439 * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
11440 directly, to avoid a potential race condition with the next
11443 2005-01-28 Peter Bartok <pbartok@novell.com>
11445 * XplatUI.cs: Made class internal
11447 2005-01-28 Jordi Mas i Hernandez <jordi@ximian.com>
11449 * CheckedListBox.cs:
11452 - Missing methods and events
11454 2005-01-27 Peter Bartok <pbartok@novell.com>
11456 * Application.cs (Run): Don't use form if we don't have one
11458 2005-01-27 Peter Bartok <pbartok@novell.com>
11460 * TextBoxBase.cs (get_Lines): Fixed index off by one error
11462 2005-01-27 Peter Bartok <pbartok@novell.com>
11464 * GridEntry.cs: Added; Patch by Jonathan S. Chambers
11465 * GridItem.cs: Added; Patch by Jonathan S. Chambers
11466 * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
11467 * GridItemType.cs: Added; Patch by Jonathan S. Chambers
11468 * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
11469 * PropertySort.cs: Added; Patch by Jonathan S. Chambers
11470 * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
11471 * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
11472 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
11473 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
11474 * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
11475 * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
11477 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
11480 - Draw focus on Simple Combobox
11481 - Fixes drawing issues
11484 2005-01-27 Peter Bartok <pbartok@novell.com>
11487 - Place window in default location, instead of hardcoded 0/0
11488 - Send initial LocationChanged event
11490 - UpdateBounds after creation to find out where the WM placed us
11491 - Make sure that if the ParentForm changes location the Form
11493 * XplatUIX11.cs: XGetGeometry will not return the coords relative
11494 to the root, but to whatever the WM placed around us.
11495 Translate to root coordinates before returning toplevel
11497 * XplatUIWin32.cs: Removed debug output
11498 * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
11499 flag to GetWindowPos, to allow translation of coordinates on X11
11501 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
11503 * ListBox.cs: connect LostFocus Event
11505 2005-01-27 Peter Bartok <pbartok@novell.com>
11507 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
11508 XplatUIX11.cs: Extended the Systray API
11509 * Form.cs: Removed debug output
11510 * Application.cs: Fixed focus assignment, always need to call
11511 XplatUI.Activate() since Form.Activate() has rules that may
11513 * NotifyIcon.cs: Should be complete now
11514 * ToolTip.cs: Worked around possible timer bug
11516 2005-01-27 Jackson Harper <jackson@ximian.com>
11519 - Only invalidate the effected tabs when the
11520 selected index changes. This reduces drawing and gets rid of some
11522 - Only refresh if the tabs need to be shifted, otherwise only
11523 invalidate the slider button.
11524 - On windows the tabs are not filled to right if the slider is
11527 2005-01-27 Jackson Harper <jackson@ximian.com>
11529 * TabControl.cs: Only refresh on mouseup if we are showing the
11530 slider. Also only invalidate the button whose state has changed.
11532 2005-01-26 Peter Bartok <pbartok@novell.com>
11534 * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
11535 * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
11536 and SystrayRemove() methods
11537 * XplatUIOSX.cs: Stubbed Systray methods
11539 - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
11541 - Fixed broken XChangeProperty calls (marshalling messed up things)
11542 * X11Structs.cs: Added enums and structs required for Size hinting
11543 * NotifyIcon.cs: Added & implemented
11545 2005-01-26 Jackson Harper <jackson@ximian.com>
11547 * TabControl.cs: Space vertically layed out tabs properly.
11549 2005-01-26 Peter Bartok <pbartok@novell.com>
11551 * Form.cs (CreateClientParams): Always set the location to 0,0
11552 since we're a child window.
11554 * Control.cs (SetVisibleCore): Always explicitly setting the location
11555 of a toplevel window, apparently X11 doesn't like to move windows
11556 while they're not mapped.
11558 2005-01-26 Jackson Harper <jackson@ximian.com>
11560 * TabControl.cs: Implement FillToRight size mode with vertically
11563 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
11565 * ControlPaint.cs, ThemeWin32Classic.cs
11566 - Fixes DrawFocusRectangle
11568 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
11571 - MenuBar tracking only starts when item is first clicked
11572 - Fixes menu hidding for multiple subitems
11573 - Unselect item in MenuBar when item Executed
11576 2005-01-25 Jordi Mas i Hernandez <jordi@ximian.com>
11579 - IsInputKey for ListBox
11582 - Shift and Control item selection
11583 - Implement SelectionMode.MultiExtended
11584 - Fixes RightToLeft
11586 - IsInputKey implemented
11587 - Do not generate OnTextChangedEdit on internal txt changes
11589 2005-01-23 Peter Bartok <pbartok@novell.com>
11591 * AccessibleObject.cs: Partially implemented Select()
11592 * MonthCalendar.cs: Added missing attributes and events
11593 * Form.cs: Fixed CreateParams behaviour, now controls derived from
11594 form can properly override CreateParams.
11595 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
11596 XplatUIX11.cs: Dropped RefreshWindow method, not needed if
11597 Control performs Invalidate & Update
11598 * NativeWindow (CreateHandle): Added special handling for Form
11599 and Form.FormParent classes to allow overriding of From.CreateParams
11601 - ControlNativeWindow: Renamed 'control' variable to more intuitive
11603 - ControlNativeWindow: Added Owner property
11604 - Removed usage of Refresh() on property changes, changed into
11605 Invalidate(), we need to wait until the queue is processed for
11606 updates, direct calls might cause problems if not all vars for
11607 Paint are initialized
11608 - Added call to UpdateStyles() when creating the window, to set any
11609 styles that CreateWindow might have ignored.
11610 - Added support for Form CreateParent overrides to UpdateStyles()
11611 * MessageBox.cs: Removed no longer needed FormParent override stuff,
11612 CreateParams are now properly overridable
11613 * CommonDialog.cs: Removed no longer needed FormParent override stuff,
11614 CreateParams are now properly overridable
11616 2005-01-23 Miguel de Icaza <miguel@ximian.com>
11618 * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
11621 Capture LostFocus and OnTextBoxChanged. The later introduces a
11622 recursive invocation that I have not figured out yet.
11624 Reset the timer when not using (it was accumulating).
11627 (OnTextBoxChanged): Set UserEdit to true here to track whether the
11628 user has made changes that require validation.
11630 Reset changing to avoid loops.
11632 2005-01-22 Miguel de Icaza <miguel@ximian.com>
11634 * NumericUpDown.cs: Display value at startup.
11636 * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
11639 * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
11640 filled in. Added some basic parsing of text.
11642 Still missing the OnXXX method overrides, and figuring out the
11643 events that must be emitted.
11645 * UpDownBase.cs: Handle UserEdit on the Text property.
11647 2005-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
11650 - Fixes IntegralHeight
11653 2005-01-21 Jackson Harper <jackson@ximian.com>
11655 * TabControl.cs: Set the SelectedIndex property when SelectedTab
11656 is set so that the page visibility is updated and the tabs are
11659 2005-01-21 Jackson Harper <jackson@ximian.com>
11661 * TabControl.cs: Use cliping rectangle for blitting. Give the
11662 theme the clipping rect so we can do clipping while
11663 drawing. Remove some debug code.
11665 2005-01-21 Jackson Harper <jackson@ximian.com>
11667 * TabPage.cs: Add a new method so tab pages can force the tab
11668 control to recalculate the tab page sizes.
11669 * TabControl.cs: UpdateOwner needs to make the tab control recalc
11672 2005-01-20 Jackson Harper <jackson@ximian.com>
11674 * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
11676 2005-01-20 Jackson Harper <jackson@ximian.com>
11678 * TreeView.cs: Set the bounds for nodes properly. They were
11679 getting screwed up when checkboxes were not enabled, but images
11682 2005-01-20 Jordi Mas i Hernandez <jordi@ximian.com>
11685 - Owner draw support
11688 2005-01-20 Jackson Harper <jackson@ximian.com>
11690 * XplatUIStructs.cs: More misc keys
11691 * X11Keyboard.cs: Ignore some control keys.
11693 2005-01-20 Jackson Harper <jackson@ximian.com>
11695 * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
11696 * X11Keyboard.cs: Set the AltGr mask when we get a key event.
11698 2005-01-19 Peter Bartok <pbartok@novell.com>
11700 * Control.cs: Un-selecting the control when it is loosing focus
11702 2005-01-19 Jackson Harper <jackson@ximian.com>
11704 * TreeView.cs: Hook up to the text controls leave event so we can
11705 end editing when the users clicks outside the text box.
11707 2005-01-19 Jackson Harper <jackson@ximian.com>
11709 * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
11710 get set in the conversion array.
11712 2005-01-19 Peter Bartok <pbartok@novell.com>
11714 * Application.cs (ModalRun): Added a call to CreateControl to ensure
11715 focus is properly set
11717 - Added missing attributes
11718 - removed styles, those are already set in the base class
11720 - Added missing attributes
11721 - Added clip window styles
11722 * CheckBox.cs: Added missing attributes
11724 - FormParentWindow.CreateParams: Added required clip styles
11725 * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
11726 also filters modifier keys
11728 - Added assignment of Accept and Cancel button to enable Enter
11729 and Esc keys in MessageBox dialogs
11730 - FormParentWindow.CreateParams: Added required clip styles
11731 * RadioButton.cs: Added missing attributes
11732 * TextControl.cs: No longer draws selection if control does not
11735 - Now draws simple rectangle around test area to make it obvious
11736 there's a control. This is a hack until we properly support borders
11737 - A few simple fixes to support selections better, now erases selected
11738 text when typing, and resets selection when using movement keys
11740 2005-01-19 Miguel de Icaza <miguel@ximian.com>
11742 * UpDownBase.cs: Added some new properties.
11744 * DomainUpDown.cs: Implement a lot to get my test working.
11746 2005-01-19 Geoff Norton <gnorton@customerdna.com>
11748 * XplatUIOSX.cs: Fix a minor bug to bring the close box back
11750 2005-01-19 Geoff Norton <gnorton@customerdna.com>
11752 * OSXStructs (WindowAttributes): Fixed csc complaints
11754 2005-01-19 Geoff Norton <gnorton@customerdna.com>
11757 OSXStructs.cs: Initial refactor to move enums and consts into
11758 OSXStructs and use them in the driver for greater readability.
11760 2005-01-19 Geoff Norton <gnorton@customerdna.com>
11762 * XplatUIOSX.cs: Initial support for Standard Cursors.
11763 * OSXStructs.cs: Move our structs here; added ThemeCursor enum
11765 2005-01-19 Jordi Mas i Hernandez <jordi@ximian.com>
11767 * ComboBox.cs: ability to change style when the ctrl is already
11768 created, missing methods and events, bug fixes, signature fixes
11770 2005-01-19 Peter Bartok <pbartok@novell.com>
11772 * Cursors.cs (ctor): Added ctor to fix signature
11774 2005-01-18 Peter Bartok <pbartok@novell.com>
11776 * Button.cs: Implemented DoubleClick event
11778 - Fixed keyboard handling to behave like MS, where the press of
11779 Spacebar is equivalent to a mousedown, and the key release is
11780 equivalent to mouseup. Now a spacebar push will give the same
11781 visual feedback like a mouse click.
11782 - Added missing attributes
11783 - Added ImeModeChanged event
11784 - Added support for generating DoubleClick event for derived classes
11786 - Implemented DoubleClick event
11787 - Added missing attributes
11788 * CommonDialog.cs: Added missing attribute
11789 * ContextMenu.cs: Added missing attributes
11791 - AutoChecked buttons do not allow to be unselected when clicked
11792 (otherwise we might end up with no selected buttons in a group)
11793 - Added missing attributes
11794 - Implemented DoubleClickEvent
11795 * ThreadExceptionDialog.cs: Enabled TextBox code
11797 2005-01-18 Peter Bartok <pbartok@novell.com>
11799 * Form.cs: Removed debug output
11800 * Button.cs: Added support for DoubleClick method
11802 2005-01-18 Peter Bartok <pbartok@novell.com>
11805 - Added method to parent window that allows triggering size
11806 calculations when a menu is added/removed
11807 - set_Menu: Cleaned up mess from early days of Form and Control,
11808 now properly triggers a recalc when a menu is added/removed
11809 - Added case to select form itself as focused form if no child
11811 - Added PerformLayout call when showing dialog, to ensure properly
11814 - Select(): Made internal so Form can access it
11815 - Focus(): Only call Xplat layer if required (avoids loop), and sets
11817 * Application.cs (Run): Removed hack and calls PerformLayout instead
11818 to trigger calculation when Form becomes visible
11820 2005-01-18 Jordi Mas i Hernandez <jordi@ximian.com>
11822 * ComboBox.cs: fixes for ownerdraw
11824 2005-01-18 Peter Bartok <pbartok@novell.com>
11827 - Sentinel is no longer static, each Document gets it's own, this
11828 avoids locking or alternatively overwrite problems when more
11829 than one text control is used simultaneously.
11830 - Switched to use Hilight and HilightText brushes for text selection
11832 * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
11834 2005-01-18 Peter Bartok <pbartok@novell.com>
11837 - Hooked up the following events:
11845 o SystemColorsChanged
11846 o ParentFontChanged
11848 - Removed debug output
11849 - Added a call to the current theme's ResetDefaults when a color change
11851 * Form.cs: Now setting the proper ImeMode
11852 * Theme.cs: Defined a method to force recreation of cached resources
11853 and rereading of system defaults (ResetDefaults())
11854 * ThemeWin32Classic.cs: Added ResetDefaults() stub
11856 2005-01-17 Peter Bartok <pbartok@novell.com>
11858 * Control.cs: Added missing attributes
11860 2005-01-17 Jackson Harper <jackson@ximian.com>
11862 * TreeNode.cs: Implement editing. Add missing properties selected
11864 * TreeView.cs: Implement node editing. Also some fixes to use
11865 Invalidate (invalid area) instead of Refresh when selecting.
11867 2005-01-17 Peter Bartok <pbartok@novell.com>
11870 - Implemented InvokeGotFocus() method
11871 - Implemented InvokeLostFocus() method
11872 - Implemented InvokePaint() method
11873 - Implemented InvokePaintBackground() method
11874 - Implemented InvokeClick() method
11875 - Implemented FindForm() method
11876 - Implemented RectangleToClient() method
11877 - Implemented ClientToRectangle() method
11878 - Implemented ResetBackColor() method
11879 - Implemented ResetCursor() method
11880 - Implemented ResetFont() method
11881 - Implemented ResteForeColor() method
11882 - Implemented ResetImeMode() method
11883 - Implemented ResetLeftToRight() method
11884 - Implemented ResetText() method
11885 - Implemented Scale() methods
11886 - Implemented ScaleCore() method
11887 - Implemented Update() method
11888 - Removed unused variables
11889 - Stubbed AccessibilityNotifyClients and
11890 ControlAccessibleObject.NotifyClients() methods (dunno what to do
11892 - Now setting proper default for RightToLeft property
11893 - Fixed bug in SetClientSizeCore that would cause windows to get
11895 - Now sending Click/DoubleClick events
11896 - Now selecting controls when left mouse button is clicked on
11898 * AccessibleEvents.cs: Added
11899 * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
11900 * XplatUIOSX.cs: Stubbed UpdateWindow() method
11901 * XplatUIWin32.cs: Implemented UpdateWindow() method
11902 * XplatUIX11.cs: Implemented UpdateWindow() method
11903 * Form.cs: Removed stray semicolon causing CS0162 warning
11904 * ThemeWin32Classic.cs: Fixed unused variable warnings
11905 * ScrollableControl.cs: Now calls base method for ScaleCore
11906 * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
11907 style to avoid interference with internal click handler (which is
11908 different than standard Control click handling)
11910 - Now unchecks all sibling radio buttons when control is
11911 selected (Fixes #68756)
11912 - Removed internal tabstop variable, using the one inherited from
11915 2005-01-17 Jackson Harper <jackson@ximian.com>
11917 * NavigateEventArgs.cs: Fix base type.
11918 * LinkLabel.cs: Sig fix
11920 2005-01-17 Jackson Harper <jackson@ximian.com>
11922 * TreeView.cs: Only invalidate the effected nodes bounds when
11925 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
11927 * XplatUIWin32.cs: fixes Win32 marshaling
11928 * XplatUIX11.cs: fixes method signature
11930 2005-01-17 Peter Bartok <pbartok@novell.com>
11932 * XplatUIX11.cs: Clean up resources when we no longer need them
11934 2005-01-17 Peter Bartok <pbartok@novell.com>
11936 * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
11937 OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
11938 and DestroyCursor() methods.
11939 * Cursor.cs: Partially implemented, now supports standard cursors;
11940 still contains some debug code
11941 * Cursors.cs: Implemented class
11943 - WndProc(): Added handling of WM_SETCURSOR message, setting the
11945 - Implemented Cursor property
11946 - Replaced break; with return; more straightforwar and possibly
11948 - Now properly setting the result for WM_HELP
11949 * X11Structs.cs: Added CursorFontShape enum
11950 * XplatUIStructs.cs:
11951 - Added StdCursor enum (to support DefineStdCursor() method)
11952 - Added HitTest enum (to support sending WM_SETCURSOR message)
11954 - Now sends the WM_SETCURSOR message
11955 - Implemented new cursor methods
11956 * XplatUIOSX.cs: Stubbed new cursor methods
11958 - Implemented new cursor methods
11959 - Added GetSystemMetrics function and associated enumeration
11961 2005-01-15 Peter Bartok <pbartok@novell.com>
11964 - WndProc(): Now handles EnableNotifyMessage
11965 - SelectNextControl(): Fixed bug where if no child or sibling
11966 controls exist we looped endlessly
11968 2005-01-14 Jackson Harper <jackson@ximian.com>
11970 * TreeView.cs: Recalculate the tab pages when a new one is added
11971 so that the proper bounding rects are created.
11973 2005-01-14 Jackson Harper <jackson@ximian.com>
11975 * TreeView.cs: Draw a gray box instead of a grip in the lower
11976 right hand corner when there are both horizontal and vertical
11979 2005-01-14 Jackson Harper <jackson@ximian.com>
11981 * Control.cs: When erasing backgrounds use FromHwnd instead of
11982 FromHdc when there is a NULL wparam. This occurs on the X driver.
11983 * XplatUIX11.cs: Set the wparam to NULL.
11985 2005-01-13 Jackson Harper <jackson@ximian.com>
11987 * PictureBox.cs: Implement missing methods (except ToString, need
11988 to test that on windows) and events. When visibility is changed we
11989 need to redraw the image because the buffers are killed. When size
11990 is changed refresh if the sizemode needs it.
11992 2005-01-13 Peter Bartok <pbartok@novell.com>
11994 * Control.cs (SelectNextControl): Was using wrong method to select
11997 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
11999 * ComboBox.cs: fixes dropstyle
12001 2005-01-13 Peter Bartok <pbartok@novell.com>
12004 - Implemented Select() override
12005 - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
12006 - Now sets keyboard focus on startup
12007 * Control.cs (SelectNextControl): Now properly handles directed=true
12009 - WndProc: Now passes tab key on to base if AcceptTabChar=false
12010 - Added (really bad) focus rectangle (mostly for testing)
12011 * TextBox.cs: Added code to handle getting/loosing focus and invalidating
12012 to enforce redraw on focus changes
12013 * ContainerControl.cs:
12014 - Fixed detection of Shift-Tab key presses
12015 - Fixed traversal with arrow keys
12016 * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
12017 gonna keep this or if it's complete yet
12019 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
12021 * ComboBox.cs: missing properties, fixes
12023 2005-01-13 Peter Bartok <pbartok@novell.com>
12025 * Panel.cs (ctor): Setting Selectable window style to off
12026 * Splitter.cs (ctor): Setting Selectable window style to off
12027 * GroupBox.cs (ctor): Setting Selectable window style to off
12028 * Label.cs (ctor): Setting Selectable window style to off
12030 2005-01-12 Miguel de Icaza <miguel@ximian.com>
12032 * UpDownBase.cs (InitTimer): If the timer has been already
12033 created, enable it.
12035 Use a TextBox instead of a Label.
12037 2005-01-12 Jackson Harper <jackson@ximian.com>
12039 * TreeView.cs: Refresh the tree after sorting the nodes. Always
12040 draw the connecting node lines (when ShowLines is true).
12041 * TreeNode.cs: The nodes index can now be updated. This is used
12042 when a node collection is sorted.
12043 * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
12044 insert or an existing unsorted node collection can be sorted.
12046 2005-01-12 Peter Bartok <pbartok@novell.com>
12048 * ContainerControl.cs: Implemented ProcessDialogKeys()
12050 2005-01-12 Peter Bartok <pbartok@novell.com>
12053 - Implemented SelectNextControl() method
12054 - Several focus related bug fixes
12055 - Fixed Docking calculations to match MS documentation and
12058 2005-01-12 Jordi Mas i Hernandez <jordi@ximian.com>
12060 * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
12063 2005-01-12 Peter Bartok <pbartok@novell.com>
12066 - Fixed broken Contains() method
12067 - Implemented GetNextControl() method. Finally. This is the pre-
12068 requisite for focus handling.
12070 2005-01-12 Peter Bartok <pbartok@novell.com>
12072 * OSXStrucs.cs: Added
12074 2005-01-12 Peter Bartok <pbartok@novell.com>
12077 - Removed PeekMessageFlags
12078 - Implemented SetWindowStyle() method
12079 * XplatUIStructs.cs: Added PeekMessageFlags
12080 * X11Structs: Added missing border_width field to XWindowChanges struct
12082 - PeekMessage: Now throws exception if flags which are not yet
12083 supported are passed
12084 - Implemented SetWindowStyle() method
12085 - Fixed SetZOrder to handle AfterHwnd properly
12086 * XplatUI.cs: Added SetWindowStyle() method
12087 * XplatUIDriver.cs: Added SetWindowStyle() abstract
12089 - Implemented UpdateStyles() method
12090 - Implemented UpdateZOrder() method
12091 * XplatUIOSX.cs: Added SetWindowStyle() stub
12093 2005-01-12 Geoff Norton <gnorton@customerdna.com>
12095 * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
12099 2005-01-11 Jackson Harper <jackson@ximian.com>
12101 * TreeView.cs: Still need to draw lines to siblings even if out of
12102 the current node is out of the clip.
12104 2005-01-11 Jackson Harper <jackson@ximian.com>
12106 * TreeView.cs: When setting the hbar/vbar/grip position use
12107 SetBounds so that perform layout is only called once. Also suspend
12108 and resume layout so layout is only done once for all controls.
12109 - Removed some debug fluff
12110 * SizeGrip.cs: Call base implmentation in overriding methods.
12111 - When visibility is changed the drawing buffers are killed so we
12114 2005-01-11 Jackson Harper <jackson@ximian.com>
12116 * TreeView.cs: Calculate the open node count while drawing. This
12117 saves us an entire tree traversal for every paint operation. Use
12118 a member var for the open node count so less vars are passed around.
12120 2005-01-11 John BouAntoun <jba-mono@optusnet.com.au>
12122 * MonthCalendar.cs:
12123 - fixed selection to use mousemove, not mouse polling on timer
12124 * ThemeWin32Classic.cs
12125 - removed redundant unused variable "no_more_content"
12127 2005-01-11 Peter Bartok <pbartok@novell.com>
12129 * XplatUIX11.cs (DoEvents): Needs to return when no more events
12130 are pending, so it now calls PeekMessage instead of GetMessage;
12131 implemented a incomplete version of PeekMessage
12133 2005-01-11 Peter Bartok <pbartok@novell.com>
12135 * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
12137 * TextBoxBase.cs: Added sending of TextChanged event
12139 2005-01-10 Jackson Harper <jackson@ximian.com>
12141 * TreeView.cs: Try not to draw outside the clipping rectangle on
12144 2005-01-10 Jordi Mas i Hernandez <jordi@ximian.com>
12146 * ComboBox.cs: keyboard navigation, item navigation, bug fixes
12148 2005-01-10 Jackson Harper <jackson@ximian.com>
12151 - Implement fast scrolling. Now only the newly
12152 exposed nodes are drawn and the old image is moved using the
12153 XplatUI::ScrollWindow method.
12154 - Factor in height of nodes when calculating whether or not the
12155 node is in the clipping rect.
12157 2005-01-10 Jackson Harper <jackson@ximian.com>
12159 * TreeNodeCollection.cs: Refresh the tree when a new node is added.
12161 2005-01-10 Peter Bartok <pbartok@novell.com>
12163 * Application.cs: Added temporary hack to resolve all our resize
12164 required issues on startup. This will get fixed properly at
12165 some point in the future
12167 2005-01-10 Jackson Harper <jackson@ximian.com>
12169 * SizeGrip.cs: New internal class that is used as a sizing
12170 grip control...hence the name.
12172 2005-01-10 Peter Bartok <pbartok@novell.com>
12174 * Control.cs: Implemented proper TabIndex handling, now assigning
12175 a tabindex when a control is added to a container
12176 * GroupBox.cs (ctor): Now sets the Container style bit, required
12177 for Control.GetNextControl()
12179 2005-01-09 Jackson Harper <jackson@ximian.com>
12181 * TextBoxBase.cs: Clear window when scrolling (fixes build).
12183 2005-01-09 Peter Bartok <pbartok@novell.com>
12185 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
12186 XplatUIX11.cs: Added ability to control ScrollWindow expose and
12187 an overload for ScrollWindow to allow only scrolling a rectangle
12189 2005-01-09 Peter Bartok <pbartok@novell.com>
12192 - Implemented SetDesktopBounds method
12193 - Implemented SetDesktopLocation method
12195 2005-01-08 Jackson Harper <jackson@ximian.com>
12197 * TreeView.cs: Only set the vbar's Maximum and LargeChange when
12198 the node count has changed, this removes to VScroll::Refresh calls
12201 2005-01-08 Geoff Norton <gnorton@customerdna.com>
12203 * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
12205 2005-01-07 Jackson Harper <jackson@ximian.com>
12207 * TreeNode.cs: Just update the single node when it is
12208 checked. Don't refresh after toggling, the Expand/Collapse already
12210 * TreeView.cs: Respect clipping a little more when drawing. Try
12211 not to redraw things that don't need to be redrawn. Just hide the
12212 scrollbars when they are no longer needed instead of removing
12213 them, so they don't have to be created again and again.
12215 2005-01-07 Geoff Norton <gnorton@customerdna.com>
12217 * XplatUIOSX.cs (SetCaretPos): We need to translate the view
12218 coordinates to window space to place the caret properly, FIXED.
12219 Implement GetWindowState & SetWindowState
12221 2005-01-06 Peter Bartok <pbartok@novell.com>
12224 - Implemented ClientSize property
12225 - Implemented DesktopBounds property
12226 - Implemented DesktopLocation property
12227 - Implemented IsRestrictedWindow property
12228 - Implemented Size property
12229 - Implemented TopLevel property
12230 - Implemented FormWindowState property
12232 - Implemented GetTopLevel() method
12233 - Implemented SetTopLevel() method
12234 * X11Structs.cs (Atom):
12235 - Added AnyPropertyType definition
12236 - Added MapState definiton and updated XWindowAttribute struct
12237 * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
12238 * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
12239 * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
12241 - Implemented GetWindowState() and SetWindowState() methods
12242 - Fixed Win32GetWindowLong return type
12244 - Introduced central function for sending NET_WM messages
12245 - Implemented GetWindowState() and SetWindowState() methods
12246 * TextBoxBase.cs (set_Lines):
12247 - Now uses Foreground color for text added via Text property (Duh!)
12248 - Added code to remember programmatically requested size (fixes
12249 behaviour when Multiline is set after Size)
12250 - Added AutoSize logic
12252 2005-01-06 Jackson Harper <jackson@ximian.com>
12254 * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
12256 2005-01-06 Jackson Harper <jackson@ximian.com>
12258 * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
12259 set to less then 0.
12261 2005-01-06 Jackson Harper <jackson@ximian.com>
12263 * ScrollableControl.cs: Lazy init the scrollbars.
12265 2005-01-06 Jackson Harper <jackson@ximian.com>
12267 * Theme.cs: Speed up getting pens and solid brushes, by using
12268 their ARGB as a hash instead of tostring and not calling Contains.
12270 2005-01-06 Peter Bartok <pbartok@novell.com>
12273 - Implemented OnActivated and OnDeactivate event trigger
12274 - Implemented Activate() method
12275 - Fixed ShowDialog() to activate the form that was active before
12276 the dialog was shown
12278 - Added global active_window var that tracks the currently active
12280 - Now always grabs Property changes from the root window to always
12281 catch changes on the active window property
12282 - Added code to PropertyNotify handler to send Active/Inactive
12283 messages when state changes. This puts X11 and Win32 en par on
12284 WM_ACTIVATE notifications (except for double notifications when
12285 the user clicks away from our modal window to another one of our
12288 2005-01-05 Jackson Harper <jackson@ximian.com>
12290 * ImageList.cs: Implment ctor
12292 2005-01-05 Geoff Norton <gnorton@customerdna.com>
12294 * XplatUIOSX.cs: Implement Activate/SetTopmost
12296 2005-01-05 Geoff Norton <gnorton@customerdna.com>
12298 * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
12300 2005-01-05 Geoff Norton <gnorton@customerdna.com>
12302 * XplatUIOSX.cs: Implement GetActive/SetFocus.
12304 2005-01-05 Peter Bartok <pbartok@novell.com>
12306 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
12307 XplatUIOSX.cs: Added GetActive method to return the currently
12308 active window for the application (or null, if none is active)
12310 - Implemented ActiveForm
12311 - Commented out owner assignment for modal dialogs (causes problems
12312 on Win32, since the owner will be disabled)
12313 - Reworked some Active/Focus handling (still incomplete)
12314 * CommonDialog.cs: Commented out owner assignment for modal dialogs
12315 (causes problems on Win32, since the owner will be disabled)
12316 * IWin32Window: Added ComVisible attribute
12318 2005-01-05 Peter Bartok <pbartok@novell.com>
12320 * ToolTip.cs (WndProc): Enable setting focus now that we have the
12321 required XplatUI functions.
12323 2005-01-05 Peter Bartok <pbartok@novell.com>
12325 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
12326 XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
12327 to implement focus and activation handling; still incomplete and
12330 2005-01-04 Peter Bartok <pbartok@novell.com>
12332 * TextBoxBase.cs: Changed access level for Document property to
12333 match switch to internal for TextControl
12335 2005-01-04 Peter Bartok <pbartok@novell.com>
12337 * AccessibleObject: Added ComVisible attribute
12339 2005-01-04 Jackson Harper <jackson@ximian.com>
12341 * X11Keyboard.cs: Remove unneeded var.
12343 2005-01-04 Jackson Harper <jackson@ximian.com>
12345 * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
12347 * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
12348 ClientMessage. This makes apps exit cleanly (more often).
12350 2005-01-04 Jackson Harper <jackson@ximian.com>
12352 * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
12353 handling focus, return correct colors and fonts,
12354 * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
12355 handle selection, horizontal scrolling, and mouse interaction.
12357 2005-01-04 Peter Bartok <pbartok@novell.com>
12359 * ICommandExecutor.cs: Added
12360 * IDataGridColumnStyleEditingNotificationService.cs: Added
12361 * IFeatureSupport.cs: Added
12362 * IFileReaderService.cs: Added
12363 * IDataObject.cs: Added ComVisible attribute
12364 * AmbientProperties.cs: Added
12365 * BaseCollection.cs: Added missing attributes
12366 * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
12367 * BaseCollection.cs: Added missing attributes
12368 * Binding.cs: Added TypeConverter attribute
12369 * BindingContext.cs: Added DefaultEvent attribute
12370 * BindingsCollection.cs: Added DefaultEvent attribute
12371 * Button.cs: Added DefaultValue attribute
12372 * DragEventArgs.cs: Added ComVisible attribute
12373 * GiveFeedbackEventArgs.cs: Added ComVisible attribute
12374 * KeyEventArgs.cs: Added ComVisible attribute
12375 * KeyPressEventArgs.cs: Added ComVisible attribute
12376 * MouseEventArgs.cs: Added ComVisible attribute
12377 * NavigateEventArgs.cs: Added
12378 * NavigateEventHandler.cs: Added
12379 * FeatureSupport.cs: Added
12380 * OSFeature.cs: Added
12381 * Theme.cs: Added abstract Version property to support OSFeature
12382 * ThemeWin32Classic.cs: Added Version property to
12383 support OSFeature.Themes
12384 * ProgressBar.cs: Removed OnPaintBackground override, not required since
12385 the proper styles to avoid background drawing are set, also doesn't
12387 * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
12388 * QueryContinueDragEventArgs.cs: Added ComVisible attribute
12389 * ScrollEventArgs.cs: Added ComVisible attribute
12390 * SplitterEventArgs.cs: Added ComVisible attribute
12391 * AccessibleSelection.cs: Added Flags attribute
12392 * Appearance.cs: Added ComVisible attribute
12393 * Border3DSide.cs: Added ComVisible attribute
12394 * Border3DStyle.cs: Added ComVisible attribute
12395 * BorderStyle.cs: Added ComVisible attribute
12396 * DragAction.cs: Added ComVisible attribute
12397 * ErrorBlinkStyle.cs: Added
12398 * ScrollEventType.cs: Added ComVisible attribute
12399 * AnchorStyles.cs: Added Editor attribute
12400 * DockStyle.cs: Added Editor attribute
12401 * HorizontalAlignment.cs: Added ComVisible attribute
12402 * HelpEventArgs.cs: Added ComVisible attribute
12403 * PaintEventArgs.cs: Added IDisposable
12405 2005-01-04 Peter Bartok <pbartok@novell.com>
12407 * TextControl.cs: Switched Line, LineTag and Document classes to
12410 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
12412 * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
12413 Simple mode, fixes, IntegralHeight, etc.
12415 2005-01-04 Peter Bartok <pbartok@novell.com>
12417 * TextBoxBase.cs: Using proper font variable now
12419 2005-01-04 Peter Bartok <pbartok@novell.com>
12421 * Form.cs (ShowDialog): Set parent to owner, if provided
12422 * GroupBox.cs: Removed unused vars
12424 - Added GetHashCode() for Document and LineTag classes
12425 - Removed unused variables
12426 - Added CharIndexToLineTag() and LineTagToCharIndex() methods
12427 to allow translation between continuous char position and line/pos
12428 * CheckBox.cs: Removed vars that are provided by base class
12429 * RadioButton.cs: Removed vars that are provided by base class, added
12430 new keyword where required
12431 * LinkLabel.cs: Added new keyword where required
12432 * Control.cs (WndProc): Removed unused variable
12434 - Finished SelectionLength property
12435 - Implemented SelectionStart property
12436 - Implemented Text property
12437 - Removed unused vars
12438 * MessageBox.cs: Added new keyword where required
12439 * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
12441 * MenuAPI.cs: Added new keyword where required
12442 * ButtonBase.cs: Removed vars that are provided by base class, added
12443 new keyword where required
12444 * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
12445 argument to double, to allow compiling with csc 2.0 (Atsushi ran
12447 * Application.cs (Run): Now triggers the ThreadExit event
12448 * CommonDialog.cs: Added new keyword where required; now properly sets
12449 parent (owner) for dialog
12450 * XplatUIX11.cs: Commented out unused vars
12451 * StatusBar.cs: Fixed signature for Text property
12452 * TabPage.cs: Undid Jordi's removal of unused var, now using the var
12454 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
12456 * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
12457 TrackBar.cs, MonthCalendar.cs: remove unused vars
12459 2005-01-03 Jackson Harper <jackson@ximian.com>
12461 * ThemeWin32Classic.cs:
12462 * X11Keyboard.cs: Remove unused vars.
12464 2005-01-03 Peter Bartok <pbartok@novell.com>
12467 - set_Text: Tied into TextControl
12468 - set_TextAlignment: Tied into TextControl
12470 - Added alignment properties and implemented alignment handling
12471 and drawing (still has a bug, not generating proper expose events)
12472 - Added new Line() constructor to allow passing the line alignment
12473 - Fixed selection setting, properly handling end<start now
12474 - Added aligment considerations to RecalculateDocument()
12476 - Now properly enforces control height for single line controls
12477 - Added support for CharacterCasing
12478 - Added IsInputKey override
12479 - Fixed Keys.Enter logic
12480 - Added SetBoundsCore override
12481 - Fixed mouse selection handling
12483 2005-01-03 Jackson Harper <jackson@ximian.com>
12486 - Collapse and uncheck all nodes when CheckBoxes is disabled.
12487 - Checkboxes are always aligned to the bottom of the node,
12488 regardless of item height.
12489 - Use the node bounds to draw the text so we can center it when
12490 the item height is greater then the font height.
12491 - Node::Bounds are only the text part of the node.
12492 * TreeNode.cs: New method to combine collapsing and unchecking all
12495 2005-01-02 Jackson Harper <jackson@ximian.com>
12497 * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
12498 * TreeNode.cs: Add a bounding box for the checkbox, refresh the
12499 tree when a check is changed. TODO: Only refresh the checked node.
12501 2004-12-30 Jackson Harper <jackson@ximian.com>
12503 * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
12504 * TreeNode.cs: When collapsing make sure to never collapse the
12507 2004-12-29 Jackson Harper <jackson@ximian.com>
12509 * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
12511 2004-12-28 Zoltan Varga <vargaz@freemail.hu>
12513 * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
12515 2004-12-28 Peter Bartok <pbartok@novell.com>
12517 * MessageBox.cs (get_CreateParams): Don't use owner var if it's
12520 2004-12-28 Peter Bartok <pbartok@novell.com>
12522 * Control.cs (WndProc): Added WM_HELP handler, now generates
12523 HelpRequested event
12524 * Form.cs: Added HelpButton property and required support code
12525 * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
12527 2004-12-28 Peter Bartok <pbartok@novell.com>
12530 - Made DialogForm.owner variable internal
12531 - Added check to ensure owner form is set before setting
12532 owner properties in CreateParams
12534 2004-12-28 Geoff Norton <gnorton@customerdna.com>
12536 * XplatUIOSX.cs: Implement mouse hovering. Fix QDPoint struct to avoid
12537 swizzling. Implement ClientToScreen and ScreenToClient. Implement
12538 GetCursorPos. Fix major visibility issues. Rework the windowing
12539 system to support borderless/titleless windows (implements menus).
12540 Fix GetWindowPos. Implement initial background color support for
12543 2004-12-28 Peter Bartok <pbartok@novell.com>
12545 * Form.cs (get_CreateParams): Make sure we have an owner before using
12546 the owner variable. Implement proper default if no owner exists
12548 2004-12-28 Peter Bartok <pbartok@novell.com>
12550 * In preparation for making Managed.Windows.Forms the default build target
12551 for System.Windows.Forms, the following stubbed files were added.
12552 Dialogs are currently being implemented by contributors and are only
12553 short-term place holders.
12554 * ColorDialog.cs: Initial check-in (minmal stub)
12555 * DataGrid.cs: Initial check-in (minimal stub)
12556 * DataGridLineStyle.cs: Initial check-in (minimal stub)
12557 * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
12558 * DataGridTableStyle.cs: Initial check-in (minimal stub)
12559 * FontDialog.cs: Initial check-in (minimal stub)
12560 * FileDialog.cs: Initial check-in (minimal stub)
12561 * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
12562 * GridTableStylesCollection.cs: Initial check-in (minimal stub)
12563 * OpenFileDialog: Initial check-in (minimal stub)
12564 * IComponentEditorPageSite.cs: Initial check-in
12565 * Splitter.cs: Initial check-in (for Jackson)
12566 * SplitterEventArgs.cs: Initial check-in (for Jackson)
12567 * SplitterEventHandler.cs: Initial check-in (for Jackson)
12568 * TextBox.cs: Initial check-in; still needs some wiring to
12569 TextControl backend
12570 * Form.cs: Implemented ControlBox property
12571 * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
12572 * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
12573 * TextControl.cs: Added selection functionality; added todo header
12575 - Implemented Lines property
12576 - Implemented TextHeight property
12577 - Implemented SelectedText property
12578 - Implemented SelectionLength property
12579 - Implemented SelectAll method
12580 - Implemented ToString method
12581 - Removed and cleaned up some debug code
12582 - Implemented (still buggy) mouse text selection
12584 2004-12-27 Jordi Mas i Hernandez <jordi@ximian.com>
12586 * ComboBox.cs: Complete DropDownList implementation, fixes.
12588 2004-12-26 Jordi Mas i Hernandez <jordi@ximian.com>
12590 * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
12591 * ComboBoxStyle.cs: ComboBoxStyle enum
12592 * ComboBox.cs: Initial work on ComboBox control
12594 2004-12-21 Peter Bartok <pbartok@novell.com>
12596 * Control.cs (ctor, CreateParams): Moved setting of is_visible
12597 forward so that anything that creates a window gets the default,
12598 also no longer uses Visible property in CreateParams to avoid
12599 walking up the parent chain and possibly get the wrong visible
12600 status. Fixed IsVisible to no longer walk up to the parent.
12602 2004-12-21 Peter Bartok <pbartok@novell.com>
12604 * Form.cs (ShowDialog): Unset modality for the proper window
12606 2004-12-20 Peter Bartok <pbartok@novell.com>
12608 * CommonDialog.cs: Initial check-in
12610 2004-12-20 Peter Bartok <pbartok@novell.com>
12612 * Control.cs (Visible): Now uses the parent window instead of the
12613 client area window for the property
12616 - ShowDialog(): Now uses the proper window for modality
12617 - The default visibility state for the form parent is now false. This
12618 will prevent the user from seeing all the changes to the form and
12619 its controls before the application hits Application.Run()
12620 - Removed some stale commented out code
12623 - Added FindWindow() method to have a method to check for existence
12625 - Added ability to override default exception handling (for example
12626 when debugging with VS.Net; to do this the ExternalExceptionHandler
12628 - Removed some useless debug output
12631 - Removed r37929 (SetModal patch from Ashwin Bharambe), was
12632 not working as expected
12633 - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
12634 property to allow switching back to the modal window if focus is
12635 given to another one of our windows (Application Modal)
12636 - Now only sets override_redirect if we create a window
12638 - Moved EventMask selection before mapping of newly created window
12639 so we can catch the map event as well
12640 - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
12641 - Added various Atom related DllImports
12642 - Implemented Exit() method
12643 - .ctor() : No longer shows window if WS_VISIBLE is not defined
12644 in the CreateParams
12646 * MessageBox.cs: Now properly deals with the FormParent window by
12647 providing an override the FormParent CreateParams property to
12648 set as POPUP instead of OVERLAPPED window.
12650 2004-12-19 Geoff Norton <gnorton@customerdna.com>
12652 * XplatUIOSX.cs: Implement DestroyWindow. Implement ScrollWindow
12653 Minor code cleanup.
12655 2004-12-19 Geoff Norton <gnorton@customerdna.com>
12657 * XplatUIOSX.cs (SetModal): Implement this method on OSX.
12659 2004-12-18 Peter Bartok <pbartok@novell.com>
12661 * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
12662 implementing SetModal() method
12664 2004-12-18 Peter Bartok <pbartok@novell.com>
12666 * X11Structs.cs (XGCValues): Fixed type of function element
12667 * XplatUI.cs: Added ScrollWindow() method
12668 * XplatUIDriver.cs: Added ScrollWindow() abstract
12669 * XplatUIWin32.cs: Implemented ScrollWindow() method
12670 * XplatUIX11.cs: Implemented ScrollWindow() method
12671 * XplatUIOSX.cs: Stubbed out ScrollWindow() method
12673 2004-12-17 Geoff Norton <gnorton@customerdna.com>
12675 * XplatUIOSX.cs: Fix cursor to use an Invert instead of drawing it
12676 Some more keyboard support (INCOMPLETE)
12678 2004-12-17 Peter Bartok <pbartok@novell.com>
12681 - Added color attribute to line tags.
12682 - Added color argument to all functions dealing with tags
12683 - Added color argument support to various functions
12684 - Fixed miss-calculation of baseline/shift in certain circumstances
12686 * TextBoxBase.cs: Added new color option to test code
12688 2004-12-17 Jackson Harper <jackson@ximian.com>
12691 * MonthCalendar.cs: Signature fixes
12693 2004-12-17 Geoff Norton <gnorton@customerdna.com>
12695 * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
12696 keyboard event moved it. Create a new graphics context for each paint resolves this
12698 2004-12-17 Geoff Norton <gnorton@customerdna.com>
12700 * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
12701 Make caret exist and go blink blink. Initial keyboard support.
12702 Fix exception handler, Add Invalidate support. Change way RefreshWindow
12705 2004-12-17 Jackson Harper <jackson@ximian.com>
12707 * XplatUIStructs.cs: Updated set of virtual keycodes.
12708 * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
12710 2004-12-17 Jackson Harper <jackson@ximian.com>
12712 * XplatUIX11.cs: Prune old keyboard code.
12714 2004-12-17 Jackson Harper <jackson@ximian.com>
12716 * XplatUIX11.cs: When generating mouse wparams get the modifier
12717 keys from the ModifierKeys property.
12719 2004-12-17 Jackson Harper <jackson@ximian.com>
12721 * X11Keyboard.cs: Send up/down input when generating
12722 messages. Remove some unused vars.
12724 2004-12-17 Jackson Harper <jackson@ximian.com>
12727 * TreeView.cs: get rid of warnings.
12729 2004-12-17 Jackson Harper <jackson@ximian.com>
12731 * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
12733 2004-12-17 Jordi Mas i Hernandez <jordi@ximian.com>
12735 * ListBox.cs: bug fixes, changes for CheckedListBox.cs
12736 CheckedListBox.cs: Implementation
12738 2004-12-17 Peter Bartok <pbartok@novell.com>
12740 * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
12742 2004-12-16 Peter Bartok <pbartok@novell.com>
12745 - InsertCharAtCaret(): Fixed start pos fixup
12746 - CaretLine_get: No longer derives the line from the tag, the tag
12747 could be stale if lines in the document have been added or deleted
12748 - RebalanceAfterDelete(): Fixed bug in balancing code
12749 - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
12750 - Line.Streamline(): Now can also elminate leading empty tags
12751 - DumpTree(): Added a few more tests and prevented exception on
12753 - Added Debug section for Combining lines
12754 - Delete(): Now copies all remaining properties of a line
12757 - Left mousebutton now sets the caret (and middle button still acts
12758 as formatting tester, which must go away soon)
12759 - Added Debug section for Deleting/Combining lines
12760 - Fixed calculations for UpdateView after Combining lines
12762 2004-12-16 Peter Bartok <pbartok@novell.com>
12764 * TextControl.cs: Now properly aligns text on a baseline, using the
12765 new XplatUI.GetFontMetrics() method. Simplified several calculations
12766 * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
12769 2004-12-16 Peter Bartok <pbartok@novell.com>
12771 * XplatUI.cs: Added GetFontMetrics() method
12772 * XplatUIDriver.cs: Added GetFontMetrics() abstract
12773 * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
12774 into libgdiplus, our private GetFontMetrics function
12775 * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
12776 * XplatUIWin32.cs: Implemented GetFontMetrics() method
12778 2004-12-16 Jackson Harper <jackson@ximain.com>
12780 * XplatUIStruct.cs: Add enum for dead keys
12781 * X11Keyboard.cs: Map and unmap dead keys.
12783 2004-12-16 Jackson Harper <jackson@ximian.com>
12785 * X11Keyboard.cs: Detect and use the num lock mask.
12787 2004-12-16 Peter Bartok <pbartok@novell.com>
12789 * Control.cs (CreateGraphics): Added check to make sure the
12790 handle of the window exists before calling Graphics.FromHwnd()
12792 2004-12-16 Peter Bartok <pbartok@novell.com>
12794 * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
12795 contains a lot of code that's not supposed to be there for the
12796 real thing, but required for developing/testing the textbox
12799 2004-12-16 Peter Bartok <pbartok@novell.com>
12802 - Fixed Streamline method
12803 - Added FindTag method to Line
12804 - Added DumpTree method for debugging
12805 - Added DecrementLines() method for deleting lines
12806 - Fixed UpdateView to update the cursor to end-of-line on single-line
12808 - Added PositionCaret() method
12809 - Fixed MoveCaret(LineDown) to move into the last line, too
12810 - Added InsertChar overload
12811 - Fixed InsertChar tag offset calculations
12812 - Added DeleteChar() method
12813 - Added Combine() method for folding lines
12814 - Fixed Delete() method, no longer allocates wasted Line object and
12815 now copies all properties when swapping nodes
12816 - Delete() method now updates document line counter
12818 2004-12-15 Jackson Harper <jackson@ximian.com>
12820 * XplatUIX11.cs: Get the modifier keys from the keyboard driver
12821 * X11Keyboard.cs: Expose the currently selected modifier keys
12822 through a property.
12824 2004-12-15 Peter Bartok <pbartok@novell.com>
12826 * TextControl.cs: Initial check-in. Still incomplete
12828 2004-12-15 Jackson Harper <jackson@ximian.com>
12831 * TreeView.cs: Fix build on csc (second time today ;-))
12833 2004-12-15 Jackson Harper <jackson@ximian.com>
12835 * TreeView.cs: Store the treenodes plus/minus box bounds when it
12836 is calculated and use this for click testing.
12837 * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
12839 2004-12-15 Jackson Harper <jackson@ximian.com>
12841 * TreeView.cs: Pass the nodes image index to the image list when
12842 drawing that image.
12844 2004-12-15 Jackson Harper <jackson@ximian.com>
12846 * X11Keyboard.cs: Set messages hwnd.
12847 * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
12848 post_message calls.
12850 2004-12-15 Jackson Harper <jackson@ximian.com>
12852 * X11Keyboard.cs: Fix to compile with csc.
12854 2004-12-15 Jackson Harper <jackson@ximian.com>
12856 * X11Structs.cs: Add key mask values
12857 * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
12858 * X11Keyboard.cs: New file - Extrapolates and interpolates key
12859 down/up foo into WM_CHAR foo
12860 * KeyboardLayouts.cs: Common keyboard layouts
12861 * XplatUIX11.cs: Add the keyboard driver. Add functionality to
12862 post messages into the main queue.
12864 2004-12-13 Jordi Mas i Hernandez <jordi@ximian.com>
12866 * Button.cs: implement ProcessMnemonic
12867 * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
12869 * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
12870 * ButtonBase.cs: Show HotkeyPrefix (not the &)
12872 2004-12-12 John BouAntoun <jba-mon@optusnet.com.au>
12874 * MonthCalendar.cs: Implemented click-hold for next/previous month
12877 2004-12-11 Peter Bartok <pbartok@novell.com>
12880 - Added XKeyboardState (moved from XplatUIX11.cs)
12881 - Added XCreateGC related enums and structures
12882 - Added GXFunction for XSetFunction
12884 * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
12886 * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
12887 CaretVisible() calls
12889 * ToolTip.cs: Added code to prevent stealing focus from app windows
12891 * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
12892 DestroyCaret, SetCaretPos and CaretVisible)
12895 - Added implementation for caret functions
12896 - Moved hover variables into a struct, to make it a bit easier
12897 on the eyes and to debug
12898 - Removed XKeyboardState (moved to XplatUIX11.cs)
12899 - Moved Keyboard properties into the properties region
12901 * Control.cs (get_Region): Control.CreateGraphics is the appropriate
12902 call to get a graphics context for our control
12904 * XplatUIOSX.cs: Added empty overrides for the new caret functions
12906 * TreeView.cs: Fixed bug. No matter what color was set it would always
12907 return SystemColors.Window
12909 * XplatUIWin32.cs: Implemented caret overrides
12911 2004-12-10 Jordi Mas i Hernandez <jordi@ximian.com>
12913 * ListBox.cs: fire events, implement missing methods and properties,
12916 2004-12-10 John BouAntoun <jba-mono@optusnet.com.au>
12918 * MonthCalendar.cs: invalidation bug fixing
12919 * ThemeWin32Classic.cs: paint fixing
12921 2004-12-09 Geoff Norton <gnorton@customerdna.com>
12923 * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
12924 prepare the CGContextRef there now.
12926 2004-12-09 John BouAntoun <jba-mono@optusnet.com.au>
12928 * MonthCalendar.cs:
12929 - optimisationL only invalidate areas that have changed
12930 * ThemeWin32Classic.cs:
12931 - only paint parts that intersect with clip_area
12933 2004-12-09 Peter Bartok <pbartok@novell.com>
12935 * Application.cs: Undid changes from r37004 which cause problems
12938 2004-12-09 Ravindra <rkumar@novell.com>
12940 * ToolBar.cs: Added support for displaying ContextMenu
12941 attached to a button on ToolBar.
12942 * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
12945 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
12947 * Label.cs: autosize works in text change and removes unnecessary
12950 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
12952 * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
12955 2004-12-08 Geoff Norton <gnorton@customerdna.com>
12957 * XplatUIOSX.cs: Added mouse move/click/grab support
12958 Remove some debugging WriteLines not needed anymore.
12959 Add window resizing/positioning.
12960 Fix visibility on reparenting.
12962 2004-12-08 Peter Bartok <pbartok@novell.com>
12964 * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
12966 2004-12-07 Geoff Norton <gnorton@customerdna.com>
12968 * XplatUIOSX.cs: Initial checkin
12969 * XplatUI.cs: Use the Quartz driver if the environment is set to use it
12971 2004-12-03 Ravindra <rkumar@novell.com>
12973 * ListView.cs: Added some keybindings and fixed scrolling.
12974 ScrollBars listen to ValueChanged event instead of Scroll
12975 Event. This would let us take care of all changes being
12976 done in the scrollbars' values programmatically or manually.
12977 * ListView.cs (CanMultiselect): Added a check for shift key.
12978 * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
12979 * ListViewItem.cs (Clone): Fixed. We need to make a copy
12980 of ListViewSubItemCollection as well.
12982 2004-12-06 Peter Bartok <pbartok@novell.com>
12984 * Control.cs (Parent): Added check and exception to prevent
12987 2004-12-03 Jordi Mas i Hernandez <jordi@ximian.com>
12989 * ListBox.cs: implemented clipping, selection single and multiple,
12992 2004-12-03 Ravindra <rkumar@novell.com>
12994 * ListView.cs (ListView_KeyDown):
12995 * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
12996 when CTRL key is pressed.
12997 * ListViewItem.cs (Selected): Fixed setting the property.
12999 2004-12-03 Marek Safar <marek.safar@seznam.cz>
13001 * Application.cs (OnThreadException): Use ThreadExceptionDialog.
13003 * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
13004 MinimizeBox, ShowInTaskbar, TopMost properties.
13006 * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
13007 will be implemented).
13009 2004-12-03 Marek Safar <marek.safar@seznam.cz>
13011 * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
13013 * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
13016 * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
13018 * TreeView.cs: BackColor is Colors.Window.
13020 2004-12-01 Jackson Harper <jackson@ximian.com>
13022 * TreeView.cs: When resizing the tree if the user is making it
13023 smaller we don't get expose events, so we need to handle adding
13024 the horizontal scrollbar in the size changed handler as well as
13025 the expose handler.
13027 2004-12-02 Jordi Mas i Hernandez <jordi@ximian.com>
13029 * DrawItemState.cs: fixes wrong enum values
13031 2004-12-01 Jackson Harper <jackson@ximian.com>
13033 * TreeView.cs: Resize the hbar as well as the vbar on resize.
13035 2004-12-01 Jackson Harper <jackson@ximian.com>
13037 * NodeLabelEditEventArgs.cs:
13038 * NodeLabelEditEventHandler.cs:
13039 * OpenTreeNodeEnumerator.cs:
13041 * TreeNodeCollection.cs:
13043 * TreeViewAction.cs:
13044 * TreeViewCancelEventArgs.cs:
13045 * TreeViewCancelEventHandler.cs:
13046 * TreeViewEventArgs.cs:
13047 * TreeViewEventHandler.cs: Initial implementation.
13049 2004-12-01 Ravindra <rkumar@novell.com>
13051 * ListView.cs (CalculateListView): Fixed scrolling related
13052 calculations. Also, removed some debug statements from other
13054 * ListViewItem.cs: Changed access to 'selected' instance variable
13055 from private to internal.
13056 * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
13058 2004-12-01 Jordi Mas i Hernandez <jordi@ximian.com>
13060 * ThemeWin32Classic.cs: remove cache of brush and pens for
13061 specific controls and use the global system, fixes scrollbutton
13062 bugs (for small sizes, disabled, etc)
13064 * ScrollBar.cs: does not show the thumb for very small controls
13065 (as MS) and allow smaller buttons that the regular size
13067 2004-12-01 Miguel de Icaza <miguel@ximian.com>
13069 * UpDownBase.cs: Add abstract methods for the interface.
13070 Add new virtual methods (need to be hooked up to TextEntry when it
13072 Add override methods for most features.
13073 Computes the size, forces the height of the text entry.
13075 * NumericUpDown.cs: Put here the current testing code.
13077 * Set eol-style property on all files that do not have mixed line
13078 endings, to minimize the future problems. There are still a few
13079 files with mixed endings, and someone should choose whether they
13080 want to move it or not.
13082 2004-11-30 Jordi Mas i Hernandez <jordi@ximian.com>
13084 * MonthCalendar.cs, ListView.cs: use Theme colours instead of
13087 2004-11-30 Ravindra <rkumar@novell.com>
13089 * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
13090 drawing and replaced use of SystemColors by theme colors.
13091 * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
13092 * ListView.cs (ListViewItemCollection.Add): Throw exception when
13093 same ListViewItem is being added more than once.
13095 2004-11-30 John BouAntoun <jba-mono@optusnet.com.au>
13097 * MonthCalendar.cs:
13098 - ControlStyles love to make the control not flicker
13100 2004-11-30 Peter Bartok <pbartok@novell.com>
13102 * CharacterCasing.cs: Added
13104 2004-11-29 Peter Bartok <pbartok@novell.com>
13106 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
13107 TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
13108 I am removing these files as they conflict with already completed
13109 work. While it is fantastic to get contributions to MWF, I
13110 respectfully ask that everyone please coordinate their contributions
13111 through mono-winforms-list or #mono-winforms at this time. We're
13112 explicitly avoiding stubbing and don't want controls that don't have
13113 their basic functionality implemented in svn. Please also see
13114 http://www.mono-project.com/contributing/winforms.html
13117 2004-11-29 Marek Safar <marek.safar@seznam.cz>
13119 * Application.cs (ModalRun): Don't hang after exit.
13121 * Theme.cs: New TreeViewDefaultSize property.
13123 * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
13124 with less hardcoded SystemColors constant.
13125 Implemented TreeViewDefaultSize.
13127 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
13128 TreeViewAction.cs, TreeViewEventArgs.cs: New files.
13131 2004-11-29 John BouAntoun <jba-mono@optusnet.com.au>
13133 * MonthCalendar.cs:
13134 - Fix NextMonthDate and PrevMonthDate click moving calendar
13136 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
13138 * MonthCalendar.cs:
13139 - Fix usage of ScrollChange Property when scrolling months
13141 2004-11-26 Jordi Mas i Hernandez <jordi@ximian.com>
13143 * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
13144 - Fixes menu destroying
13145 - Support adding and removing items on already created menus
13147 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
13149 * MonthCalendar.cs:
13150 - Re-worked all bolded dates handling to match win32
13151 * ThemeWin32Classic.cs:
13152 - Fixed rendering with bolded dates
13154 2004-11-25 Jordi Mas i Hernandez <jordi@ximian.com>
13156 * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
13157 - Horizontal scroolbar
13162 2004-11-25 John BouAntoun <jba-mono@optusnet.com.au>
13164 * MonthCalendar.cs:
13165 - Fix Usage of MaxSelectionCount from SelectionRange
13166 - Fixed Shift + Cursor Selection
13167 - Fixed Shift + (Pg up/Pg dn, Home/End) selection
13168 - Fixed normal cursor selection to be compat with win32
13169 - Fixed Shift + Mouse Click selection
13171 2004-11-24 Peter Bartok <pbartok@novell.com>
13173 * XplatUI.cs (DispatchMessage): Switched to return IntPtr
13174 * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
13176 - CreatedKeyBoardMsg now updates keystate with Alt key
13177 - Added workaround for timer crash to CheckTimers, Jackson will
13178 develop a proper fix and check in later
13179 - Implemented DispatchMessage
13180 - Removed calling the native window proc from GetMessage (call
13181 now moved to DispatchMessage)
13183 * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
13184 the keydata (Fixes bug #69831)
13187 - (DispatchMessage): Switched to return IntPtr
13188 - Added DllImport for SetFocus
13190 2004-11-24 Ravindra <rkumar@novell.com>
13192 * ThemeWin32Classic.cs: Fixed ListView border and checkbox
13193 background drawing.
13194 * ListViewItem.cs: Fixed various properties, calculations
13195 and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
13196 * ListView.cs: Fixed calculations, BackColor, ForeColor properties
13197 and some internal properties. Fixed MouseDown handler and Paint
13200 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
13202 * MonthCalendar.cs: Add TitleMonth ContextMenu handling
13204 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
13206 * ContainerControl.cs: correct accidental check in of local changes
13208 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
13210 * ThemeWin32Classic.cs:
13211 - Fixed Drawing Last month in grid (sometimes not showing)
13212 * MonthCalendar.cs:
13213 - Fixed title width calculation bug (makeing title small)
13215 2004-11-23 Peter Bartok <pbartok@novell.com>
13218 - Added generation of WM_MOUSEHOVER event
13219 - Added missing assignment of async_method atom
13220 - Fixed WM_ERASEBKGND; now only redraws the exposed area
13222 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
13224 * ThemeWin32Classic.cs:
13225 - Fixed Drawing of today circle when showtodaycircle not set
13226 - fixed drawing of first and last month in the grid (gay dates)
13227 * MonthCalendar.cs:
13228 - Fixed Drawing of today circle
13229 - Fixed drawing of grady dates
13230 - Fixed HitTest for today link when ShowToday set to false
13231 - Fixed DefaultSize to obey ShowToday
13233 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
13235 * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
13236 * System.Windows.Forms/Theme.cs
13237 * MonthCalendar.cs: added for MonthCalendar
13238 * SelectionRange.cs: added for MonthCalendar
13239 * Day.cs: added for MonthCalendar: added for MonthCalendar
13240 * DateRangeEventArgs.cs: added for MonthCalendar
13241 * DateRangeEventHandler.cs: added for MonthCalendar
13243 2004-11-22 Ravindra <rkumar@novell.com>
13245 * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
13248 2004-11-22 Miguel de Icaza <miguel@ximian.com>
13250 * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
13253 * NumericUpDown.cs: Added new implementation.
13254 * UpDownBase.cs: Added new implementation.
13256 * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
13259 * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
13262 * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
13265 2004-11-21 Miguel de Icaza <miguel@ximian.com>
13267 * Timer.cs (Dispose): Should call the base dispose when
13270 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
13272 * ScrollBar.cs: updates thumb position when max, min or increment
13275 2004-11-21 Ravindra <rkumar@novell.com>
13277 * ListView.cs: Implemented item selection, activation and
13278 column header style. Fixed properties to do a redraw, if
13279 required. Added support for MouseHover, DoubleClick, KeyDown
13280 and KeyUp event handling and some minor fixes.
13281 * ListViewItem.cs: Fixed constructor.
13282 * ThemeWin32Classic.cs: Improved drawing for ListView.
13284 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
13286 * ThemeWin32Classic.cs: initial listbox drawing code
13287 * DrawMode.cs: new enumerator
13288 * ListControl.cs: stubbed class
13289 * ListBox.cs: initial implementation
13290 * Theme.cs: new methods definitions
13291 * SelectionMode.cs: new enumerator
13293 2004-11-17 Peter Bartok <pbartok@novell.com>
13295 * XplatUIWin32.cs: Added double-click events to the class style
13296 * Control.cs (WndProc):
13297 - Added handling of click-count to MouseDown/ MouseUp events.
13298 - Added handling of middle and right mouse buttons
13299 - Removed old debug code
13301 2004-11-17 Jackson Harper <jackson@ximian.com>
13303 * XplatUIX11.cs: Use the new Mono.Unix namespace.
13305 2004-11-17 Ravindra <rkumar@novell.com>
13307 * ListView.cs: Added event handling for MouseMove/Up/Down.
13308 * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
13309 * ThemeWin32Classic.cs: We need to clear the graphics context and
13310 draw column header in a proper state.
13313 2004-11-17 Jordi Mas i Hernandez <jordi@ximian.com>
13315 * Menu.cs: fixes signature
13317 2004-11-16 Peter Bartok <pbartok@novell.com>
13319 * XplatUIX11.cs (GetMessage): Implemented generation of
13320 double click mouse messages
13322 2004-11-12 Jordi Mas i Hernandez <jordi@ximian.com>
13324 * Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
13327 2004-11-11 Peter Bartok <pbartok@novell.com>
13329 * HandleData.cs: Added Visible property
13330 * XplatUIX11.cs (IsVisible): Now uses Visible property from
13332 * XplatUIX11.cs: Removed old debug leftovers
13333 * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
13334 * Control.cs (WndProc): Removed old debug leftovers,
13335 streamlined handling of WM_WINDOWPOSCHANGED, removed un-
13336 needed WM_SIZE handling
13338 2004-11-11 Jackson Harper <jackson@ximian.com>
13340 * OwnerDrawPropertyBag.cs:
13341 * TreeViewImageIndexConverter.cs: Initial implementation
13343 2004-11-10 Jackson Harper <jackson@ximian.com>
13345 * ThemeWin32Classic.cs:
13346 * TabControl.cs: instead of moving tabs by the slider pos just
13347 start drawing at the tab that is offset by the slider. This way
13348 scrolling always moves by exactly one tab.
13350 2004-11-10 Jackson Harper <jackson@ximian.com>
13352 * TabControl.cs: You can only scroll left when the slider has
13353 already ben moved right.
13355 2004-11-10 Jackson Harper <jackson@ximian.com>
13357 * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
13360 2004-11-10 Jackson Harper <jackson@ximian.com>
13362 * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
13365 2004-11-09 Jackson Harper <jackson@ximian.com>
13367 * TabControl.cs (CalcXPos): New helper method so we can determine
13368 the proper place to start drawing vertical tabs.
13369 * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
13371 2004-11-09 Jackson Harper <jackson@ximian.com>
13373 * TabControl.cs: Calculate sizing and rects for left aligned tabs.
13374 * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
13375 and Bottom, left and right are illegal values for this and
13376 multiline is enabled when the alignment is set to left or right.
13377 (DrawTab): Each alignment block should draw the text itself now
13378 because Left requires special love. Also add rendering for Left
13381 2004-11-09 Jordi Mas i Hernandez <jordi@ximian.com>
13383 * Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
13384 does not destroy the windows, removes debugging messages
13386 2004-11-09 jba <jba-mono@optusnet.com.au>
13388 * ThemeWin32Classic.cs
13389 (DrawButtonBase): Fix verticle text rect clipping in windows
13390 (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
13391 rendering and incorrect text rect clipping
13392 (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
13393 rendering and incorrect text rect clipping
13395 2004-11-08 Jackson Harper <jackson@ximian.com>
13397 * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
13398 bottom when they are bottom aligned so the bottoms of the tabs get
13400 * TabControl.cs (DropRow): Move rows up instead of down when the
13401 tab control is bottom aligned.
13403 2004-11-08 13:59 pbartok
13406 - Added handling for various window styles
13407 - Added handling for popup windows
13408 - Added SetTopmost handling
13410 2004-11-08 13:55 pbartok
13413 - Added argument to SetTopmost method
13414 - Fixed broken ClientToScreen function
13416 2004-11-08 13:53 pbartok
13418 * XplatUIStructs.cs:
13419 - Added missing WS_EX styles
13421 2004-11-08 13:53 pbartok
13423 * XplatUI.cs, XplatUIDriver.cs:
13424 - Added argument to SetTopmost
13426 2004-11-08 13:52 pbartok
13429 - Added XSetWindowAttributes structure
13430 - Improved XWindowAttributes structure
13431 - Added SetWindowValuemask enum
13432 - Added window creation arguments enum
13433 - Added gravity enum
13434 - Added Motif hints structure
13435 - Added various Motif flags and enums
13436 - Added PropertyMode enum for property functions
13438 2004-11-08 13:50 pbartok
13441 - Fixed arguments for updated SetTopmost method
13443 2004-11-08 13:49 pbartok
13446 - Fixed arguments for updated SetTopmost function
13447 - Fixed usage of PointToClient
13449 2004-11-08 13:44 pbartok
13452 - Added Clipping of children and siblings
13454 2004-11-08 13:41 pbartok
13457 - Removed SetMenuBarWindow call. We do this in Form.cs
13459 2004-11-08 13:40 jackson
13461 * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
13462 scrolling jimmi in the correct location with bottom aligned tabs
13464 2004-11-08 13:36 pbartok
13466 * ContainerControl.cs:
13467 - Implemented BindingContext
13468 - Implemented ParentForm
13470 2004-11-08 12:46 jackson
13472 * TabControl.cs: Put bottom rendered tabs in the right location
13474 2004-11-08 07:15 jordi
13476 * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
13479 2004-11-05 17:30 jackson
13481 * TabControl.cs: When selected tabs are expanded make sure they
13482 don't go beyond the edges of the tab control
13484 2004-11-05 14:57 jackson
13486 * TabControl.cs: Reset show_slider so if the control is resized to
13487 a size where it is no longer needed it's not displayed anymore
13489 2004-11-05 13:16 jackson
13491 * TabControl.cs: Make tab pages non visible when added to the
13494 2004-11-05 12:42 jackson
13496 * TabControl.cs: Implement SizeMode.FillToRight
13498 2004-11-05 12:16 jackson
13500 * Control.cs: Do not call CreateHandle if the handle is already
13503 2004-11-05 11:46 jackson
13505 * TabControl.cs: Remove superflous call to CalcTabRows
13507 2004-11-05 09:07 jackson
13509 * XplatUIX11.cs: Update for Mono.Posix changes
13511 2004-11-05 07:00 ravindra
13513 * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
13516 2004-11-04 22:47 jba
13518 * ThemeWin32Classic.cs:
13519 - Fix Button rendering for FlatStyle = Flat or Popup
13520 - Fix RadioButton and CheckBox rendering when Appearance = Button
13521 (normal and flatstyle).
13522 - Correct outer rectangle color when drawing focus rectangle
13523 - Adjust button bounds to be 1 px smaller when focused
13524 - Make button not draw sunken 3d border when pushed (windows compat)
13525 - Fix CPDrawBorder3D to not make bottom right hand corner rounded
13526 - Offset the text in RadioButton and Checkbox when being rendered as
13528 - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
13530 - Fixed disabled rendering for colored flatstyle radiobuttons (both)
13531 - Fixed disabled text rendering for normally rendered radiobuttons
13533 2004-11-04 10:26 jackson
13535 * TabControl.cs: Recalculate tab rows when resizing
13537 2004-11-04 07:47 jordi
13539 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
13540 collection completion, drawing issues, missing features
13542 2004-11-04 05:03 ravindra
13545 - We need to recalculate the Thumb area when
13546 LargeChange/maximum/minimum values are changed.
13547 - We set the 'pos' in UpdatePos() method to minimum, if it's less
13548 than minimum. This is required to handle the case if large_change is
13549 more than max, and use LargeChange property instead of large_change
13551 - We return max+1 when large_change is more than max, like MS does.
13553 2004-11-04 04:29 ravindra
13555 * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
13556 - Changed default value signatures (prefixed all with ListView).
13557 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
13559 - Fixed calculations for ListViewItem and implemented Clone()
13562 2004-11-04 04:26 ravindra
13564 * Theme.cs, ThemeWin32Classic.cs:
13565 - Changed default ListView values signatures (prefixed all with
13567 - Fixed default size values for VScrollBar and HScrollBar.
13568 - Fixed DrawListViewItem method.
13570 2004-11-04 04:05 ravindra
13572 * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
13574 2004-11-04 04:04 ravindra
13576 * ImageList.cs: Implemented the missing overload for Draw method.
13578 2004-11-03 19:29 jackson
13580 * TabControl.cs: Handle dropping rows on selection properly
13582 2004-11-03 11:59 jackson
13584 * TabControl.cs: remove debug code
13586 2004-11-03 11:52 jackson
13588 * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
13589 the scrolly widgerywoo
13591 2004-11-02 13:52 jackson
13593 * TabControl.cs: Resize the tab pages and tabs when the tab control
13596 2004-11-02 13:40 jackson
13598 * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
13599 selected tab to the bottom
13601 2004-11-02 13:39 jackson
13603 * TabPage.cs: Store the tab pages row
13605 2004-11-02 12:33 jordi
13607 * MenuItem.cs: fixes handle creation
13609 2004-11-02 11:42 jackson
13611 * TabControl.cs: signature fix
13613 2004-11-02 08:56 jackson
13615 * TabControl.cs: Calculate whether the tab is on an edge properly.
13616 Remove top secret debugging code
13618 2004-11-01 19:57 jackson
13620 * TabControl.cs: Add click handling, and proper sizing
13622 2004-11-01 19:47 jackson
13624 * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
13627 2004-11-01 19:39 jackson
13629 * TabPage.cs: add internal property to store the bounds of a tab
13632 2004-10-30 04:23 ravindra
13634 * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
13637 2004-10-30 04:21 ravindra
13639 * ListView.cs, ListViewItem.cs: Added support for scrolling and
13640 fixed calculations.
13642 2004-10-30 03:06 pbartok
13645 - Removed extension of DllImported libs
13647 2004-10-29 09:55 jordi
13649 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
13650 navigation, itemcollection completion, menu fixes
13652 2004-10-27 22:58 pbartok
13655 - Now throws a nice error message when no X display could be opened
13657 2004-10-26 13:51 jordi
13659 * ListView.cs: removes warning
13661 2004-10-26 03:55 ravindra
13663 * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
13664 ThemeWin32Classic.cs: Some formatting for my last checkins.
13666 2004-10-26 03:36 ravindra
13668 * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
13669 control and default values.
13671 2004-10-26 03:35 ravindra
13673 * Theme.cs: Added some default values for ListView control.
13675 2004-10-26 03:33 ravindra
13677 * ToolBar.cs: ToolBar should use the user specified button size, if
13678 there is any. Added a size_specified flag for the same.
13680 2004-10-26 03:33 ravindra
13682 * ColumnHeader.cs: Added some internal members and calculations for
13685 2004-10-26 03:32 ravindra
13687 * ListViewItem.cs: Calculations for ListViewItem.
13689 2004-10-26 03:31 ravindra
13691 * ListView.cs: Added some internal members and calculations for
13694 2004-10-22 13:31 jordi
13696 * MenuAPI.cs: speedup menus drawing
13698 2004-10-22 13:16 jackson
13700 * XplatUIX11.cs: Make sure to update exposed regions when adding an
13703 2004-10-22 11:49 jackson
13707 2004-10-22 11:41 jackson
13709 * Control.cs: Check to see if the window should have its background
13710 repainted by X when drawing.
13712 2004-10-22 11:31 jackson
13714 * XplatUIX11.cs: When invalidating areas only use XClearArea if
13715 clear is true, this way we do not get flicker from X repainting the
13718 2004-10-22 11:28 jackson
13720 * XEventQueue.cs: Queue properly
13722 2004-10-21 09:38 jackson
13724 * XEventQueue.cs: Fix access modifier
13726 2004-10-21 09:36 jackson
13728 * XEventQueue.cs: Don't loose messages
13730 2004-10-21 09:22 jackson
13732 * XEventQueue.cs: Don't loose messages
13734 2004-10-20 04:15 jordi
13736 * BootMode.cs: enum need it by SystemInfo
13738 2004-10-19 21:58 pbartok
13741 - Small sanity check
13743 2004-10-19 21:56 pbartok
13746 - Added private FormParentWindow class which acts as the container
13747 for our form and as the non-client area where menus are drawn
13748 - Added/Moved required tie-ins to Jordi's menus
13749 - Fixed/Implemented the FormStartPosition functionality
13751 2004-10-19 21:52 pbartok
13754 - Removed unneeded locals
13755 - Added code to all size and location properties to understand and
13756 deal with the parent container of Form
13758 2004-10-19 21:33 pbartok
13761 - Fixed to deal with new Form subclasses for menus
13763 2004-10-19 17:48 jackson
13765 * XEventQueue.cs: commit correct version of file
13767 2004-10-19 16:50 jackson
13769 * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
13771 2004-10-19 16:15 jordi
13773 * MenuAPI.cs: MenuBarCalcSize returns the height
13775 2004-10-19 08:31 pbartok
13778 - Added missing call to PreProcessMessage before calling OnXXXKey
13781 2004-10-19 00:04 ravindra
13783 * ToolTip.cs: Fixed constructor.
13785 2004-10-18 09:31 jordi
13787 * MenuAPI.cs: menuitems in menubars do not have shortcuts
13789 2004-10-18 09:26 jordi
13791 * MenuItem.cs: fixes MenuItem class signature
13793 2004-10-18 08:56 jordi
13795 * MenuAPI.cs: prevents windows from showing in the taskbar
13797 2004-10-18 00:28 ravindra
13799 * ToolTip.cs: Suppressed a warning message.
13801 2004-10-18 00:27 ravindra
13803 * Control.cs: Default value of visible property must be true.
13805 2004-10-17 23:19 pbartok
13808 - Complete implementation
13810 2004-10-17 23:19 pbartok
13813 - Added EnableWindow method
13814 - Added SetModal stub
13815 - Added generation of WM_ACTIVATE message (still needs testing)
13816 - Added SetTopMost stub
13817 - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
13819 2004-10-17 23:17 pbartok
13822 - Removed VirtualKeys to XplatUIStructs
13823 - Implemented SetTopMost method
13824 - Implemented EnableWindow method
13825 - Bugfix in ScreenToClient()
13826 - Bugfixes in ClientToScreen()
13828 2004-10-17 22:51 pbartok
13830 * XplatUIStructs.cs:
13831 - Added WS_EX styles to WindowStyles enumeration
13833 2004-10-17 22:50 pbartok
13835 * XplatUI.cs, XplatUIDriver.cs:
13836 - Added method for enabling/disabling windows
13837 - Added method for setting window modality
13838 - Added method for setting topmost window
13840 2004-10-17 22:49 pbartok
13842 * ThemeWin32Classic.cs:
13843 - Added ToolTip drawing code
13845 2004-10-17 22:49 pbartok
13848 - Added ToolTip abstracts
13850 2004-10-17 22:47 pbartok
13853 - Fixed Form.ControlCollection to handle owner relations
13854 - Added Owner/OwnedForms handling
13855 - Implemented Z-Ordering for owned forms
13856 - Removed unneeded private overload of ShowDialog
13857 - Fixed ShowDialog, added the X11 incarnation of modal handling (or
13859 - Fixed Close(), had wrong default
13860 - Added firing of OnLoad event
13861 - Added some commented out debug code for Ownership handling
13863 2004-10-17 22:16 pbartok
13866 - Fixed/implemented flat list of controls
13868 2004-10-17 22:14 pbartok
13871 - Added code to simulate modal dialogs on Win32
13873 2004-10-17 16:11 jordi
13875 * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
13878 2004-10-17 13:39 jordi
13880 * MenuAPI.cs: menu drawing fixes
13882 2004-10-15 09:10 ravindra
13884 * StructFormat.cs: General Enum.
13886 2004-10-15 09:09 ravindra
13888 * SizeGripStyle.cs: Enum for Form.
13890 2004-10-15 09:08 ravindra
13892 * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
13893 in Theme for ListView.
13895 2004-10-15 09:06 ravindra
13897 * ColumnHeader.cs: Flushing some formatting changes.
13899 2004-10-15 09:05 ravindra
13901 * ListViewItem.cs: Implemented GetBounds method and fixed coding
13904 2004-10-15 09:03 ravindra
13906 * ListView.cs: Implemented Paint method and fixed coding style.
13908 2004-10-15 07:34 jordi
13910 * MenuAPI.cs: fix for X11
13912 2004-10-15 07:32 ravindra
13914 * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
13915 - Renamed Paint() method to Draw() for clarity. Also, moved
13916 DrawImage() to OnPaint().
13918 2004-10-15 07:25 ravindra
13920 * CheckBox.cs, RadioButton.cs:
13921 - Removed Redraw (), we get it from ButtonBase.
13922 - Implemented Paint (), to do class specific painting.
13924 2004-10-15 07:16 ravindra
13927 - Redraw () is not virtual now.
13928 - Added an internal virtual method Paint (), so that
13929 derived classes can do their painting on their own.
13930 - Modified OnPaint () to call Paint ().
13932 2004-10-15 06:43 jordi
13934 * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
13935 MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
13937 2004-10-15 00:30 ravindra
13940 - MessageBox on windows does not have min/max buttons.
13941 This change in CreateParams fixes this on Windows. We
13942 still need to implement this windowstyle behavior in
13945 2004-10-14 05:14 ravindra
13948 - Changed Redraw () to do a Refresh () always.
13949 - Fixed the MouseMove event handling when mouse is pressed,
13950 ie drag event handling.
13951 - Replaced the usage of ToolBarButton.Pressed property to
13952 ToolBarButton.pressed internal variable.
13954 2004-10-14 05:10 ravindra
13956 * ToolBarButton.cs:
13957 - Added an internal member 'inside' to handle mouse move
13958 with mouse pressed ie mouse drag event.
13959 - Changed 'Pressed' property to return true only when
13960 'inside' and 'pressed' are both true.
13961 - Some coding style love.
13963 2004-10-14 00:17 ravindra
13965 * Form.cs: Fixed class signature. ShowDialog (Control) is not a
13968 2004-10-14 00:15 ravindra
13970 * ButtonBase.cs: Redraw () related improvements.
13972 2004-10-14 00:14 ravindra
13974 * MessageBox.cs: Moved InitFormSize () out of Paint method and
13975 removed unnecessary calls to Button.Show () method.
13977 2004-10-13 17:50 pbartok
13981 - Removed destroying of window until we solve the problem of X
13982 destroying the window before us on shutdown
13984 2004-10-13 16:32 pbartok
13987 - Now Redraws on MouseUp for FlatStyle Flat and Popup
13989 2004-10-13 14:18 pbartok
13992 - Added code to destroy the X window
13994 2004-10-13 14:18 pbartok
13997 - Added code to destroy a window
13999 2004-10-13 14:12 pbartok
14002 - Added the Redraw on Resize that got dropped in the last rev
14004 2004-10-13 09:06 pbartok
14006 * ThemeWin32Classic.cs:
14007 - Path from John BouAntoun:
14008 * Fix check rendering (centre correctly for normal style, offset
14009 correctly for FlatStyle).
14010 * Fix border color usage (use backcolor) for FlatStyle.Popup
14011 * Use checkbox.Capture instead of checkbox.is_pressed when
14012 rendering flatstyle states.
14014 2004-10-12 21:48 pbartok
14016 * ThemeWin32Classic.cs:
14017 - Removed all occurences of SystemColors and replaced them with the
14018 matching theme color
14020 2004-10-12 21:41 pbartok
14022 * ThemeWin32Classic.cs:
14023 - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
14024 him using the function for flatstyle drawing
14025 - Changed functions to use the new version of CPDrawBorder3D
14027 2004-10-12 21:15 pbartok
14030 - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
14031 match MS documentation. They need to return defined colors if the
14032 passed color matches the configured control color. Thanks to John
14033 BouAntoun for pointing this out.
14035 2004-10-12 20:57 pbartok
14038 - Fix from John BouAntoun: Raise ForeColorChanged event when text
14041 2004-10-12 20:46 pbartok
14044 - Fix from John BouAntoun: Now properly sets the Appearance property
14046 2004-10-12 20:45 pbartok
14048 * ThemeWin32Classic.cs:
14049 - Fixes from John BouAntoun: now handles forecolors and backcolors
14050 for flatstyle rendered controls much better; It also fixes normal
14051 checkbox rendering when pushed or disabled.
14053 2004-10-08 02:50 jordi
14055 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
14058 2004-10-07 08:56 jordi
14060 * ThemeWin32Classic.cs: Removes deletion of cached brushes
14062 2004-10-06 03:59 jordi
14064 * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
14065 XplatUIWin32.cs: removes warnings from compilation
14067 2004-10-05 12:23 jackson
14069 * RadioButton.cs: Fix ctor
14071 2004-10-05 11:10 pbartok
14074 - Partial implementation by Benjamin Dasnois
14076 2004-10-05 10:15 jackson
14078 * ThemeWin32Classic.cs: Improve rendering of the radio button patch
14081 2004-10-05 03:07 ravindra
14084 - Removed a private method, Draw ().
14085 - Fixed the ButtonDropDown event handling.
14086 - Fixed MouseMove event handling.
14088 2004-10-05 03:04 ravindra
14090 * ThemeWin32Classic.cs:
14091 - Added DrawListView method and ListViewDefaultSize property.
14092 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
14093 - Changed DOS style CRLF to Unix format (dos2unix).
14095 2004-10-05 03:03 ravindra
14098 - Added DrawListView method and ListViewDefaultSize property.
14100 2004-10-05 02:42 ravindra
14102 * ToolBarButton.cs: Added an internal member dd_pressed to handle
14103 clicks on DropDown arrow.
14105 2004-10-04 22:56 jackson
14107 * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
14108 ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
14109 Control handle the buffers, derived classes should not have to
14110 CreateBuffers themselves.
14112 2004-10-04 21:20 jackson
14114 * StatusBar.cs: The control handles resizing the buffers now.
14116 2004-10-04 21:18 jackson
14118 * Control.cs: When resizing the buffers should be invalidated. This
14119 should be handled in Control not in derived classes.
14121 2004-10-04 14:45 jackson
14125 2004-10-04 02:14 pbartok
14127 * LeftRightAlignment.cs:
14130 2004-10-04 01:09 jordi
14132 * ThemeWin32Classic.cs: fixes right button position causing right
14133 button not showing on horizontal scrollbars
14135 2004-10-02 13:12 pbartok
14138 - Simplified the Invalidate method by using an X call instead of
14139 generating the expose ourselves
14140 - Added an expose when the window background is changed
14141 - Implemented ClientToScreen method
14143 2004-10-02 13:08 pbartok
14146 - Added Win32EnableWindow method (test for implementing modal
14148 - Added ClientToScreen method and imports
14150 2004-10-02 13:07 pbartok
14152 * XplatUI.cs, XplatUIDriver.cs:
14153 - Added ClientToScreen coordinate translation method
14155 2004-10-02 13:06 pbartok
14157 * KeyPressEventArgs.cs:
14158 - Fixed access level for constructor
14160 2004-10-02 13:06 pbartok
14163 - Changed access level for the window_collection hash table
14165 2004-10-02 13:05 pbartok
14168 - Added KeyPreview property
14169 - Added Menu property (still incomplete, pending Jordi's menu work)
14170 - Implemented ProcessCmdKey
14171 - Implemented ProcessDialogKey
14172 - Implemented ProcessKeyPreview
14174 2004-10-02 13:02 pbartok
14177 - Added private method to get the Control object from the window
14179 - Implemented ContextMenu property
14180 - Implemented PointToScreen
14181 - Implemented PreProcessMessage
14182 - Implemented IsInputChar
14183 - Implemented IsInputKey
14184 - Implemented ProcessCmdKey
14185 - Completed ProcessKeyEventArgs
14186 - Fixed message loop to call the proper chain of functions on key
14188 - Implemented ProcessDialogChar
14189 - Implemented ProcessDialogKey
14190 - Implemented ProcessKeyMessage
14191 - Implemented ProcessKeyPreview
14192 - Added RaiseDragEvent stub (MS internal method)
14193 - Added RaiseKeyEvent stub (MS internal method)
14194 - Added RaiseMouseEvent stub (MS Internal method)
14195 - Added RaisePaintEvent stub (MS Internal method)
14196 - Added ResetMouseEventArgs stub (MS Internal method)
14197 - Implemented RtlTranslateAlignment
14198 - Implemented RtlTranslateContent
14199 - Implemented RtlTranslateHorizontal
14200 - Implemented RtlTranslateLeftRight
14201 - Added generation of KeyPress event
14203 2004-10-02 05:57 ravindra
14205 * ListViewItem.cs: Added attributes.
14207 2004-10-02 05:32 ravindra
14209 * ListView.cs: Added attributes.
14211 2004-10-01 11:53 jackson
14213 * Form.cs: Implement the Close method so work on MessageBox can
14216 2004-09-30 14:06 pbartok
14221 2004-09-30 11:34 jackson
14223 * RadioButton.cs: Fix typo. Patch by John BouAntoun.
14225 2004-09-30 07:26 ravindra
14227 * ListViewItemConverter.cs: Converter for ListViewItem.
14229 2004-09-30 07:26 ravindra
14231 * SortOrder.cs: Enum for ListView control.
14233 2004-09-30 07:25 ravindra
14235 * ColumnHeader.cs: Supporting class for ListView control.
14237 2004-09-30 07:24 ravindra
14239 * ListView.cs, ListViewItem.cs: Initial implementation.
14241 2004-09-30 07:20 ravindra
14243 * ItemActivation.cs: Enum for ListView Control.
14245 2004-09-29 20:29 pbartok
14248 - Added lookup of pixel value for background color; tries to get a
14249 color 'close' to the requested color, it avoids having to create a
14250 colormap. Depending on the display this could mean the used color
14251 is slightly off the desired color. Might have to change it to a more
14252 resource intensive colormap approach, but it will work as a
14253 workaround to avoid red screens.
14255 2004-09-29 14:27 jackson
14257 * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
14259 2004-09-28 12:44 pbartok
14261 * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
14262 HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
14263 ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
14264 Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
14265 TrackBar.cs, VScrollBar.cs:
14266 - Streamlined Theme interfaces:
14267 * Each DrawXXX method for a control now is passed the object for
14268 the control to be drawn in order to allow accessing any state the
14269 theme might require
14271 * ControlPaint methods for the theme now have a CP prefix to avoid
14272 name clashes with the Draw methods for controls
14274 * Every control now retrieves it's DefaultSize from the current
14277 2004-09-28 12:17 jackson
14279 * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
14282 2004-09-24 14:57 jackson
14284 * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
14285 Gives us a nice little performance boost.
14287 2004-09-24 12:02 jackson
14289 * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
14290 TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
14291 Control and supporting classes. Initial checkin
14293 2004-09-23 13:08 jackson
14295 * Form.cs: Temp build fixage
14297 2004-09-23 01:39 ravindra
14299 * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
14300 ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
14301 ItemDragEventArgs.cs, ItemDragEventHandler.cs,
14302 LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
14303 EventHandlers needed by ListView Control.
14305 2004-09-22 14:12 pbartok
14307 * ScrollableControl.cs:
14308 - Implemented DockPadding property
14309 - Implemented AutoScroll property
14310 - Implemented AutoScrollMargin property
14311 - Implemented AutoScrollMinSize property
14312 - Implemented AutoScrollPosition property
14313 - Implemented DisplayRectangle property (still incomplete)
14314 - Implemented CreateParams property
14315 - Implemented HScroll property
14316 - Implemented VScroll property
14317 - Implemented OnVisibleChanged property
14319 2004-09-22 14:09 pbartok
14322 - Added Form.ControllCollection class
14323 - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
14324 RemoveOwnedForm (still incomplete, missing on-top and common
14325 minimize/maximize behaviour)
14326 - Added StartPosition property (still incomplete, does not use when
14328 - Added ShowDialog() methods (still incomplete, missing forcing the
14331 2004-09-22 14:05 pbartok
14334 - Added message loop for modal dialogs
14336 2004-09-22 14:02 pbartok
14339 - Fixed wrong types for events
14341 2004-09-22 14:00 pbartok
14343 * Shortcut.cs, FormWindowState.cs:
14344 - Fixed wrong values
14346 2004-09-22 12:01 jackson
14348 * Control.cs: Text is never null
14350 2004-09-20 22:14 pbartok
14353 - Fixed accessibility level for Idle handler
14355 2004-09-20 18:54 jackson
14357 * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
14358 XplatUIX11.cs: New message loop that uses poll so we don't get a
14361 2004-09-17 10:43 pbartok
14364 - Fixed behaviour of arrow buttons. Now properly behaves like
14365 Buttons (and like Microsoft's scrollbar arrow buttons)
14367 2004-09-17 10:14 pbartok
14370 - Added missing release of keyboard/mouse capture
14372 2004-09-17 06:18 jordi
14374 * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
14375 Theme.cs: Very early menu support
14377 2004-09-16 17:45 pbartok
14380 - Fixed sending a window to the front
14381 - Added overload for SetWindowPos to avoid casting
14383 2004-09-16 17:44 pbartok
14386 - Added SendToBack and BringToFront methods
14388 2004-09-16 07:00 ravindra
14390 * Copyright: Added Novell URL.
14392 2004-09-16 07:00 ravindra
14394 * ToolBar.cs: Invalidate should be done before redrawing.
14396 2004-09-15 21:19 ravindra
14398 * ColumnHeaderStyle.cs: Enum for ListView Control.
14400 2004-09-15 21:18 ravindra
14402 * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
14405 2004-09-13 18:26 jackson
14407 * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
14410 2004-09-13 18:13 jackson
14412 * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
14413 a second thread and post messages into the main threads message
14414 queue. This makes timing much more consistent. Both win2K and XP
14415 have a minimum timer value of 15 milliseconds, so we now do this
14418 2004-09-13 15:18 pbartok
14420 * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
14422 - Added Z-Ordering methods
14424 2004-09-13 10:56 pbartok
14427 - Fixed #region names
14428 - Moved properties and methods into their proper #regions
14430 2004-09-13 10:51 pbartok
14433 - Added Accept and CancelButton properties
14434 - Added ProcessDialogKey() method
14436 2004-09-13 08:18 pbartok
14438 * IWindowTarget.cs:
14441 2004-09-10 21:50 pbartok
14444 - Added DoDragDrop() [incomplete]
14445 - Properly implemented 'Visible' handling
14446 - Added SetVisibleCore()
14447 - Implemented FindChildAtPoint()
14448 - Implemented GetContainerControl()
14449 - Implemented Hide()
14451 2004-09-10 19:28 pbartok
14454 - Moved methods into their appropriate #regions
14455 - Reordered methods within regions alphabetically
14457 2004-09-10 18:57 pbartok
14459 * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
14460 - Added method to retrieve text from window
14462 2004-09-10 18:56 pbartok
14465 - Moved some internal functions into the internal region
14466 - Implemented FontHeight
14467 - Implemented RenderRightToLeft
14468 - Implemented ResizeRedraw
14469 - Implemented ShowFocusCues
14470 - Implemented ShowKeyboardCues
14471 - Implemented FromChildHandle
14472 - Implemented FromHandle
14473 - Implemented IsMnemonic
14474 - Implemented ReflectMessage
14475 - All public and protected Static Methods are now complete
14477 2004-09-10 16:54 pbartok
14480 - Implemented remaining missing public instance properties
14481 - Alphabetized some out of order properties
14483 2004-09-10 05:51 ravindra
14485 * PictureBox.cs: Added a check for null image.
14487 2004-09-10 00:59 jordi
14489 * GroupBox.cs: remove cvs tag
14491 2004-09-09 05:25 ravindra
14493 * ToolBar.cs: Make redraw accessible from ToolBarButton.
14495 2004-09-09 05:23 ravindra
14497 * ToolBarButton.cs: Changes in ToolBarButton need to make it's
14500 2004-09-09 02:28 pbartok
14502 * ThemeWin32Classic.cs:
14503 - Improve disabled string look
14505 2004-09-09 01:15 jordi
14507 * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
14510 2004-09-08 23:56 ravindra
14512 * ItemBoundsPortion.cs: It's enum, not a class!
14514 2004-09-08 23:47 ravindra
14516 * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
14519 2004-09-08 21:13 ravindra
14521 * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
14524 2004-09-08 21:03 ravindra
14526 * ThemeWin32Classic.cs: PictureBox would not draw a null image to
14529 2004-09-08 21:01 ravindra
14531 * ScrollableControl.cs: Removed unreachable code.
14533 2004-09-08 06:45 jordi
14535 * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
14537 2004-09-08 01:00 jackson
14539 * XplatUIX11.cs: Only run the timers when updating the message
14540 queue. This effectively gives X messages a higher priority then
14541 timer messages. Timers still need love though
14543 2004-09-07 14:01 jackson
14545 * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
14546 this for us and the handle is no longer valid.
14548 2004-09-07 13:59 jackson
14550 * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
14551 loop that manages to not crash. TODO: Add poll and cleanup timers
14553 2004-09-07 11:12 jordi
14555 * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
14557 2004-09-07 03:40 jordi
14559 * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
14560 fixes, methods, multiple links
14562 2004-09-06 06:55 jordi
14564 * Control.cs: Caches ClientRectangle rectangle value
14566 2004-09-05 02:03 jordi
14568 * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
14571 2004-09-04 11:10 jordi
14573 * Label.cs: Refresh when font changed
14575 2004-09-02 16:24 pbartok
14578 - Added sanity check to creation of double buffer bitmap
14580 2004-09-02 16:24 pbartok
14583 - Fixed selection of text color
14584 - Fixed handling of resize event; now properly recreates double
14586 - Added missing assignment of TextAlignment
14587 - Added proper default for TextAlignment
14589 2004-09-02 14:26 pbartok
14592 - Added missing RadioButton.RadioButtonAccessibleObject class
14594 2004-09-02 14:26 pbartok
14597 - Added missing Control.ControlAccessibleObject class
14598 - Started to implement Select()ion mechanisms, still very incomplete
14600 2004-09-02 14:25 pbartok
14602 * AccessibleObject.cs:
14603 - Added missing methods
14605 2004-09-02 14:23 pbartok
14607 * AccessibleNavigation.cs, AccessibleSelection.cs:
14610 2004-09-02 10:32 jordi
14612 * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
14613 pool for pens, brushes, and hatchbruses
14615 2004-09-01 15:30 jackson
14617 * StatusBar.cs: Fix typo
14619 2004-09-01 14:44 pbartok
14624 2004-09-01 14:39 pbartok
14626 * Button.cs, RadioButton.cs:
14627 - Functional initial check-in
14629 2004-09-01 14:01 pbartok
14632 - Added missing default
14633 - Added missing region mark
14635 2004-09-01 09:10 jordi
14637 * Label.cs: fixes method signatures, new methods, events, fixes
14640 2004-09-01 07:19 jordi
14642 * Control.cs: Init string variables with an empty object
14644 2004-09-01 04:20 jordi
14646 * Control.cs: fires OnFontChanged event
14648 2004-08-31 20:07 pbartok
14651 - Enabled display of strings
14653 2004-08-31 20:05 pbartok
14656 - Added (partial) implementation of DialogResult; rest needs to be
14657 implemented when the modal loop code is done
14659 2004-08-31 19:55 pbartok
14662 - Fixed to match the removal of the needs_redraw concept
14664 2004-08-31 19:55 pbartok
14667 - Removed the rather odd split between 'needs redraw' and redrawing
14668 - Now handles the events that require regeneration (ambient
14669 properties and size)
14671 2004-08-31 19:41 pbartok
14674 - Added firing of BackColorChanged event
14675 - Added TopLevelControl property
14676 - Fixed handling of WM_ERASEBKGRND message
14678 2004-08-31 12:49 pbartok
14684 2004-08-31 12:48 pbartok
14687 - Finished (famous last words)
14689 2004-08-31 04:35 jordi
14691 * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
14692 scrolling bugs, adds new methods
14694 2004-08-30 14:42 pbartok
14697 - Implemented CheckBox drawing code
14699 2004-08-30 14:42 pbartok
14702 - Made Redraw() and CheckRedraw() virtual
14703 - Improved mouse up/down/move logic to properly track buttons
14705 2004-08-30 09:44 pbartok
14708 - Updated to fix broken build. Not complete yet.
14710 2004-08-30 09:28 pbartok
14715 2004-08-30 09:17 pbartok
14720 2004-08-27 16:12 ravindra
14722 * ToolBarButton.cs: Added TypeConverter attribute.
14724 2004-08-27 16:07 ravindra
14726 * ImageIndexConverter.cs: Implemented.
14728 2004-08-27 14:17 pbartok
14731 - Removed unneeded stack vars
14732 - First attempt to fix sizing issues when layout is suspended
14734 2004-08-25 15:35 jordi
14736 * ScrollBar.cs: more fixes to scrollbar
14738 2004-08-25 14:04 ravindra
14740 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
14741 Added the missing divider code and grip for ToolBar Control.
14743 2004-08-25 13:20 pbartok
14746 - Control now properly passes the ambient background color to child
14749 2004-08-25 13:20 jordi
14751 * ScrollBar.cs: small bug fix regarding bar position
14753 2004-08-25 12:33 pbartok
14756 - Now only calls SetTimer or KillTimer if the enabled state has
14759 2004-08-25 12:33 pbartok
14762 - Fixed timer handling, now seems to work
14763 - Improved error message for window creation
14765 2004-08-25 12:32 pbartok
14768 - Fixed generation of MouseUp message
14770 2004-08-25 12:29 jordi
14772 * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
14773 and fixes for progressbar
14775 2004-08-24 18:43 ravindra
14777 * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
14778 in ToolBar control.
14780 2004-08-24 17:15 pbartok
14784 - Added missing events
14787 2004-08-24 17:14 pbartok
14789 * StatusBar.cs, PictureBox.cs:
14790 - Now uses Control's CreateParams
14792 2004-08-24 16:36 pbartok
14795 - Fixed background color handling
14796 - Fixed sending of enter/leave events on a grab
14798 2004-08-24 16:35 pbartok
14801 - Refined definitions for CrossingEvent
14803 2004-08-24 12:37 jordi
14805 * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
14806 formmating, methods signature, and adds missing events
14808 2004-08-24 12:24 jordi
14810 * Control.cs: fire OnEnabledChanged event
14812 2004-08-24 11:17 pbartok
14815 - Implemented SetTimer() and KillTimer()
14817 2004-08-24 11:16 pbartok
14820 - Now uses Remove instead of Add to kill the timer
14822 2004-08-24 10:16 jackson
14824 * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
14825 picture boxes in the theme now. Draw picture box borders and obey
14828 2004-08-24 05:49 jackson
14830 * Timer.cs: Remove top secret debugging code
14832 2004-08-24 05:34 jackson
14834 * PictureBox.cs: Temp hack to make picture boxes draw their full
14837 2004-08-24 05:29 jackson
14839 * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
14840 XplatUIX11.cs: Move timers to the driver level. On X they are
14841 queued by the driver and checked on idle.
14843 2004-08-24 01:07 jackson
14845 * XplatUIX11.cs: Use a queue for async messages instead of passing
14846 them as ClientMessages since that was totally broken. Also simply
14847 check for events and return an idle message if none are found. This
14848 gives us an idle handler, and prevents deadlocking when no messages
14851 2004-08-23 18:19 ravindra
14853 * XplatUIWin32.cs: Removed the unwanted destructor.
14855 2004-08-23 17:27 pbartok
14858 - Finishing touches. Works now, just needs some optimizations.
14860 2004-08-23 16:53 jordi
14862 * ScrollBar.cs: small fix
14864 2004-08-23 16:45 pbartok
14867 - Removed debug output
14870 2004-08-23 16:43 jordi
14872 * ScrollBar.cs: [no log message]
14874 2004-08-23 16:10 pbartok
14877 - Fixed handling of WM_CLOSE message
14878 - Removed debug output
14880 2004-08-23 16:09 pbartok
14883 - Added handling of Idle event
14884 - Added handling of form closing
14885 - Fixed reporting of MessageLoop property
14886 - Removed some unneeded code, should provide a bit of a speedup
14888 2004-08-23 15:22 pbartok
14891 - Added InitLayout() method
14892 - Added code to properly perform layout when Anchor or Dock property
14894 - Changed 'interpretation' of ResumeLayout. MS seems to have a
14895 LAMESPEC, tried to do it in a way that makes sense
14897 2004-08-23 14:10 jordi
14899 * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
14900 properties and methods
14902 2004-08-23 13:55 pbartok
14905 - Properly fixed Jordi's last fix
14906 - Now uses Cursor's Position property instead of calling XplatUI
14909 2004-08-23 13:44 jordi
14911 * PaintEventHandler.cs: Adding missing attribute
14913 2004-08-23 13:39 pbartok
14916 - Implemented Position property
14918 2004-08-23 13:39 pbartok
14920 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
14921 - Added method to move mouse cursor
14923 2004-08-23 13:39 pbartok
14926 - Fixed setting of background color
14927 - Added method to move mouse cursor
14929 2004-08-23 13:16 jordi
14931 * Control.cs: avoids null exception
14933 2004-08-22 17:46 jackson
14935 * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
14938 2004-08-22 17:40 jackson
14940 * XplatUIX11.cs: Add some missing locks
14942 2004-08-22 15:10 pbartok
14944 * Control.cs, Form.cs:
14945 - Removed OverlappedWindow style from Control, instead it's default
14947 - Made form windows OverlappedWindow by default
14949 2004-08-22 13:34 jackson
14951 * ScrollBar.cs: Update the position through the Value property so
14952 the OnValueChanged event is raised.
14954 2004-08-22 12:04 pbartok
14957 - Added Cursor.cs and UserControl.cs
14959 2004-08-22 12:03 pbartok
14962 - Started implementation, not usable yet
14964 2004-08-22 12:00 pbartok
14967 - Implemented UserControl (complete)
14969 2004-08-21 19:20 ravindra
14971 * ToolBar.cs: Correcting the formatting mess of VS.NET.
14973 2004-08-21 18:49 ravindra
14975 * ToolBar.cs: Probably this completes the missing attributes in
14978 2004-08-21 18:03 ravindra
14980 * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
14981 Fixed toolbar control signatures.
14983 2004-08-21 16:32 pbartok
14988 2004-08-21 16:30 pbartok
14993 2004-08-21 16:19 pbartok
14995 * Control.cs, Label.cs:
14998 2004-08-21 15:57 pbartok
15001 - Added loads of debug output for development
15002 - Fixed typo in method name
15004 2004-08-21 15:52 pbartok
15006 * ToolBarButtonClickEventArgs.cs:
15007 - Added missing base class
15009 2004-08-21 14:53 pbartok
15012 - Updated to match new GrabWindow signature
15014 2004-08-21 14:51 pbartok
15016 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
15017 - Added method to get default display size
15019 2004-08-21 14:23 pbartok
15021 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
15022 - Added method to query current grab state
15023 - Added argument to allow confining a grab to a window
15025 2004-08-21 14:22 pbartok
15028 - Added [Flags] attribute so that modifiers can be used in bitwise
15031 2004-08-21 14:21 pbartok
15033 * TrackBar.cs, ScrollBar.cs:
15034 - Replaced direct XplatUI calls with their Control counterpart
15036 2004-08-21 13:32 pbartok
15039 - Implemented Created property
15041 2004-08-21 13:28 pbartok
15044 - Implemented ContainsFocus
15046 2004-08-21 13:26 pbartok
15049 - Implemented CausesValidation
15051 2004-08-21 13:21 pbartok
15054 - Implemented CanFocus
15055 - Implemented CanSelect
15056 - Implemented Capture
15058 2004-08-21 12:35 pbartok
15061 - Fixed bug with Async message handling
15062 - Implemented getting the ModifierKeys
15064 2004-08-21 12:32 jackson
15066 * AsyncMethodResult.cs: Make sure we have the mutex before we
15067 release it. Fixes BeginInvoke on windows
15069 2004-08-21 11:31 pbartok
15071 * XplatUIWin32.cs, XplatUIX11.cs:
15072 - Drivers now return proper mouse state
15074 2004-08-21 10:54 jackson
15076 * Control.cs: Implement EndInvoke
15078 2004-08-21 10:48 jackson
15080 * Timer.cs: Remove unneeded finalizer
15082 2004-08-20 19:52 ravindra
15084 * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
15085 in mouse event handling in the ToolBar control.
15087 2004-08-20 19:50 ravindra
15089 * ImageList.cs: Changed draw method to use the arguments passed in
15092 2004-08-20 18:58 pbartok
15094 * XplatUIStructs.cs:
15095 - Added private message for async communication
15097 2004-08-20 17:38 ravindra
15099 * Control.cs: Made RightToLeft property virtual and removed a
15102 2004-08-20 14:39 jordi
15104 * ThemeGtk.cs: use style_attach
15106 2004-08-20 14:39 pbartok
15109 - Added jackson's Async code from X11 to Win32
15111 2004-08-20 14:09 pbartok
15114 - Added all new files
15116 2004-08-20 14:09 pbartok
15119 - Added call to set window background color
15121 2004-08-20 14:03 pbartok
15123 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
15124 - Added method for setting the window background
15126 2004-08-20 14:02 pbartok
15129 - Added method for setting the background color
15130 - Added handling for erasing the window background
15132 2004-08-20 13:45 jordi
15134 * TrackBar.cs: fixes timer, new properties and methods
15136 2004-08-20 13:34 jackson
15138 * ScrollBar.cs: Use the SWF timer so callbacks are run in the
15141 2004-08-20 13:22 jackson
15143 * Timer.cs: Timer Tick events are now handed through Controls Async
15144 mechanism so the callbacks are executed in the same thread as X
15146 2004-08-20 13:19 jackson
15148 * XplatUIDriver.cs: Expose functionality to send async messages
15151 2004-08-20 13:18 jackson
15153 * Control.cs: Implement Begininvoke
15155 2004-08-20 13:14 jackson
15157 * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
15158 messages through the driver
15160 2004-08-20 13:12 jackson
15162 * XplatUIX11.cs: Lock before all X operations. Also added Async
15163 method functionality through XSendEvent
15165 2004-08-20 13:11 jackson
15167 * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
15168 This will screw up on 64 bit systems)
15170 2004-08-20 13:10 jackson
15172 * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
15173 Async messages through X/Win32
15175 2004-08-19 19:39 pbartok
15178 - Updated code to match new HandleData.DeviceContext type
15180 2004-08-19 19:38 pbartok
15183 - Made DeviceContext a generic object to allow usage from various
15185 - Added support for queueing Windows messages
15187 2004-08-19 19:37 pbartok
15190 - Added generation of MouseEnter, MouseLeave and MouseHover events
15191 - Added cleanup on EndPaint
15193 2004-08-19 19:17 pbartok
15196 - Added handling of WM_MOUSEHOVER
15197 - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
15200 2004-08-19 18:55 jordi
15202 * ThemeGtk.cs: fixes button order
15204 2004-08-19 18:12 jordi
15206 * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
15208 2004-08-19 17:09 pbartok
15211 - Added Right property
15212 - Added RightToLeft property
15214 2004-08-19 16:27 jordi
15216 * ThemeGtk.cs: experimental GTK theme support
15218 2004-08-19 16:26 jordi
15220 * ITheme.cs, Theme.cs: move themes from an interface to a class
15222 2004-08-19 16:25 jordi
15224 * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
15227 2004-08-19 16:04 pbartok
15230 - Added colormap basics
15231 - Added a way to re-initialize with a different display handle
15232 - Fixed setting of the window background color
15233 - Added various X11 imports related to colors and colormaps
15235 2004-08-19 15:51 pbartok
15238 - Removed packing hints (Paolo suggested this a while back)
15239 - fixed colormap type
15240 - Added default Atom types
15241 - Added Screen and color structs and enums
15243 2004-08-19 15:39 pbartok
15246 - Added missing Draw() method
15247 - Added missing RecreateHandle event
15249 2004-08-19 15:30 pbartok
15252 - Added handling of WM_CLOSE
15254 2004-08-18 13:16 jordi
15256 * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
15259 2004-08-18 09:56 jordi
15261 * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
15263 2004-08-17 15:31 ravindra
15265 * SWF.csproj: Updated project.
15267 2004-08-17 15:25 pbartok
15270 - Drawing improvement; don't call UpdateBounds if we are not visible
15271 (or have been minimized)
15273 2004-08-17 15:24 pbartok
15276 - Finished IsVisible
15277 - Added Win32GetWindowPlacement
15279 2004-08-17 15:08 jackson
15281 * Panel.cs: Initial checkin of the Panel
15283 2004-08-17 14:25 pbartok
15286 - Fixed broken handling of default window sizes
15288 2004-08-17 13:29 jackson
15290 * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
15291 has a large startup time.
15293 2004-08-17 10:25 jackson
15295 * HandleData.cs: union areas properly
15297 2004-08-17 10:12 jackson
15299 * HandleData.cs: union areas properly
15301 2004-08-16 20:00 ravindra
15303 * ToolBar.cs, ToolBarButton.cs: Added attributes.
15305 2004-08-16 18:48 ravindra
15307 * ToolBar.cs: Added attributes.
15309 2004-08-16 17:17 ravindra
15311 * SWF.csproj: Updated project.
15313 2004-08-16 17:16 jackson
15315 * XplatUIX11.cs: Check for more expose events before sending a
15316 WM_PAINT so they can all be grouped together. This makes dragging a
15317 window across another window redraw in a sane way.
15319 2004-08-16 15:47 pbartok
15322 - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
15323 support OnMouseEnter/Leave()
15324 - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
15327 2004-08-16 15:46 pbartok
15329 * XplatUIStructs.cs, XplatUIX11.cs:
15330 - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
15331 OnMouseEnter/Leave()
15333 2004-08-16 15:34 jackson
15335 * XplatUIX11.cs: Group multiple expose events in HandleData, make
15336 sure messages get the message field set to WM_NULL if they are not
15339 2004-08-16 15:24 jackson
15341 * HandleData.cs: HandleData is used for storing message information
15344 2004-08-15 17:23 ravindra
15346 * ColorDepth.cs: Added attribute.
15348 2004-08-15 17:23 ravindra
15350 * SWF.csproj: Updated project for ToolBar Control.
15352 2004-08-15 17:20 ravindra
15354 * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
15355 control and also dos2unix format.
15357 2004-08-15 17:13 ravindra
15359 * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
15360 ToolBarButtonClickEventArgs.cs,
15361 ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
15362 ToolBarTextAlign.cs: First Implementation of ToolBar control.
15364 2004-08-15 15:31 pbartok
15367 - First (mostly) working version
15369 2004-08-13 16:15 pbartok
15372 - Fixed Anchor default
15374 2004-08-13 15:43 pbartok
15377 - Changed GetCursorPos signature
15379 2004-08-13 15:42 pbartok
15381 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
15382 - Changed signature for GetCursorPos
15384 2004-08-13 15:25 pbartok
15388 - Fixed resizing/exposure handling
15390 2004-08-13 15:22 jordi
15392 * ThemeWin32Classic.cs: removes redundant code and fixes issues
15395 2004-08-13 14:55 jordi
15397 * TrackBar.cs: change from wndproc to events
15399 2004-08-13 13:00 jordi
15401 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
15402 XplatUIX11.cs: implements PointToClient (ScreenToClient)
15404 2004-08-13 12:53 pbartok
15407 - Changed GetWindowPos to also provide client area size
15408 - Fixed broken prototypes for several win32 functions
15410 2004-08-13 12:53 pbartok
15412 * XplatUI.cs, XplatUIDriver.cs:
15413 - Changed GetWindowPos to also provide client area size
15415 2004-08-13 12:52 pbartok
15418 - Added generation of WM_POSCHANGED
15419 - Changed GetWindowPos to also provide client area size
15421 2004-08-13 12:52 pbartok
15424 - Added Dispose() and destructor
15425 - Fixed resizing and bounds calculation
15427 - Added memory savings for invisible windows
15429 2004-08-13 12:46 jordi
15431 * TrackBar.cs: adds timer and grap window
15433 2004-08-13 10:25 jackson
15435 * Timer.cs: SWF Timer
15437 2004-08-12 16:59 pbartok
15439 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
15440 - Implemented method to get current mouse position
15442 2004-08-12 14:29 jordi
15444 * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
15445 enhancement, fix mouse problems, highli thumb, etc
15447 2004-08-12 13:31 pbartok
15450 - Fixed Anchoring bugs
15452 2004-08-12 13:01 jackson
15454 * StatusBar.cs: Don't forget things
15456 2004-08-12 12:54 jackson
15458 * ThemeWin32Classic.cs: Handle owner draw status bars
15460 2004-08-12 12:54 jackson
15462 * StatusBar.cs: Implement missing properties, events, and methods.
15463 Handle mouse clicking
15465 2004-08-12 10:19 jackson
15467 * StatusBarPanelClickEventArgs.cs,
15468 StatusBarPanelClickEventHandler.cs: Classes for handling status
15469 bar panel click events
15471 2004-08-12 10:10 jackson
15473 * Control.cs: Add missing properties
15475 2004-08-12 09:46 pbartok
15477 * BindingsManagerBase.cs:
15478 - Name changed to BindingManagerBase.cs
15480 2004-08-12 09:25 jordi
15482 * ScrollableControl.cs: calls ctrlbase instead of exeception
15484 2004-08-11 16:28 pbartok
15486 * InputLanguageChangingEventArgs.cs:
15487 - Never check in before compiling. Fixes the last check-in
15489 2004-08-11 16:26 pbartok
15491 * InputLanguageChangingEventArgs.cs:
15492 - More signature fixes
15494 2004-08-11 16:20 pbartok
15496 * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
15497 Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
15498 ImageListStreamer.cs, InputLanguage.cs,
15499 InputLanguageChangedEventArgs.cs,
15500 InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
15501 LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
15502 ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
15503 XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
15506 2004-08-11 16:16 pbartok
15510 - Added .Net 1.1 method
15512 2004-08-11 15:25 pbartok
15515 - Fixed BindingManagerBase.cs filename
15517 2004-08-11 15:22 pbartok
15519 * BindingManagerBase.cs:
15520 - Was checked in with wrong filename
15522 2004-08-11 14:50 pbartok
15527 2004-08-11 13:41 jordi
15529 * XplatUIWin32.cs: Fixes ClientRect
15531 2004-08-11 13:19 pbartok
15533 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
15535 - We had SetWindowPos and MoveWindow to set window positions and
15536 size, removed MoveWindow. We have GetWindowPos, so it made sense to
15537 keep SetWindowPos as matching counterpart
15538 - Added some X11 sanity checking
15540 2004-08-11 12:59 pbartok
15543 - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
15544 (It seems that SetBounds is just a front for SetBoundsCore and
15545 SetBoundsCore updates the underlying window system and
15546 UpdateBounds is responsible for updating the variables associated
15547 with the Control and sending the events)
15548 - Major cleanup of Size handling; we now have two sizes, client_size
15549 and bounds. Bounds defines the window with decorations, client_size
15552 2004-08-11 12:55 pbartok
15554 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
15555 - Added method to calculate difference between decorated window and
15558 2004-08-11 12:54 pbartok
15561 - Forcing redraw on resize
15563 2004-08-11 11:43 pbartok
15566 - Removed disposing of the actual images when the list is disposed
15568 2004-08-11 09:13 pbartok
15571 - Now properly reparents windows
15573 2004-08-11 08:37 pbartok
15578 2004-08-11 07:47 pbartok
15581 - Rewrote the collection stuff. Might not be as fast now, not
15582 keeping the number of children around and accessible directly, but
15583 it's more straightforward
15585 2004-08-11 07:44 pbartok
15587 * AccessibleObject.cs:
15588 - Fixed to match ControlCollection rewrite
15590 2004-08-11 07:43 pbartok
15593 - Added missing creation of the collection list
15595 2004-08-10 20:08 jackson
15597 * StatusBar.cs: Get the paint message from WndProc
15599 2004-08-10 19:31 jackson
15601 * ThemeWin32Classic.cs: Create Brushes as little as possible
15603 2004-08-10 19:20 jackson
15605 * UICues.cs: Add Flags attribute
15607 2004-08-10 19:19 jackson
15609 * StatusBarPanel.cs: Signature cleanup
15611 2004-08-10 19:10 jackson
15613 * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
15614 Initial implementation of status bar item drawing
15616 2004-08-10 17:27 jordi
15618 * TrackBar.cs: add missing methods, properties, and restructure to
15621 2004-08-10 16:24 jackson
15623 * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
15624 ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
15627 2004-08-10 13:21 jordi
15629 * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
15630 enhancements and standarize on win colors defaults
15632 2004-08-10 12:52 jackson
15634 * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
15635 ThemeWin32Classic.cs: Implement DrawItem functionality
15637 2004-08-10 12:47 jordi
15639 * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
15641 2004-08-10 12:32 jordi
15643 * Control.cs: throw ontextchange event
15645 2004-08-10 11:43 pbartok
15648 - Added more to the still unfinished Dock/Anchor layout code
15650 2004-08-10 11:39 pbartok
15652 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
15653 - Added GetWindowPos method
15655 2004-08-10 11:36 pbartok
15658 - Implemented several methods
15660 2004-08-10 09:47 jackson
15662 * TrackBar.cs: Allow control to handle buffering
15664 2004-08-10 09:41 jackson
15666 * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
15668 2004-08-10 09:24 jackson
15670 * Label.cs, LinkLabel.cs: Let Control handle buffering.
15672 2004-08-10 09:09 jackson
15674 * StatusBar.cs: Let Control handle all the buffering.
15676 2004-08-10 09:08 jackson
15678 * Control.cs: Control will now handle the buffering code, so each
15679 control does not have to implement this.
15681 2004-08-10 08:34 jackson
15683 * XplatUIDriver.cs: Use default colors from the theme
15685 2004-08-09 17:12 pbartok
15688 - Fixed several bugs Ravindra pointed out
15690 2004-08-09 16:11 pbartok
15693 - Added incomplete dock layout code
15694 - Added support for mouse wheel
15696 2004-08-09 16:09 pbartok
15699 - Added handling for middle and right mousebutton
15700 - Added handling for mouse wheel
15701 - Added handling for key state and mouse state and position
15702 - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
15705 2004-08-09 15:40 jackson
15707 * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
15708 StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
15711 2004-08-09 15:37 jackson
15713 * StatusBar.cs: Initial implementation of StatusBar
15715 2004-08-09 15:36 jackson
15717 * ITheme.cs: Add support for drawing status bar and getting status
15720 2004-08-09 15:35 pbartok
15725 2004-08-09 15:34 jackson
15727 * ThemeWin32Classic.cs: Add support for drawing status bar and get
15728 status bar item sizes
15730 2004-08-09 15:21 jackson
15732 * ThemeWin32Classic.cs: Use known colors for default control
15735 2004-08-09 15:12 jackson
15737 * ThemeWin32Classic.cs: Make the default font static, it is static
15738 in control so this doesn't change functionality and creating fonts
15741 2004-08-09 14:56 pbartok
15744 - Added GrabMode enum
15746 2004-08-09 14:55 pbartok
15748 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
15749 - Removed Run method, was only required for initial development
15751 2004-08-09 14:51 pbartok
15753 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
15754 - Implemented GrabWindow/ReleaseWindow methods to allow pointer
15757 2004-08-09 13:48 pbartok
15760 - Fixed default sizing for child windows
15762 2004-08-09 12:56 pbartok
15765 - Added generation of WM_DESTROY message
15766 - Added handling of window manager induced shutdown
15768 2004-08-09 11:31 jackson
15770 * ThemeWin32Classic.cs: New names for control properties
15772 2004-08-09 11:25 jackson
15774 * Control.cs: Use new color names
15776 2004-08-09 11:02 jackson
15778 * XplatUI.cs: Get default window properties from the theme
15780 2004-08-09 11:01 jackson
15782 * ITheme.cs: The theme engine now controls default window
15785 2004-08-09 11:00 jackson
15787 * ThemeWin32Classic.cs: Add default window color properties
15789 2004-08-09 10:17 jackson
15791 * ThemeWin32Classic.cs: Use correct default back color
15793 2004-08-09 10:05 jackson
15795 * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
15798 2004-08-09 09:56 jackson
15800 * XplatUI.cs: Remove defaults, these are handled by the theme now.
15802 2004-08-09 09:54 jackson
15804 * Control.cs: Get default properties from the theme.
15806 2004-08-09 09:53 jackson
15808 * ITheme.cs: Themes now handle default control properties
15810 2004-08-09 09:53 jackson
15812 * ThemeWin32Classic.cs: Themes now handle default control
15813 properties so coloring will be consistent
15815 2004-08-08 16:54 jordi
15817 * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
15819 2004-08-08 15:08 jordi
15821 * XplatUIX11.cs: fixes keyboard crash
15823 2004-08-08 13:47 jordi
15825 * Label.cs: add cvs header info
15827 2004-08-08 12:09 jackson
15829 * ThemeWin32Classic.cs: Add pen_buttonface
15831 2004-08-08 11:52 jordi
15833 * Label.cs, LinkLabel.cs: [no log message]
15835 2004-08-08 11:34 jordi
15837 * ThemeWin32Classic.cs: Use Windows Standard Colours
15839 2004-08-07 17:32 jordi
15841 * TrackBar.cs: throw exceptions of invalid enums values
15843 2004-08-07 17:31 jordi
15845 * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
15848 2004-08-07 16:56 jackson
15850 * HorizontalAlignment.cs: Initial checkin
15852 2004-08-07 13:16 jordi
15854 * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
15857 2004-08-07 13:05 jordi
15859 * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
15860 GetSysColor defines
15862 2004-08-06 18:01 pbartok
15864 * ThemeWin32Classic.cs:
15865 - Fixed some rounding issues with float/int
15867 2004-08-06 18:00 jackson
15869 * DockStyle.cs, AnchorStyles.cs:
15871 Add flags and serializable attributes.
15873 2004-08-06 17:46 pbartok
15876 - Implemented GetParent
15878 2004-08-06 17:18 pbartok
15881 - Fixed some rounding issues with float/int
15883 2004-08-06 17:17 pbartok
15885 * X11Structs.cs, XplatUIX11.cs:
15886 - Fixed Refresh and Invalidate
15888 2004-08-06 15:30 pbartok
15890 * Control.cs, X11Structs.cs, XplatUIX11.cs:
15891 - Fixed recursive loop when resizing
15892 - Improved/fixed redrawing on expose messages
15894 2004-08-06 09:53 jordi
15896 * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
15897 keyboard navigation
15899 2004-08-06 08:02 pbartok
15901 * X11Structs.cs, XplatUIX11.cs:
15902 - Fixed reparenting
15903 - Fixed window border creation
15905 2004-08-05 15:38 pbartok
15908 - Attempted fix for reparenting problems
15910 2004-08-04 15:14 pbartok
15913 - Fixed Invalidation bug (calculated wrong client area)
15914 - Added ClientSize setter
15916 2004-08-04 15:13 pbartok
15919 - Added AutoScale properties
15921 2004-08-04 15:13 pbartok
15924 - Added latest files
15926 2004-08-04 14:11 pbartok
15928 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
15930 - Added Invalidate handling
15932 2004-08-03 17:09 jordi
15934 * XplatUIDriver.cs: fixes spelling mistake
15936 2004-07-27 09:53 jordi
15938 * TrackBar.cs: fixes trackbar events, def classname, methods
15941 2004-07-27 09:29 jordi
15943 * ScrollBar.cs: fixes scrollbar events
15945 2004-07-27 04:38 jordi
15947 * Control.cs: changes to be able to run winforms samples
15949 2004-07-26 11:42 jordi
15951 * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
15952 ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
15954 2004-07-26 05:41 jordi
15956 * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
15957 MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
15960 2004-07-22 09:22 jordi
15962 * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
15963 check link overlapping, implement events, and fixes
15965 2004-07-21 10:28 jordi
15967 * DialogResult.cs, IButtonControl.cs: fixes comments filenames
15969 2004-07-21 10:19 jordi
15971 * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
15972 LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
15973 LinkLabelLinkClickedEventArgs.cs,
15974 LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
15975 XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
15978 2004-07-19 13:09 jordi
15980 * Control.cs, Label.cs: label control re-written: added missing
15981 functionlity, events, and properties
15983 2004-07-19 10:49 jordi
15985 * Control.cs: fixes SetBounds logic
15987 2004-07-19 01:29 jordi
15989 * Control.cs: Call RefreshWindow only if the window has created
15991 2004-07-15 14:05 pbartok
15993 * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
15994 - Implemented ImageList and ImageList.ImageCollection classes
15995 - Added ColorDepth enumeration
15996 - Updated SWF VS.Net project
15998 2004-07-15 11:06 jordi
16000 * XplatUIStructs.cs: added MsgButons enum
16002 2004-07-15 11:03 jordi
16004 * Control.cs: added basic mouse handeling events
16006 2004-07-15 03:38 jordi
16008 * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
16009 Vertical TrackBar control implementation
16011 2004-07-13 09:33 jordi
16013 * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
16015 2004-07-13 09:31 jordi
16017 * Control.cs, Form.cs: commit: new properties and fixes form size
16020 2004-07-09 14:13 miguel
16022 * ProgressBar.cs: Spelling
16024 2004-07-09 11:25 pbartok
16027 - Removed usage of Rectangle for drawing. Miguel pointed out it's
16030 2004-07-09 11:17 miguel
16032 * ProgressBar.cs: 2004-07-09 Miguel de Icaza <miguel@ximian.com>
16034 * ProgressBar.cs: Fixed spelling for `block'
16036 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
16039 Avoid using the += on rect.X, that exposed a bug in the compiler.
16041 2004-07-08 23:21 pbartok
16043 * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
16044 AnchorStyles.cs, Application.cs, ApplicationContext.cs,
16045 BaseCollection.cs, Binding.cs, BindingContext.cs,
16046 BindingMemberInfo.cs, BindingsCollection.cs,
16047 BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
16048 BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
16049 ButtonState.cs, CaptionButton.cs, CheckBox.cs,
16050 ContainerControl.cs, Control.cs, ControlEventArgs.cs,
16051 ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
16052 ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
16053 CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
16054 DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
16055 FrameStyle.cs, GiveFeedbackEventArgs.cs,
16056 GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
16057 HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
16058 IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
16059 InputLanguageChangedEventArgs.cs,
16060 InputLanguageChangedEventHandler.cs,
16061 InputLanguageChangingEventArgs.cs,
16062 InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
16063 InvalidateEventArgs.cs, InvalidateEventHandler.cs,
16064 KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
16065 KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
16066 LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
16067 MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
16068 PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
16069 QueryAccessibilityHelpEventArgs.cs,
16070 QueryAccessibilityHelpEventHandler.cs,
16071 QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
16072 RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
16073 ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
16074 ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
16075 TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
16076 UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
16077 XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
16078 XplatUIX11.cs, lang.cs: