1 2006-11-17 Jackson Harper <jackson@ximian.com>
3 * TextControl.cs: When soft splitting a line, mark it as a soft
6 2006-11-17 Chris Toshok <toshok@ximian.com>
8 * XplatUIX11.cs: when scrolling a window with an invalid area, we
9 only want to shift the part of the invalid area that overlaps the
10 area we're scrolling. we also don't want to clear the invalid
11 area unless the invalid area was entirely contained within the
14 2006-11-16 Chris Toshok <toshok@ximian.com>
16 * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
17 also make sure to free the memory returned by XGetWindowProperty
20 * X11Structs.cs: remove the TimerEvent stuff, it's unused.
22 2006-11-16 Chris Toshok <toshok@ximian.com>
24 * XplatUI.cs: add a new super secret way to get at the totally
25 unsupported X11 backend.
27 2006-11-16 Gert Driesen <drieseng@users.sourceforge.net>
29 * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
31 2006-11-16 Jackson Harper <jackson@ximian.com>
33 * TreeView.cs: Allow more explicit setting of top node position
34 for scrollbars. Slower algo, but more accurate.
35 - CollapseAll should maintain the current top node.
36 * TextBoxBase.cs: When positioning the caret, use the line, pos
37 method, since the x, y method does not grab the correct tag, and
38 the caret height never gets set correctly. (Maybe I should just do
39 away with the caret having its own height, and always use the
40 carets current tag for height).
42 2006-11-16 Jonathan Pobst <monkey@jpobst.com
46 * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
47 Parent to the FosterParent instead.
49 2006-11-16 Jackson Harper <jackson@ximian.com>
51 * TreeView.cs: Need to recalc the topnode when we expand or
52 collapse. The scrolling methods can't handle this on their own,
53 since they use differences between the last scroll position, and
54 those difference get completely messed up since we are expanding
55 nodes. This problem should probably be fixed in the scrolling
56 methods, so they can figure out exactly where they are, but this
57 will slow things down a little.
58 * ThemeWin32Classic.cs: Special case for groupboxes with empty
59 strings, makes nunit-gui look a lot nicer.
61 2006-11-16 Chris Toshok <toshok@ximian.com>
63 * XplatUIX11.cs: nasty, nasty, nasty changes required because of
64 the broken multithreaded event handling we have in here. File
65 this entry under "Why we should move to the new X11 backend".
67 Any thread can make it into UpdateMessageQueue, which gets events
68 from the X socket - some of which could belong to hwnds being
69 managed by a different thread. We can also have multiple threads
70 in UpdateMessageQueue at the same time, with each one reading from
71 the X socket. This leads to many problems, with the following
74 We can't use hwnd.Queue.Enqueue anywhere in here and must use
77 The MotionNotify compression we do can't work across threads
78 (without locking the entire queue, perhaps) since we call
79 hwnd.Queue.Peek, so we just punt and don't compress motion events
80 unless the owning thread is the one which got the X event.
82 ConfigureNotify is another fun one, since it modifies the hwnd's
83 bounds and then enqueues the event. We add a lock to Hwnd which
84 is held when setting configure_pending to true (and enqueuing the
87 There is a race wrt the wake socket. we need to make sure that
88 only 1 thread is waiting on that socket, or else a thread could
89 sleep waiting for data that never comes. It's difficult (but not
90 impossible) to make happen, because it seems to require something
93 1. Thread 1 polls on wake_receive
95 2. poll returns saying there's data to be read on
98 3. Thread 2 polls on wake_receive and immediately returns
99 saying there's data to be read.
101 4. Thread 2 reads the wakeup byte from wake_receive
103 5. Thread 1 attempts to read the wakeup byte from
106 6. Thread 2 exits (due to a form closing, perhaps).
108 7. Thread 1 blocks forever.
112 Fixing the Expose handling isn't done yet, and the races inherent
113 in that piece of code are responsible for the drawing mistakes you
114 see when generating expose events in a MT app (like NPlot). This
115 one is the likely to be the hardest to bandaid, and it doesn't
116 appear to cause anything but drawing problems. The other issues
117 caused apps to exit or hang.
119 * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
120 called from a different thread than the one that should be calling
123 * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
125 2006-11-15 Chris Toshok <toshok@ximian.com>
127 * Application.cs: null out the context's MainForm when we exit
128 RunLoop. Fixes a newly checked in unit test as well as the last
131 2006-11-15 Chris Toshok <toshok@ximian.com>
133 * Form.cs (set_Owner): allow a null value so we can clear the
135 (Dispose): set all our owned_form's Owner properties to null, and
136 clear the owned_forms collection.
137 (WM_CLOSE): clean up this a little bit.. still not right though.
139 * ApplicationContext.cs: OnMainFormClosed should only call
140 ExitThreadCore if the main form isn't recreating. Fixes unit
143 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
147 * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
149 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
153 * Hwnd.cs: Add a flag to show a window, but not activate it, to
154 keep popup window types from stealing focus from the main form
157 * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
159 * MenuAPI.cs: Set above flag to true.
161 2006-11-15 Chris Toshok <toshok@ximian.com>
163 * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
164 the button being released is not in wParam.
166 2006-11-15 Jonathan Pobst <monkey@jpobst.com>
168 * Form.cs: Add the released button to MouseEventArgs.Button
169 for the OnMouseUp call to the MenuTracker. Fixes menu clicking
172 2006-11-15 Chris Toshok <toshok@ximian.com>
174 * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
175 GetText(). untested because it's unused in our implementation.
176 Control.Text always caches the text, even if
177 ControlStyles.CacheText is not set.
181 2006-11-15 Chris Toshok <toshok@ximian.com>
185 * Form.cs: in Close() don't do anything after we send the WM_CLOSE
186 message. no hiding, no disposing.
188 in the WM_CLOSE handler, hide the form if it's modal.
190 2006-11-15 Chris Toshok <toshok@ximian.com>
192 * XplatUIX11.cs: use AddExpose instead of sending a message.
193 fixes textbox border drawing.
195 2006-11-15 Chris Toshok <toshok@ximian.com>
197 * PropertyGridView.cs: keep from crashing on mouse move/down when
198 the property grid is empty.
200 2006-11-14 Jackson Harper <jackson@ximian.com>
202 * TextControl.cs: Make PageUp and PageDown more like the MS
204 * TextBoxBase.cs: When we set the text property position the
205 cursor at the beginning of the document.
207 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
209 * Form.cs: if a mdi child's WindowState has changed
210 before it's creation, it would display wrong control
213 2006-11-14 Alexander Olk <alex.olk@googlemail.com>
215 * TreeView.cs: De-uglify TreeView checkbox checkmarks.
218 2006-11-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
220 * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that
221 the window gets to paint its borders even if the window is
224 * Form.cs: on a WM_NCPAINT invalidate the entire menu,
225 otherwise the old control buttons would still be painted
226 if the window gets bigger.
228 * PaintEventArgs.cs: add an internal method so that the clip
229 rectangle can be changed.
231 2006-11-13 Chris Toshok <toshok@ximian.com>
235 * NotifyIcon.cs: lots of cleanup.
237 * X11Structs.cs: add an enum for XEMBED messages.
239 * XplatUIX11.cs: reindent one of the giant switch statements, it
240 was taking up an additional tab stop, and this file is already way
241 too wide for my laptop's screen.
243 Also, add handling for the XEmbed EMBEDDED_NOTIFY message. When
244 we get it, resize the hwnd to the WMNormalHints max_width/height.
246 2006-11-13 Jackson Harper <jackson@ximian.com>
248 * TextBoxBase.cs: Compute the value changes for the mouse wheel
251 2006-11-13 Chris Toshok <toshok@ximian.com>
253 * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
254 #79898. force a reference to the Region to stick around so the
255 unmanaged object isn't collected (rendering our handle in the MSG
258 2006-11-13 Chris Toshok <toshok@ximian.com>
260 * XplatUIX11.cs: fix #79917 for window managers which support
262 using XStoreName on the raw utf8, and we need to convert to
263 COMPOUND_TEXT if it's non-latin1.
265 2006-11-13 Chris Toshok <toshok@ximian.com>
267 * Form.cs (set_DialogResult): we need to set closing to false if
268 we're setting our result to None. fixes bug #79908.
270 2006-11-13 Jackson Harper <jackson@ximian.com>
272 * TextControl.cs: When formatting text, compute the adjusted tag
273 lengths correctly, using FindTag for the end tag instead of trying
274 to figure it out outselves.
275 * TreeNode.cs: Use ActualItemHeight, which is the actual height of
276 the item, ItemHeight doesn't work, because trees with large
277 imagelists use those for their height
278 * TreeView.cs: ActualItemHeight factors in the image height
279 - compute left edge of checkboxes correctly
280 - when expanding/collapsing move the bottom down one pixel, so we
281 aren't moving part of the node
283 2006-11-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
285 * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
286 stack in PaintEventStart so that it won't get disposed by the gc
287 before reaching PaintEventEnd.
289 2006-11-13 Jackson Harper <jackson@ximian.com>
291 * TextBoxBase.cs: Don't select the word if we are on a line with
293 - We don't need to position the caret on mouse up, since the mouse
294 move handler should be doing this
295 - When double clicking a blank line, the caret is advanced to the
298 2006-11-13 Gert Driesen <drieseng@users.sourceforge.net>
300 * TreeNodeCollection.cs: Avoid duplicating indexer code.
302 2006-11-12 Gert Driesen <drieseng@users.sourceforge.net>
304 * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
305 Fixes part of bug #79910.
307 2006-11-11 Alexander Olk <alex.olk@googlemail.com>
309 * ColorDialog.cs: Fix a NRE when adding a color to custom colors
310 (bug #79903). Some minor string updates to match ms.
312 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
314 * FileDialog.cs: Don't add an extension if the filename
315 already ends with that extension.
317 2006-11-10 Jackson Harper <jackson@ximian.com>
319 * TreeView.cs: Use the currently highlighted node for the
321 * TextBoxBase.cs: There is no need to expand selection on
323 - CanUndo means 'is there any undo operations', not 'is undo
324 allowed on this textcontrol. Fixed ClearUndo unit test.
326 2006-11-10 Andreia Gaita <shana.ufie@gmail.com>
328 * Button.cs: only perform click when button is Selectable (so as
329 not to activate default buttons when they're disabled)
331 * Control.cs: Rewrite of the SelectNextControl and related
332 methods. HandleClick now selects next control if the current one
335 * Form.cs: OnActivated selects next active control only if Load
336 has already occurred. If Load hasn't run, there's no point in
337 selecting here, Load might change the state of controls.
339 * FocusTest.cs: Tests marked as working again for these fixes
341 2006-11-10 Chris Toshok <toshok@ximian.com>
343 * XplatUIX11.cs: a couple of fixes.
345 - use XInternAtoms with almost all the atoms we need to register,
346 instead of many, many calls to XInternAtom. should help a bit on
347 startup time, at the expense of making the code look a little
350 - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
351 isn't reparented (which seems to be a clue that we're running fon
352 compiz) and they have an Owner form. This fixes the tool windows
353 in paint.net when running under compiz.
355 - when setting the opacity of a window, support both the case
356 where the window has been reparented and also when it hasn't been.
357 Since compiz/beryl doesn't seem to reparent windows, and these are
358 the only window managers which support translucency, I'm not sure
359 why we need the hwnd.reparented case at all.. but leave it in.
360 now we get translucent windows in paint.net under compiz/beryl.
362 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
364 * FileDialog.cs: Always return the value for FilterIndex that
365 was set. Internally convert it to values that make sense.
367 2006-11-10 Everaldo Canuto <everaldo@simios.org>
369 * ThemeWin32Classic.cs: Fix drowp down arrow borders.
371 2006-11-10 Everaldo Canuto <everaldo@simios.org>
373 * Toolbar.cs: Change default value of DropDownArrows to true, the
374 signature still using false to make it compatible with MS but the
375 initial value is true. Fixes #79855.
377 2006-11-10 Alexander Olk <alex.olk@googlemail.com>
379 * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
380 only available on Linux.
382 2006-11-09 Everaldo Canuto <everaldo@simios.org>
384 * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
385 reduce number of calls to redraw method during toolbar creation.
387 2006-11-09 Mike Kestner <mkestner@novell.com>
389 * ListView.cs : raise SelectedIndexChanged when an item is selected
390 programmatically via the Item.Selected property. Gert's nice
391 ListViewSelectedIndexChanged test fixture now runs clean.
393 2006-11-09 Mike Kestner <mkestner@novell.com>
395 * ListView.cs : raise SelectedIndexChanged when a selected item is
396 removed from the item collection using Remove or RemoveAt.
398 2006-11-09 Mike Kestner <mkestner@novell.com>
400 * ListView.cs : raise SelectedIndexChanged once per selected item
401 for compat with MS. Fixes #79849+.
403 2006-11-09 Chris Toshok <toshok@ximian.com>
405 * TabControl.cs: initialize row_count to 0, and set it to 1 when
406 we need to (if we have any tab pages). Fixes unit test.
408 2006-11-09 Chris Toshok <toshok@ximian.com>
410 * Label.cs (CalcPreferredWidth): if Text == "", our preferred
411 width is 0, not 3. Fixes a unit test.
413 2006-11-09 Mike Kestner <mkestner@novell.com>
415 * ListView.cs : use Implicit scrollbars so that focus isn't
416 stolen from the listview when they are clicked. Fixes #79850.
418 2006-11-09 Chris Toshok <toshok@ximian.com>
420 * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
421 have a root item. Fixes #79879.
423 2006-11-09 Alexander Olk <alex.olk@googlemail.com>
427 - An ArgumentException is now thrown if a wrong filter
428 is applied (matches ms). The previous filter doesn't change
429 anymore if an exception is thrown.
430 - Changing the FileName property also affects FileNames
431 * ColorDialog.cs: The length of the CustomColors array is always
432 16. It doesn't matter if we use a smaller array or null to update
433 or change the custom colors property.
434 * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
435 for RootFolder if we get a undefined value.
437 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
440 - Width is set to MinWidth if Width is smaller than
441 MinWidth. Fixes #79842.
442 - MinWidth now always overrides Width (MSDN says MinWidth
443 is set to Width when AutoSize = None, but they do not
445 - Style has now the the correct default value.
447 2006-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
450 - The control is completely invalidated on
451 Got/LostFocus to draw the focus rectangle correctly.
452 - When AutoSize then height is always 45 (width for
455 * ThemeWin32Classic.cs: The TrackBar thumb is now centered
456 on the mouse when moved and it doesn't move when grabbed
457 until the mouse moves as well. Also fixed some wrong
458 calculations when clicking on the thumb (control thought
459 click was outside of thumb and didn't grab it).
460 Fixes some of the issues in #79718.
462 2006-11-08 Everaldo Canuto <everaldo@simios.org>
464 * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
466 2006-11-08 Chris Toshok <toshok@ximian.com>
468 * PropertyGridView.cs: only call ToggleValue if the item is not
471 2006-11-08 Jackson Harper <jackson@ximian.com>
473 * TextBoxBase.cs: The RichTextBox and textbox have very different
474 word selection methods. Implement the textbox's simple word
475 selection here, and let the RichTextBox override and provide it's
477 - Don't do extra selection on mouseup
478 * RichTextBox.cs: Use the documents word selection algorithm, I
479 think ideally, this function will be pulled into the
480 RichTextBox.cs code someday.
482 2006-11-08 Chris Toshok <toshok@ximian.com>
484 * RootGridEntry.cs: new class to represent GridItemType.Root.
486 * CategoryGridEntry.cs: reformat, and add boilerplate.
488 * GridEntry.cs: remove the UIParent stuff - turns out .Parent
489 returns the UI parent anyway, and we need special handling to
490 implement the GetTarget method in the face of it. Also, implement
493 * PropertyGrid.cs, PropertyGridView.cs: a number of fixes. create
494 a root grid item, and use that instead of PropertyGrid.grid_items.
495 Also, make use of TypeConverters (and add limitted support for
496 ICustomTypeDescriptors) when initially populating the grid.
497 Arrays now show up more or less properly.
499 2006-11-08 Chris Toshok <toshok@ximian.com>
501 * Application.cs: set the modal dialog to non modal after we close
502 it. Fixes bug #79866.
504 2006-11-08 Jackson Harper <jackson@ximian.com>
506 * TextControl.cs: When combining lines carry over the line end
507 style from the end line.
508 - Invalidate the selected area when setting it, if it is visible.
509 * TextBoxBase.cs: Only rich text box can do full line selects.
510 - Make sure to set the cursor position when there is a click,
511 otherwise two clicks in separate areas could cause a large chunk
514 2006-11-07 Everaldo Canuto <everaldo@simios.org>
516 * Toolbar.cs: Release flat button borders when Toolbar lost focus.
519 2006-11-07 Everaldo Canuto <everaldo@simios.org>
521 * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
522 time. Remove tooltips when ToolButton click events. Fixes #79856.
524 2006-11-07 Everaldo Canuto <everaldo@simios.org>
526 * MenuAPI.cs: Ignore right click for menu actions and fixes
527 menu border when clicked. Fixes #79846.
529 2006-11-07 Everaldo Canuto <everaldo@simios.org>
531 * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
532 MouseState after create wParam for message, this fixes mouse button
533 equal none in mouse up events.
535 2006-11-07 Andreia Gaita <shana.ufie@gmail.com>
537 * Control.cs : Focus() now calls Select to set the Container's
538 Active Control and to give it focus. To avoid infinite recursion
539 (because ActiveControl also calls Focus at one point), a check
540 is made in Focus with the help of a new internal variable
543 2006-11-07 Mike Kestner <mkestner@novell.com>
545 * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
546 if there's a selection. Fixes #79849.
548 2006-11-07 Gert Driesen <drieseng@users.sourceforge.net>
550 * PropertyGrid.cs: Avoid fixed height of help description label.
551 Fixes part of bug #79829.
553 2006-11-07 Chris Toshok <toshok@ximian.com>
555 * XplatUIX11.cs: fix #79790 again, by using the
556 _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
558 2006-11-07 Everaldo Canuto <everaldo@simios.org>
560 * ToolBar.cs: Fix left click checking.
562 2006-11-07 Chris Toshok <toshok@ximian.com>
564 * ProgressBar.cs: fix a typo in ToString(). fixes a unit test.
566 2006-11-07 Chris Toshok <toshok@ximian.com>
568 * RelatedPropertyManager.cs: set property_name in our ctor. fixes
569 PropertyManager unit tests.
571 * PropertyManager.cs: make property_name internal.
573 2006-11-07 Chris Toshok <toshok@ximian.com>
575 * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
576 pass a unit test. Also, don't set image_index to anything in
577 response to setting the ImageList property.
579 2006-11-07 Everaldo Canuto <everaldo@simios.org>
581 * ToolBar.cs: Ignore click events when mouse button is not a
582 left button, only accepts other button for dropdown menus.
585 2006-11-07 Chris Toshok <toshok@ximian.com>
587 * DataGrid.cs: make the back and parent row buttons a little less
590 2006-11-07 Jackson Harper <jackson@ximian.com>
592 * TextBoxBase.cs: When converting to Text don't put line breaks in
593 for soft line breaks.
594 * TextControl.cs: There is an initial "fake" line in the document,
595 this is now a soft break line, so that an extra line feed doesn't
596 get added to the end of documents.
598 2006-11-07 Chris Toshok <toshok@ximian.com>
602 * CurrencyManager.cs: if the list is readonly, don't bother
603 checking if IBindingList.AllowNew is true.
605 * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
606 for non-DataRowView datasources.. or rather, make it not crash.
607 (DataGridPaintRelationRow): make sure we limit the row painting to
608 the area not covered by the row header, and make our cell width at
609 least large enough to cover the relation area. This allows grids
610 that have relations but no rows to render correctly.
611 (DataGridPaintRowContents): same type of changes here.
612 (SetDataSource): move back to always calling
613 CalcAreasAndInvalidate. this fixes a crash/drawing problem when
614 navigating back through relations.
615 (HitTest): handle the case where we have no cells but have
616 relations. Right now we generate a hit in cell 0 of whatever the
617 row is, not sure if this is strictly correct, but it works for our
620 * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
621 bother doing anything.
623 2006-11-07 Jonathan Pobst <monkey@jpobst.com>
625 * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
626 early version of StatusStrip. Not responsible for eaten
627 application or firstborn children.
629 2006-11-06 Chris Toshok <toshok@ximian.com>
631 * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
632 call GetTabRect with a -1 index. Fixes #79847.
634 2006-11-06 Jackson Harper <jackson@ximian.com>
636 * TreeNodeCollection.cs: Update scrollbars after clearing.
638 2006-11-06 Chris Toshok <toshok@ximian.com>
640 * NumericUpDown.cs: fix the ToString method for some unit test
643 2006-11-06 Chris Toshok <toshok@ximian.com>
646 - set the initial SelectedGridItem if we can.
648 - Exclude non-mergable properties only if we're merging > 1
649 object. Merging 1 object isn't really merging, obviously.
651 - Handle PropertySort.NoSort just like Alphabetical, which is
652 wrong of course, but at least gets things on the screen.
654 * PropertyGridView.cs:
655 - Add method "FindFirstItem" which finds the first property grid
656 item, so we can select it by default.
658 - make use of GridEntry.CanResetValue.
660 - Don't call RedrawBelowItemOnExpansion here anymore, the
661 individual GridEntry's will do that.
663 - Remove the ITypeDescriptorContextImpl internal class.
666 - this class needs to implement ITypeDescriptorContext, as it's
667 what MS's PropertyDescriptorGridEntry does, which means we can
668 remove the ITypeDescriptorContextImpl internal class from
669 PropertyGrid.cs. This fixes the crashing portion of bug #79829.
671 - keep a reference to our PropertyGridView, and move the call to
672 RedrawBelowItemOnExpansion here from PGV. This means
673 programmaticly setting Expanded actually does something visible.
675 - add a CanResetValue() function which takes into account our
676 possibly multiple "selected_objects" in the merged case. Shifting
677 PropertyGridView to use this method fixes another unreported
678 crasher found running the test for #79829.
680 - when Top or Bounds is updated, make sure the PropertyGridTextBox
681 is updated to reflect this.
683 * CategoryGridEntry.cs: the ctor takes the PGV now.
685 2006-11-06 Jackson Harper <jackson@ximian.com>
687 * TextControl.cs: These are 1 based.
688 * TextBoxBase.cs: When setting the selected text, don't change the
689 selected text tags, this is done by ReplaceText, just position the
690 cursor at the end of the new text.
692 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
694 * ListView.cs: Allow label edit only when, when LabelEdit is
697 2006-11-06 Jackson Harper <jackson@ximian.com>
699 * TextControl.cs: If a suitable wrapping position isn't found,
700 just wrap right in the middle of a word.
702 2006-11-06 Alexander Olk <alex.olk@googlemail.com>
704 * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
707 2006-11-06 Jackson Harper <jackson@ximian.com>
709 * TreeView.cs: Can't use the VisibleCount property when setting
710 scrollbar heights, because this doesn't take into account whether
711 or not the horz scrollbar just came visible.
713 2006-11-05 Everaldo Canuto <everaldo@simios.org>
715 * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
716 activated. Fixes #79369, #79832.
718 2006-11-05 Alexander Olk <alex.olk@googlemail.com>
720 * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
721 had to remove support for links that point to a directory. FileInfo
722 returns no usefull information (means, the directory they point to)
723 for such links. Replaced some empty string ("") with String.Empty.
725 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
727 * TreeNodeCollection.cs: To match MS, in 1.0 profile throw
728 NullReferenceException when attempting to remove node that is not in
729 collection. Throw NullReferenceException when null is passed to
730 Remove. Allow first element of the collection to be removed. Fixes
731 bug #79831. In GetEnumerator ().Current return null if positioned
732 before the first element of the collection. In GetEnumerator ().Reset,
733 position before first element of the collection.
735 2006-11-04 Gert Driesen <drieseng@users.sourceforge.net>
737 * PropertyGrid.cs: To match MS, remove default title and description
738 for panel. Fixed tooltips for Categorized and Alphabetic toolbar
741 2006-11-04 Chris Toshok <toshok@ximian.com>
743 * Theme.cs: add a Clamp method, just for kicks.
745 * ThemeWin32Classic.cs: clamp all color components to [0..255].
747 2006-11-04 Chris Toshok <toshok@ximian.com>
749 * Form.cs: if the form isn't visible, Close() does nothing.
751 2006-11-03 Chris Toshok <toshok@ximian.com>
753 * Form.cs (Close): if the form is modal, don't Dispose of it, only
755 (WndProc): don't Dispose after handling the WM_CLOSE message.
757 * Application.cs (RunLoop): toplevels is a list of Forms, so treat
758 them as such, instead of using casts from Control to Form. Also,
759 don't Dispose of the modal dialog when we fall out of the loop -
764 2006-11-03 Chris Toshok <toshok@ximian.com>
766 * Control.cs (Dispose): only go through the dispose thing if we're
767 @disposing, and we haven't already been disposed. Fixes bug
770 * Form.cs: no reason to call "base.Dispose()" here instead of
773 2006-11-03 Mike Kestner <mkestner@novell.com>
775 * ComboBox.cs : use ToString instead of casts in AddItem for
776 sorting functionality. Fixes #79812.
778 2006-11-03 Chris Toshok <toshok@ximian.com>
780 * Application.cs: pave the way for actually using the thread
781 exception dialog. it's ifdefed out at the moment.
783 2006-11-03 Chris Toshok <toshok@ximian.com>
785 * ThreadExceptionDialog.cs: until we get a better layout, actually
786 hide the details textbox and label when we shouldn't see them.
788 2006-11-03 Jackson Harper <jackson@ximian.com>
790 * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
791 multiline textboxes anymore. This method also determines the
792 width/height of a textboxes canvas area.
793 - Sorta a revert of the last patch. For multiline just position
794 the controls, then bail. This way the scrollbar width won't be
797 2006-11-03 Everaldo Canuto <everaldo@simios.org>
799 * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
800 it dont need. Fixes #79537.
802 2006-11-02 Jackson Harper <jackson@ximian.com>
804 * X11Dnd.cs: We always allow copy, since XDND implies Copy. Also
805 send the status after firing the DndOver event.
807 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
809 * TrackBar.cs: Now orientation only switches height / width if
810 the control's handle is created (Win32 does it like this). Also
811 fixed a typo in ToString() for a test to pass, changed the
812 exception thrown in set_LargeChange and set_SmallChange to
813 match Win32 behaviour, and added TrackBar tests to the unit
816 2006-11-02 Chris Toshok <toshok@ximian.com>
818 * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
819 not _NET_WM_STATE_NO_TASKBAR.
821 2006-11-02 Jackson Harper <jackson@ximian.com>
823 * TextControl.cs: Increment count by one, since in the update view
826 2006-11-02 Jackson Harper <jackson@ximian.com>
828 * TextBoxBase.cs: Use client rectangle not bounds for checking if
829 the mouse is in the client rectangle (duh).
831 2006-11-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
833 * TrackBar.cs: Fixed trackbar jumping around when clicking
834 on it - the trackbar was not detecting correctly at which
835 side of the thumb the click was done. (fixes #79718)
837 2006-11-02 Everaldo Canuto <everaldo@simios.org>
839 * ListBox.cs: scroll visible area when change SelectedIndex to
840 a non visible area. Fixes #79481.
842 2006-11-01 Jackson Harper <jackson@ximian.com>
844 * TextControl.cs: When replacing the selection move the selection
845 start/end/anchor to the end of the new text.
847 2006-11-01 Jackson Harper <jackson@ximian.com>
849 * XplatUIWin32.cs: When setting the parent change the controls
850 visibility to it's visibility flag, not to it's old parents
851 visibility (.Visible walks the parent chain).
853 2006-11-01 Chris Toshok <toshok@ximian.com>
855 * XplatUIX11.cs: revert the #79790 fix, as the simple.
856 XSetTransientForHint fix breaks paint .net's tool windows. more
857 work needed for that one.
859 2006-11-01 Chris Toshok <toshok@ximian.com>
861 * ScrollBar.cs: throw ArgumentException instead of Exception in
862 LargeChange/SmallChange setters. fixes unit tests.
864 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
866 * ContainerControl.cs: reverted rev.67183 (which was itself
867 a reversion of rev.66853... eh).
869 * Control.cs: Fixes Reflector hang by changing Focus() call
870 to what it was before rev.66643 (calling Select() here sets
871 ActiveControl, which in some situations calls back Focus and
872 eventually does a stack overflow). Temp fix.
873 Changes to GetNextControl() to not look for children to select when
874 parent cannot be selectable (so it looks for siblings instead)
876 2006-10-31 Mike Kestner <mkestner@novell.com>
878 * CheckedListBox.cs : off by one error in returned index from
879 ObjectCollection.Add. Fixes #79758.
881 2006-10-31 Chris Toshok <toshok@ximian.com>
883 * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
884 calls for the textbox/spinner, to keep from recursing to the point
885 where we crash. Fixes #79760.
887 2006-10-31 Chris Toshok <toshok@ximian.com>
889 * ListControl.cs (set_SelectedValue): don't throw exceptions on
890 null/"" value, just return. matches ms's behavior and fixes some
893 2006-10-31 Chris Toshok <toshok@ximian.com>
895 * Control.cs (set_Capture): make a logic a little easier to
898 * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
899 if it's being destroyed. A necessary fix surely, but a bandaid
900 also, to fix the stuck capture problem in bug #78413.
902 2006-10-31 Chris Toshok <toshok@ximian.com>
904 * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
905 convention of clearing hwnd.ClientRect when we set the
906 width/height (so it'll be recalculated by Hwnd).
908 2006-10-31 Andreia Gaita <shana.ufie@gmail.com>
910 * ContainerControl.cs: reversed Contains check from
911 ActiveControl due to hanging problems. This fix
912 partly regresses #79667 (button does not have
913 initial focus), so this might be a symptom for
914 a larger parenting problem (set_ActiveControl
915 is being called but the child control does
916 not have the parent set yet?)
918 2006-10-31 Mike Kestner <mkestner@novell.com>
920 * MenuAPI.cs : fix keynav when menu is click activated.
922 2006-10-31 Jonathan Pobst <monkey@jpobst.com>
924 * ToolStrip*: Version 0.2.
926 * MenuStrip.cs: Version 0.1.
928 * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
930 2006-10-30 Chris Toshok <toshok@ximian.com>
932 [ fixes the oversized notify icon issue in bug #79745 ]
934 * NotifyIcon.cs: scale the icon down to the size we're given by
935 the XplatUI layer (this would be faster if we did it once instead
936 of whenever we paint..) Also, remove the WM_NCPAINT handling,
937 since it's never invoked.
939 * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
940 pixels high by default, so let's hardcode our systray icon to that
941 size. The SYSTEM_TRAY protocol should really have a way for
942 client apps to query for the correct icon size.. but oh well. A
943 couple of patches to deal with the screwy client_window ==
944 whole_window notifyicon stuff (we don't want to PerformNCCalc, for
945 instance, and also make sure we don't XSelectInput twice).
947 2006-10-30 Chris Toshok <toshok@ximian.com>
949 * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
950 recreating forms. Control recreation is the bane of my existence.
951 Fix it in a way that keeps everyone happy.
953 2006-10-30 Chris Toshok <toshok@ximian.com>
955 * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
956 just non-CHILD ones. otherwise sometimes scrollbars end up with
957 client_windows not being resized to the proper size (ReportBuilder
958 shows this extremely well).
960 2006-10-30 Chris Toshok <toshok@ximian.com>
962 * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
963 for non-WS_EX_APPWINDOW windows. This is what keeps them from
964 showing up in the gnome taskbar. Fixes bug #79790.
966 2006-10-30 Chris Toshok <toshok@ximian.com>
968 * ApplicationContext.cs: guard against a NRE.
970 * Application.cs: null out the old MainForm for the context, so we
971 don't try to use it again once it's disposed. Fixes bug #79783.
973 2006-10-30 Chris Toshok <toshok@ximian.com>
975 * DataGrid.cs (set_DataSource, set_DataMember): if we have a
976 BindingContext, set the data source directly, otherwise do the
977 lazy approach - the actual ListManager will be created when we get
978 a BindingContext. Fixes bug #79700.
980 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
982 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
983 XplatUIX11.cs: Remove old 2 parameter SetVisible.
985 * Control.cs: Use the new 3 parameter SetVisible with activate = true.
987 2006-10-30 Jonathan Pobst <monkey@jpobst.com>
989 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
990 of SetVisible that allows a window to be shown, but not activated.
991 This is needed on Windows for MenuStrip, and can probably be used
992 with MainMenu and ComboBox to fix the focus stealing issues on
995 * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
997 2006-10-30 Alexander Olk <alex.olk@googlemail.com>
999 * PictureBox.cs: Fix the output of the ToString method.
1001 2006-10-29 Chris Toshok <toshok@ximian.com>
1003 * Control.cs (get_TopLevelControl): fix bug #79781.
1005 2006-10-29 Chris Toshok <toshok@ximian.com>
1007 * ListControl.cs (set_DataSource): throw Exception here, not
1008 ArgumentException, to match MS behavior.
1010 2006-10-29 Chris Toshok <toshok@ximian.com>
1012 * Form.cs: remove the try-catch's around calls to GetWindowState.
1013 We can just check the return value.
1015 * XplatUIX11.cs: don't throw exceptions from GetWindowState.
1018 * XplatUI.cs: Add note about additional return value for
1021 2006-10-29 Chris Toshok <toshok@ximian.com>
1023 * Control.cs (CreateHandle): when we create our handle, we also
1024 create the handles of our child controls. Fixes one of the
1025 Control unit tests (CH11).
1027 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
1029 * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
1031 2006-10-28 Alexander Olk <alex.olk@googlemail.com>
1033 * ThemeClearlooks.cs: A little speedup.
1035 2006-10-27 Chris Toshok <toshok@ximian.com>
1037 * Control.cs: implement Control.FromChildHandle in a way that
1038 matches the docs (and fixes the failed test.)
1040 2006-10-27 Chris Toshok <toshok@ximian.com>
1042 * DataGridTableStyle.cs: reproduce buggy MS behavior (with
1045 * DataGrid.cs: implement ResetForeColor such that the tests
1048 2006-10-27 Chris Toshok <toshok@ximian.com>
1050 * ToolBarButton.cs: setting text/tooltiptext to null results in it
1051 being set to "". Fixes bug #79759.
1053 2006-10-27 Jackson Harper <jackson@ximian.com>
1055 * TextControl.cs: We need to clear the entire selection area when
1056 setting the start, otherwise multiline selections are still
1059 2006-10-26 Chris Toshok <toshok@ximian.com>
1061 * PropertyGridView.cs:
1063 - ifdef all the code specific to the double
1064 buffer case, and provide some alternatives in the non-doublebuffer
1065 code, which makes heavy use of XplatUI.ScrollWindow to move things
1066 around without having to invalidate (and cause flicker). There
1067 are still some drawing problems in the non-doublebuffered case, so
1068 DOUBLEBUFFER is defined by default.
1070 - Fix the way dropdowns are handled. now we explicitly watch for
1071 the events which might cause the dropdown to close, and break out
1072 of the nested event loop there. This gets rid of all Capture
1073 code, at the expense of the Msg special casing. Seems to work,
1074 though, and fixes bug #79743.
1076 2006-10-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
1077 * Control.cs: SetIsRecreating now recreates implicitly added
1078 child controls as well. Finally fixes #79629. The flag passed to
1079 SetIsRecreating has also been removed since it wasn't used.
1081 2006-10-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1083 * PageSetupDialog.cs: Clean some code, fix some bits,
1084 add some checks, and add a printer sub-dialog.
1086 2006-10-26 Chris Toshok <toshok@ximian.com>
1088 * PropertyGrid.cs: make set_SelectedObject call
1089 set_SelectedObjects, and move the duplicate logic to the
1090 SelectedObjects setter. Also, raise SelectedObjectsChanged.
1092 * PropertyGridView.cs: hide the textbox when we get a
1093 SelectedObjectsChanged event.
1097 2006-10-26 Chris Toshok <toshok@ximian.com>
1099 * PropertyGridView.cs: deal with the type converter not supporting
1100 GetStandardValues() or GetStandardValues() returning null, which
1101 is does in the default case. Fixes #79742.
1103 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
1105 * CheckedListBox.cs: nunit no longer crashes when selecting
1106 Project/Edit menu option
1108 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
1110 * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
1111 is no menu selected. fixes #79739
1113 2006-10-25 Chris Toshok <toshok@ximian.com>
1115 * PropertyGridView.cs: factor out the splitter invalidation code
1116 into the SplitterPercent setter, and for kicks implement the
1117 Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
1118 amount in either direction.
1120 2006-10-25 Chris Toshok <toshok@ximian.com>
1122 * PropertyGridView.cs: do some cleanup of the brush used to draw
1123 text - read only fields should be grayed out. not sure how to do
1124 this with the textbox, though. but the textbox's should also be
1125 readonly now at least. Also, hide/show the textbox when resizing
1128 * CursorConverter.cs: use System.Reflection when getting the
1129 properties of Cursors, as TypeDescriptor.GetProperties isn't
1130 returning static properties.
1132 2006-10-25 Chris Toshok <toshok@ximian.com>
1134 * PropertyGridView.cs: factor out the up/down handling, and reuse
1135 it for page up/down. also add End/Home support.
1137 2006-10-25 Chris Toshok <toshok@ximian.com>
1139 * PropertyGridView.cs:
1141 - ensure the selected grid item is visible in the scrolled area,
1144 - fix Keys.Down handling when you're on the last item in the
1147 2006-10-25 Mike Kestner <mkestner@novell.com>
1149 * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup
1150 clicks too. Fixes #79725.
1152 2006-10-24 Chris Toshok <toshok@ximian.com>
1154 * PropertyGrid.cs: use property.Converter instead of
1155 TypeDescriptor.GetConverter(property.PropertyType), so we catch
1156 TypeConverters declared on the property as well as on the
1157 PropertyType. Fixes bug #79678.
1159 2006-10-24 Alexander Olk <alex.olk@googlemail.com>
1161 * MimeIcon.cs, Mime.cs:
1162 Fallback to the default platform handler if no shared mime info
1163 stuff exists (fixes #79693).
1165 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
1166 * ContainerControl.cs: Incorrect contains check in ActiveControl
1167 from previous fix (duh).
1169 2006-10-20 Chris Toshok <toshok@ximian.com>
1171 * PropertyGridView.cs: the dropdown should be MIN(number of items
1172 in list, 15). Fixes #79551.
1174 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
1175 Fixes #79384, #79394, #79652, #79667
1178 - Modal windows are now destroyed in the proper order for windows
1180 * ContainerControl.cs:
1182 - ActiveControl setter has more conditions on when to return:
1183 - if we're reselecting the active control, but it actually
1184 didn't have focus (window hidden or some such), it runs
1185 - if the active control being selected doesn't actually
1186 exist in the container, it returns
1190 - The ShowDialog now gets the current form as the owner when
1191 invoking without parameters, and correctly activates the owner
1196 - MessageBox now catches the Escape key to exit
1198 2006-10-20 Chris Toshok <toshok@ximian.com>
1200 * PropertyGridView.cs: fix a number of issues (bug #78565, and
1201 most of bug #79676):
1203 - you can navigate around the property grid with the arrow keys.
1205 - the dropdown is sized properly when the pg has a vertical
1208 - fix the indentation for subentries, and properly select the
1211 - fix the gray bar's drawing (only draw it to the last element,
1212 not for the height of the control. Also make sure we draw that
1213 last horizontal grid line.
1215 - use the same mechanism the datagrid uses wrt the editing textbox
1216 when scrolling/resizing/etc. Namely, we hide it first, do the
1217 operation, then show it again (if it's still visible).
1219 - aggressively remove a lot of unnecessary refreshes (and also
1220 calls to Invalidate(). call more limited variants, and only redraw
1225 - when we're populating the merged collection, fill in the UI
1226 parent with either the passed in item, or the category item we
1229 - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
1231 * GridItem.cs: drop some fully qualified names.
1233 * GridEntry.cs: add a "UIParent", which is basically the parent
1236 * GridItemCollection.cs: add an IndexOf method.
1238 2006-10-20 Mike Kestner <mkestner@novell.com>
1240 * MainMenu.cs : go back to Draw in OnMenuChanged. Until we get
1241 a working win32 NC invalidation mechanism, we can't invalidate
1242 menus. [Fixes #79705]
1244 2006-10-20 Mike Kestner <mkestner@novell.com>
1246 * ListBox.cs : don't update the VScrollbar if the list is empty,
1247 just hide it. [Fixes #79692]
1249 2006-10-20 Jackson Harper <jackson@ximian.com>
1251 * RichTextBox.cs: Handle some special chars better, and don't skip
1252 the entire group when we encounter a special char that we don't
1255 2006-10-18 Chris Toshok <toshok@ximian.com>
1257 * PropertyGridView.cs: address a number of issues from bug #79676,
1258 mostly of the cosmetic variety.
1260 - The highlight rectangle for indented items not extends all the
1263 - Indented items aren't indented so much.
1265 - the dropdown is properly sized width-wise if the pg has a
1268 2006-10-18 Chris Toshok <toshok@ximian.com>
1270 * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
1271 systray stuff is rather convoluted to begin with.
1273 systray icons are a single window for some reason (that I haven't
1274 figured out yet), and for them, client_window == whole_window.
1275 Given the way the tests are structured elsewhere to determine
1276 which paints are pending (client vs. nc), that situation will
1277 always yield PAINT, not NCPAINT. So, if we have a pending
1278 nc_expose and no pending expose, remove the hwnd from the paint
1279 queue, and also set nc_expose_pending to false, to keep us from
1280 blocking further expose's adding the hwnd to the paint queue.
1282 phew. like i said, a rather convoluted change. Fixes the
1283 notifyicon repaint issues in bug #79645.
1285 2006-10-18 Chris Toshok <toshok@ximian.com>
1287 * Form.cs: when getting the backcolor of the form, don't get
1288 base.BackColor, as this allows parents to influence the background
1289 color. This breaks mdi forms. Instead, if the background_color
1290 is empty, return the default.
1292 2006-10-18 Chris Toshok <toshok@ximian.com>
1294 * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
1295 to being private instead of internal static.
1297 * Control.cs: remove all the stupid ParentWaitingOnRecreation
1298 crap, it wasn't working for more deeply nested controls anyway,
1299 and we already have the is_recreating flag - use that instead.
1300 Before calling DestroyHandle in RecreateHandle, recurse through
1301 the control tree setting it to true. this returns the recreate
1302 code to much of its original simplicity, while now guaranteeing we
1303 actually recreate everything we're supposed to. This change gets
1304 fyireporting actually showing mdi children.
1306 2006-10-17 Chris Toshok <toshok@ximian.com>
1308 * Form.cs: remove some debug spew, and collapse some duplicate
1309 code at the end of SetClientSizeCore.
1312 - add some more debug spew here too wrt Destroy handling.
1313 - don't call hwnd.Dispose in DestroyWindow, it's effectively done
1314 in Control's handling of WM_DESTROY.
1315 - Remove the handling of zombie window DestroyNotifies from the
1316 event loop - we don't need it. Now the only DestroyNotifies we
1317 actually handle are ones generated by X.
1318 - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
1319 match gtk's (functioning) handling of this. This keep metacity
1320 from leaving droppings in the form of wm borders with no window
1321 contents all over the place.
1324 - add a bunch of debug spew wrt control recreation.
1325 - fix a bug where we weren't tracking Visible properly on
1327 - fixed the WM_PAINT double buffer handling to support re-entrant
1328 calls (yes, i know it's gross, but it's happening to us).
1330 2006-10-17 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
1331 * ThemeWin32Classic.cs: changed drawing of selected days
1332 to make them look better.
1334 2006-10-16 Chris Toshok <toshok@ximian.com>
1336 * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
1337 drawing_stack. Nuke the ClientDC/NonClientDC properties.
1339 * XplatUIX11.cs: move away from using hwnd.client_dc and
1340 hwnd.non_client_dc and on to a stack of dc's (and in window's
1341 case, PAINTSTRUCT's), so we can deal with nested Paint calls
1342 without puking or not disposing of Graphics objects.
1344 * XplatUIOSX.cs: same.
1346 * XplatUIWin32.cs: same.
1348 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
1350 * FileDialog.cs: Don't call on_directory_changed inside
1351 OnSelectedIndexChanged (it changes the SelectedIndex too).
1352 Instead move it to OnSelectionChangeCommitted.
1354 2006-10-13 Chris Toshok <toshok@ximian.com>
1356 * XplatUIX11.cs: more Destroy work. the current code does the
1357 following things, in order:
1359 1. Enumerates all handles of all controls at or below the one
1360 being destroyed, in pre-order. As it is doing this, it marks the
1361 handles as zombie and clears all references to them.
1363 2. calls XDestroyWindow on the window passed in.
1365 3. SendMessage's WM_DESTROY to all he handles in the accumulated
1368 2006-10-13 Chris Toshok <toshok@ximian.com>
1370 * XplatUIX11.cs: set hwnd.zombie to true before calling
1371 SendMessage (WM_DESTROY). this keeps us from marking the new
1372 window a zombie, and also keeps us from calling sendmessage at
1375 2006-10-13 Jackson Harper <jackson@ximian.com>
1377 * TextControl.cs: Do not show the caret and selection at the same
1378 time. Reduces ugliness by 35%.
1380 2006-10-13 Chris Toshok <toshok@ximian.com>
1382 * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
1383 zombie after we do the recursive call, so we actually do call
1384 SendMessage on the children controls.
1385 (GetMessage): if we find a pending paint event for a zombie hwnd,
1386 remove the hwnd from the paint queue, or else it will always be
1387 there (and we'll effectively loop infinitely)
1389 2006-10-13 Mike Kestner <mkestner@novell.com>
1391 * MenuItem.cs : add Selected format under keynav too.
1394 2006-10-13 Gert Driesen <drieseng@users.sourceforge.net>
1396 * PropertyGrid.cs: Fixed some NRE's and small difference between our
1397 implementation and that of MS.
1399 2006-10-13 Chris Toshok <toshok@ximian.com>
1401 * Control.cs (OnInvalidated) only futz with the invalid_region if
1402 the control is double buffered. this fixes the apparent hang in
1403 the ListView unit tests. Someone needs to make the
1404 BeginEndUpdateTest not call OnInvalidated 15004 times, though..
1406 2006-10-13 Chris Toshok <toshok@ximian.com>
1408 * PropertyGridView.cs:
1410 - do a little refactoring so that only one place calls
1411 dropdown_form.Hide, and that is CloseDropDown. make everywhere
1412 else call that. Also make it Refresh, since there are redraw bugs
1413 otherwise (we should take a look at that...)
1415 - do a little more refactoring work to share the body of code
1416 involved with the drop down. it was duplicated in the code
1417 dealing with the listbox handling and in the code dealing with the
1420 - add a Capture to the dropdown form's control once it's
1421 displayed, and add a MouseDown handler that checks to make sure
1422 the position is inside the control. If it's not, close the
1423 dropdown. This fixes #78190.
1425 - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
1426 if the value is different than the initial value.
1428 2006-10-13 Andreia Gaita <shana.ufie@gmail.com>
1430 * Control.cs: see #78650
1431 - Fixed GetNextControl for several cases:
1432 - Changed FindFlatForward to return
1433 correct sibling control when more than one
1434 control has same TabIndex as the currently
1436 - Changed FindFlatBackward to loop children
1437 from last to first and apply same logic as in
1439 - Changed FindControlForward to search for
1440 children when control is not a container
1441 but has children, or search for siblings if
1442 control is a container...
1443 - Changed FindControlBackward to continue
1444 searching for child controls when hitting
1447 - Fixed Focus method to update ActiveControl
1448 (FocusTest.FocusSetsActive failure)
1451 - Focus rectangle now refreshes when gaining
1453 - Removed grab for Tab key on IsInputKey that
1454 was keeping tab navigation from working (#78650)
1456 2006-10-13 Chris Toshok <toshok@ximian.com>
1458 * PropertyGridView.cs:
1459 - Rewrite SetPropertyValue to loop over SelectedGridItem's
1462 - Deal with GridItem.Value == null a few places.
1465 - replace the PopulateGridItemCollection with a pair of methods
1466 which compute the intersection of all the properties in the
1467 SelectedObjects array. Fixes #79615.
1469 - Throw ArgumentException from set_SelectedObjects if there's a
1472 - Add GetTarget method which can be used to traverse up the
1473 GridItem.Parent chain. It depends on the assumption that
1474 selected_objects for different GridEntries are always in the same
1475 order (a safe assumption). Use this method and loop over all the
1476 selected objects in the entry when calling RemoveValueChanged and
1479 * GridEntry.cs: Make this handle multiple selected objects.
1480 .Value returns null if not all the selected objects share the same
1483 2006-10-12 Jonathan Pobst <monkey@jpobst.com>
1484 * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
1485 ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
1486 ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
1487 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
1488 ToolStripTextBox.cs: Add accessibility, fix attributes/API and
1489 add additional functionality.
1491 2006-10-12 Mike Kestner <mkestner@novell.com>
1493 * ErrorProvider.cs : new ToolTipWindow ctor sig.
1494 * HelpProvider.cs : new ToolTipWindow ctor sig.
1495 * ToolTip.cs : remove ToolTip param from Window sig since it is
1497 * ToolBar.cs : add tooltip support. Fixes #79565.
1499 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
1501 * ComboBox.cs: move the events in set_SelectedIndex to
1502 after the call to HighlightIndex in order to avoid
1503 possible recursion and subsequent problems with the call
1504 to HighlightIndex and include a range check in
1505 set_HighlightIndex. Fixes #79588
1507 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
1509 * MonthCalendar.cs: When FirstDayOfWeek is default set firstday
1510 to ui thread's settings instead of sunday.
1511 * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
1513 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
1517 * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
1518 and implement missing functionality (selecting different parts
1519 of the date and edit them individually with the keyboard).
1521 2006-10-11 Chris Toshok <toshok@ximian.com>
1523 * Control.cs (OnInvalidated): fix NRE relating to last change.
1525 2006-10-11 Chris Toshok <toshok@ximian.com>
1527 * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
1528 atoms in _NET_WM_STATE here if the window is maximized. We need
1529 to do this because we're *replacing* the existing _NET_WM_STATE
1530 property, so those atoms will be lost otherwise, and any further
1531 call to GetWindowState will return Normal for a window which is
1532 actually maximized. Fixes #79338.
1534 2006-10-11 Jackson Harper <jackson@ximian.com>
1536 * TextControl.cs: Special case for setting selection end to
1537 selection start, we basically kill the anchor.
1538 - some todo comments.
1540 2006-10-11 Chris Toshok <toshok@ximian.com>
1542 * Control.cs: switch to using an "invalid_region" to track which
1543 parts of the image buffer need updating. This is more code than
1544 the simple fix from r66532. That version just attempted to always
1545 fill the entire buffer on redraw, which turns out to be
1546 inefficient when invalidating small rectangles. This version
1547 simply adds the invalid rectangle to the invalid region. When we
1548 get any WM_PAINT message we see if it can be filled using the
1549 image buffer, and if it can't (if the paint event's clip rectangle
1550 is visible in the invalid region) we first fill the image buffer.
1551 So, the image buffer is still a cache, we just fill it lazily.
1553 * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
1556 2006-10-11 Chris Toshok <toshok@ximian.com>
1558 * XplatUIX11.cs (SetWindowPos): we need to update both position as
1559 well as size after calling XMoveResizeWindow. This keeps us from
1560 ignoring future SetWindowPos calls. Fixes the disappearing
1561 DateTimePicker in the ToolBarDockExample from bug #72499.
1563 2006-10-11 Chris Toshok <toshok@ximian.com>
1565 * TextBoxBase.cs: reorder things a bit when it comes to
1566 resizing-causing-recalculation. we were recalculating the
1567 document when our position was changed, which shouldn't happen.
1568 We only care about size changes. Clear up some more redundant
1569 recalculation calls while I'm at it. This makes the toolbar dock
1570 example snappy when you're just dragging toolbars around (since it
1571 causes a relayout whenever you move one.)
1573 2006-10-11 Chris Toshok <toshok@ximian.com>
1575 * ToolBarButton.cs (get_Rectangle): this only returns
1576 Rectangle.Empty if Visible == false, or Parent == null.
1577 Parent.Visible doesn't matter.
1579 2006-10-10 Chris Toshok <toshok@ximian.com>
1581 * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
1582 by .net 1.1, so switch to an internal method instead.
1584 2006-10-10 Chris Toshok <toshok@ximian.com>
1586 * Control.cs (WM_PAINT): when a control is double buffered we draw
1587 initially to the ImageBuffer and then copy from there. But when a
1588 parent control which has child controls is double buffered, the
1589 initial drawing doesn't encompass the entire ClientRectangle of
1590 the parent control, so we end up with uninitialized bits (this is
1591 easily seen by dragging the top toolbar in
1592 wf-apps/ToolBarDockExample to the right, quickly). The fix is to
1593 manually set the ClipRectangle of the paint_event (only the one we
1594 use to populate the ImageBuffer) to ClientRectangle. Fixes more
1595 of the nastiness in bug #72499.
1597 * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
1598 which we use in Control.cs's WM_PAINT handling.
1600 2006-10-10 Jackson Harper <jackson@ximian.com>
1602 * TextBoxBase.cs: Finish off the autoscrolling stuff.
1604 2006-10-10 Chris Toshok <toshok@ximian.com>
1606 * Cursor.cs: Apply a slightly different patch to the one suggested
1609 2006-10-10 Jackson Harper <jackson@ximian.com>
1611 * MenuItem.cs: Make sure to put the mdi child in the hashtable,
1612 not the parent form.
1613 * TextControl.cs: use difference in old line count vs new count to
1614 calculate how many lines were added, this takes into account soft
1615 line breaks properly.
1617 2006-10-10 Chris Toshok <toshok@ximian.com>
1619 * LinkLabel.cs: don't call MeasureCharacterRanges against a
1620 rectangle located at 0,0 and the size of the text. Use
1621 ClientRectangle instead. This fixes rendering of non-left aligned
1624 2006-10-10 Jackson Harper <jackson@ximian.com>
1626 * TextBoxBase.cs: When we set the selection start position the
1628 * TextControl.cs: Need to update the caret when we decrement it to
1630 - Make sure that the selection_visible flag gets reset to false if
1631 the selection isn't visible. Before this you could get it set to
1632 visible by changing the selection start, then changing the end to
1635 2006-10-09 Jackson Harper <jackson@ximian.com>
1637 * TreeView.cs: Don't update scrollbars when we aren't visible.
1638 * TreeNodeCollection.cs: Only need to update scrollbars if being
1639 added to an expanded visible node or the root node.
1641 2006-10-09 Chris Toshok <toshok@ximian.com>
1643 * XplatUIX11.cs (SendMessage): fix NRE.
1645 2006-10-09 Jackson Harper <jackson@ximian.com>
1647 * TextBoxBase.cs: Implement horizontal autoscrolling.
1648 * TextControl.cs: Add a movement types that allows moving forward
1649 and backwards without wrapping.
1651 2006-10-09 Mike Kestner <mkestner@novell.com>
1653 * ListViewItem.cs : layout changes for wrapped LargeIcon labels
1654 with focus "expansion" of labels. Fixes #79532 and then some.
1655 * ThemeWin32Classic.cs : add LineLimit to ListView label format
1658 2006-10-09 Jackson Harper <jackson@ximian.com>
1660 * TextBoxBase.cs: Set the default max values to MaxValue since
1661 we use the scrollbar for autoscrolling and the default value is
1662 100. If we don't do this the caret won't keep up with typing
1663 after about 18 characters.
1664 * TextControl.cs: Make sure the selection is offset by the
1665 viewport x. This fixes selection when using auto scrolling.
1667 2006-10-07 Andreia Gaita <shana.ufie@gmail.com>
1669 * Form.cs: The active control should be selected after the
1670 OnLoad so that any child control initialization that affects
1671 the selection is done. Fixes #79406
1673 2006-10-06 Chris Toshok <toshok@ximian.com>
1675 * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
1676 to have no evil effects.
1678 - Stop selecting StructureNotifyMask on non-toplevel windows.
1680 The only way children should be resized is by using the SWF api,
1681 and we already send WM_WINDOWPOSCHANGED messages in those cases.
1682 Toplevel windows can be interacted with via the window manager,
1683 and so we keep the input mask there.
1685 The other event StructureNotifyMask gives us (that we care
1686 about) is DestroyNotify. The code is already structured such
1687 that it assumes we won't be getting a DestroyNotify event for
1688 the window we pass to XDestroyWindow (which is what
1689 StructureNotifyMask is supposed to guarantee.) So, that code
1690 shouldn't be affected by this either.
1692 - Stop selecting VisibilityChangeMask altogether.
1694 We weren't doing anything with the resulting events anyway.
1696 This vastly reduces the number of X requests and events we see
1697 when resizing/laying out a large ui.
1699 2006-10-06 Chris Toshok <toshok@ximian.com>
1701 * ScrollableControl.cs (DisplayRectangle): we need to take into
1702 account the DockPadding regardless of whether or not auto_scroll
1703 == true. rework this slightly to this effect, and fix bug #79606,
1704 and part of #72499 (you can now see the drag handles and drag
1707 2006-10-06 Gert Driesen <drieseng@users.souceforge.net>
1709 * ListViewItem.cs: Collections of selected and checked items are now
1710 dynamically rebuilt. Whenever an item is (un)checked or (de)selected
1711 we mark the collection "dirty".
1712 * ListView.cs: Marked collections readonly. Modified UpdateSelection
1713 to only clear SelectedItems when a new item is selected and MultiSelect
1714 is enabled. CheckedItems and SelectedItems now subscribe to Changed
1715 event of ListViewItemCollection, and mark its list dirty whenever
1716 that event is fire. This allows us to return selected/checked items
1717 in the same order as they are in the Items collection. This matches
1720 2006-10-06 Chris Toshok <toshok@ximian.com>
1722 * NotifyIcon.cs (HandleMouseUp): only show the context menu on
1723 right mouse clicks. Fixes bug #79593.
1725 2006-10-06 Chris Toshok <toshok@ximian.com>
1727 * Splitter.cs: doh, fix splitters that don't want to cancel the
1728 movement when you drag them. Also, impose the limits on the
1729 values we send to the SplitterMovingEvent. Fixes #79598.
1731 2006-10-06 Jackson Harper <jackson@ximian.com>
1733 * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
1734 since we use this for auto scrolling also.
1736 2006-10-05 Chris Toshok <toshok@ximian.com>
1738 * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus. I'm
1739 beginning to think that most datagrid column types don't need this
1740 method. Fixes bug #79392.
1742 2006-10-05 Chris Toshok <toshok@ximian.com>
1744 * DataGrid.cs: move back to a more lazy scheme for creating the
1745 CurrencyManager, so we aren't updating it every time you set
1746 either DataSource or DataMember. Also, don't call
1747 RecreateDataGridRows if the currency manager hasn't changed.
1749 2006-10-05 Chris Toshok <toshok@ximian.com>
1751 * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
1752 emitted, SelectedIndex should already be updated. Fixes bug
1755 2006-10-05 Jonathan Pobst <monkey@jpobst.com>
1757 * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
1758 ToolStripTextBox.cs: Initial commit.
1759 * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
1761 2006-10-05 Jackson Harper <jackson@ximian.com>
1763 * TabControl.cs: We need to invalidate the tab control area when
1764 new ones are added (duh).
1766 2006-10-03 Chris Toshok <toshok@ximian.com>
1768 * Form.cs (ProcessDialogKey): if the focused control is in this
1769 form and is a button, call its PerformClick method here. Fixes
1772 2006-10-04 Jackson Harper <jackson@ximian.com>
1774 * TabPage.cs: Ignore setting of Visible, and add an internal
1775 method for setting the controls visibility. TabPage's Visible
1776 property is a little strange on MS, this seems to make us
1777 compatible, and fixes cases where people set all the tab pages to
1779 * TabControl.cs: Use the new internal setting on tab pages
1782 2006-10-03 Mike Kestner <mkestner@novell.com>
1784 * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
1786 2006-10-03 Mike Kestner <mkestner@novell.com>
1788 * ListView.cs : use is_visible instead of Visible to check if
1789 scrollbars should be placed/sized. Also some max_wrap_width
1790 love for LargeIcon view. [Fixes #79533]
1792 2006-10-03 Atsushi Enomoto <atsushi@ximian.com>
1795 Make set_TextAlign() do actually update the align. Fixed #78403.
1797 2006-10-03 Chris Toshok <toshok@ximian.com>
1799 * DataGrid.cs: fix a crash when switching datasources if the
1800 vertical scrollbar is at someplace other than Value = 0. Also,
1801 reduce the number of recalculation passes we do in SetDataSource
1804 2006-10-03 Jackson Harper <jackson@ximian.com>
1806 * TextBoxBase.cs: Move the if value the same bail check up, we
1807 don't want to empty the document if it is already empty, this
1808 seems to severly mess up the caret. TODO: I should probably fix
1809 the empty statement to update teh caret somehow.
1811 2006-10-03 Chris Toshok <toshok@ximian.com>
1813 * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
1814 incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
1815 reflection, an internal row type, properties on said type, etc.)
1816 will work with our datagrid. Fixes #79531.
1818 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
1820 * FileDialog.cs: Don't crash if a path is not accessible
1821 (System.UnauthorizedAccessException). Fixes #79569.
1822 * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
1823 a ':' too. Return unknown icon for those paths/files.
1825 2006-10-03 Sebastien Pouliot <sebastien@ximian.com>
1827 * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when
1828 GetContainerControl returns null.
1830 2006-10-02 Chris Toshok <toshok@ximian.com>
1832 * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
1833 call to XGetWindowAttributes instead of "handle". fixes an X
1834 error using notifyicon after the NotifyIconWindow to Form base
1837 2006-10-02 Chris Toshok <toshok@ximian.com>
1839 * XplatUIX11.cs (QueryPointer): new function, encapsulating the
1840 server grab and looping we need to do to get down to the most
1841 deeply nested child window.
1842 (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
1843 QueryPointer again after the WarpPointer so we can generate a
1844 proper (fake) MotionNotify event to be enqueued in the destination
1846 (GetCursorPos): call QueryPointer.
1850 2006-10-02 Jackson Harper <jackson@ximian.com>
1852 * NotifyIcon.cs: Derive the notify icon from a form, so things
1853 like FindForm work on it.
1854 - Swallow the WM_CONTEXTMENU message, since that is generated on
1855 mouse down, and context menu is a mouse up kinda guy. I believe
1856 the correct fix here is probably to make the notify icon entirely
1857 NC area, but this seems to work fine for anyone not manipulating
1860 2006-10-02 Jonathan Pobst <monkey@jpobst.com>
1862 * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
1863 ToolStripItemCollection.cs, ToolStripLabel.cs,
1864 ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
1865 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
1866 Initial implementation.
1867 * TextRenderer.cs: Provide padding to MeasureText.
1869 2006-10-02 Sebastien Pouliot <sebastien@ximian.com>
1871 * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
1872 of ButtonBaseAccessibleObject. Fix bug #79552.
1874 2006-10-02 Jackson Harper <jackson@ximian.com>
1876 * MdiWindowManager.cs: When maximizing use the containers client
1877 rect, not it's bounds, so nc area is accounted correctly.
1878 - Use the parent form's size for the menu position, since the
1879 client isn't always the full form size.
1881 2006-10-01 Chris Toshok <toshok@ximian.com>
1883 * ScrollableControl.cs: make sure neither right_edge or
1884 bottom_edge are < 0, since they're used as LargeChange for the
1885 horiz/vert scrollbars respectively. Fixes #79539.
1887 2006-10-01 Chris Toshok <toshok@ximian.com>
1889 * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
1890 the xplatuix11 code can cause us to destroy/recreate our handle.
1894 - this code can be invoked many times for the same Hwnd. Make
1895 sure we only destroy the client window once (the first time this
1896 method is called). This fixes bug #79544.
1897 - Remove the call to the improperly bound XSync. why we had two
1898 bindings to this, I will never know, but this call resulted in
1899 events being discarded from the queue(!).
1900 - correct a misunderstanding of _XEMBED_INFO - the second atom is
1901 not our current state but the state we wish to be in. So, 0 if
1902 we don't want to be mapped. Change it to 1.
1903 (SystrayRemove): The XEMBED spec makes mention of the fact that
1904 gtk doesn't support the reparent of client windows away from the
1905 embedder. Looking at gtksocket-x11.c seems to agree with this.
1906 The only avenue we have for removing systray icons is to destroy
1907 them. We don't want the handle to go away for good, though, so
1908 call InternalRecreateHandle on the NotifyIconWindow. Fixes
1911 2006-10-01 Chris Toshok <toshok@ximian.com>
1913 * Form.cs (WndProc): inline the native_enabled variable usage into
1914 the cases in which it's used. Fixes #79536.
1916 2006-09-29 Mike Kestner <mkestner@novell.com>
1918 * ListView.cs : toggle the selection state for ctrl clicks in
1919 multiselect mode. [Fixes #79417]
1921 2006-09-29 Mike Kestner <mkestner@novell.com>
1923 * ListView.cs : kill CanMultiSelect and refactor the selection
1924 code to support multiselection in the absence of mod keys. Steal
1925 arrow/home/end keys by overriding InternalPreProcessMessage to
1926 restore regressed keynav behavior.
1929 2006-09-29 Jackson Harper <jackson@ximian.com>
1931 * MdiClient.cs: Repaint the titlebars when the active window is
1934 2006-09-29 Chris Toshok <toshok@ximian.com>
1936 * Application.cs: when entering a runloop with a modal, make sure
1937 the hwnd is enabled. Fixes #79480.
1939 2006-09-29 Chris Toshok <toshok@ximian.com>
1941 * DataGrid.cs (CurrentCell): if we try to navigate to the add row
1942 when ListManager.CanAddRows == false, bump us back one.
1944 * DataGridColumnStyle.cs (ParentReadOnly): remove the
1945 listmanager.CanAddRows check. This makes ArrayLists uneditable
1946 using a datagrid, which is not right.
1947 (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
1948 is an IEditable, but call property_descriptor.SetValue regardless.
1951 2006-09-29 Chris Toshok <toshok@ximian.com>
1953 * DataGridBoolColumn.cs: we need to test equality in the face of
1954 possible null values (as is the case with the default NullValue).
1955 This patch keeps us from crashing in that case.
1957 2006-09-29 Jackson Harper <jackson@ximian.com>
1959 * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
1960 here, since it will get called for every node collection in the
1961 tree. This is now done in the treeview once the sorting is
1963 * TreeView.cs: Recalculate the visible order, and update the
1964 scrollbars after sorting, set the top nope to the root so that the
1965 recalc actually works.
1967 2006-09-29 Chris Toshok <toshok@ximian.com>
1969 * LinkLabel.cs: more handling of the default link collection in
1970 the face of LinkArea manipulation. The default link collection
1971 contains 1 element (start=0,length=-1). If the user sets LinkArea
1972 to anything and the links collection is the default, clear it.
1973 Then only add the link if its nonempty. Fixes #79518.
1975 2006-09-29 Chris Toshok <toshok@ximian.com>
1977 * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
1978 piece correctly when we hit a '\n'. Fixes #79517.
1980 2006-09-29 Chris Toshok <toshok@ximian.com>
1982 * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
1983 change the binding of gdk_init_check to take two IntPtr's, and
1984 pass IntPtr.Zero for both of them. Fixes #79520.
1986 2006-09-29 Mike Kestner <mkestner@novell.com>
1988 * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
1991 2006-09-28 Jackson Harper <jackson@ximian.com>
1993 * XplatUIX11.cs: When translating NC messages make sure we go from
1994 whole window to screen, not client window to screen.
1995 * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
1996 method doesn't exist
1997 - Skip over controls that aren't forms when arranging.
1999 2006-09-28 Jackson Harper <jackson@ximian.com>
2001 * XplatUIWin32.cs: Clip the rect to the parent window.
2002 * XplatUIStructs.cs: Add clipping modes struct.
2003 * InternalWindowManager.cs: New private method that factors title
2004 bar heights in when calculating the pos of an NC mouse message.
2005 - Use SendMessage to force a paint when the form's size is changed
2006 instead of painting the decorations immediately.
2007 - Don't let the NC button click messages get to DefWndProc,
2008 because they will attempt to handle windowing themself, and this
2009 messes up z-order (it will put them in front of the scrollbars).
2010 * XplatUIX11.cs: Make sure that we don't reset window managers if
2011 we already have one (ie the window is an MDI window).
2013 2006-09-28 Chris Toshok <toshok@ximian.com>
2015 * MainMenu.cs: fix #79405 by way of a disgusting hack. all the
2016 menu code really needs going over.
2018 2006-09-27 Chris Toshok <toshok@ximian.com>
2020 * XplatUIX11.cs (SetWMStyles): more metacity wonderment. turns
2021 out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
2022 window is maximizable. So, we need to make sure that even if we
2023 clear the border/wm frame of those functions, they're still
2024 available (basically, we remove the decoration without removing
2025 the function). Half the fix for #79338.
2027 2006-09-27 Chris Toshok <toshok@ximian.com>
2029 * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
2032 2006-09-27 Chris Toshok <toshok@ximian.com>
2034 * Splitter.cs: reorder things a bit so that we don't actually
2035 draw/move the splitter until after calling OnSplitterMoving. This
2036 lets users cancel/disallow the movement by explicitly setting
2037 event.SplitX/SplitY. Fixes #79372.
2039 2006-09-27 Jackson Harper <jackson@ximian.com>
2041 * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
2042 because it is most likely on a window being destroyed, and that
2043 will give us an X11 error.
2045 2006-09-27 Chris Toshok <toshok@ximian.com>
2047 * PropertyGridView.cs: half of the fix for #78190. Clicking on
2048 the dropdown button now toggles between showing and hiding the
2049 dropdown. Also, get rid of dropdown_form_showing and just use
2050 dropdown_form.Visible. We still don't do a grab, but I'll leave
2051 that part to someone who has handled Capture-fu before.
2053 2006-09-27 Chris Toshok <toshok@ximian.com>
2055 * DataGrid.cs: return false if alt isn't pressed when '0' is
2056 pressed. this keeps the '0' key from being swallowed, and fixes
2059 2006-09-27 Chris Toshok <toshok@ximian.com>
2061 * ComboBox.cs: use Invalidate when scrolling the dropdown list.
2062 Calling Refresh (in response to a scrollbar event) screws up the
2063 scrollbar painting. Fixes bug #78923.
2065 2006-09-27 Chris Toshok <toshok@ximian.com>
2067 * Theme.cs (SystemResPool): make the "if hashtable[key] == null
2068 then insert into hashtable" blocks threadsafe.
2070 2006-09-27 Chris Toshok <toshok@ximian.com>
2072 * MessageBox.cs (CreateParams): the styles should be |'ed with our
2073 baseclass's, since otherwise the
2074 ControlBox/MinimizeBox/MaximizeBox assignments above have no
2075 effect. This gets the close button back in messageboxes.
2077 2006-09-27 Chris Toshok <toshok@ximian.com>
2079 * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
2080 flag, not just != 0. this makes flags that are actually multiple
2081 bits (like WS_CAPTION) work. fixes bug #79508.
2083 2006-09-27 Jordi Mas i Hernandez <jordimash@gmail.com>
2085 * PageSetupDialog.cs: add support for getting and settings the
2086 paper size, source and orientation.
2088 2006-09-26 Chris Toshok <toshok@ximian.com>
2090 * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
2091 and caption == "", we need to remove the resize handles as well as
2094 * Control.cs (set_Text): turns out that setting Text on a form
2095 should change the WM styles on the window, since if ControlBox ==
2096 false, the only way to get a window border is to have a non-""
2097 Text property. check winforms/forms/text.cs for an example. so,
2098 call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
2099 update both window styles and title. This fixes a lot of dialogs
2100 (including the preferences dialog in MonoCalendar.)
2102 2006-09-26 Chris Toshok <toshok@ximian.com>
2104 * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
2105 control isn't a Form), call Win32ShowWindow to hide the window,
2106 but don't update the control Visible property. When we reparent
2107 back to a parent control, call SetVisible in order for the
2108 window's visibility to be reinstated.
2110 * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
2113 * Control.cs (ControlCollection.Remove): remove that value.Hide()
2114 call for good, since it breaks MonoCalendar (and other things I'm
2115 sure.) Also, set all_controls to null *after* the owner calls,
2116 which end up regenerating it.
2117 (ChangeParent): allow new_parent to be == null, passing
2118 IntPtr.Zero down to XplatUI.
2120 this fixes #79294 the right way.
2122 2006-09-26 Mike Kestner <mkestner@novell.com>
2124 * GridEntry.cs : internal SetParent method.
2125 * PropertyGrid.cs : attach to property changed on the proper
2126 target if we have a hierarchical grid with subobjects. Setup
2127 GridItem.Parent for hierarchical items.
2128 * PropertyGridView.cs : Set value on the correct target for
2129 hierarchical grids. [Fixes #78903]
2131 2006-09-26 Chris Toshok <toshok@ximian.com>
2133 * Control.cs (ChildNeedsRecreating): this should return true if
2134 either we're being recreated and the child is in our list, or our
2135 parent is waiting for our recreation.
2137 2006-09-26 Chris Toshok <toshok@ximian.com>
2139 * Control.cs (ControlCollection.Remove): reinstate the
2140 value.Hide() call as suggested in bug #79294.
2142 2006-09-26 Sebastien Pouliot <sebastien@ximian.com>
2144 * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
2145 coordinates (versus a relative move).
2147 2006-09-26 Chris Toshok <toshok@ximian.com>
2149 * Control.cs: rework child recreation a little bit. It turns out
2150 that we race between the DestroyNotify the WM_DESTROY message. If
2151 the parent gets its DestroyNotify before the child gets the
2152 WM_DESTROY message, the child ends up not recreating (since the
2153 parent finishes its recreation on DestroyNotify, and the child
2154 checks ParentIsRecreating.)
2156 So, instead we store off a list of all the child controls which
2157 need to be recreated when the parent control starts to recreate
2158 itself. Then, when child controls get their WM_DESTROY message we
2159 check to see if they're in the parent's pending recreation list,
2160 and if so, we recreate. This removes all dependency on ordering
2161 from the code and fixes the initial MonoCalendar upgrade dialog.
2163 2006-09-26 Jackson Harper <jackson@ximian.com>
2165 * TextControl.cs: Use the Line to get the length of the line,
2166 since soft line breaks can change the end line.
2168 2006-09-26 Chris Toshok <toshok@ximian.com>
2170 * Control.cs (ControlCollection.AddImplicit): don't add the
2171 control again if it's already in one of our lists. This keeps us
2172 from adding controls over and over again for comboboxes when their
2173 handle gets recreated (as the combobox adds implicit controls in
2174 OnHandleCreated). Fixes the X11 errors in bug #79480.
2176 2006-09-26 Jackson Harper <jackson@ximian.com>
2178 * TextControl.cs: When deleting characters make sure that any
2179 orphaned zero lengthed tags get deleted.
2180 - Fix ToString for zero lengthed tags.
2182 2006-09-25 Jackson Harper <jackson@ximian.com>
2184 * TextControl.cs: When getting a tag at the location there can be
2185 multiple tags at the same spot, these are 0-lengthed tags that
2186 appear when extra formatting has been stuck in a location. We
2187 need to pull out the last of these 0 lengthed tags.
2189 2006-09-25 Jackson Harper <jackson@ximian.com>
2191 * TextControl.cs: Fix print out in debug method.
2192 * TextBoxBase.cs: When text is set bail if we are setting to the
2195 2006-09-24 Alexander Olk <alex.olk@googlemail.com>
2197 * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
2198 It is now possible to change the selected index in a FontXXXListBox
2199 with the up and down arrow keys from the FontXXXTextBoxes.
2200 Also, send the FontXXXTextBox mouse wheel event to the corresponding
2201 FontXXXListBoxes to match ms.
2203 2006-09-22 Sebastien Pouliot <sebastien@ximian.com>
2205 * SystemInformation.cs: Return a clone of the theme's MenuFont because
2206 anyone can dispose it, anytime. All other properties returns enums,
2207 structs or basic types so they don't need such tricks.
2209 2006-09-22 Jackson Harper <jackson@ximian.com>
2216 * XplatUIDriver.cs: Update interface to add a primary selection
2217 flag, so the driver can use the primary selection buffer if
2219 * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
2221 * RichTextBox.cs: We need to supply the data object to paste now
2222 (so we can choose to supply CLIPBOARD or PRIMARY).
2223 * TextBoxBase.cs: Supply data object to paste (see above).
2224 - Middle click uses the primary selection data object.
2226 2006-09-21 Chris Toshok <toshok@ximian.com>
2228 * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
2229 of SetWMStyles. It's still a rat's nest and is largely
2230 order-dependent which I dislike immensely. This also fixes the X
2231 button disappearing from toplevel forms.
2233 2006-09-21 Mike Kestner <mkestner@novell.com>
2235 * ListBox.cs: move Jordi's click/dblclick raising code to the
2238 2006-09-21 Jordi Mas i Hernandez <jordimash@gmail.com>
2240 * ListBox.cs: Fixes 79450
2242 2006-09-21 Mike Kestner <mkestner@novell.com>
2244 * TreeView.cs: guard against disposed conditions in UpdateScrollbars
2245 to deal with people updating the TreeNodeCollection after the tree
2246 is disposed. "Fixes" 79330.
2248 2006-09-20 Jackson Harper <jackson@ximian.com>
2250 * TextControl.cs: Push the cursor record onto the undo stack
2251 before the delete action. This fixes 78651.
2253 2006-09-20 Jonathan Chambers <joncham@gmail.com>
2255 * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
2256 CreateParams. Fixes 79329.
2258 2006-09-19 Chris Toshok <toshok@ximian.com>
2260 * XplatUIX11.cs: a couple of blanket code massage passes to clean
2261 things up a bit. First, get rid of the NetAtoms array (and the NA
2262 enum), and just embed the atoms as static fields. Also, add a
2263 couple of functions (StyleSet and ExStyleSet) to clean up all the
2264 bitmask testing of styles.
2266 * X11Structs.cs: remove the NA enum, not needed anymore.
2268 2006-09-19 Chris Toshok <toshok@ximian.com>
2270 * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
2271 (mapping them to _NET_WM_WINDOW_TYPE_UTILITY). and add a little
2272 added cleanup to get MessageBox titles appearing again, which were
2273 broken by my earlier fix for caption-less/ControlBox-less windows.
2275 2006-09-18 Jonathan Pobst <monkey@jpobst.com>
2277 * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
2278 ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
2279 ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
2280 ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
2281 ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
2282 ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
2283 ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
2284 ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
2285 ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
2286 ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
2287 ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
2289 * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
2290 ToolStripButton.cs: Stubs needed for above.
2291 * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
2293 2006-09-15 Chris Toshok <toshok@ximian.com>
2296 - make the MessageQueues hashtable Synchronized.
2298 - SendMessage: if the Hwnd is owned by a different thread, use the
2299 AsyncMethod stuff to dispatch the SendMessage on the hwnd's
2300 thread. Fixes bug #79201.
2302 2006-09-15 Chris Toshok <toshok@ximian.com>
2304 * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly. If
2305 ControlBox == false, we disallow maximize/minimize/close. If the
2306 form Caption is "" we also disallow move (and get rid of the Title
2307 decoration). Unfortunately, regardless of how things are set,
2308 we're stuck with the Title and WM menu.
2310 2006-09-15 Chris Toshok <toshok@ximian.com>
2312 * Application.cs: add locking around the static message_filters
2313 ArrayList, part of #79196.
2315 2006-09-15 Chris Toshok <toshok@ximian.com>
2317 * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
2318 Form.ControlBox == false, the window has no titlebar nor resize
2319 handles. fixes bug #79368.
2321 2006-09-15 Chris Toshok <toshok@ximian.com>
2323 * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
2324 >= 0. Fixes bug #79370.
2326 2006-09-15 Jonathan Pobst <monkey@jpobst.com>
2327 * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
2329 Add properties: LayoutEngine, Margin, DefaultMargin.
2330 Add method: GetPreferredSize.
2331 Move layout logic from PerformLayout to layout engines.
2333 2006-09-13 Chris Toshok <toshok@ximian.com>
2335 * XplatUIX11.cs: more destroy work. Jackson pointed out that my
2336 fix for #79326 broke #78718, so this change addresses that.
2338 - in SendWMDestroyMessages remove the call to
2339 CleanupCachedWindows, since we might be recreating the control and
2340 need to maintain the references to right Hwnd handles. Also, set
2341 the zombie flag to true for each of the children in the hierarchy
2342 instead of calling hwnd.Dispose. This will cause GetMessage to
2343 ignore all events for the window except for DestroyNotify.
2345 - In GetMessage, ignore messages except for DestroyNotify for
2348 * Control.cs: revert the is_recreating fix from the last
2349 ChangeLog. It's definitely "right", but it breaks switching from
2350 an MDI form to a non-MDI form. Will need to revisit that.
2352 * Hwnd.cs: add a zombie flag, which means "the
2353 client_window/whole_window handles are invalid, but we're waiting
2354 for the DestroyNotify event to come in for them". Set the flag to
2355 false explicitly if setting WholeWindow/ClientWindow, and also
2358 2006-09-13 Chris Toshok <toshok@ximian.com>
2360 * XplatUIX11.cs: rework window destruction slightly.
2362 - when destroying the windows associated with a control, we don't
2363 need 2 separate XDestroyWindow calls. Just the one for the
2364 whole_window (or for client_window if whole_window is somehow
2365 IntPtr.Zero -- can this happen?) is enough.
2367 - reworked SendWMDestroyMessages slightly, so we always dispose
2368 the child control hwnd's after sending the messages.
2370 - refactored out the ActiveWindow/FocusWindow/Caret clearing from
2371 the two places it was used (one was even using hwnd.Handle and the
2372 other hwnd.client_window. ugh), adding another call in
2373 SendWMDestroyMessages. We need this new call because now the
2374 DestroyNotify events in the queue will be ignored for the child
2375 controls (as their hwnd's were disposed, and the window id's
2376 removed from the hashtable in SendWMDestroyMessages.) fun, eh?
2378 - this fixes bug #79326.
2380 2006-09-13 Chris Toshok <toshok@ximian.com>
2382 * Control.cs: don't always set is_recreating to false at the end
2383 of RecreateHandle, since sometimes we're not done (and won't be
2384 until WndProc handles the WM_DESTROY message). Also, set
2385 is_recreating to false in the WM_DESTROY handling code. Part of
2386 the fix for bug #79326.
2388 2006-09-13 Miguel de Icaza <miguel@novell.com>
2390 * X11DesktopColors.cs: Start the droppage of debugging messages.
2392 * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
2394 2006-09-13 Jonathan Pobst <monkey@jpobst.com>
2396 * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
2398 2006-09-12 Chris Toshok <toshok@ximian.com>
2400 * DataGrid.cs (get_ListManager): if the list_manager is null, try
2401 to create it using SetDataSource. Fixes bug #79151.
2403 2006-09-11 Chris Toshok <toshok@ximian.com>
2405 * XEventQueue.cs: add a DispatchIdle property.
2407 * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
2408 either the queue is null, or the queue has DispatchIdle set to
2410 (DoEvents): set queue.DispatchIdle to false around the
2411 peek/translate/dispatch message loop in this method. This keeps
2412 Application.Doevents from emitting idle events. Part of the fix
2415 2006-09-11 Chris Toshok <toshok@ximian.com>
2417 * DataGrid.cs (set_DataSource): make this work for both the
2418 winforms/datagrid test and ReportBuilder. It seems as though when
2419 we've created a ListManager (or maybe it's if we have a
2420 BindingContext?), when we set the DataSource it clears the
2421 DataMember to "". otherwise we reuse the datamember. Fixes bug
2424 2006-09-11 Chris Toshok <toshok@ximian.com>
2426 * XplatUIX11.cs: deal with queue being null, which happens in all
2427 the Clipboard functions. Fixes one of the two problems mentioned
2430 2006-09-11 Chris Toshok <toshok@ximian.com>
2432 * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
2433 button on various spots (including outside the menu) works closer
2434 to MS, and doesn't crash. Fixes #79343.
2436 2006-09-11 Gert Driesen <drieseng@users.sourceforge.net>
2438 * ListView.cs: Do not initialize item_sorter in init. To match MS,
2439 return null for ListViewItemSorter if View is SmallIcon or LargeIcon
2440 and the internal comparer is set. When a new ListViewItemSorter is set,
2441 sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
2442 was specified. No further processing is necessary if SortOrder is set
2443 to it's current value. If Sorting is modified to None, and View is
2444 neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
2445 (either custom or our internal ItemComparer) to null, on 1.0 profile
2446 only set item_sorter to null if its our internal IComparer. If Sorting
2447 is modified to Ascending or Descending, then use our internal IComparer
2448 if none is set, and if the current IComparer is our internal one then:
2449 on 2.0 profile always replace it with one for new Sorting, and on 1.0
2450 profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
2451 Enum.IsDefined to verify whether a valid View value is specified in
2452 its setter. Automatically sort listview items when listview is
2453 created. In Sort, do nothing if ListView is not yet created, or if
2454 no item_sorter is set (no Sorting was set, Sorting was explicitly set
2455 to None or ListViewItemSorter was set to null). Added Sort overload
2456 taking a bool to indicate whether the ListView should be redrawn when
2457 items are sorted (we use this in ListViewItemCollection to avoid double
2458 redraws). Modified our internal IComparer to take the sort order into
2459 account. In Add and AddRange methods of ListViewItemCollection, also
2460 call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
2461 view), but use overload with noredraw option to avoid double redraw.
2462 On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
2463 true when View is Tile, and do the same when attempting to set View to
2464 Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
2465 for selected/checked indices, as it involves overhead when sorting is
2466 done while these collections are not used all that often. Instead
2467 we'll build the indices on demand. Modified IList implementation of
2468 CheckedIndexCollection to use public methods if object is int.
2469 Modified CheckedListViewItemCollection to hide checked items if
2470 ListView.CheckBoxes is false. Removed LAMESPEC remark in
2471 ListViewItemCollection as the .NET SDK docs have been fixed. Modified
2472 IList implementation in SelectedIndexCollection to use public methods
2473 if object is int. Modified SelectedListViewItemCollection to hide
2474 selected items if listview is not yet created.
2475 * ListViewItem.cs: CheckedIndices list no longer needs to be
2476 maintained separately (see ListView changes). Also clone font, fixes
2479 2006-09-11 Mike Kestner <mkestner@novell.com>
2481 * ComboBox.cs: if we are updating the contents of the currently
2482 selected index, refresh the control or the textbox selection.
2485 2006-09-11 Mike Kestner <mkestner@novell.com>
2487 * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since
2488 the 'specified' logic has been moved there. This seems like a bug
2489 in Control.cs, since our current SetBoundsCore completely ignores
2490 the specified parameter. Peter's commit seems to indicate that is
2491 the way the MS control implementation works. [Fixes #79325]
2493 2006-09-10 Jonathan Chambers <joncham@gmail.com>
2495 * XplatUI.cs: Set default_class_name to be composed
2496 of current domain id. This allows MWF to be loaded in multiple
2499 2006-09-09 Miguel de Icaza <miguel@novell.com>
2501 * X11Keyboard.cs: If we are unable to obtain the input method, do
2502 not call CreateXic to create the input context. Should fix
2505 2006-09-08 Alexander Olk <alex.olk@googlemail.com>
2507 * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
2508 Simplified gnome support by adding more pinvokes to get the
2509 icon for a file or mime type.
2511 2006-09-08 Jackson Harper <jackson@ximian.com>
2513 * MenuAPI.cs: Deslect popup context menu items before closing the
2514 window, so that you don't see the previously selected item
2515 selected when you reopen the menu.
2516 * TextControl.cs: Update the cursor position even if we don't have
2517 focus. This fixes typing in things like the ComboBox. I'm not
2518 totally sure we should always set the visibility if we don't have
2519 focus, but couldn't find any corner cases where the cursor showed
2520 up when it shouldn't.
2522 2006-09-08 Chris Toshok <toshok@ximian.com>
2524 * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
2525 our arrays are length 256. & 0xff before indexing. Fixes the
2526 crash in bug #78077.
2528 2006-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2530 * ThemeWin32Classic.cs:
2531 * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
2532 is true. Handle that check box too.
2534 2006-09-07 Chris Toshok <toshok@ximian.com>
2536 * MenuAPI.cs: move the PerformClick call to OnMouseUp. Fixes bug
2539 2006-09-07 Chris Toshok <toshok@ximian.com>
2541 * Control.cs: in set_BackColor only do the work if
2542 background_color != value.
2544 * XplatUIX11.cs: move the clearing of invalid areas (both client
2545 and nc) to the same block of code where we set (nc_)expose_pending
2546 to false. That is, move it from PaintEventEnd to PaintEventStart,
2547 so things that cause invalidates from within OnPaint will trigger
2548 another call to OnPaint. Fixes bug #79262.
2550 2006-09-07 Alexander Olk <alex.olk@googlemail.com>
2552 * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
2553 * FileDialog.cs: Fix typo
2555 2006-09-07 Jackson Harper <jackson@ximian.com>
2557 * ThemeWin32Classic.cs: oops, forgot to commit. Draw the images
2558 for tab pages if they have any.
2560 2006-09-06 Mike Kestner <mkestner@novell.com>
2562 * Splitter.cs: use the "current" rect when finishing drag handle
2563 to avoid an artifact demonstrated by resedit.exe. [Fixes #79251]
2565 2006-09-06 Mike Kestner <mkestner@novell.com>
2567 * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
2568 support offset splitters. [Fixes #79298]
2570 2006-09-06 Alexander Olk <alex.olk@googlemail.com>
2572 * Mime.cs: Fixed a bug that could override the global mime type
2575 2006-09-05 Jackson Harper <jackson@ximian.com>
2577 * TabControl.cs: Better calculation method for setting the slider
2578 pos. Prevents crashes on really wide tabs.
2579 - Draw Image on tab pages if an image list is used.
2581 2006-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2583 * MonthCalendar.cs: When Font changes, the Size should be
2584 updated to fit the new font's space requirements.
2586 2006-09-02 Alexander Olk <alex.olk@googlemail.com>
2588 * ListBox.cs: If the items are cleared with Items.Clear set
2591 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2593 * MonthCalendar.cs: Handle arrow keys as input keys. Also
2594 fire DateChanged event instead of DateSelected event when
2595 the date was changed by keyboard interaction.
2597 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2599 * DateTimePicker.cs: Handle DateChanged for the associated
2600 month_calendar control, and set month_calendar.Font from
2601 OnFontChanged method, as well as resize the height of the
2602 control when needed. Make PreferredHeight proportional.
2604 2006-09-01 Chris Toshok <toshok@ximian.com>
2606 * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
2609 * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
2611 2006-09-01 Peter Dennis Bartok <pbartok@novell.com>
2613 * FileDialog.cs: Set ClientSize instead of window size, to allow space
2614 for decorations (Fixes #79219)
2616 2006-09-01 Mike Kestner <mkestner@novell.com>
2618 * ComboBox.cs: first stab at sorting plus some selection handling
2619 fixes to bring us more in line with MS behavior. Also switches back
2620 to index based selection. Alternative patches for index-based
2621 selection were provided by Jackson Harper, Carlos Alberto Cortez,
2622 and latency@gmx.de on bug 78848. I assume they were similar to this
2623 code I've had simmering in my tree forever.
2626 2006-09-01 Chris Toshok <toshok@ximian.com>
2628 * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
2629 when setting list position guard against ending up with a -1 index
2630 (the other part of the fix for #78812). Should probably make sure
2631 we don't need the analogous fix in the ItemDeleted case.
2634 - in SetDataSource, work around the fact that the way
2635 OnBindingContextChanged is invoked will cause us to re-enter this
2636 method. I'll remove the hack once I investigate
2637 OnBindingContextChanged.
2639 - fix the logic in set_DataSource and set_DataMember (basically
2640 what to do if the other of the two is null.)
2642 - in OnListManagerItemChanged, we need to take into account the
2643 edit row when deciding whether or not to call RecreateDataGridRows
2644 (part of the fix for #78812).
2646 2006-09-01 Jackson Harper <jackson@ximian.com>
2648 * Splitter.cs: Don't do anything if there is no control to affect
2649 (prevents us from crashing in weird tet cases).
2650 * TreeView.cs: Bounding box for the mouse movement reverting
2651 focus/selection back to previously selected node. This matches
2652 MS, and makes the tree a lot more useable.
2653 * GroupBox.cs: Instead of drawing over the lines of the groupbox,
2654 use clipping so they are not drawn. This fixes when the control
2655 is set to have a transparent background, or if it was over an
2658 2006-09-01 Alexander Olk <alex.olk@googlemail.com>
2660 * MimeIcon.cs: Improved handling for reading default icons when
2661 using gnome (2.16 made it necessary). Check and read svg icons
2662 first, then 48x48 and then 32x32 icons.
2664 2006-08-31 Chris Toshok <toshok@ximian.com>
2666 * DataGridTextBoxColumn.cs: only hide the textbox if it's still
2669 * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
2670 ProcessKeyPreview. Fixes part of #77806.
2672 * DataGrid.cs: big patch.
2674 - revert the queueing up of DataSource/DataMember if inside
2675 BeginInit/EndInit calls. That's not the way the datagrid achieves
2676 its delayed databinding. Instead, call SetDataSource in
2677 OnBindingContextChanged. This mimic's MS's behavior, and fixes
2680 - Also, it wasn't mentioned in #78811, but the test case exhibits
2681 behavior that was lacking in our datagrid implementation - Columns
2682 that have mapping names that don't exist in the datasource's
2683 properties aren't shown. Yuck. To fix this I added the bound
2684 field to the column style, and basically any calculation to figure
2685 out anything about columns uses a loop to find the bound columns.
2686 still need to investigate if I can cache an array of the bound
2687 columns or if the indices must be the same.
2689 - When setting CurrentCell, we no longer abort if the cell being
2690 edited was in the add row. This fixes the other part of #77806.
2692 - The new code also fixes #78807.
2694 * ThemeWin32Classic.cs: perpetrate the same disgusting
2695 column.bound field hack, and only render bound fields.
2697 2006-08-31 Chris Toshok <toshok@ximian.com>
2699 * DataGridColumnStyle.cs: add bound field. this field is true if
2700 the datasource has a property corresponding to the mapping name.
2702 * DataGridTableStyle.cs: set the bound field on the column styles
2703 depending on whether or not we have a column for that property.
2705 2006-08-31 Peter Dennis Bartok <pbartok@novell.com>
2707 * Splitter.cs (SetBoundsCore): Don't ignore width/height of the
2708 splitter control (fixes #79228)
2710 2006-08-31 Chris Toshok <toshok@ximian.com>
2712 * DataGridColumnStyle.cs: we need to delay the assignment of
2713 property descriptor until the last possible moment due to the lazy
2714 databinding stuff in the datagrid. Also, fix the exceptions
2715 thrown by CheckValidDataSource to match MS.
2717 2006-08-31 Jackson Harper <jackson@ximian.com>
2719 * Form.cs: When activated select the active control, if there is
2720 no active control, we select the first control.
2721 * XplatUIX11.cs: If there is no focus control when we get a
2722 FocusIn event, find the toplevel form and activate it. This
2723 occurs when you popup a window, it becomes the focus window, then
2724 you close that window, giving focus back to the main window.
2726 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2729 * ThemeWin32Classic.cs: Cache Font in bold style, as well
2730 as StringFormat with Center alignments in MonthCalendar,
2731 instead of creating new ones when drawing the control.
2732 Also, draw the month name in bold style.
2734 2006-08-30 Peter Dennis Bartok <pbartok@novell.com>
2737 - PerformLayout(): It would seem MS performs the fill even if the
2738 control is not visible (part of #79218 fix)
2739 - ResetBackColor(): Use the setter to reset the color, to allow
2740 overriders to catch the change.
2742 - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
2743 - CreateHandle(): dito (part of $79218 fix)
2744 - Don't set an icon if we have a dialog
2745 * ScrollableControl.cs:
2746 - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
2747 - ScrollIntoView(): No need to scroll if control is already visible
2748 (resolves fixme and fixes #79218)
2750 2006-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2752 * MonthCalendar.cs: Change proportions in SingleMonthSize
2753 to match the aspect of the original control.
2755 2006-08-29 Alexander Olk <alex.olk@googlemail.com>
2757 * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
2758 get updated when they get maximized.
2760 2006-08-29 Peter Dennis Bartok <pbartok@novell.com>
2762 * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
2764 2006-08-29 Chris Toshok <toshok@ximian.com>
2766 * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
2768 2006-08-29 Jackson Harper <jackson@ximian.com>
2770 * TreeView.cs: Need to track selected node and highlighted node,
2771 they aren't always the same thing, when the mouse is down on a
2772 node it is hilighted, but not selected yet.
2773 - Do the HideSelection stuff right
2774 - Need to focus on rbutton mouse down. And redraw selection when
2775 right click is mouse upped.
2777 2006-08-29 Mike Kestner <mkestner@novell.com>
2779 * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
2780 when SubItems.Count < Columns.Count. [Fixes #79167]
2782 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
2784 * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
2786 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
2788 * XplatUIX11.cs: Preempt the roundtrip for getting the location back
2789 from X. Only send based on ConfigureNotify if we don't have the
2790 correct location in hwnd (if the window manager moved us)
2792 2006-08-28 Mike Kestner <mkestner@novell.com>
2794 * ListView.cs: remove a TODO.
2795 * ThemeWin32Classic.cs: implement HideSelection support for ListView.
2796 [Fixes ListView part of #79166]
2798 2006-08-28 Mike Kestner <mkestner@novell.com>
2800 * ListView.cs: move wheel handler to parent since it is focused
2801 instead of the item_control now. [Fixes #79177]
2803 2006-08-28 Mike Kestner <mkestner@novell.com>
2805 * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
2806 when the control is focused. [Fixes #79171]
2808 2006-08-28 Mike Kestner <mkestner@novell.com>
2810 * ListView.cs: size the item and header controls for empty and
2812 * ThemeWin32Classic.cs: draw disabled backgrounds.
2815 2006-08-28 Chris Toshok <toshok@ximian.com>
2817 * Form.cs: remove unused "active_form" static field.
2819 * Hwnd.cs: lock around accesses to static windows collection.
2821 * Application.cs: lock threads in Exit ().
2823 2006-08-28 Chris Toshok <toshok@ximian.com>
2825 * NativeWindow.cs: lock around accesses to window_collection.
2827 2006-08-28 Chris Toshok <toshok@ximian.com>
2829 * Control.cs: err, fix this the right way, by locking on controls
2830 when using it. not by making it synchronized.
2832 2006-08-28 Chris Toshok <toshok@ximian.com>
2834 * Control.cs: make the static "controls" field synchronized, as it
2835 gets updated from multiple threads.
2837 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
2839 * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
2840 Prevent other threads from exiting when calling thread sets quit state.
2841 * XEventQueue.cs: Added PostQuitState property
2843 2006-08-27 Chris Toshok <toshok@ximian.com>
2845 * AsyncMethodData.cs: add a slot for the window handle.
2847 * XplatUIX11.cs (SendAsyncMethod): send the event to the right
2848 window (the destination control's window, not the foster window).
2850 * Control.cs (BeginInvokeInternal): store the window's handle in
2851 the AsyncMethodData.
2854 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
2857 - PostQuitMessage: Removed resetting S.D display handle, we might have
2858 another loop started after calling PostQuitMessage (Fixes #79119)
2859 - Created destructor to reset S.D handle
2861 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
2863 * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
2865 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
2867 * TextControl.cs (Insert): Update the caret position even if we don't
2868 have a handle yet, just don't call the driver in that case.
2869 * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
2870 to the end of the new selection text (Fixes #79184)
2872 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
2874 * Form.cs (Activate): Only activate if the handle is created)
2876 - Mark window as invisible when it's disposed
2877 - Check if window handle is created when setting window visible,
2878 instead of relying just on the is_created variable
2879 - Check if object is disposed when creating the control (Fixes #79155)
2881 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
2883 * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
2884 when allowing layout again. Otherwise we re-generate the anchoring
2885 distance to the border again and actually alter what the user wanted
2886 This is ugly, it'd be better if we used DisplayRectangle instead of
2887 ClientRectangle for Control.UpdateDistances, but that causes us to
2888 have other problems (initial anchoring positons would be wrong)
2891 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
2894 - The size and location setters shouldn't go directly to
2895 SetBoundsCore, but to SetBounds, which triggers layout on the
2896 parent, then calls SetBoundsCore. (Related to fix for #78835)
2897 - SetBounds: Moved actual location update code into this function
2898 from SetBoundsCore, to match MS. Added call to PerformLayout if
2899 we have a parent (to trigger resizing of anchored parents if the
2900 child size has changed (see testcase for #78835)
2901 * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match
2903 * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
2905 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
2907 * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
2908 System.Drawing when a toplevel window gets closed; there might
2909 be other toplevel windows belonging to the same app (Fixes #78052)
2911 2006-08-26 Alexander Olk <alex.olk@googlemail.com>
2913 * FileDialog.cs: After reading FileDialog settings from mwf_config
2914 use Desktop prefix only if a real folder doesn't exist anymore.
2915 * FontDialog.cs: Added char sets.
2916 It is now possible to select the font, size or style with the
2919 2006-08-25 Kornél Pál <kornelpal@gmail.com>
2921 * PrintPreviewDialog.cs: Use assembly name constants.
2923 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
2925 * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
2926 scrollbar from whacking it's buttons)
2928 2006-08-24 Chris Toshok <toshok@ximian.com>
2930 * ScrollableControl.cs: fix #78271. There's a lot of misc stuff
2931 in this patch (aggregating setting Left/Top/Width/Height to
2932 setting Bounds on the scrollbars), but the crux of the fix is in
2933 Recalculate, where we scroll by the remaining scroll_position if
2934 we're hiding a scrollbar. The 2*$5 reward in the comment is
2937 2006-08-24 Jackson Harper <jackson@ximian.com>
2940 * MdiWindowManager.cs: If the form is made a non-mdi window we
2941 need to remove the form closed event so that closing forms works
2944 2006-08-24 Jackson Harper <jackson@ximian.com>
2946 * Control.cs: Make IsRecreating internal so that the driver can
2948 - Temporarily remove the Hide when controls are removed, its
2949 making a whole bunch of things not work because visibility isn't
2950 getting reset elsewhere correctly
2951 * Form.cs: Need to do a full handle recreation when the mdi parent
2953 * XplatUIX11.cs: If we are recreating handles don't dispose the
2954 HWNDs. What was happening is the handles were being recreated in
2955 SendWMDestroyMessages, but then flow continued on in that method
2956 and destroyed the new handles.
2958 2006-08-23 Jackson Harper <jackson@ximian.com>
2960 * Form.cs: MdiClient is always at the back of the bus
2961 * Control.cs: When the order of items in the collection is changed
2962 we need to reset the all_controls array
2963 - do the same sorta setup thats done when adding a control when a
2964 control is set on the collection.
2966 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
2968 * TextBoxBase.cs (get_Text): Return an empty array if our document
2969 is empty (fixes #79052)
2971 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
2973 * Control.cs: We should call IsInputChar on only on WM_CHAR but not
2974 on WM_SYSCHAR messages (fixes #79053)
2976 2006-08-23 Chris Toshok <toshok@ximian.com>
2978 * DataGrid.cs: fix flickering when scrolling vertically.
2980 2006-08-23 Chris Toshok <toshok@ximian.com>
2982 * DataGrid.cs (EndEdit): only invalidate the row header when we
2985 2006-08-23 Chris Toshok <toshok@ximian.com>
2987 * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
2988 methods. fixes the flicker when scrolling around.
2990 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
2992 * FileDialog.cs: Making sure the control is created before we get a
2993 chance to use it with BeginInvoke (Fixes #79096)
2995 2006-08-23 Chris Toshok <toshok@ximian.com>
2997 * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
2998 width to use when painting the rows.
3000 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
3003 - Throw ArgumentException if a negative value is passed to SelectionLength
3004 - Update the selection end if start is moved. end needs to be always
3005 after start. (Fixes #79095)
3006 - Track selection length; MS keeps the selection length even if start
3007 is changed; reset on all other operations affection selection
3009 2006-08-22 Jackson Harper <jackson@ximian.com>
3011 * TreeView.cs: Make sure both scrollbars get displayed and sized
3012 correctly when the other bar is visible.
3013 - Use the original clip rectangle for checking if the area between
3014 the two scrollbars is visible, not the viewport adjusted clipping
3017 2006-08-22 Jackson Harper <jackson@ximian.com>
3019 * Binding.cs: We don't use IsBinding because it requires the
3020 control to be created, which really shouldn't be necessary just to
3021 set a property on the control.
3023 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3025 * ComboBox.cs: Some CB.ObjectCollection methods must throw
3026 ArgumentNullReferenceException when the argument is null.
3028 2006-08-21 Jackson Harper <jackson@ximian.com>
3030 * Timer.cs: Track the thread that the timer is started in (NOT
3031 CREATED), this way messages for it will only be triggered on its
3033 * XEventQueue.cs: Track the timers here, this makes timers per
3035 * XplatUIX11.cs: The timers are moved to the XEventQueue.
3037 2006-08-19 Chris Toshok <toshok@ximian.com>
3039 * XplatUIX11.cs: after further communication with pdb, we get the
3040 best of both worlds. SetZOrder working for un-Mapped windows, and
3041 no X errors for un-mapped windows.
3043 2006-08-19 Chris Toshok <toshok@ximian.com>
3045 * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
3046 as it was causing pdn toolbars to not have the correct stacking.
3048 2006-08-18 Mike Kestner <mkestner@novell.com>
3050 * ListView.cs : guard against negative ClientArea.Width in scrollbar
3051 calculation. Not sure why control should ever be setting a negative
3052 width though. Fixes #78931.
3054 2006-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3056 * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
3057 null items in ObjectCollection class.
3058 * ListBox.cs.: Likewise.
3060 2006-08-18 Atsushi Enomoto <atsushi@ximian.com>
3062 * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
3063 as the base method in ThemeWin32Classic should work fine.
3066 2006-08-18 Jackson Harper <jackson@ximian.com>
3068 * Binding.cs: When validating if the value entered doesn't convert
3069 properly reset to the old value.
3070 * RadioButton.cs: Don't fire click when we get focus.
3072 2006-08-18 Jackson Harper <jackson@ximian.com>
3074 * FileDialog.cs: Paint the selection on the directory combobox the
3077 2006-08-17 Jackson Harper <jackson@ximian.com>
3079 * ErrorProvider.cs: Don't allow the error control to be selected.
3080 * Control.cs: Don't send the SetFocus messages, the control
3081 activation will do this, and if we do it blindly here validation
3084 2006-08-17 Jackson Harper <jackson@ximian.com>
3087 * ContainerControl.cs: Make validation events fire in the correct
3088 order. TODO: For some reason the first validation event is not
3091 2006-08-17 Mike Kestner <mkestner@novell.com>
3093 * ComboBox.cs : some null guarding for ComboListBox.Scroll.
3095 2006-08-17 Mike Kestner <mkestner@novell.com>
3097 * ComboBox.cs : implement scroll wheel support for popped-down
3098 state. Fixes #78945.
3100 2006-08-17 Jackson Harper <jackson@ximian.com>
3102 * TreeView.cs: Specify treeview actions (old patch that didn't get
3103 committed for some reason).
3104 - Don't let the mouse wheel scroll us too far. Just want to make
3105 the bottom node visible, not scroll it all the ways to the top.
3107 2006-08-17 Jackson Harper <jackson@ximian.com>
3109 * XplatUIX11.cs: Mouse wheel events go to the focused window.
3111 2006-08-17 Mike Kestner <mkestner@novell.com>
3113 * ComboBox.cs : don't do mouseover selection in simple mode.
3115 2006-08-16 Jackson Harper <jackson@ximian.com>
3117 * Form.cs: Fire the closing events for all the mdi child windows
3118 when a window is closed. If the cancel args are set to true, the
3119 main window still gets the event fired, but it doesn't not close.
3120 * MdiWindowManager.cs: Do this closing cleanup in a Closed
3121 handler, instead of when the button is clicked, so cancelling the
3122 close works correctly.
3123 * ComboBox.cs: Send the mouse down to the scrollbar.
3125 2006-08-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3127 * ListBox.cs: When passing 'null' to SelectedItem,
3128 set SelectedIndex to -1, to unselect items. This is the
3129 observed behaviour in .Net.
3131 2006-08-16 Peter Dennis Bartok <pbartok@novell.com>
3133 * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
3134 MS flags saying there won't be any. (fixes #78800)
3135 * Control.cs (HandleClick): Made virtual
3137 2006-08-16 Atsushi Enomoto <atsushi@ximian.com>
3139 * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
3140 cultures. Fixed bug #78399.
3142 2006-08-16 Jackson Harper <jackson@ximian.com>
3144 * Form.cs: Use the MdiClients MdiChildren property to access
3145 MdiChildren instead of creating the array from the child controls.
3146 * MdiClient.cs: Maintain a separate array of the mdi children, so
3147 that insertion order is maintained when the Z-order is changed.
3149 2006-08-16 Mike Kestner <mkestner@novell.com>
3151 * ListView.cs : add an ItemComparer and default to it for sorting.
3152 Fixes #79076, but sorting needs a complete overhaul to be compat with
3155 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
3157 * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
3159 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
3161 * Hwnd.cs (Mapped): Properly traverse the tree
3163 2006-08-15 Chris Toshok <toshok@ximian.com>
3165 * Binding.cs: fix PullData/SetPropertyValue. We don't want to
3166 pass manager.Current.GetType() to ParseData. It has to be the
3167 property type. So, hold off doing the ParseData until we're in
3168 SetPropertyValue where we know the type. This fixes the crash in
3169 #78821 but the textbox is still empty.
3171 2006-08-15 Chris Toshok <toshok@ximian.com>
3174 - when we're scrolling, only call Edit() again if the
3175 current cell is still unobscured. Fixes bug #78927.
3176 - when handling mousedown on a cell, ensure the cell is visible
3177 before calling Edit.
3178 - remove the properties from DataGridRow, and remove the
3179 DataGridParentRow class altogether.
3182 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
3184 * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
3185 fire OnTextChanged by ourselves. There's no point calling base,
3186 we don't set the base value anywhere else. Fixes #78773.
3188 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3190 * ListBox.cs: Call CollectionChanged when modifying
3191 an item from Items indexer, to update the actual items
3194 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3196 * PrintDialog.cs: Small fixes for focus and a pair of checks,
3197 to match .Net behaviour.
3199 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
3201 * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
3203 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
3205 * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
3207 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
3209 * MessageBox.cs: Prevent potential NRE exception.
3210 * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
3212 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
3214 * MessageBox.cs: Calculate the owner of a messagebox, also make
3215 it topmost. Fixes #78753
3217 2006-08-14 Chris Toshok <toshok@ximian.com>
3219 * XplatUIX11.cs: A couple of fixes so that metacity will let us
3220 programmatically move windows. first, set the PPosition hint as
3221 well as the USPosition hint. Second include some code from pdb
3222 that sets the window type to NORMAL when we set the transient for
3223 hint. This is because, in the absence of a window type, metacity
3224 thinks any window with TransientFor set is a dialog, and refuses
3225 to let us move it programmatically. fascists.
3227 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
3229 * XplatUIX11.cs: When setting normal hints, take into consideration
3230 an different hints previously set so we don't delete them (fixes #78866)
3232 2006-08-12 Chris Toshok <toshok@ximian.com>
3234 * ToolBarButton.cs: make Layout return a boolean, if something to
3235 do with the button's layout changed.
3238 - add another parameter to Redraw, @force, which all existing
3240 - make the Layout function return a boolean which is true if the
3241 layout has actually changed. Redraw now uses this (and @force)
3242 to determine when to invalidate. At present the only place
3243 where @force can be false is the call from OnResize, when
3244 background_image == null. So, resizing a toolbar when the
3245 layout doesn't change results in no drawing.
3247 2006-08-12 Chris Toshok <toshok@ximian.com>
3249 * ThemeWin32Classic.cs: fix the bottom right corner painting. had
3250 the VScrollBar and HScrollbar reversed. oops.
3252 * DataGrid.cs: fix the logic that assigns sizes to the implicit
3253 scrollbars. we were assigning them twice (once in
3254 Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
3255 therefore causing two scrollbar resizes (and redraws?) to happen
3258 2006-08-12 Chris Toshok <toshok@ximian.com>
3260 * ToolBarButton.cs: redraw the entire button if the theme tells us
3263 * Theme.cs: add ToolBarInvalidateEntireButton.
3265 * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
3266 buttons, just the border.
3268 * ThemeNice.cs: redraw the entire toolbar button since we need to
3269 draw the highlight image.
3271 * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
3272 we need to redraw the entire button (not just the border).
3274 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
3276 * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
3277 for vertical bars. Fixes the mismatches shown by #78513
3279 2006-08-11 Alexander Olk <alex.olk@googlemail.com>
3281 * FileDialog.cs: If a saved/remembered path doesn't exist
3282 anymore, fall back to "Desktop".
3284 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
3286 * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
3287 parent. It's apparently legal to not have one
3289 - SetZOrder: Don't try to set Z-Order on an unmapped window
3290 - CreateWindow: 0,0 are legal coordinates for a window. don't move
3291 it unless the coordinates are negative
3293 2006-08-10 Mike Kestner <mkestner@novell.com>
3295 * ListControl.cs: allow null for DataSource. Clear DisplayMember
3296 when setting to null per msdn docs. Fixes #78854.
3298 2006-08-10 Chris Toshok <toshok@ximian.com>
3300 * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
3301 flickering by setting a clip rectangle on the Graphics when we
3302 need to redraw just a particular menuitem. Also, rename "OnClick"
3303 to "OnMouseDown" to reflect what it actually is.
3305 * Form.cs: track the OnMouseDown change.
3307 2006-08-10 Peter Dennis Bartok <pbartok@novell.com>
3309 * CommonDialog.cs: Properly inherit the CreateParams from the form
3310 and only change what we need. Fixes #78865
3312 2006-08-10 Chris Toshok <toshok@ximian.com>
3314 * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
3315 flickering in flat mode (and most of the flickering in general) by
3316 only invalidating the button border (and not the entire rectangle)
3317 when the state changes. A couple of cases still flicker:
3318 ToggleButtons, and the dropdown arrow case when the user mouse
3321 2006-08-10 Alexander Olk <alex.olk@googlemail.com>
3323 * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
3324 for german keyboards. Numlock state shouldn't affect the behaviour
3325 of the Del key. Fixes bug #78291.
3327 2006-08-10 Chris Toshok <toshok@ximian.com>
3329 * ListControl.cs: remove the items.Clear line from BindDataItems,
3330 as this is the first thing done by both subclasses in their
3331 SetItemsCore overrides. Also, add a ItemChanged handler, and when
3332 passed -1, refresh the list. This gets databinding working when
3333 the datasource is set on the list before the datasource is
3334 populated (as in wf-apps/ReportBuilder.)
3336 * ComboBox.cs: remove the argument to BindDataItems. This call
3337 should really go away, and be initiated by the ListControl code.
3341 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
3343 * TextControl.cs (Document.ctor): Initialize caret so we don't crash
3344 if no data is in the document when the control is displayed
3346 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
3348 * TextBoxBase.cs: Don't try moving the caret if we don't have a window
3351 - PositionCaret: Allow positioning of caret but don't call methods
3352 requiring a handle if the window isn't created yet
3353 - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
3354 - owner_HandleCreated: Don't position the caret, just update it's
3355 location. User might have already set a different position
3357 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
3359 * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
3360 windows. Screws up the returned coordinates for child windows.
3361 Fixes #78825. I'm hoping this doesn't break something, since the
3362 code was explicitly put in 8 months ago, but no bug was attached.
3363 Menus still seem to work properly.
3365 2006-08-08 Chris Toshok <toshok@ximian.com>
3367 * DataGrid.cs: make BeginInit/EndInit actually do what they're
3368 supposed to do - delay data binding until the EndInit call. Also,
3369 make the table style collection's CollectionChangeAction.Refresh
3372 * GridTableStylesCollection.cs: raise a CollectionChangeEvent
3373 (with action = Refresh) when a consituent table's MappingName is
3376 2006-08-08 Chris Toshok <toshok@ximian.com>
3378 * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
3379 Invalidate, since changing the text can change the size of the all
3382 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
3384 * Form.cs (AddOwnedForm): Still need to add the form to our listif
3385 we don't have it yet
3387 2006-08-08 Chris Toshok <toshok@ximian.com>
3389 * PrintControllerWithStatusDialog.cs: don't .Close() the status
3390 dialog, as this causes X errors later on, since we actually
3391 destroy the window. Instead, .Hide() it.
3393 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
3395 * ComboBox.cs: Added focus reflection for popup window
3397 - Removed transient setting for non-app windows for now, not sure it
3399 - Fixed logic checking if we have captions when deciding
3400 override_redirect, WS_CAPTION is two bits and a 0 check was not
3402 - Removed the WINDOW_TYPE stuff, it was unneeded and making things
3405 - AddOwnedForm: Don't just add the form to the list, call the property
3406 to ensure the driver is informed about the ownership as well
3407 - CreateHandle: Set the TopMost status in the driver if we have an owner
3408 * XplatUI.cs: Fixed debug statement
3410 2006-08-08 Jonathan Pobst <monkey@jpobst.com>
3411 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
3412 GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
3413 ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs,
3414 TrackBarRenderer.cs: Make constructor private.
3415 * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
3416 * ProfessionalColorTable.cs: Make properties virtual.
3418 2006-08-06 Duncan Mak <duncan@novell.com>
3420 * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
3423 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
3424 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
3425 GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
3426 ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
3427 TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
3428 Initial import of new 2.0 classes.
3430 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
3431 * Application.cs: Add 2.0 VisualStyles properties.
3433 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
3434 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
3435 XplatUIX11.cs: Create property to allow access to existing private
3436 variable "themes_enabled"
3438 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3440 * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
3441 file size, as otherwise our class libraries fail using windows. Fixes
3444 2006-08-04 Jackson Harper <jackson@ximian.com>
3447 * XplatUIX11.cs: Move the toolwindow window manager creation into
3448 the X11 driver, this way on win32 we can let windows create/handle
3451 2006-08-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3453 * PrintDialog.cs: Remove some redundant checks, add some others,
3454 clean some code, and move the focus to the text boxes when the
3455 values are incorrect.
3457 2006-08-04 Alexander Olk <alex.olk@googlemail.com>
3459 * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
3461 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
3463 * NumericUpDown.cs: Setting the Minimum and Maximum is now
3464 handled correctly. Fixes bug #79001.
3466 2006-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3468 * PrintDialog.cs: The "Copies" numeric up down must have
3469 set the Minimum property to 1; only if the value is bigger
3470 than 1, activate "Collate" check box. This is the behaviour of .Net.
3471 Also modify the Document elements only if it is not null.
3473 2006-08-03 Jackson Harper <jackson@ximian.com>
3475 * TreeNodeCollection.cs: Fix copyto to use the correct nodes
3476 length. (We have a larger array then actual node count).
3478 2006-08-03 Jackson Harper <jackson@ximian.com>
3480 * ComboBox.cs: Don't show selection by default.
3481 - The SelectAll isn't needed here, since the focus code should do
3483 - DDL style lists to manual selection drawing, so when they
3484 get/lose focus they have to invalidate.
3486 2006-08-03 Peter Dennis Bartok <pbartok@novell.com>
3488 * TextBoxBase.cs: Don't always show all selections by default.
3490 2006-08-03 Jonathan Pobst <monkey@jpobst.com>
3491 * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
3492 HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
3493 Fixed various typos.
3495 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
3497 * Control.cs: Removing the controls in a ControlCollection with
3498 Clear now hides the controls as expected. Fixes bug #78804.
3500 2006-08-03 Jackson Harper <jackson@ximian.com>
3502 * Control.cs: Revert previous focus patch, it breaks reflector.
3504 2006-08-03 Jackson Harper <jackson@ximian.com>
3506 * ComboBox.cs: Cleanup selection and focus with the combobox.
3507 This also eliminates some duplicated keyboard code, since now
3508 everything is handled by the main class.
3509 - Make list selection work on mouse up instead of down, to match
3512 2006-08-02 Jackson Harper <jackson@ximian.com>
3514 * Control.cs: Setting focus needs to go through the whole
3515 selection mechanism.
3517 2006-08-02 Chris Toshok <toshok@ximian.com>
3519 * PrintPreviewDialog.cs: change MinimumSize to use
3520 base.MinimumSize so it works.
3522 2006-08-02 Peter Dennis Bartok <pbartok@novell.com>
3525 - UpdateCaret: Added sanity check in case caret isn't defined yet
3526 - Line.Delete: Now updating selection and caret markers if we're
3527 transfering a node (Properly fixes #78323)
3528 - SetSelectionEnd: Added sanity check
3529 * TextBoxBase.cs: Removed broken attempt to fix #78323
3531 2006-08-01 Chris Toshok <toshok@ximian.com>
3533 * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
3534 Close() call is handled in Form, not here.
3536 2006-08-01 Chris Toshok <toshok@ximian.com>
3538 * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
3541 * PrintPreviewDialog.cs: add scrollbars, and add an image cache
3542 for sizes < 100% zoom. The code now aggressively attempts to keep
3543 from calling document.Print (), and tries not to use the scaling
3544 g.DrawImage whenever possible (it still does if you scale to >
3545 100%, since usually that involves huge images).
3547 * PrintPreviewControl.cs: hook up the close button.
3549 2006-08-01 Jonathan Pobst <monkey@jpobst.com>
3550 * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
3551 ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
3552 ItemDragEventHandler.cs, LabelEditEventHandler.cs,
3553 LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
3554 MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
3555 PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
3556 SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
3557 Removed [Serializable] for 2.0 Event Handlers.
3559 2006-07-31 Jackson Harper <jackson@ximian.com>
3561 * TextBoxBase.cs: Make ShowSelection invalidate when changed.
3562 * TextControl.cs: Uncomment out the body of this method.
3564 2006-07-31 Alexander Olk <alex.olk@googlemail.com>
3566 * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
3569 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
3571 * TextBoxBase.cs: Added internal property ShowSelection to allow controls
3572 that embed TextBox and need selections visible even if textbox is not
3573 focused to enforce that behaviour.
3574 * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
3577 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
3580 - Added new SetSelectionStart/SetSelectionEnd overloads
3581 - Fixed viewport width assignment to be accurate
3582 - Adjusted alignment line shift calculations to allow cursor on right
3583 aligned lines to be always visible at the right border (like MS)
3585 - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
3586 - TextBoxBase_SizeChanged: recalculating canvas on size changes
3587 - CalculateScrollBars: Use ViewPort size instead of window size, to
3588 properly consider space occupied by the border and scrollbars
3590 - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll
3591 calculations; no longer leaves artifacts
3592 - CaretMoved: Adjusted window scrolling to match MS and fixed several
3593 calculation bugs (Still missing right/center align calculations)
3595 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
3597 * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
3598 use of both scroll rect and clip rect, as they do the same.
3600 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
3602 * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key
3603 in the event handler (fixes #78912)
3605 2006-07-31 Chris Toshok <toshok@ximian.com>
3607 * ThemeWin32Classic.cs: use grid.RowsCount here instead of
3608 grid.ListManager.Count, since grid.ListManager might be null.
3609 This of course begs the question "why are we drawing rows for a
3610 grid with no list manager (and therefor no rows)?" Fixes the
3611 crash in bug #78929.
3613 2006-07-31 Chris Toshok <toshok@ximian.com>
3615 * RelatedPropertyManager.cs: Don't always chain up to the parent
3616 ctor. instead, call SetDataSource if the parent's position is !=
3617 -1. Fixes the crash in #78822.
3619 2006-07-31 Chris Toshok <toshok@ximian.com>
3621 * DataGrid.cs (get_ListManager): use field instead of property
3622 accessors for datasource and datamember.
3623 (RowsCount): make internal again.
3624 (OnMouseDown): end edits before resizing columns/rows.
3625 (OnMouseUp): restart edits after resizing columns/rows.
3627 2006-07-30 Peter Dennis Bartok <pbartok@novell.com>
3629 * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
3630 This fixes the situation where the last set cursor is displayed
3631 whenever the mouse is over scrollbars.
3633 2006-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3635 * PrintDialog.cs: Fix the behaviour of PrinterSettings and
3636 Document properties, as well as initial values.
3638 2006-07-29 Peter Dennis Bartok <pbartok@novell.com>
3640 * XplatUIWin32.cs (SetBorderStyle): Setting both border
3641 and ClientEdge results in a 3-pixel border, which is
3644 2006-07-28 Jackson Harper <jackson@ximian.com>
3646 * TreeNodeCollection.cs: Fix the clear method.
3647 - Fix the Shrink also
3649 2006-07-27 Jackson Harper <jackson@ximian.com>
3651 * TreeView.cs: Make sure the visible order is computed when we
3652 attempt to size the scrollbars (for trees that mess with the
3653 scrolling when they shouldn't.
3654 - Make sure to give the scrollbars valid values.
3656 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
3658 * XplatUIX11.cs: Move motion compression code to where it
3659 has less performance impact
3661 2006-07-26 Jackson Harper <jackson@ximian.com>
3663 * UpDownBase.cs: When the control is selected make the child
3664 controls non selectable, so that a click on them won't do a
3665 focus/unfocus cycle.
3666 - Don't give focus to the text box when the spinner is selected.
3667 * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
3669 2006-07-26 Chris Toshok <toshok@ximian.com>
3671 * ThemeWin32Classic.cs: add print preview rendering. I'm not
3672 satisfied with this solution. If the bitmaps are small, we should
3673 just cache them in the PrintPreviewDialog and draw them here.
3674 Also, the layout is broken for the 2-up and 3-up cases.
3676 * Theme.cs: add PrintPReviewControlPaint.
3678 * PrintPreviewDialog.cs: first pass implementation.
3680 * PrintPreviewControl.cs: first pass implementation. No
3683 * PrintDialog.cs: only validate fields if that particular portion
3684 of the UI is enabled. Also, set the document's controller to a
3685 PrintControllerWithStatusDialog wrapping the document's print
3688 * PrintControllerWithStatusDialog.cs: if we're printing to a file,
3689 bring up a SaveFileDialog (i hope we don't want to match the
3690 behavior of the crappy windows file entry) and set the
3691 PrinterSettings.PrintFileName accordingly.
3693 2006-07-26 Jackson Harper <jackson@ximian.com>
3695 * ContainerControl.cs: Add a field that disables auto selecting
3696 the next control in a container when the container is activated.
3697 * UpDownBase.cs: Don't select the text box when the up down is
3700 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
3702 * XEventQueue.cs: Added methods for peeking (used for compression
3703 of successive events)
3704 * XplatUIX11.cs (GetMessage): We're now compressing consecutive
3705 mouse move events (fixes #78732)
3707 2006-07-25 Jackson Harper <jackson@ximian.com>
3709 * UpDownBase.cs: Use an internal class for the textbox so that we
3710 can control focus. the updown control should always have focus,
3711 if either the text area or the buttons are clicked.
3712 - Send the key messages to the textbox, since it never actually
3714 - Activate and decativate the textbox caret.
3716 2006-07-24 Jackson Harper <jackson@ximian.com>
3718 * Control.cs: Use the directed select when selecting a control,
3719 this way the container controls override will get called and the
3720 whole ActiveControl chain will get triggered. TODO: probably need
3721 to make sure this gets done everywhere instead of the old
3723 * ContainerControl.cs: Implement the directed Select method to
3724 find and activate the correct child control.
3726 2006-07-22 Mike Kestner <mkestner@novell.com>
3728 * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
3729 menu handling code so that clicks without a grab work too.
3732 2006-07-22 Alexander Olk <alex.olk@googlemail.com>
3734 * FileDialog.cs: Enable the BackButton when dirstack has one element.
3735 Added some small optimizations.
3737 2006-07-21 Matt Hargett <matt@use.net>
3739 * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
3741 2006-07-21 Peter Dennis Bartok <pbartok@novell.com>
3743 * Control.cs (GetNextControl): Fixes to make all of Jackson's unit
3744 tests pass and match MS in some strange border cases.
3746 2006-07-21 Chris Toshok <toshok@ximian.com>
3748 * ThemeWin32Classic.cs: handle drawing of the relation links and
3751 * Theme.cs: change args to DataGridPaintParentRow.
3753 * DataGrid.cs: Don't use controls for the relation links and
3754 parent buttons, so we have to handle all their interactions in
3755 MouseMove, MouseDown, MouseUp, etc. Also, store a lot more stuff
3756 when we're navigating through child tables, so we can reinstate
3757 selection, expanded state, current cell, etc.
3759 2006-07-20 Chris Toshok <toshok@ximian.com>
3761 * ToolBar.cs: When we redraw a button, for whatever reason,
3762 there's no reason to redraw the entire toolbar. Also, don't call
3763 Control.Refresh from within Redraw, as it's much heavier than
3764 Invalidate (which is really what we want).
3766 2006-07-20 Chris Toshok <toshok@ximian.com>
3768 * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
3769 DataGridTextBoxColumn.cs, DataGridTextBox.cs,
3770 ThemeWin32Classic.cs, ListControl.cs: After staring at stack
3771 traces from within a debug IBindingList datasource
3772 (in mono/winforms/datagrid) for *days*, I've finally gotten things
3773 to work in a similar fashion.
3775 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3777 * ListBox.cs: Don't call Sort () when setting
3778 the Sorted property to false (avoid an unnecessary sort).
3780 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3782 * ListControl.cs: DataSource should throw an ArgumentException
3783 instead of a normal exception when the argument is not of the
3786 2006-07-20 Mike Kestner <mkestner@novell.com>
3788 * Control.cs: add InternalPreProcessMessage to allow us to steal
3789 key events before MWF gets its paws on them. Adapted from a
3791 * ToolBar.cs: add GotLostFocus handing for flat toolbars, with
3792 up/down/left/right navigation. Override the new internal control
3793 method to steal the events since they never make it to WndProc.
3794 * ToolBarButton.cs: don't worry about pushed when setting hilight
3795 since the drawing code prefers pushed to hilight. Invalidate on
3796 Hilight changes. Fixes #78547 and #78525.
3798 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
3800 * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
3801 the canvas size. Fixes #78868
3803 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
3805 * Splitter.cs: Track requested split position until first layout
3806 is performed. Fixes #78871
3808 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
3810 * Application.cs: Removed code that forces 1.x for the version
3811 number if the version started with 0. Not sure why that code was
3812 there and I couldn't find any bugs that indicated we needed it.
3815 2006-07-20 Alexander Olk <alex.olk@googlemail.com>
3817 * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
3818 ResetDefaults(), just write some output to the console until it's
3819 implemented. Fixes bug #78907 for now. Eliminated two warnings.
3821 2006-07-19 Jonathan Chambers <joncham@gmail.com>
3823 * PropertyGridView.cs: set StartPosition of drop down forms
3824 so they appear in correct initial spot. Fixes #78190.
3826 2006-07-19 Mike Kestner <mkestner@novell.com>
3828 * ThemeWin32Classic.cs: use parent background color when drawing
3829 flat toolbars. Restructure the conditionals to make sure non-flat
3830 non-Divider toolbars are filled too. Fixes #78837.
3832 2006-07-19 Mike Kestner <mkestner@novell.com>
3834 * ListBox.cs: Sort on collection changes even if the handle
3835 isn't created yet. Fixes #78813.
3837 2006-07-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3839 * ListControl.cs: DisplayMember should never be null,
3840 and now we assign String.Empty when null is passed to it (this
3843 2006-07-17 Mike Kestner <mkestner@novell.com>
3845 * ListViewItem.cs: restructure Font and subitem Font handling
3846 to hold a specific font and refer back to owner on null.
3849 2006-07-17 Mike Kestner <mkestner@novell.com>
3851 * ToolBar.cs: bandaid for side-effect of previous patch which was
3852 discarding explicit heights for non-AutoSize toolbars. Need to
3853 extend my format tester to deal with AutoSize=false. Fixes #78864.
3855 2006-07-15 Jackson Harper <jackson@ximian.com>
3857 * LabelEditTextBox.cs:
3858 * TreeView.cs: Use a new LabelEdit class for node editing, this
3859 class automatically 'closes' itself when it gets the enter key or
3861 - Use the client rectangle when setting the trees scrollbars, so
3862 border style is taken into account.
3864 2006-07-14 Jackson Harper <jackson@ximian.com>
3867 * TreeView.cs: Make the editing work similar to MSs, firing the
3868 events correctly and ending edits correctly.
3870 2006-07-14 Mike Kestner <mkestner@novell.com>
3873 * ToolBar.cs: layout restructuring and redraw enhancements to support
3874 formatting changes gracefully, like setting TextAlign, ImageList,
3875 ButtonSize, and Appearance. Handles explicit button sizing quirks
3876 of the MS controls. Things like flat toolbars ignoring button size
3877 but becoming constant sized at the largest button's size. Normal
3878 toolbars with an image set cannot be shrunk smaller than the image,
3879 but text can be clipped/ignored.
3880 * ThemeWin32Classic.cs: don't draw text if text_rect height or width
3881 is zero. Seems like DrawString should be smart enough to not put
3882 anything on screen though. Also trim labels and ellipsize at the char
3884 Fixes #78711 and #78483.
3886 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
3888 * FolderBrowserDialog.cs: Disable "New Folder" button and
3889 "New Folder" contextmenu menuitem if a folder like "My Computer"
3892 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
3894 * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
3895 * FolderBrowserDialog.cs:
3896 - Use MWFConfig to store and read size and position settings
3897 - Added code to create a new folder (button or context menu).
3898 Use TreeView labeledit to change the name of the new folder.
3900 2006-07-14 Jackson Harper <jackson@ximian.com>
3902 * TreeView.cs: Raise the OnAfterLabelEdit event correctly. Also,
3903 when the tree is scrolled we end editing.
3905 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
3907 * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
3910 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
3912 WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
3913 BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
3914 BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
3915 CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
3916 ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
3917 ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
3918 ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
3919 FormClosedEventHandler.cs, FormClosingEventArgs.cs,
3920 FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
3921 ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
3922 ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
3923 ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
3924 ListViewItemSelectionChangedEventHandler.cs,
3925 ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
3926 ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
3927 MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
3928 PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
3929 PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
3930 RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
3931 SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
3932 SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs,
3933 TabControlCancelEventHandler.cs, TabControlEventArgs.cs,
3934 TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
3935 TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
3936 ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
3937 ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
3938 TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
3939 TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
3940 TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
3941 WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
3942 WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
3943 WebBrowserNavigatingEventHandler.cs,
3944 WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
3946 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
3948 MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
3949 RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
3950 SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
3951 TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
3952 ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
3953 ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
3954 ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
3955 ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
3956 ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
3957 ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
3958 ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
3959 ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
3960 TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
3961 WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
3962 ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
3963 AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
3964 BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
3965 ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
3966 FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
3967 HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
3968 ListViewItemStates.cs, MaskFormat.cs: Added
3970 2006-07-13 Jonathan Chambers <joncham@gmail.com>
3972 * PropertyGridView.cs: Fix keyboard navigation of drop down.
3973 Patch from eno for bug 78558.
3975 2006-07-13 Jackson Harper <jackson@ximian.com>
3977 * TreeView.cs: When an edit is finished make sure that the
3978 selected node is visible.
3979 - When setting the top/bottom use the scrollbars is_visible, so
3980 everything will be set correctly even if the tree isn't visible
3983 2006-07-13 Jackson Harper <jackson@ximian.com>
3985 * ComboBox.cs: Revert the item->index part of my previous patch.
3986 * TreeView.cs: Use LostFocus instead of Leave for detecting when
3987 the edit box has lost focus (duh).
3988 - Just make the edit box not visible when we get return, that will
3989 take the focus, which will call EndEdit
3990 * TreeNode.cs When we start editing, notify the treeview.
3992 2006-07-12 Jackson Harper <jackson@ximian.com>
3994 * ComboBox.cs: Clear out old items before setting the item list.
3995 This prevents databound controls from having their items added
3997 - Switch the combobox to use indices whereever possible instead of
3998 using Item's. This allows usto navigate through lists that have
3999 more then one item with the same string value (ie a, b, b, a).
4000 - Scroll the listboxes scrollbar when a non visible item is
4002 - Allow keypress to cycle through all the possible values. For
4003 example if you have b1, b2, b3 and hold down the B key all the
4004 values will be cycled through.
4006 2006-07-12 Jackson Harper <jackson@ximian.com>
4009 * ListView.cs: Don't need to override SETFOCUS anymore, we can do
4010 this using the internal methods.
4011 * Control.cs: Add OnGotFocusInternal. A new method that allows
4012 controls to "override" OnGotFocus and change focus behavior if
4014 - Same thing for LostFocus
4015 * ComboBox.cs: Pass off focus to the text control properly.
4017 2006-07-12 Alexander Olk <alex.olk@googlemail.com>
4019 * FileDialog.cs: Added GetFoldersOnly to MWFVFS
4020 * FolderBrowserDialog.cs: Almost a complete rewrite.
4021 - Better support for Environment.Specialfolders
4022 - Added support for MWFVFS
4023 - Made setting SelectedPath work
4025 2006-07-12 Jackson Harper <jackson@ximian.com>
4027 * Control.cs: Optimze getting all the controls.
4029 2006-07-11 Jackson Harper <jackson@ximian.com>
4031 * ContainerControl.cs: Override SETFOCUS in the container control,
4032 so that it is not selected on mouse click.
4034 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
4036 * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel.
4037 Hopefully we will have a better way once all of focus is complete.
4039 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
4041 * ThemeWin32Classic.cs: Commented out some debug code and fixed
4042 a compile error with csc.
4044 2006-07-11 Jackson Harper <jackson@ximian.com>
4046 * Control.cs: When hiding a control only select the next control
4047 if the current control was focused.
4048 - Don't handle enter/leave when setting/killing focus, this is
4049 done by the container control.
4050 - Remove is_selected, it's not needed anymore.
4051 - Add utility methods for selecting a child control, and for
4052 firing the Enter/Leave events.
4053 * ContainerControl.cs: When a control is activated fire the
4055 - Don't wrap when processing the tab key, so that focus can be
4056 moved outside of the container.
4057 - Use the correct active control
4059 2006-07-11 Jackson Harper <jackson@ximian.com>
4061 * ComboBox.cs: Remove some debug code that was blinding me.
4062 * UpDownBase.cs: These controls actually aren't implicit, they are
4063 visible to the user.
4065 2006-07-10 Chris Toshok <toshok@ximian.com>
4067 * DataGrid.cs: move back to the is_adding boolean field. god i
4068 hate this is_editing/is_adding/is_changing stuff.
4070 2006-07-10 Chris Toshok <toshok@ximian.com>
4072 * DataGridTableStyle.cs: just check if the property type is bool.
4073 if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
4074 Don't use CanRenderType.
4076 * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
4077 if our text == NullText. Remove CanRenderType.
4079 * DataGridBoolColumn.cs: nuke CanRenderType.
4081 * DataGrid.cs: reenable some code to end the current edit inside
4082 of set_CurrentCell. This fixes the other 1.1.16 regression.
4083 Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
4084 Also, remove the visible_row_count arg from CalcRowHeaders, since
4085 we don't need to worry about the actual height of the area.
4087 2006-07-10 Chris Toshok <toshok@ximian.com>
4089 * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
4092 * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
4093 the real sense of the IsInEditOrNavigateMode property (true =
4094 navigate, false = edit). Also, update OnKeyPress to reflect this.
4096 * DataGridTableStyle.cs (CreateColumnsForTable): even if the
4097 column style exists, we still need to set its property descriptor
4098 to match up with our list manager.
4100 2006-07-10 Chris Toshok <toshok@ximian.com>
4102 * ThemeWin32Classic.cs: implement the new row/header painting
4103 approach. The parent row painting will likely go away and
4104 replaced with label controls, but the rest seems to work ok (and
4107 * Theme.cs: change the way we draw datagrid rows. we don't draw
4108 the row headers as a block now. Instead we draw them in the
4109 normal draw-row loop. Add some calls for drawing parent rows and
4112 * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
4113 a default table style. Set the defaults from ThemeEngine.Current,
4114 not SystemColors. Fix lots of misc issues with property setters.
4116 * DataGrid.cs: move loads of style information out of this class
4117 as it's being duplicated with DataGridTableStyle. keep track of a
4118 special DataGridTableStyle for the properties we used to mirror
4119 here. Switch all the style properties to access this table style
4120 instead of instance fields of this class. Also add a internal
4121 class to represent parent rows (more needs to be stored here, like
4122 the selection state from the parent table, as well as the
4123 expansion state.) Also, for datasources with relations, do the
4124 right thing for collapse/expand, and add support for the
4125 navigation/parent row buttons.
4127 Lastly, fix the crash in the 1.1.16 build.
4129 * GridTableStylesCollection.cs: make the explicit interface
4130 implementations call the class's methods as opposed to duplicating
4133 * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
4134 0 so the text doesn't jump around when we move the cursor.
4136 2006-07-10 Jackson Harper <jackson@ximian.com>
4139 * ListBox.cs: Match MS's ToString (this makes debugging focus
4140 stuff infinitely easier).
4142 2006-07-10 Jackson Harper <jackson@ximian.com>
4144 * Control.cs (SelectNextControl): When checking the control's
4145 parent use this instead of ctrl.parent so that null can be passed
4146 to SelectNextControl. (I have unit tests for this).
4147 - Remove unused var.
4149 2006-07-10 Chris Toshok <toshok@ximian.com>
4151 * CurrencyManager.cs: correct one regression, the removal of the
4152 finalType field. Also, add a MonoTODO on CanAddRows, implement
4153 Refresh() correctly, and fix some event emission in
4156 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
4158 * FileDialog.cs: Don't use brackets for new folders if they exist
4159 under *nix. Instead use -(number of existing folders +1).
4161 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
4164 - Fixed really nasty bug #78771
4165 - Don't block the whole GUI when reading directories with a lot of
4166 entries. Use an other thread instead and call BeginInvoke to
4167 update the ListView in MWFFileView
4169 2006-07-07 Chris Toshok <toshok@ximian.com>
4171 * Control.cs (Dispose): release any Capture when disposing.
4173 2006-07-07 Chris Toshok <toshok@ximian.com>
4175 * LinkLabel.cs (Select): if we chain up to the parent, set
4176 focused_index to -1 so we'll search for the first available link
4177 the next time the user tabs into us. Also, if the direction is
4178 backward and focused_index == -1, start the search from the last
4181 2006-07-07 Chris Toshok <toshok@ximian.com>
4183 * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
4184 is beyond the end of the text, don't do anything.
4185 (CreateLinkPieces): set our ControlStyles.Selectable based on
4186 whether or not we have any links.
4187 (Link.Invalidate): use a loop instead of foreach.
4188 (Link.set_Start): null out owner.sorted_links so it'll be
4189 recreated by CreateLinkPieces.
4191 2006-07-06 Chris Toshok <toshok@ximian.com>
4193 * LinkLabel.cs: revert the SetStyle change.
4195 2006-07-06 Chris Toshok <toshok@ximian.com>
4197 * LinkLabel.cs (.ctor): SetStyle Selectable to true.
4198 (OnEnableChanged): s/Refresh/Invalidate
4199 (OnGotFocus): if we have a focused index already, refocus it (so
4200 if we mouse out/in to the window it'll focus the right link).
4201 (OnKeyDown): move the tab handling out of here.
4202 (OnLostFocus): don't set focused_index to -1, so we can refocus it
4204 (OnMouseDown): don't Capture here - Control handles it. Also,
4205 focus the active link.
4206 (OnMouseUp): don't deal with Capture.
4207 (OnPaintBackgroundInternal): remove.
4208 (OnTextAlignChanged): CreateLinkPieces before calling the
4209 superclass's method.
4210 (OnTextChanged): call CreateLinkPieces before calling superclass's
4212 (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
4214 (Select): implement this, moving the selection between different
4215 links, and call parent.SelectNextControl if we don't have another
4216 link to focus in the given direction.
4217 (CreateLinkPieces): call Invalidate instead of Refresh.
4219 2006-07-06 Chris Toshok <toshok@ximian.com>
4221 * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
4222 new LinkLabel internals.
4224 * LinkLabel.cs: fairly major rewrite. get rid of all the loops
4225 over pieces looking for active/focused/etc links. also, deal with
4226 runs of text (and links) with embedded \n's in them, and use
4227 MeasureCharacterRanges instead of MeasureString to figure out the
4228 regions text occupies. Lastly, do the usual s/Refresh/Invalidate
4231 2006-07-04 Jackson Harper <jackson@ximian.com>
4233 * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
4234 XKB or key auto repeat, do it manually. Without key auto repeat,
4235 when a key is held down we get key press, key release, key press,
4236 key release, ... with auto repeat we get key press, key press, key
4237 press ..., and then a release when the key is actually released.
4239 2006-07-03 Jackson Harper <jackson@ximian.com>
4242 * ThemeWin32Classic.cs: Tabs do not obey normal background color
4243 rules, they are always control color regardless of the background
4246 2006-07-02 Alexander Olk <alex.olk@googlemail.com>
4248 * FileDialog.cs: Added internal class MWFConfig.
4249 Removed Registry support and replaced it with support for the new
4250 MWFConfig class. See MWFConfig comments for more information.
4252 2006-06-30 Alexander Olk <alex.olk@googlemail.com>
4254 * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
4255 rectangle. Added some patches from eno from bug #78490 and fixed
4256 the arrow position for small up and down CPDrawScrollButtons.
4258 2006-06-30 Jackson Harper <jackson@ximian.com>
4260 * InternalWindowManager.cs: Remove some debug code.
4261 * Form.cs: When an MdiParent is set to null, the window is
4262 "detatched" and becomes a normal window.
4263 * MdiClient.cs: Don't bring the new child form to the front until
4264 it is activated (setting it as active does this), this makes the
4265 previously active forms titlebar get redrawn as inactive.
4267 2006-06-29 Peter Dennis Bartok <pbartok@novell.com>
4269 * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
4272 2006-06-29 Mike Kestner <mkestner@novell.com>
4274 * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
4275 arrow in keynav state. Fixes #78682.
4277 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
4279 * PrintDialog.cs: Reorder, relayout, remove extra code, set tab
4280 order (fixes #78393)
4282 2006-06-28 Jonathan Pobst <monkey@ipobst.com>
4284 * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs,
4285 ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
4286 ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
4287 FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
4288 GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
4289 ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs,
4290 PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
4291 Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
4292 TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
4293 ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
4294 enumerations (FlagsAttribute, SerializableAttribute, added/removed
4297 2006-06-28 Mike Kestner <mkestner@novell.com>
4299 * ComboBox.cs: implement scroll wheel support. Fixes #78360.
4301 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
4304 PropertyGridTextBox.cs : explicitly set BackColor to differentiate
4305 item lines from other area (It also makes BackColor consistent and
4306 compatible with .NET). Fixed bug #78564.
4308 2006-06-28 Jonathan Chambers <jonathan.chambers@ansys.com>
4310 * PropertyGrid.cs: refresh toolbar when PropertySort is set.
4311 Patch from Eno for #78555.
4313 2006-06-27 Chris Toshok <toshok@ximian.com>
4315 * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
4317 * DataGridColumnStyle.cs: same.
4319 * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
4321 * DataGridDrawingLogic.cs: nuke.
4323 2006-06-27 Chris Toshok <toshok@ximian.com>
4325 * DataGridTableStyle.cs: clean up the constructors, and build the
4326 list of child relations for this table. I have no idea if this is
4327 where we should be doing it (it probably isn't), but since we're
4328 already iterating over the properties..
4330 * DataGrid.cs: add row resizing. for now we add a DataGridRow
4331 struct and array for keeping track of row information, similar to
4332 what's shown in a hack on
4333 http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
4335 * Theme.cs: be consistent about the naming of DataGrid methods,
4336 prefering ColumnWidths and RowHeights over columnsWidths and
4339 * ThemeWin32Classic.cs: same, and also add support for variable
4340 sized rows (and the +/- expansion icons for related rows).
4342 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
4344 * TextBoxBase.cs: Applied Eno's patch from #78660
4346 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
4348 * Form.cs (ScaleCore): We don't want to scale our form if it's
4349 state is minimized or maximized, but we still need to scale our
4350 child windows. Also, added try/finally block to ensure layout
4351 gets reset (Fixes #78697)
4353 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
4355 * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
4357 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
4359 * Form.cs: Fixed c+p error and added check to resize form if minimum
4360 size is bigger than current size (Fixes #78709)
4362 2006-06-26 Peter Dennis Bartok <pbartok@novell.com>
4364 * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
4366 2006-06-26 Mike Kestner <mkestner@novell.com>
4368 * ComboBox.cs: only do Keypress handling in the combo when there
4369 are items in the collection. Fixes #78710.
4371 2006-06-26 Chris Toshok <toshok@ximian.com>
4373 * Binding.cs: make this work bi-directionally. also, clear up
4374 other mixups between Push/Pull Data (e.g. we're supposed to pull
4375 data when validating).
4377 * BindingManagerBase.cs: trim some fully qualified collection
4380 * PropertyManager.cs (get_IsSuspended): oops, fix this check.
4382 2006-06-23 Chris Toshok <toshok@ximian.com>
4384 * PropertyManager.cs: It appears (according to the unit tests)
4385 that PropertyManager doesn't use
4386 PropertyDescriptor.AddValueChanged to track propery value changes
4387 in its datasource, but uses the same scheme as Binding, where it
4388 looks for a <Property>Changed event and binds to it.
4390 Also, according to the docs, IsSuspended always returns false for
4391 a property manager with a non-null datasource.
4393 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
4395 * Form.cs: (ShowDialog): If we're returning a forced cancel we still
4396 need to update the actual DialogResult. (Fixes #78613)
4398 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
4400 * Form.cs (ShowDialog): Release any captures before running the
4401 new message pump (fixes #78680)
4403 2006-06-22 Mike Kestner <mkestner@novell.com>
4405 * ListView.cs: Layout column widths properly in details mode even
4406 if HeaderStyle.None is set. Fixes #78691.
4408 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
4410 * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
4412 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
4414 * Control.cs (ContainsFocus): Using new driver method to get focused
4415 window, instead of trying to use internal tracking var, which can
4416 recursion issues (Fixes #78685)
4417 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
4418 XplatUIWin32.cs: Added GetFocus method to return focused window
4420 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4422 * ColorDialog.cs: when the mouse button is pressed inside the color
4423 matrix, don't let the cursor move out of it until the button is
4424 released, which is the behavior on windows. Changed 'colours' by
4425 'colors' to use the same word consistently.
4427 2006-06-21 Chris Toshok <toshok@ximian.com>
4429 * DataGrid.cs: add in some basic navigation stuff (navigating to a
4430 child relation and back, using a stack). Also, remove
4431 GetDataSource and the code that calls it - it's not needed. Also,
4432 track CurrencyManager.ListName's removal.
4434 2006-06-21 Chris Toshok <toshok@ximian.com>
4436 * CurrencyManager.cs: push some of the original type checking from
4437 BindingContext.CreateBindingManager to here, and remove some of
4438 the finalType stuff. Need more tests to make sure I've got the
4439 ListName part right, and we might need more in SetDataSource.
4441 * PropertyManager.cs: add a ctor that takes just the datasource,
4442 and no property name. Make SetDataSource work with a null
4443 property_name, and make Current return the data_source if the
4444 property descriptor is null. this makes 'string foo = "hi";
4445 BindingContext[foo].Current' return "hi" as it should.
4447 * RelatedCurrencyManager.cs: make this code more generic - there's
4448 no reason the parent manager has to be CurrencyManager, and
4449 there's no reason to pass the DataRelation. It suffices to use a
4450 BindingManagerBase and PropetyDescriptor.
4452 * RelatedPropertyManager.cs: make a similar change here.
4454 * BindingContext.cs: make CreateBindingManager the beautiful, tiny
4455 flower I knew it could be.
4457 2006-06-20 Chris Toshok <toshok@ximian.com>
4459 * PropertyManager.cs: the PropertyChangedHandler is invoked when
4460 data in the source has changed and we need to update the control,
4461 so s/PullData/PushData.
4463 * CurrencyManager.cs: Refresh is meant to update the control from
4464 data in the datasource. So, s/PullData/PushData.
4466 * BindingContext.cs: add more ugliness (we weren't handling the
4467 case where data_source = DataTable and data_member = column_name).
4469 * Binding.cs: fix PushData/PullData mixup. Both are interpreted
4470 from the perspective of the datasource. PullData pulls from the
4471 control, PushData pushes to the control.
4473 2006-06-20 Chris Toshok <toshok@ximian.com>
4475 * BindingContext.cs: rewrite the CreateBindingManager code to
4476 handle navigation paths more or less properly. This could
4477 definitely stand some more work, in particular to push the
4478 recursion up to the toplevel. But that relies on fixes in other
4479 places (System.Data comes to mind).
4481 Also, move to a flat hashtable (and encode the twolevel nature of
4482 the dictionary into the hash key). This lets us implement the
4483 IEnumerable.GetEnumerator method.
4485 * RelatedCurrencyManager.cs: new class. Update our view based on
4486 our relation and our parent CurrencyManager's position.
4488 * CurrencyManager.cs: split out some logic from the ctor into
4489 SetView, so it can be called from the new RelatedCurrencyManager
4492 * RelatedPropertyManager.cs: new class. Update our datasource
4493 based on the position of our parent CurrencyManager.
4495 * PropertyManager.cs: split out some logic from the ctor into
4496 SetDataSource, so it can be called from the new RelatedDataSource
4497 subclass. Also, make the Current getter return the value
4498 of the PropertyDescriptor, not the data_source.
4500 * Binding.cs: no need to duplicate the string splitting code here.
4502 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
4505 - set_Enabled: OnEnabledChanged is not called if the inherited state
4506 of the control is not altered, even though we might be changing the
4507 internal state of the control (#78458)
4508 - set_Enabled: (Re)Moved the enabling/disabling of the window to
4509 OnEnabledChanged, to allow easy altering of any child window state
4510 - OnEnabledChanged: Added code to enable/disable driver window state
4511 - OnParentEnabledChanged: Instead of firing the event, call
4512 OnEnabledChanged, which will fire the event and also a) set driver
4513 window state and pass the enabled state to any grandchildren (#78458)
4515 2006-06-19 Jackson Harper <jackson@ximian.com>
4517 * InternalWindowManager.cs: We don't set the cursor explicitly
4518 thats done via the response to NCHITTESTs.
4519 - Don't need to adjust for titlebar heights anymore, the
4520 coordinates are coming in the correct coordinates now (see peters
4524 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
4526 * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
4527 being translated relative to whole window, instead of client window.
4528 That caused broken offsets on mouseclick (and caused gas for our
4529 InternalWindowManager)
4531 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
4534 - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
4535 - Undo(): Added replay of cursor move on DeleteChars action; added
4536 calling Undo() again if a recorded cursor move is invalid (to
4537 ensure that some action is performed on Undo)
4538 * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
4540 2006-06-16 Jackson Harper <jackson@ximian.com>
4542 * MdiClient.cs: Instead of just sizing maximized windows when
4543 there is a resize we also have to adjust the Y of minimized
4544 windows, so they stay pinned to the bottom of the mdi container.
4545 - Eliminate separate tracking of the active control, we can just
4546 get this from the controls collection.
4547 - Paint the decorations for the newly activated titlebar so we get
4549 * InternalWindowManager.cs:
4550 * ThemeWin32Classic.cs: Minimized windows get all three buttons
4551 even if they are a tool window.
4553 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
4555 * TextControl.cs (Undo): Handle non-existent cursor locations in the
4556 undo buffer, these can happen when text was deleted and the cursor
4557 was recorded first. Since we will also have a recorded cursor
4558 after the delete this is not an issue. (Fixes #78651)
4560 2006-06-14 Peter Dennis Bartok <pbartok@novell.com>
4562 * AccessibleObject.cs: Remove dependence on Control.is_selected;
4563 instead properly track control states internally (allows us to
4564 remove is_selected from Control)
4566 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4568 * ImageListStreamer.cs: correctly generate the 1bpp mask for images
4569 whose width is not a multiple of 8.
4571 2006-06-13 Jackson Harper <jackson@ximian.com>
4573 * MdiClient.cs: Only maximize the next child if the current one
4576 2006-06-13 Chris Toshok <toshok@ximian.com>
4578 * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
4579 modified. Also, guard against grid or grid_drawing being null in
4582 * DataGrid.cs: Reformat tons of getters/setters. In the
4583 DataMember setter, just call SetNewDataSource instead of
4584 duplicating some of its functionality. In SetNewDataSource, don't
4585 check ListManager for null, since the property getter creates the
4588 * DataGridTableStyle.cs: don't set TableStyle or call
4589 SetDataGridInternal on the column here, it's done in
4590 GridColumnStylesCollection.Add.
4592 * GridColumnStylesCollection.cs: fix all the explicit interface
4593 implementations to just call our methods. Nuke AddInternal() and
4594 move the body of it to Add(). Also, add a call to
4595 column.SetDataGridInternal to Add().
4597 * DataGridTextBoxColumn.cs (.ctors): call this() instead of
4598 base()+duplicate code. Also, use the Format property instead of
4599 format to generate an Invalidate ala MS. Lastly, create the
4600 textbox here, unconditionally.
4601 (set_Format): call Invalidate.
4602 (get_TextBox): no need to call EnsureTextBox.
4603 (Commit): remove the message box.
4604 (Edit) remove the call to EnsureTextBox.
4605 (EndEdit): call HideEditBox instead of ReleaseHostedControl.
4606 (EnterNullValue): no need to check textbox for null.
4607 (HideEditBox): no need to check textbox for null.
4608 (SetDataGridInColumn): add the textbox to the grid's controls.
4609 (EnsureTextBox): nuke.
4611 2006-06-13 Jackson Harper <jackson@ximian.com>
4613 * MdiWindowManager.cs: Hook up to the maximized menus paint event
4614 and redraw the buttons when needed. Unhook when the window is
4616 * MainMenu.cs: Add an internal Paint event, the mdi window manager
4617 needs this so that it can redraw its buttons when the menu is
4619 * InternalWindowManager.cs:
4620 * Form.cs: The method order has changed for DrawMaximizedButtons,
4621 so that it can be a PaintEventHandler.
4623 2006-06-13 Jackson Harper <jackson@ximian.com>
4625 * MdiClient.cs: When we close a maximized mdi window, the next mdi
4626 window is activated and maximized, even if it wasn't before.
4627 - When a new window is activated repaint the decorations of the
4628 old one, so that it no longer has the Active "look" (the blue
4630 * InternalWindowManager.cs: Open up CreateButtons to base classes
4631 so they can recreate the buttons on state changes.
4632 - If a window is maximized give it all three buttons
4633 * MdiWindowManager.cs: Create the titlebar buttons when the state
4634 is changed, this is needed because a toolwindow will not have all
4635 three buttons until it is maximized.
4637 2006-06-13 Atsushi Enomoto <atsushi@ximian.com>
4639 * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
4642 2006-06-12 Jackson Harper <jackson@ximian.com>
4644 * KeysConverter.cs: Make sure we handle the Ctrl special case
4645 if its the only key.
4647 2006-06-12 Jackson Harper <jackson@ximian.com>
4649 * Theme.cs: Add a method to get the size of a managed window
4651 * InternalWindowManager.cs: Remove the ButtonSize property, this
4652 should be retrieved from the theme.
4653 * MdiWindowManager.cs: Get the button size from the theme
4654 * ThemeWin32Classic.cs: Make the method to get the managed window
4655 titlebar button size public.
4656 - Handle the different button sizes of maximized toolwindows
4657 (should match any maximized window).
4658 - Get the titlebar height from the theme, not the WM (which gets
4661 2006-06-12 Jackson Harper <jackson@ximian.com>
4663 * InternalWindowManager.cs: Handle NC Double Clicks, passing the
4664 event down to the mdi window manager.
4665 - Expose some extra stuff to base classes
4666 - Make sure to end the Capture on an NC Mouse up, so that we can
4667 get double clicks properly, and the sizing doens't stick.
4668 - When doing PointToClient contain it in the workable desktop
4669 area, this prevents windows from changing size when the cursor is
4670 pulled outside of the working area while sizing.
4671 * MdiWindowManager.cs: When we get a double click maximize the
4673 - Reset the cursor after handling mode changes.
4675 2006-06-12 Peter Dennis Bartok <pbartok@novell.com>
4677 * XplatUIX11.cs (WorkingArea): Read the actual workarea for the
4678 current desktop, instead of just assuming a 0, 0 origin. This
4679 is needed for our internal window manager, to know the top
4680 margin of the desktop
4682 2006-06-12 Chris Toshok <toshok@ximian.com>
4684 * DataGrid.cs (set_CurrentCell): concede focus as we move around.
4685 we need this to get rid of the selected background in the bool
4687 (CancelEditing): move the ConcedeFocus call to above the Abort
4688 call. Also, set is_changing to false and invalidate the row
4689 header if we were changing before.
4690 (ProcessKeyPreviewInternal): remove, since noone outside this
4691 class calls it anymore. Roll the code into ProcessKeyPreview.
4692 (EndEdit): remove the internal version.
4693 (InvalidateCurrentRowHeader): make private.
4695 * DataGridBoolColumn.cs: simplify this class a bunch. remove the
4696 Keys.Escape handling (and with it the last call to
4697 DataGrid.EndEdit from outside the class.)
4700 2006-06-12 Chris Toshok <toshok@ximian.com>
4702 * DataGridTextBox.cs (.ctor): isedit defaults to false.
4703 (OnKeyPress): set isedit to true.
4704 (ProcessKeyMessage): remove Keys.Enter handling from here. it's
4705 already handled by the grid.
4707 * DataGrid.cs (set_CurrentCell): more work here. it's still not
4709 (set_DataSource): SetDataSource always returns true, so stop
4710 putting it in an if statement.
4711 (EndEdit): get rid of some {}'s
4712 (ProcessGridKey): return true in case Keys.Escape.
4713 (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
4714 (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
4715 PositionChanged, stopped connecting to CurrentChanged.
4716 (GetDataSource): simplify this a bunch.
4717 (SetDataSource): change return type from bool to void.
4718 (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
4719 to this, and make sure we don't set ListManager.Position inside
4721 (OnListManagerItemChanged): if we're passed an actual index,
4724 * CurrencyManager.cs (set_Position): don't call PullData here.
4726 2006-06-09 Jackson Harper <jackson@ximian.com>
4728 * TreeNode.cs: Recalculate the visible order before doing the
4729 Expand/Collapse Below calls, because those calls generate an
4731 - Reduce calls to the TreeView property, which is mildly expensive
4732 by using a local var.
4733 * Form.cs: Layout the MDI child windows when creating the parent
4735 - Don't use the internal constructor anymore
4736 * MdiClient.cs: use the parent form width/height (if available)
4737 when laying out the child windows, we do this because the
4738 mdiclient isn't docked yet when the initial layout is done.
4739 - Don't need an internal constructor anymore.
4741 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4743 * FileDialog.cs: handle access errors when trying to create a folder
4744 or changing to a directory. No need to initialize out parameters.
4746 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
4748 * FileDialog.cs: Append a number when creating a new folder if the
4749 folder already exists (use parenthesis instead of square brackets)
4751 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
4754 - Disabled registry support for windows and added better registry
4755 error checking for other systems (need to investigate why it
4756 works perfectly on my system)
4757 - If a folder already exist show an error MessageBox instead of
4758 trying to create an indexed name.
4759 - Fixed a non intentional typo.
4761 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4763 * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
4765 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
4767 * FileDialog.cs: When creating a new folder don't crash if the
4768 folder already exists.
4770 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
4772 * FileDialog.cs: Allmost a complete rewrite.
4773 - added a "virtual" file system that handles the differences
4774 between unix and windows file systems (especially the directory
4775 structure). Moved most of the directory and file handling code
4777 Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
4778 UnixFileSystem and FSEntry.
4779 - Recently used folder/directory, size, location and used file names
4780 (file name ComboBox) are now stored in the registry and get read
4781 before the dialog shows up (fixes part 6 of bug #78446).
4782 - Creation of new folders/directories is now possible (context menu
4783 or ToolBar). Added TextEntryDialog for this that fills in the gap
4784 until ListView.LabelEdit works.
4785 - Fixed cursor handling (bug #78527) and focus handling for
4787 - Various "Search in" ComboBox enhancements. The content of the
4788 dropdown listbox now almost matches ms.
4789 - Changed the behaviour when the user switches to SpecialFolder
4790 Recent to show the ListView in View.Details.
4791 - Beside using the ToolBar to change the View property of the
4792 file ListView it is now possible to use the context menu too.
4794 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
4796 * ComboBox.cs: Don't create a new ObjectCollection when an item
4797 gets inserted. Just insert the item in the existing object_items
4800 2006-06-08 Jackson Harper <jackson@ximian.com>
4802 * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
4803 that the treeview and root node checks are done also, this fixes a
4804 regression i caused in the unit tests.
4806 2006-06-07 Wade Berrier <wberrier@novell.com>
4808 * RichTextBox.cs: More ISO8859-1 -> unicode
4810 2006-06-07 Mike Kestner <mkestner@novell.com>
4812 * ComboBox.cs : use items to hold highlight/selection so that
4813 collection insertions don't require synchronization.
4815 2006-06-07 Jackson Harper <jackson@ximian.com>
4817 * InternalWindowManager.cs: Simplify (and FIX) the window sizing
4818 routine. We now always keep the sized edge at the cursor instead
4819 of computing movement and adjusting rects. There is one buglet
4820 with this method though when the cursor is moved over area that
4821 the window can not expand too (such as the toolbars on the desktop).
4823 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4825 * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
4826 here. Fixes crash on startup in AlbumSurfer.
4828 2006-06-07 Peter Dennis Bartok <pbartok@novell.com>
4830 * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
4833 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4835 * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
4836 statement to avoid calling XNextEvent which will block if another thread
4837 took the event that we were expecting. Fixes bug #78605.
4839 2006-06-07 Mike Kestner <mkestner@novell.com>
4841 * ListView.cs : isolated checkbox clicking from the selection logic.
4842 Toggle check state on item doubleclicks. Really fixes #78454 part2.
4844 2006-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4846 * Form.cs: Check that the value passed to Form.DialogResult
4847 is a valid enum value.
4849 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4851 * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
4852 Computer'. Clicking it in the network view goes to 'My Computer'.
4853 Added CIFS filesystem type. Display the mount point of filesystems.
4854 Avoid duplicate mount points (happens for me with CIFS);
4856 2006-06-06 Jackson Harper <jackson@ximian.com>
4858 * InternalWindowManager.cs: Draw the maximized windows buttons
4861 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4863 * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
4864 all other dialogs. Fixes bug #78585.
4866 2006-06-06 Mike Kestner <mkestner@novell.com>
4868 * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
4869 Only invalidate checkbox on checkstate changes to avoid flicker.
4870 * ListBox.cs : avoid unselect/select when clicking selected item.
4871 avoid reselection flicker for already multiselected items.
4874 2006-06-06 Jackson Harper <jackson@ximian.com>
4876 * MdiWindowManager.cs: When the window is closed do an NCRecalc on
4877 the parent form so that the menu is removed if needed.
4879 2006-06-06 Mike Kestner <mkestner@novell.com>
4881 * ListBox.cs : add ScrollWindow call to UpdateTopItem. fix
4882 Prev/Next/PrevPage/NextPage/Home/End index calculation. Fixes #78559.
4884 2006-06-06 Mike Kestner <mkestner@novell.com>
4886 * CheckedListBox.cs : rebuild check collection on Add. Fixes #78426.
4889 2006-06-06 Jackson Harper <jackson@ximian.com>
4891 * Control.cs: Use the property (instead of the field) to get the
4892 default cursor so it is instantiated correctly.
4893 * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
4894 resizes so we need to manually repaint the window decorations here.
4895 - Set the titlebar button locations as soon as they are created,
4896 otherwise they are not set correctly on win32.
4898 2006-06-06 Chris Toshok <toshok@ximian.com>
4900 * CurrencyManager.cs (set_Position): call PullData before
4902 (AddNew): after calling IBindingList.AddNew, update our
4903 listposition, and call OnCurrentChanged/OnPositionChanged (without
4905 (OnCurrentChanged): remove the call to PullData from here.
4906 (OnItemChanged): remove the call to PushData from here.
4907 (OnPositionChanged): change the test from == null to != null to
4908 match the other methods.
4909 (ListChangedHandler): the grossest part of the patch. Implement
4910 this such that it passes the unit tests in CurrencyManagerTest and
4911 the output more or less matches that of MS's implementation.
4913 2006-06-06 Mike Kestner <mkestner@novell.com>
4915 * ListView.cs : only update check state on single click.
4916 * ThemeWin32Classic.cs : fix focus drawing for details view without
4917 fullrowselect. Fixes #78454.
4918 * XplatUIX11.cs : fix for double click emission.
4920 2006-06-05 Jonathan Chambers <jonathan.chambers@ansys.com>
4922 * PropertyGridView.cs : Applied Atsushi's patch to fix
4923 font dialog bug (#78197).
4925 2006-06-05 Jackson Harper <jackson@ximian.com>
4927 * TreeNode.cs: Compute the next node for expanding/collapsing
4928 correctly. We now factor in nodes without a NextNode
4929 correctly. (Fixes somes cases in nunit-gui).
4930 * InternalWindowManager.cs: Set the bounds when updating the
4931 virtual position of a tool window.
4933 2006-06-05 Chris Toshok <toshok@ximian.com>
4935 * DataGrid.cs: rename cached_currencymgr to list_manager.
4936 (set_CurrentCell): move SetCurrentCell code here, and clean it up
4938 (CurrentRow, CurrentColumn): single accessors so we can make the
4939 cursor movement code a lot easier to understand.
4940 (CurrentRowIndex): implement this in terms of CurrentRow.
4941 (BeginEdit): clean this up a bit.
4942 (CancelEditing): sort out the is_editing/is_changing/is_adding
4944 (EndEdit): minor changes.
4945 (OnKeyDown): add a comment about a (most likely) unnecessary
4947 (OnMouseDown): cancel editing when we click on a row header. And
4948 use the CurrentRow setter, not CurrentCell.
4949 (ProcessDialogKey): directly call ProcessGridKey.
4950 (UpdateSelectionAfterCursorMove): factor out this common block of
4951 code (it's used everywhere that we move the cursor by updating row
4953 (ProcessGridKey): pretty substantial overhaul. Use the
4954 CurrentRow/CurrentColumn properties to make the code a lot more
4955 readable. Only use the CurrentCell property when we have to
4956 modify both row and column at once. Tab behavior is still broken,
4957 and Delete is untested.
4958 (Select): if we have no selected rows, set selection_start to
4960 (EditCurrentCell): rename EditCell this. It was only ever invoked
4961 with CurrentCell as the arg, so drop the arg and rename it.
4963 * DataGridColumnStyle.cs: clean up the constructors a little, and
4964 drop CommonConstructor().
4966 * DataGridTextBox.cs (.ctor): set accepts_return to true so we
4967 actually get notified when the user hits it.
4968 (ProcessKeyMessage): *substantially* simplify this method.
4969 There's no reason (that I can see) for the textbox to be making
4970 calls into the datagrid at all. Remove all of them but the ones
4971 for Enter handling. those will take some more work.
4973 * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
4974 calling HideEditBox.
4975 (HideEditBox): if we have an active textbox, render it invisible
4976 without causing a re-layout of the datagrid.
4978 2006-06-05 Mike Kestner <mkestner@novell.com>
4980 * ListView.cs : fix NRE crasher when focuseditem is cleared by
4981 collection changes by resetting it to Items[0]. Fixes #78587.
4983 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4985 * MessageBox.cs: if the height of the text is larger than the icon_size,
4986 use that. Fixes bug #78575.
4988 2006-06-05 Jackson Harper <jackson@ximian.com>
4990 * TreeView.cs: Fix line drawing when scrolling. To do this each
4991 node is basically responsible for drawing its entire horizontal
4992 area. When drawing a node it draws its parent node lines if
4994 - Adjust the clip area to the viewport rectangle
4995 - Fix Left/Right key handling to match MS. (It expand/collapses
4996 and moves to parents/first child but does not move selection to
4998 - Fix SetTop to work with new bound calculation code
4999 - When scrollbars are no longer needed we need to reset scrolling
5000 vars and recalculate the visible order so the redraw is correct
5001 * TreeNode.cs: We can't expand/collapse nodes with no children.
5003 2006-06-03 John Luke <john.luke@gmail.com>
5005 * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
5006 so the colors work without dev packages
5008 2006-06-02 Peter Dennis Bartok <pbartok@novell.com>
5011 - Select: Implemented to just use activate. Seems to match MS
5012 behaviour closest. Documented to only do actual control walking
5013 based on it's parameters if in a container control so I moved
5015 - Removed selection check logic from our internal Select() method
5016 * ContainerControl.cs:
5017 - Select: Moved selection logic from Control here, since MS documents
5018 that containers obey the bool arguments. No longer calling base
5020 2006-06-02 Jackson Harper <jackson@ximian.com>
5022 * TreeView.cs: If the selected node isn't changed when we get
5023 focus update the previously selected node so that we see the
5026 2006-06-02 Mike Kestner <mkestner@novell.com>
5028 * ComboBox.cs: restructure grab and general mouse event handling.
5029 Make the composite control raise mouse events like it was a single
5030 control for leaves/enters/motion/up/down events. fix dropdown list
5031 coordinate mangling and refactor it into the scrollbar subclass to
5032 reduce code duplication. Fixes #78282 #78361 and #78457.
5034 2006-06-02 Mike Kestner <mkestner@novell.com>
5036 * ScrollBar.cs: remove Capture setting/clearing, as it happens
5037 automatically in the Control.WndProc.
5039 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5041 * FileDialog.cs: fix crash when running SharpChess, which sets the
5042 FilterIndex to 2 with only one Filter.
5044 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5046 * ToolBar.cs: add SizeSpecified property.
5047 * ToolBarButton.cs: when the ButtonSize is calculated by the container,
5048 try to figure out our real size, otherwise fallback to what the
5051 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
5053 * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
5054 * Control.cs (WndProc): MS always calls the DefWndProc to pass
5057 2006-06-01 Mike Kestner <mkestner@novell.com>
5059 * ListView.cs: revamp the focus management in ListView. It still
5060 causes churn of LostFocus/GotFocus emissions on clicks, but it's
5061 better than not handling focus at all. Will revisit when pdb feels
5062 the general focus handling is solid. Fixes #78526.
5064 2006-06-01 Jackson Harper <jackson@ximian.com>
5066 * TreeView.cs: Set the default border style in the constructor.
5067 - Move painting to use OnPaintInternal instead of capturing
5068 WM_PAINT, this is the correct way of doing things
5069 - UpdateBelow shouldn't invalidate the scrollbar area
5070 - Cap the top on update below in case the node was above the top
5071 of the viewport rectangle.
5072 - ExpandBelow and Collapse below need to obey Begin/End Update.
5073 * TreeNode.cs: Make is_expanded internal so the treenode
5074 collection can change it without firing the whole event chain.
5075 * TreeNodeCollection.cs: When clearing all the child nodes make
5076 sure to recalc the visible order.
5077 - Improve algo for remove the top node
5079 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
5081 * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
5082 SendMessage directly calling window procedures, which in turn might
5085 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
5087 * Control.cs: Don't handle WM_SETFOCUS if the same window already
5088 has focus (works around X11 sending a FocusIn after our SetFocus)
5089 * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
5091 2006-06-01 Alexander Olk <alex.olk@googlemail.com>
5093 * Mime.cs: Fix for the NET_2_0 build.
5094 NameValueCollection needs StringComparer now.
5096 2006-05-31 Chris Toshok <toshok@ximian.com>
5098 * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
5099 return (via an out parameter) the starting X of the column.
5100 (UpdateVisibleColumn): track change to FromPixelToColumn.
5101 (HitTest): add a ColumnResize case here.
5102 (DrawResizeLine): new function, probably poorly named.
5104 * DataGrid.cs (.ctor): get rid of cached_currencymgr_events. We
5105 only need to keep one reference.
5106 (set_ListManager): same.
5107 (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
5108 Also, add support for HitTestType.ColumnResize.
5109 (OnMouseMove): add column resize behavior here, and change the
5110 cursor to the correct one as we move around the datagrid.
5111 (OnMouseUp): terminate the column resize if we're resizing.
5112 (ProcessGridKey): from the MS docs, Alt-0 enters the null value
5113 for the current cell.
5114 (ConnectListManagerEvents): use cached_currencymgr.
5115 (DisconnectListManagerEvents): fill this in, using
5117 (SetCurrentCell): remove cached_currencymgr_events handling.
5118 (SetDataMember): only call DisconnectListManagerEvents if
5119 cached_currencymgr is != null.
5120 (SetDataSource): same.
5121 (OnListManagerCurrentChanged): cached_currencymgr_events ->
5124 2006-05-31 Jackson Harper <jackson@ximian.com>
5126 * BindingManagerBase.cs: Remove somedebug code that creeped into
5128 * TreeNode.cs: We get the indent level dynamically right now, so
5129 don't track it as a member.
5130 * TreeNodeCollection.cs: Make sure all nodes added to the list
5131 have parents, treeviews/topnodes setup properly.
5132 - Don't attempt to track indent level.
5134 2006-05-30 Jackson Harper <jackson@ximian.com>
5136 * BindingContext.cs: Create the currency manager tables here.
5137 This allows us to more easily create null tables (when bad data
5138 members are used), and more easily create related currency
5140 * CurrencyManager.cs: All the table creation stuff is done by the
5141 binding context now.
5142 - Current should throw an exception if listposition is -1.
5143 - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
5146 2006-05-30 Mike Kestner <mkestner@novell.com>
5148 * ListView.cs: allow reexpansion of zero-width column headers.
5151 2006-05-28 Chris Toshok <toshok@ximian.com>
5153 * CurrencyManager.cs (get_Current): after the late binding
5154 listposition = -1 fix, we need to guard against it here and return
5155 null, otherwise we raise an exception (which is swallowed
5156 elsewhere, and breaks datagrid databinding.)
5158 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
5160 * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
5161 than WM_SYSKEY, don't throw if get something unexpected (#78507)
5163 2006-05-26 Jackson Harper <jackson@ximian.com>
5166 * ThemeWin32Classic.cs: For color comparisons just use the ARGB
5167 values, it's faster and it's all we care about (we don't care if
5168 the names aren't equal).
5169 * KeyboardLayouts.cs: Eliminate some dead code.
5171 * X11Keyboard.cs: Lazy init keyboard detection.
5172 - Cleanup access modifiers a little.
5174 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
5176 * XplatUIX11.cs: Once again, attempting to get layout just right.
5178 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
5180 * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
5181 the sizes of each link section, that will result in sizes that
5182 match DrawString's layout (Fixes #78391)
5184 2006-05-27 Alexander Olk <alex.olk@googlemail.com>
5186 * FileDialog.cs: If AddExtension property is true autocomplete the
5187 extensions in SaveFileDialog correctly. Fixes bug #78453.
5188 Set MyNetwork and MyComputer to "C:\" for windows. This should
5189 fix part 8 of bug #78446 for now.
5191 2006-05-26 Chris Toshok <toshok@ximian.com>
5193 * DataGrid.cs (ColumnStartedEditing): fill these in. for now just
5194 invalidate the current row header if we need to, but presumably
5195 we'll invalidate the row corrsponding to the bounds or
5197 (GridHScrolled): switch back to this method, as it's part of the
5199 (GridVScrolled): same.
5200 (OnMouseWheel): hack up something that more or less works. Call
5201 GridHScrolled/GridVScrolled directly, instead of duplicating much
5203 (EnsureCellVisibility): reinstate a bunch of this code, since we
5204 can't just set the scrollbar Value and expect to do all the work
5205 in the ValueChanged handler. Also, Call Update() after scrolling
5206 in one direction so the other XplatX11.ScrollWindow call has the
5207 proper stuff in the proper places.
5208 (EditCell): set is_editing to true before calling .Edit.
5210 * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
5211 don't bother comparing first.
5212 (OnKeyPress): call grid.ColumnStartedEditing before calling
5213 base.OnKeyPress. this will set is_changing and invalidate the row
5214 header if necessary.
5215 (ProcessKeyMessage): for WM_CHAR messages, call
5216 ProcessKeyEventArgs directly. swallow anything other than WM_CHAR
5219 * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
5220 it's done in the DataGrid.
5221 (NextState): call grid.ColumnStartedEditing, which takes care of
5222 invalidating the row header (and setting is_changing).
5224 * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
5225 here. it's done in the DataGrid.
5227 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5229 * Control.cs: allow changing the cursor when the mouse position is
5230 out of bounds but Capture is set.
5231 * LinkLabel.cs: handle the case when the mouse button is pressed on the
5232 linklabel but released somewhere else.
5234 2006-05-25 Jackson Harper <jackson@ximian.com>
5236 * TreeView.cs: When we get focus if there is no selected node make
5238 - Remove some uneeded setup code from Draw.
5239 * TreeNodeCollection.cs: If the tree doesn't have a top node when
5240 a new node is inserted make the new node the top.
5242 * Timer.cs: Use Utc time so that no local time zone stuff needs to
5243 be used (should be faster).
5245 2006-05-25 Chris Toshok <toshok@ximian.com>
5247 * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
5248 problem with the last commit.
5250 2006-05-25 Chris Toshok <toshok@ximian.com>
5252 * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
5253 need the invalidate call here, while scrolling right-to-left via
5254 the left arrow key (i.e. moving the editing cell while scrolling).
5256 * DataGrid.cs (.ctor): remove the initialization of
5257 ctrl_pressed/shift_pressed. We no longer track them using key
5258 up/down handlers, but by using Control.ModifierKeys. Also, switch
5259 to using ValueChanged handlers on the scrollbars instead of
5260 Scrolled event handlers. This simplifies a bunch of the scrolling
5262 (GridHValueChanged): rename from GridHScrolled, and change it to
5263 work with the new event args.
5264 (GridVValueChanged): same.
5265 (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
5266 (OnMouseWheel): actually scroll the datagrid. Don't change the
5268 (ProcessGridKey): correct all the keyboard navigation stuff I
5269 could find. Ctrl up/down/left/right/home/end work now.
5270 (EnsureCellVisibility): correct method name spelling. Also,
5271 simplify this a touch by not explicitly calling the
5272 ScrollToRow/ScrollToColumnInPixels methods. We just set the
5274 (OnKeyUpDG): no need for this method now.
5276 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5278 * LinkLabel.cs: display the OverrideCursor when hovering the label.
5281 2006-05-25 Chris Toshok <toshok@ximian.com>
5283 * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
5286 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
5288 * Application.cs: Moved setting of is_modal and closing to before
5289 we create the control, to allow the event handlers called as a
5290 result of creation affect closing. Also removed Gonzalo's previous
5291 change to setting DialogResult, the behaviour has been moved to
5294 - ShowDialog(): Removed explicit creation of the form, let RunLoop
5296 - ShowDialog(): If no dialog result is set, we need to return Cancel
5297 - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
5298 the close is cancelled
5300 2006-05-25 Jackson Harper <jackson@ximian.com>
5302 * StatusBar.cs: We only need to update the sizes of the other
5303 panels when we have auto size contents. Also we are only updating
5304 the contents of the panel, not the borders, so compensate for the
5305 border width (TODO: get this width from the theme somehow).
5306 * TreeView.cs: Scrollable is true by default
5307 - Use invalidate instead of refresh where needed
5308 - Factor the scrollable value into scrollbar updating
5309 - Update the scrollbars if the Scrollable property is altered
5310 - Update the selected node if its ImageIndex is changed
5311 - Handle null nodes in UpdateNode (mainly so we don't have to
5312 check if selected is null when updating it
5313 - Fix VisibleCount to use the ViewportRectangle so that scrollbars
5314 are factored into the visible count
5315 - Use VisibleCount for clarity in the code
5316 - When the font is changed we need to recurse through all the
5317 nodes and invalidate their sizes
5319 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5321 * Application.cs: set the DialogResult to fixed when the main form is
5322 hidden or destroyed while being modal.
5324 2006-05-25 Miguel de Icaza <miguel@novell.com>
5326 * Theme.cs: Use Tangoified messagebox icons.
5328 (GetSizedResourceImage): Also cope with width = 0 and do not
5329 trigger a warning in that case (0 means "give me your icon from
5330 the resouce, no special size needed).
5332 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
5334 * Application.cs: Leave runloop if the the main modal form is
5335 hidden (fixes #78484)
5337 2006-05-25 Atsushi Enomoto <atsushi@ximian.com>
5339 * BindingContext.cs : reject null datasource in Contains() and
5341 * CurrencyManager.cs : check data_member validity when data_source
5342 is dataset. When it is late binding, the initial position is -1.
5344 2006-05-24 Jackson Harper <jackson@ximian.com>
5346 * TreeNodeCollection.cs: Dont't recalculate the visible order on
5347 inserted nodes that aren't visible. This changes the
5348 max_visible_order which confuses scrollbar settings.
5349 - Use the enumerator to get the prev node instead of duplicating
5351 * TreeView.cs: Use new method for setting scrollbar values
5352 - Don't set the bounds every time the scrollbar is updated
5353 - When updating below the root node use an invalidate instead of a
5354 refresh to prevent the child controls (scrollbars) from being
5355 refreshed. (UpdateBelow still needs to be reworked anyways).
5356 - Reenable SetBottom now that visible orders are set correctly,
5357 added some debug code incase we ever get bad values there again.
5358 - Set the scrollbar max to 2 less then the max value, this
5359 compensates for the max value being one above the node count, and
5360 for scrollbars adding one extra "notch".
5361 - When drawing image nodes if there is an imagelist we draw the
5362 first image in the list if the supplied image index is out of the
5363 image list's bounds.
5365 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
5367 * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when
5368 we receive a size change from the WM (Fixes #78503)
5370 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
5372 * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip
5373 rectangle (Fixes #78501)
5375 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
5378 - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button
5380 - Fixed MouseMove to no longer switch pressed state unless the left
5381 mouse button is pressed. Atsushi provided the original patch (#78485)
5383 2006-05-24 Jackson Harper <jackson@ximian.com>
5385 * ScrollBar.cs: New internal methods that allow us to change a
5386 couple values on the scrollbar (the most common case is maximum
5387 and large change) without getting multiple invalidates.
5389 2006-05-24 Chris Toshok <toshok@ximian.com>
5391 * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
5392 (Edit): save off the original state in oldState, and set
5393 grid.is_editing to true.
5394 (OnKeyDown): abort editing if escape is pressed. also, call
5395 NextState if space is pressed.
5396 (OnMouseDown): call NextState.
5397 (NextState): factor out shared code from OnKeyDown and OnMouseDown
5398 here. Also, only invalidate the row header once (on the initial
5399 is_changing switch) to save on redraws.
5401 2006-05-24 Chris Toshok <toshok@ximian.com>
5403 * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
5404 if the value in the cell is different than it was before. This
5405 keeps us from triggering a layout when we move around a datarid
5406 with a highlighted cell.
5407 (Edit): suspend layout when creating/positining the text box, and
5408 resume passing false so we don't ever actually re-layout.
5409 (ReleaseHostedControl): same.
5410 (EnsureTextBox): reformat slightly, and set WordWrap to false.
5412 * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
5413 control-key sequences should go to the datagrid - remove that
5414 lock. Also, modify the conditions under which we move between
5415 cells when moving the cursor within a cell, and remove the "this"
5416 and "base" from field accesses. We weren't even consistent, given
5417 they all were in the base class.
5419 2006-05-24 Atsushi Enomoto <atsushi@ximian.com>
5421 * Binding.cs : (.ctor)
5422 An obvious NRE fix for BindingTest.CtorNullTest().
5424 2006-05-23 Chris Toshok <toshok@ximian.com>
5426 * TextBoxBase.cs (get_Text): don't add a trailing newline, add
5427 them between lines. This fixes some quirks editing cells in the
5430 2006-05-23 Jackson Harper <jackson@ximian.com>
5432 * TreeView.cs: Use begin/end update when doing expand/collapse all
5433 so that we don't get flicker on the scrollbar.
5435 2006-05-23 Jackson Harper <jackson@ximian.com>
5437 * TreeNode.cs: Bounds are computed 'on the fly' now. This allows
5438 treenode calculations to be independant of the painting code. To
5439 do this nodes track a visible order which is calculated by the
5441 - Call new methods for expanding/collapsing nodes. These methods
5442 use scrollwindow so we don't have to update everything below the
5444 * TreeView.cs: Refactored drawing and scrolling code. We don't
5445 need to update nodes when drawing anymore or calculate scrollbar
5447 - Added new methods for expanding/collapsing nodes. These methods
5448 use ScrollWindow so as to not have to redraw all the nodes below.
5449 * TreeNodeCollection.cs: Recalc visible order and scrollbars when
5450 we add/remove nodes or sort.
5451 - Handle removing the selected and the top node properly.
5453 2006-05-23 Chris Toshok <toshok@ximian.com>
5455 * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
5456 maybe this should actually happen in the datagrid code?
5457 (EndEdit): no need to invalidate anything, given that
5458 ReleaseHostedControl causes the datagrid to relayout, which
5459 invalidates everything anyway.
5461 * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
5463 (set_SelectionBackColor): call InvalidateSelection instead of
5465 (set_SelectionForeColor): same.
5466 (BeginEdit): Flesh this out a bit.
5467 (CancelEditing): only do any of this if we're editing/adding.
5469 (OnMouseDown): there's no need to cancel editing here, it's done
5471 (SetCurrentCell): only invalidate the current row header if it's a
5472 different row than the new one.
5473 (ShiftSelection): fix this to work like MS does.
5474 (ResetSelection): factor out the invalidation of selected_rows to
5475 InvalidateSelection.
5476 (SetDataSource): cancel any editing that's going on.
5478 * DataGridColumnStyle.cs
5479 (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
5480 call the non-interface version.
5482 * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
5483 header rectangle with the clip rectangle so we don't redraw the
5484 entire header for just a small area. Gets rid of the last flicker
5485 when horizontally scrolling.
5486 (DataGridPaintRow): same.
5488 2006-05-23 Mike Kestner <mkestner@novell.com>
5490 * ListViewItem.cs: remove size for line hack from LargeIcon layout.
5491 * ThemeWin32Classic.cs: don't draw line. it's really the top of a
5492 poorly placed checkbox on the MS control. Fixes Alex's unfiled
5493 Critical bug report.
5495 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
5497 * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
5498 and this fixes #78493
5500 2006-05-23 Miguel de Icaza <miguel@novell.com>
5502 * Theme.cs (GetSizedResourceImage): Scale images if the proper
5505 * FileDialog.cs: Do not change the background for the side bar as
5506 it wont work nicely with the theme, and also reduces the artifacts
5507 in rendering the icons (which I want to fix too).
5509 * MimeIcon.cs (ResourceImageLoader): Load images from assembly
5510 resources, not resgen resources.
5512 (PlatformDefaultHandler): Pull images using the new API.
5514 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
5516 * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
5517 a reference to the hwnd and will not remove it unless there are
5518 no pending exposures (fixes #78341)
5519 * XplatUI.cs: Improved debug
5521 2006-05-23 Atsushi Enomoto <atsushi@ximian.com>
5523 * MenuAPI.cs : don't handle OnClick event when it was not the left
5524 button. Fixed bug #78487.
5526 2006-05-23 Mike Kestner <mkestner@novell.com>
5528 * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
5529 prefer submenus to the top menu for item lookup, to avoid popping down
5532 2006-05-23 Alexander Olk <alex.olk@googlemail.com>
5534 * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
5535 Graphics.FillRectangle as the visual results are really bad (even
5536 on win). We now draw perfect arrows (and perfect shadows when the
5537 scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
5538 Pen.DashPattern to draw the dots of each line.
5540 2006-05-22 Alexander Olk <alex.olk@googlemail.com>
5542 * FileDialog.cs: Update the filename combobox when navigating through
5543 the ListView with the cursor keys. Fixes part 7 of bug #78446.
5545 2006-05-22 Mike Kestner <mkestner@novell.com>
5547 * ListView.cs: raise SelectedIndexChanged on keyboard selection.
5550 2006-05-22 Mike Kestner <mkestner@novell.com>
5552 * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
5553 requests. Fix a misspelled parameter and a copy paste exception error
5556 2006-05-22 Peter Dennis Bartok <pbartok@novell.com>
5558 * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
5559 to get the same width/height (5/13) on X11 as the default font has on
5560 win32. This means that our DefaultFont emSize is smaller than the
5561 the MS SWF equivalent (even thought the width/height stays the same)
5563 2006-05-20 Jackson Harper <jackson@ximian.com>
5566 * MdiWindowManager.cs:
5567 * InternalWindowManager.cs: Make sure to use the border width from
5570 2006-05-20 Jordi Mas i Hernandez <jordimash@gmail.com>
5572 * PrintDialog.cs: Implements printer details
5574 2006-05-19 Alexander Olk <alex.olk@googlemail.com>
5576 * FileDialog.cs: Added focus handling for PopupButtonPanel.
5577 Fixes part 1 and 2 of bug #78446
5579 2006-05-19 Peter Dennis Bartok <pbartok@novell.com>
5581 * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
5582 instead of sticking to the first ever calculated value
5584 2006-05-19 Mike Kestner <mkestner@novell.com>
5586 * ComboBox.cs: fix mouse motion selection to use MousePosition and
5587 PointToClient, since Capture is set. Fixes #78344.
5589 2006-05-19 Mike Kestner <mkestner@novell.com>
5591 * ListView.cs: match MS behavior in Details view where items are not
5592 drawn if Columns.Count == 0.
5593 * ThemeWin32Classic.cs: only highlight ListView selection if focused.
5594 Use a separate pen to draw the check, since changing the width affects
5595 the box as well. Fixes #78454.
5597 2006-05-18 Miguel de Icaza <miguel@novell.com>
5599 * ListView.cs: ArgumentOutOfRangeException, single versions of the
5600 exception should throw the name of the invalid argument.
5602 * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
5603 there are no files listed.
5605 2006-05-18 Jackson Harper <jackson@ximian.com>
5607 * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
5610 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
5612 * Control.cs: Brought back our old UpdateZOrder method as a private
5613 function and switched our calls from UpdateZOrder to the new one.
5614 This fixes the Paint.Net canvas disappearing bug.
5616 2006-05-18 Jackson Harper <jackson@ximian.com>
5619 * ThemeWin32Classic.cs:
5620 * InternalWindowManager.cs: Move the drawing into the theme,
5621 expose everything the theme should need from the window manager.
5623 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
5625 * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value
5626 from the call to NativeWindow to avoid walking up the parent chain
5627 further than needed (speeds up setting cursors and avoids setting
5628 the wrong cursor if a parent has another cursor defined)
5629 * Cursor.cs: When loading an icon as cursor, MS uses the center of
5630 the icon as hotspot, not what's contained as hotspot in the icon
5631 file. This fixes the perceived drawing offset seen with Paint.Net
5633 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
5636 - Store the calculated rectangle in Hwnd object and use it when
5637 setting the client size
5638 - Force Toolwindows to always be type Dock, to ensure they're on top
5640 2006-05-18 Mike Kestner <mkestner@novell.com>
5642 * ComboBox.cs: first pass at ComboBox rework. Layout is more
5643 consistent with MS positioning. IntegralHeight, ItemHeight, Sizing.
5644 Correctly initialize textcontrol and ListBox on DropDownStyle changes.
5645 Substantial refactoring to remove confusing nested classes. Coding
5646 standard and Get+Set->property refactorings. Shift to index based
5647 highlighting in ComboListBox instead of constantly using IndexOf and
5648 Items[]. Add invalidations on resize for DropDownList to fix ugliness
5649 in FileDialog growth. Draw borders manually since Simple mode needs
5650 to look like two independent controls. Make listbox border
5651 conditional to DropDownStyle. Improved OwnerDraw support.
5653 2006-05-18 Sebastien Pouliot <sebastien@ximian.com>
5655 * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor.
5656 Don't set the disposed graphics to null, so we can throw the "right"
5657 exception if the graphics is reused later (added a flag to avoid
5658 double disposing). Some behaviours are different under 2.0 and are
5659 filled under bug #78448.
5661 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
5663 * Control.cs: When double-buffering is enabled, we need to reset
5664 our graphics context between paint calls. Otherwise, any
5665 transformations and other alterations on the context will
5666 become cumulative (#77734)
5668 2006-05-18 Mike Kestner <mkestner@novell.com>
5670 * ListView.cs: do focused item selection like MS on clicks.
5671 Rework focus handling for ItemControl so LostFocus invalidates as
5673 * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
5674 the ListView ItemControl has focus.
5676 2006-05-17 Peter Dennis Bartok <pbartok@novell.com>
5678 * XplatUIX11.cs: If client_window ends up being width or height zero
5679 due to border settings, move it off window inside whole_window (#78433)
5681 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
5683 * Mime.cs: Shrink the mime file cache correctly.
5685 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
5687 * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
5689 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
5691 * XplatUIX11.cs (AddExpose): More sanity checks
5693 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
5696 - AddExpose: Don't add expose ranges outside the size of our
5698 - Cast opacity values to Int32 to avoid crashes with certain
5700 - Added disabled code paths that protect against illegal cross-
5701 thread painting (Developers.exe)
5703 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
5705 * ProgressBar.cs: Invalidate the control when it's resized
5706 since block size is based on control size. (#78388)
5708 2006-05-16 Miguel de Icaza <miguel@novell.com>
5710 * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
5711 of setting the incoming argument to the "reset" value, we set the
5712 this.datamember to string.empty (before we were invalidating the
5717 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
5719 * Form.cs: Only apply transparency settings after the form
5720 is created. (Fixes #77800)
5722 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
5724 * ApplicationContext.cs: Grab the HandleDestroyed event so
5725 we know when to fire OnMainFormClosed
5727 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
5729 * Application.cs: Introduced sub-class to allow tracking of
5730 threads and centralized triggering of the event mess for
5731 ThreadExit, AppExit, etc.. (#76156)
5733 2006-05-16 Alexander Olk <alex.olk@googlemail.com>
5736 - Do not return a null icon index value for a mime subclass.
5737 Instead try the main mime type class too.
5738 - Seems that some newer distributions don't have a link to some
5739 gnome default icons anymore. So check the default gnome dir too.
5742 2006-05-16 Jackson Harper <jackson@ximian.com>
5744 * MdiClient.cs: Don't paint the parent background image if we have
5745 our own background image.
5747 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
5750 - PerformLayout: Do not shrink space filled by DockStyle.Fill
5751 controls, all filled controls are supposed to overlap (#78080)
5752 - UpdateZOrder is supposed to update the control's z-order in the
5753 parent's z-order chain. Fixed to behave like that
5754 - BringToFront: Removed obsolete code
5755 - SendToBack: Simplyfied
5756 - SetChildIndex: Trigger layout calculations when Z-order changes
5757 since layout is done by z-order
5759 2006-05-16 Chris Toshok <toshok@ximian.com>
5761 [ fixes bug #78410 ]
5762 * DataGrid.cs (set_AlternatingBackColor): use
5763 grid_drawing.InvalidateCells instead of Refresh().
5764 (set_BackColor): call grid_drawing.InvalidateCells.
5765 (set_BackgroundColor): use Invalidate instead of Refresh.
5767 * DataGridDrawingLogic.cs (InvalidateCells): new function, just
5768 invalidate the cell area.
5770 2006-05-15 Chris Toshok <toshok@ximian.com>
5772 [ fixes bug #78011 ]
5773 * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
5774 on to DataGridPaintRow.
5775 (DataGridPaintRow): take a clip argument, and only draw the cells
5776 which intersect it. same with the not_usedarea.
5778 * Theme.cs (DataGridPaintRow) add @clip parameter.
5780 * DataGrid.cs (ScrollToColumnInPixels): simplify, use
5781 XplatUI.ScrollWindow.
5782 (ScrollToRow): same.
5784 * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
5785 with last column which was causing a gray swath to appear with the
5786 XplatUI.ScrollWindow code.
5788 2006-05-15 Chris Toshok <toshok@ximian.com>
5790 * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
5791 use XplatUI.ScrollWindow.
5792 (VerticalScrollEvent): use XplatUI.ScrollWindow.
5794 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
5796 * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
5798 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
5800 * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
5801 file since there are no equivalent X11 cursors
5803 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
5805 * MonthCalendar.cs : DateTimePicker should reflect selected date
5806 on mouse*up*, not mouse*down*. Fixed originally reported part of
5809 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
5811 * TabControl.cs : When argument index is equal or more than tab
5812 count, just ignore. Fixed bug #78395.
5814 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
5816 * Control.cs: Dispose all child controls when control is diposed (#78394)
5818 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
5820 * ColorDialog.cs: Finally it is possible to select the color with
5823 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
5825 * PrintDialog.cs: Fix typo
5827 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
5829 * PrintDialog.cs: PrintDialog is not resizable
5830 * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
5831 color. Made some ToolBar drawing methods protected virtual.
5833 2006-05-13 Jordi Mas i Hernandez <jordimash@gmail.com>
5835 * PrintDialog.cs: Implementation of the PrintDialog
5837 2006-05-12 Chris Toshok <toshok@ximian.com>
5839 * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
5840 thumb, instead use MoveThumb. This has the side effect of making
5841 most of the other thumb moving machinery use MoveThumb as well.
5842 (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
5843 need to actually invalidate the rectangle where the new thumb will
5845 (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
5846 We force an Update() after, so it's not as fast as it could be,
5847 but at least there's zero flicker and no droppings.
5848 (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
5849 (UpdateThumbPos): add another argument (dirty), which says whether
5850 or not to calculate/add dirty regions which we later invalidate.
5851 For cases where we know we're going to use MoveThumb, we pass
5852 false for this. Otherwise, pass true.
5854 2006-05-12 Jackson Harper <jackson@ximian.com>
5856 * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
5859 2006-05-12 Peter Dennis Bartok <pbartok@novell.com>
5861 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
5862 and GetClipRegion methods and UserClipWontExposeParent property.
5863 * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
5864 overriding UserClipWontExposeParent property, setting to false, since
5865 Win32 handles the required expose messages to draw our clipped parent
5867 * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
5868 PaintEventStart to set the user clip region if set.
5870 - Now internally tracking the Region for the control since we need to
5871 store it if the handle is not yet created and only set it when it
5872 becomes created. Before setting the region forced handle creation
5873 - Added code to draw the parents underneath a user-clipped region
5874 * Hwnd.cs: Added UserClip property
5876 2006-05-12 Chris Toshok <toshok@ximian.com>
5878 * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
5879 (set_Maximum): same.
5880 (set_Minimum): same.
5881 (set_SmallChange): same.
5882 (OnMouseUpSB): remove the call to refresh when releasing the
5883 thumb. We shouldn't need it.
5885 2006-05-12 Miguel de Icaza <miguel@novell.com>
5887 * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
5888 AutoSize set to None, we do not need to relayout everything, we
5889 just need to invalidate the current region.
5891 (Draw): Do not draw the entire ClientArea, just redraw the
5892 clip area being passed.
5894 * MdiClient.cs: Make MdiClient constructor with the Form argument
5897 2006-05-12 Jackson Harper <jackson@ximian.com>
5899 * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
5900 parents background image, but strangely not their own.
5901 - (DrawStatusBarPanel): Take into account horizontal alignment
5902 when drawing the strings and icons.
5904 2006-05-12 Mike Kestner <mkestner@novell.com>
5906 * ListBox.cs: avoid invalidations for focus when the collection is
5909 2006-05-12 Chris Toshok <toshok@ximian.com>
5911 * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
5912 invalidate the entire thumb area. Call InvalidateDirty which
5913 limits the redraw to the thumb itself and surrounding pixels.
5915 * XplatUIX11.cs (ScrollWindow): optimize copying.
5917 2006-05-12 Chris Toshok <toshok@ximian.com>
5919 * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
5920 Figure out the positioning/layout in a single pass instead of
5921 multiple recursive invocations. Speeds up the initial display of
5922 the data grid. Also, make many things private that were
5923 originally public but unused outside this class.
5925 2006-05-11 Jackson Harper <jackson@ximian.com>
5927 * MdiClient.cs: Improved layout code.
5929 2006-05-11 Jonathan Chambers <jonathan.chambers@ansys.com>
5931 * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
5934 2006-05-11 Chris Toshok <toshok@ximian.com>
5936 * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
5937 union of that will always be {0,0,width,height}.
5939 2006-05-11 Jackson Harper <jackson@ximian.com>
5941 * Form.cs: Match MS's DefaultSize for forms (they must have
5942 changed the size in sp2).
5944 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
5946 * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
5948 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
5950 * TextControl.cs : Fixed bug #78109. This incorrect position
5951 comparison caused crash on automatic line split.
5952 * TextBoxBase.cs : reduce duplicate code.
5954 2006-05-10 Jackson Harper <jackson@ximian.com>
5956 * MdiClient.cs: Active form is only sent to the back when using
5957 the Next form functionality, when a form is clicked the current
5958 active shouldn't be sent to the back.
5959 - Layout the mdi windows when the container is first made visible.
5960 * Form.cs: Give the MdiClient a ref to the containing form when we
5963 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
5965 * LinkLabel.cs : link_font could be uninitialized, so populate one
5966 before actual use. Fixed bug #78340.
5968 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
5970 * XplatUIX11.cs : clipboard format native value is IntPtr.
5973 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
5976 - Instead of showing context menus directly we send WM_CONTEXTMENU,
5977 which is passed up the parent chain by DefWndProc
5978 - We now handle WM_CONTEXTMENU to display any menu, or pass it
5979 to DefWndProc (#77956)
5980 * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
5982 2006-05-10 Jackson Harper <jackson@ximian.com>
5984 * MdiClient.cs: We need to remove the controls from the mdi
5985 collection, when we close the window.
5986 * MdiWindowManager.cs: Special handling of closing mdi windows.
5987 * InternalWindowManager.cs: Make the close method virtual so the
5988 mdi window manager can handle it specially.
5990 2006-05-10 Jordi Mas i Hernandez <jordimash@gmail.com>
5993 - Recalculate grid when the data source has changed
5994 - Matches styles provided by user from all data sources types
5995 * DataGridTableStyle.cs: For columns that provided by the user set the
5996 with the preferred value is there was unassigned.
5997 * CurrencyManager.cs: throw OnItemChanged event
5999 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
6001 * PictureBox.cs: Don't animate until handle is created. Start animation
6002 when handle is created.
6004 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
6006 * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
6008 * XEventQueue.cs: We don't need to provide the extra info
6010 2006-05-10 Jackson Harper <jackson@ximian.com>
6012 * MdiClient.cs: If the mdi clients parent form has a background
6013 image set, we draw that background image for the mdi area's
6016 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
6018 * TextBoxBase.cs: Set IBeam cursor (#78347)
6020 2006-05-10 Mike Kestner <mkestner@novell.com>
6022 * ToolBar.cs: fix some text padding issues with ButtonSize
6023 calculation. Update the default size to match MS documentation.
6024 * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
6025 button size. Fixes #78296.
6027 2006-05-10 Mike Kestner <mkestner@novell.com>
6029 * ListBox.cs: use is_visible for scrollbar positioning in case the
6030 control isn't on screen yet. Fix off by one with Right vs Width
6031 usage. Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
6033 2006-05-10 Jackson Harper <jackson@ximian.com>
6035 * X11Dnd.cs: Drop to a control with another control on top of it.
6036 * ToolBar.cs: Work on a copy of the buttons list, so that it can
6037 be modified in click handlers. TODO: Look for similar problems in
6040 2006-05-09 Jackson Harper <jackson@ximian.com>
6042 * Form.cs: Window managers need the old window state when setting
6044 * InternalWindowManager.cs: Allow the base mdi window manager to
6045 handle more of the MDI only stuff (like maximize buttons).
6046 * MdiWindowManager.cs: Fix some snafus in changing the window
6047 state. Add all the menu functionality, for both popup and
6049 * MdiClient.cs: When a new form is selected the currently
6050 activated form is sent to the back, this matches MS.
6051 - Implement a new method to activate the next mdi child window.
6053 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
6056 - Added new InternalCapture method to allow controls to prevent
6057 the capture behaviour on the click handlers
6058 - Switched to use InternalCapture
6060 - Using InternalCapture to prevent mouse captures from being released
6061 on mouse button release (Fixes #78100)
6062 * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
6063 returns Form borders if a caption is present. (Fixes #78310)
6065 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
6067 * TreeNode.cs: Changed serialization .ctor to not require every field
6068 to be present. (#78265)
6069 * OwnerDrawPropertyBag.cs: Added serialization .ctor
6071 2006-05-05 Alexander Olk <alex.olk@googlemail.com>
6073 * MimeIcon.cs: for is faster than foreach for strings.
6075 2006-05-05 Mike Kestner <mkestner@novell.com>
6077 * CheckedListBox.cs: update check handling code to not use selected.
6078 * ListBox.cs: rewrite of mouse selection handling to correspond to MS
6079 behavior for visual feedback, motion response, shift/ctrl handling,
6080 and properly deal with all 4 selection modes. Updates to bounds
6081 handling logic. Add scroll wheel support. [Fixes #77842]
6083 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
6086 - Moved adding of Implicit controls into .ctor. That way, subsequent
6087 creation of the controls will not cause them to think they are
6088 toplevel windows (fixes #78200 header problem)
6089 - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
6090 - Switched visibility setting of header control to use internal field
6091 to avoid triggering handle creation
6092 - Now checking if handle is created before causing a refresh when items
6093 are added (This makes us now match handle creation time with MS)
6094 * Splitter.cs: Removed loading of private splitter cursor, switched to
6095 Cursors version now that that is loading the right ones
6096 * Cursors.cs: Load proper splitter cursors from resources
6097 * Cursor.cs: Added second method of loading resource cursors for the
6098 VS.Net users amongst us
6100 2006-05-05 Mike Kestner <mkestner@novell.com>
6102 * ListView.cs: give header_control a minimum size based on the
6105 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
6107 * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
6108 window seems to do that with metacity, so set that type. (#78120)
6110 2006-05-05 Mike Kestner <mkestner@novell.com>
6112 * ListViewItem.cs: fix Details mode checkbox layout bug.
6113 * ThemeWin32Classic.cs: draw a ListView column header for unused space
6114 at the end of the header, if it exists. [Fixes for #78200]
6116 2006-05-04 Jackson Harper <jackson@ximian.com>
6118 * MdiClient.cs: Add a helper property to get the container form.
6119 * MdiWindowManager.cs: We have to make sure to use the menu origin
6120 when drawing the icons and buttons, this fixes maximized window
6121 icons/buttons on win32.
6122 * InternalWindowManager.cs: Reset the restore captions when a
6123 window goes from Maximized to Minimized and vice versa. Move the
6124 DrawMaximizedButtons into the MdiWindowManager source, tool
6125 windows can't be maximized. NOTE: This could use a little
6126 refactoring if time ever permits.
6128 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
6130 * TextBox.cs: Add MWFCategoryAttributes
6131 * TextBoxBase.cs: Add MWFCategoryAttributes
6132 * Form.cs: Add MWFCategoryAttributes
6134 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
6136 * Control.cs: Add MWFCategoryAttributes
6137 * ScrollableControl.cs: Add MWFCategoryAttributes
6139 2006-05-03 Alexander Olk <alex.olk@googlemail.com>
6141 * ThemeWin32Classic.cs: Draw the ToolBar top border only if
6142 Divider is true. Fix a little glitch in PropertyToolBar
6145 2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
6148 - Dispose: Call base.Dispose, this causes the disposed event
6149 to be fired (and probably other, more important stuff)
6150 - SetVisibleCore: Set is_visible to true after creating the
6151 window so that the window still gets created invisible (if
6152 WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
6153 to generate a WM_ACTIVE message
6154 * Form.cs: Call Dispose when we want to destroy the window, instead of
6155 just destroying the handle (Dispose will do that for us)
6157 - RootWindow also needs a queue, so we can properly process the
6158 property change events from RootWindow (like Activate)
6159 - Generatic synthetic WM_ACTIVE message when the active window is
6162 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
6164 * LinkLabel.cs: Trigger a recalc of our label dimensions when
6167 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
6169 * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
6170 for determining width and height (image might not be assigned if
6171 we're drawing an imagelist)
6173 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
6175 * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
6176 * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
6178 * Theme.cs: No longer returns hardcoded menu height, instead calls
6180 * Form.cs (OnLoad): Scaling happens before triggering Load events
6183 2006-05-01 Mike Kestner <mkestner@novell.com>
6185 * MenuItem.cs: fix NRE for text == null. Fixes #78250.
6187 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
6189 * TextBoxBase.cs: Removed Fixme
6190 * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
6192 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
6195 - ScrollWindow: We were passing hwnd.ClientRectangle which returns
6196 the rectangle relative to the parent, considering borders. We
6197 don't really want that.
6198 - ScrollWindow: Fixed warning to be more understandable
6199 * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
6200 scrollbars and scroll only the visible area
6201 * RichTextBox.cs: Removed debug output
6203 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
6205 * NumericUpDown.cs (Text): Just use base
6206 * UpDownBase.cs: Ensure txtView is created before using it
6208 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
6210 * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
6211 casting to IntPtr to avoid 64bit overflow errors
6213 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
6216 - AllowDrop: Don't force handle creation.
6217 - CreateHandle: Added call to tell driver if we're allowed to drop
6219 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
6221 * FileDialog.cs: Remember the last directory not only for the
6222 current instance but also for new FileDialog instances.
6224 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
6226 * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
6227 broke sending async messages
6229 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
6232 - ScrollWindow: Fixed method. We finally generate expose events again
6233 for scrolled areas. This was causing 'garbage' when scrolling
6234 textbox and other controls that used ScrollWindow
6235 - Switched from using the regular queue for paint events to the MS
6236 model of 'generating' paint events when the queue is empty.
6237 We use the new XQueueEvent.Paint subclass to store which windows
6239 - AddExpose now takes the x/y/width/height of the exposed area
6240 and inserts the window into the paint queue if not already there
6241 - InvalidateWholeWindow: Switched to use new AddExpose method
6242 - UpdateMessageQueue: Added which queue to monitor for paint events
6243 - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
6244 the unlikely case nothing above handles it. We reset the expose
6245 pending states to get them off the queue.
6246 - GetMessage: Now pulls a paint event if no other events are in the
6248 - Invalidate: Switched to new AddExpose method
6249 - PeekMessage: Updated to understand pending paint events
6250 - UpdateWindow: Fixed logic bug. We were only updating if the window
6251 didn't need updating. Also switched to sending WM_PAINT directly,
6253 * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
6254 and random access Remove(). The random access is needed to handle
6255 UpdateWindow() where a WM_PAINT is sent directly without accessing
6257 * ScrollBar.cs: Added Update() calls to cause immediate updates to
6258 allow for better feedback when scrolling. Scrollbars are small and
6259 the immediate update should make it 'feel' more responsive without
6260 slowing things down. ScrollBar still needs it's invaliate logic
6261 updated to not always invalidate the whole bar on certain changes.
6263 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6266 (BackColor): if the control does not support a transparent background,
6267 return the default backcolor when the parent backcolor is transparent.
6269 2006-04-28 Peter Dennis Bartok <pbartok@novell.com>
6271 * Application.cs: Updated to new StartLoop/GetMessage API
6272 * RichTextBox.cs: Provide some output on RTF parsing errors
6273 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
6274 new queue_id argument to GetMessage and PeekMessage to allow faster
6275 handling of per-thread queues in drivers.
6276 * Hwnd.cs: Added Queue tracking and property
6277 * MenuAPI.cs: Updated to new StartLoop/GetMessage API
6278 * XEventQueue.cs: Added thread trackingA
6279 * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
6281 - Implemented new per-thread queue
6282 - GetMessage: Fixed return/break behaviour on several cases. We were
6283 returning stale messages in some cases, instead of just processing
6286 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
6288 * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
6290 2006-04-27 Peter Dennis Bartok <pbartok@novell.com>
6292 * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
6293 fixed off-by-one comparisons between Width/Height and Right/Bottom.
6295 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
6297 * PropertyGridView.cs: Fix drop down width.
6299 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
6301 * ThemeWin32Classic.cs: Peter thinks that three additional lines are
6302 a mess in DrawToolBar, so I removed one of them.
6304 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
6306 * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
6307 needed (clip). Otherwise we get artifacts.
6309 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
6311 * FixedSizeTextBox.cs: Added constructor to allow specifying which
6313 * UpDownBase.cs: Set the spinner control to be fixed height vertical,
6314 and switched FixedSizeTextBox to only be fixed vertical (#78116)
6315 * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
6316 if it matches the scale base font (avoids unneeded scaling)
6318 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
6320 * X11DesktopColors.cs: One gtk_init_check should be enough
6322 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
6324 * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
6327 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
6330 - Generate OnTextChanged for Backspace even if we're only deleting
6331 the current selection
6332 - When setting the Text property, only select all text if the
6333 control does not have focus when it is being set. Otherwise
6334 just place the cursor at the beginning of the control
6336 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
6338 * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
6339 Added a little helper to draw PropertyGrid ToolBar with a different
6340 border and a different BackColor.
6341 * PropertyGrid.cs: Some background parts didn't get painted with the
6342 correct background color. Added a class that helps us to draw the
6343 correct border for PropertyGridView and a class that helps us to
6344 draw ToolBars with a different backcolor
6345 * PropertyGridView.cs: Draw PlusMinus with the correct colors.
6347 2006-04-25 Jonathan Chambers <jonathan.chambers@ansys.com>
6349 * PropertyGrid.cs: Bug 78196, font size, and splitter location.
6350 * PropertyGridView.cs: Bug 78196, font size, and splitter location.
6352 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
6354 * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
6355 into the palette entries. Also, since we're working on a copy
6356 we needed to copy the palette back onto the bitmap.
6357 * Cursor.cs: Same fix as XplatUIWin32.cs.
6359 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
6361 * ImageListStreamer.cs: Need to read the var (or we're off)
6363 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
6365 * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs,
6366 XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
6367 TextBoxBase.cs: Unused var fixes
6368 * AxHost.cs: Small 2.0 fix
6369 * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms
6370 as it seems that is what at least Metacity expects. This will make
6371 icons show up on 64bit platforms. We still have some 64bit size
6372 issues, though, since the startup app window size still won't match.
6374 2006-04-25 Mike Kestner <mkestner@novell.com>
6376 * *.cs: cleanup newly reported exception var unused warnings.
6378 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
6380 * ThemeWin32Classic.cs: Button image alignment now matches exactly
6383 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
6385 * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
6386 image. The image position is always the same, no matter if the
6387 button is pressed or not.
6389 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
6391 * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
6392 selection and set the correct filename for SaveFileDialog.
6393 Patch by Emery Conrad.
6395 2006-04-24 Mike Kestner <mkestner@novell.com>
6397 * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
6398 check for item.X outside the ClientRect instead of item.Y. Fixes
6401 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6403 * ImageListStreamer.cs: some images store a wrong grow factor, so don't
6404 trust that value blindly and do some sanity check. Fixes bug #77814.
6406 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6408 * ImageListStreamer.cs: save the mask as a 1bpp image.
6410 2006-04-21 Mike Kestner <mkestner@novell.com>
6412 * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
6413 pass Checked and Indeterminate to the Theme Engine. Improve
6414 encapsulation with ListBox.
6415 * ListBox.cs: Keep a StringFormat instead of calculating it every item
6416 draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
6417 nested types. Move all CheckState functionality to CheckedListBox.
6418 Make IntegralHeight work like MS. Rewrite of Layout engine. Fix
6419 OwnerDrawVariable layout/rendering. Fix multicolumn rendering. Fix
6420 ScrollAlwaysVisible handling. Refactor "selected" collections to use a
6421 single base list. Fix scrollbar sizing and placement to mirror MS.
6422 * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
6424 * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
6425 for CheckedListBox by using new DrawItemState info. Center the
6426 checkboxes on the items. Use new StringFormat property.
6428 2006-04-18 Jackson Harper <jackson@ximian.com>
6430 * Form.cs: MdiChildren don't do default locations the same way as
6431 regular forms. This prevents a crash when trying to position the
6434 2006-04-17 Jonathan Chambers <jonathan.chambers@ansys.com>
6436 * PropertyGridTextBox.cs: Formatting, copyright
6437 * PropertiesTab.cs: Formatting
6438 * PropertyGrid.cs: Formatting
6439 * PropertyGridView.cs: Formatting, fix drop down, enabled double
6440 click toggling of values
6442 2006-04-17 Peter Dennis Bartok <pbartok@novell.com>
6444 * KeyPressEventArgs: Added 2.0 only setter for KeyChar
6445 * Control.cs (.ctor): verify_thread_handle is static, don't reset
6446 every time a control is created
6447 * Application.cs: Removed obsolete EnableRTLMirroring method
6449 2006-04-18 Gert Driesen <drieseng@users.sourceforge.net>
6451 * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
6452 SelectedIndex to -1. Fixes bug #78121.
6454 2006-04-17 Jackson Harper <jackson@ximian.com>
6456 * Binding.cs: Handle null values for Current and BindingContext.
6457 This occurs when binding is a little delayed.
6458 * CurrencyManager.cs: return null for Current when there are no
6460 - Hookup to the listchanged event on the DataView and update
6461 bindings when the list is changed. This fixes late binding of
6464 2006-04-17 Jackson Harper <jackson@ximian.com>
6467 * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
6470 2006-04-15 Alexander Olk <alex.olk@googlemail.com>
6472 * ThemeWin32Classic.cs: Draw disabled combo button in the correct
6474 * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
6475 with the correct ButtonState
6477 2006-04-14 Peter Dennis Bartok <pbartok@novell.com>
6479 * XplatUIX11.cs: Improved distinguishing between window types to
6480 tell the WM a type closer to what the app wants (Fixes #78107)
6482 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
6484 * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
6487 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
6489 * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
6490 drawing code to reflect the size grip changes
6492 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6494 * ImageListStreamer.cs: fix handling of the mask that follows the main
6495 bitmap when deserializing and serialize it properly. The generated mask
6496 should better be a 1bpp image, but I'll do that later.
6498 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
6500 * FileDialog.cs: Show something in the DirComboBox on *nix if the
6501 path doesn't fit into some of our Current.Places
6503 2006-04-13 Jackson Harper <jackson@ximian.com>
6505 * ComboBox.cs: Use borders instead of drawing our own decorations,
6506 try to obey correct rules for heights.
6509 * ThemeClearLooks.cs:
6510 * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
6511 this is now handled by borders.
6512 - Remove unused DrawListBoxDecorationSize method.
6514 2006-04-13 Mike Kestner <mkestner@novell.com>
6516 * MenuAPI.cs: null guarding for the disbled click check fixes crash
6519 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
6521 * ThemeWin32Classic.cs:
6522 - Fixed CPDrawStringDisabled
6523 - Corrected drawing of disabled menu items
6524 - Fixed drawing of disabled radio buttons (bug #78095)
6525 - Draw check in a disabled CheckBox with color ControlDark
6527 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
6529 * Form.cs: Use the provided width when calculating the menu size;
6530 when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
6531 and ClientSize.Width won't be updated yet
6532 * Application.cs: Use Visible instead of Show() to make form visible,
6533 this way we create the handle later and menusize is considered
6535 2006-04-12 Mike Kestner <mkestner@novell.com>
6537 * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
6540 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
6542 * TextBox.cs: Implemented context menu
6544 2006-04-12 Mike Kestner <mkestner@novell.com>
6546 * ListView.cs: implement box selection. fixes #77838.
6547 * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
6549 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
6551 * XplatUIX11.cs: Added setting of window type when transient window
6552 is created (metacity would move it otherwise)
6553 * X11Structs.cs: Added WINDOW_TYPE atoms
6554 * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
6555 background (the control is Opaque but still wants transparent
6558 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
6560 * Control.cs: Added OnPaintBackgroundInternal to allow controls
6561 that set Opaque but don't mean it (like all ButtonBase-derived
6562 controls) to still draw their background
6563 * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
6566 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
6568 * Control.cs (PaintControlBackground): Set the graphics object
6569 on our PaintEvent to null to prevent it from being disposed
6570 when the PaintEvent gets disposed
6572 2006-04-12 Alexander Olk <alex.olk@googlemail.com>
6574 * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
6575 * ThemeNice.cs, ThemeClearlooks.cs: fix typo
6577 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
6580 - Added transparency check to BackColor property. Transparent
6581 backgrounds are only allowed if the control styles permit it
6582 - Added recursive painting of parent control background and
6583 foreground if a control with a transparent backcolor is drawn
6584 (Thanks to Tim Ringenback for providing his 'hack' as a base
6585 for this patch) Fixes #77985 and #78026.
6586 - Added Opaque style check before calling OnPaintBackground, no
6587 need to draw the background if the control is opaque
6588 - Removed ControlAccessibleObject owner variable (inherited from
6589 base, no need to define again)
6590 - Added some documentation links explaining the drawing events
6593 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
6595 * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
6596 that the affected control is the located at the left border of our
6597 parent (Fixes #77936)
6599 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
6601 * TextBoxBase.cs: When rendering disabled or readonly controls,
6602 draw the background with 'Control' instead of 'Window' color as
6603 long as the user hasn't specifically set a color
6605 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
6607 * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
6608 since that won't be updated if the user types text (only if it's
6609 programatically set)
6611 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
6613 * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
6614 layout changes do to app-triggered resizes will have the proper
6615 display rectangle for layout
6617 2006-04-11 Alexander Olk <alex.olk@googlemail.com>
6619 * ThemeWin32Classic.cs:
6620 - Make use of the SystemBrushes and SystemPens wherever possible
6621 - Corrected some highlight colors
6622 - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
6624 * Theme.cs: Added Empty field to CPColor struct
6626 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
6628 * ScrollabeControl.cs: We need to consider whether or not a scrollbar
6629 is displayed when calculating the display rectangle. Thanks to Mike
6630 for teaching me the err of my ways.
6632 2006-04-10 Peter Dennis Bartok <pbartok@novell.com>
6634 * ScrollableControl.cs:
6635 - Rewrote DisplayRectangle code, now returning the proper x/y coords
6636 (instead of 0,0) and we now return the real width/height instead of
6637 just the clientrectangle, adjusted for padding. The rectangle is
6638 now cached and created by the new CalculateDisplayRectangle method.
6639 - Created new CalculateDisplayRectange method, which basically does
6640 what get_DisplayRectangle() did originally, but now using the
6641 right edge instead of DisplayRectangle to determine the size of
6643 - get_Canvas(): Fixed it to properly calculate canvas for
6644 right/bottom controls which seem to be placed to the right/bottom
6645 of any controls that have a fixed location
6646 - Removed TODO that's taken care of
6647 - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
6648 and SetDisplayRectLocation according to new MSDN2 docs
6649 - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
6650 event when that is called, this is added for compatibility
6651 - ScrollControlIntoView(): Implemented.
6652 - Switched scrollbars to be implicit, they shouldn't be selectable
6653 * ContainerControl: Now that ScrollControlIntoView is implemented, we
6654 call it when the active control is set/changed
6655 * ScrollBar.cs: Added support for generating Win32 scrollbar messages
6656 * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
6657 implicit_control variable (used for native Win32 message generation)
6658 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new
6659 HorizontalScrollBarHeight and VerticalScrollBarWidth properties
6660 * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
6661 * XplatUIStructs.cs: Added ScrollBarCommands enum
6663 2006-04-10 Jackson Harper <jackson@ximian.com>
6666 * CheckedListBox.cs:
6673 * PrintPreviewControl.cs:
6679 * UpDownBase.cs: Fixup base event overrides.
6681 2006-04-06 Mike Kestner <mkestner@novell.com>
6683 * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
6684 all user-initiated value changes to min <= value <= max-thumbsz+1.
6685 (set_Value): check for vert/horiz when calculating new thumb position.
6686 (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
6688 (OnMouseMoveSB): refactor the thumb dragging code and refine
6689 invalidation logic to reduce flicker.
6690 (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
6691 (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
6692 (UpdateThumbPosition): small code readability cleanup
6694 2006-04-10 Alexander Olk <alex.olk@googlemail.com>
6696 * ThemeNice.cs: Small UI polishing. Draw borders a little bit
6699 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
6701 * ThemeNice.cs: Use a better graphics effect when a button is pressed
6703 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
6705 * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
6706 * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
6707 This dramatically reduces the number of Pen.Dispose calls.
6708 Where possible call ResPool methods only once instead of calling it
6709 over and over again (for example for the same color).
6711 2006-04-06 Mike Kestner <mkestner@novell.com>
6713 * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
6714 Also remove an unused private field on the collection. Fixes #77972.
6716 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
6718 * ThemeNice.cs: Added ToolBar drawing code
6720 2006-04-06 Mike Kestner <mkestner@novell.com>
6722 * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
6723 I'm assuming that means we need to look up the toplevel for the
6724 provided control. Fixes the crash trace in #77911 but exposes another
6725 crash in some strange reflection usage in NDocGui.
6727 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
6729 * ThemeNice.cs: Gave it a little silver touch and added Images
6731 * FontDialog.cs: FontDialog is not resizable
6732 * FileDialg.cs: Added SizeGripStyle.Show
6734 2006-04-05 Jackson Harper <jackson@ximian.com>
6736 * KeyboardLayouts.cs: Remove warning.
6738 2006-04-05 Jackson Harper <jackson@ximian.com>
6740 * Control.cs: Enable OnPaintInternal so we can use it for drawing
6741 all of our controls instead of Paint +=.
6756 * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
6757 use OnPaintInternal. Remove Width/Height and Visible checks in
6758 paint handler, this is done at a higher level now.
6759 * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
6760 * PaintEventArgs.cs: Add a handled flag so controls that don't
6761 want anymore painting after OnPaintInternal can make sure OnPaint
6764 2006-04-05 Mike Kestner <mkestner@novell.com>
6766 * Form.cs: fix the menu WndProc hacks to respect the native enabled
6767 state of the form, so that we don't process events when Modal dialogs
6768 are up. Fixes #77922.
6770 2006-04-05 Alexander Olk <alex.olk@googlemail.com>
6772 * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
6775 2006-04-05 Mike Kestner <mkestner@novell.com>
6777 * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
6779 2006-04-05 Mike Kestner <mkestner@novell.com>
6781 * ListView.cs (HeaderMouseMove): null guarding for the over column
6782 when setting up the drag_to_index. Fixes #78015.
6784 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
6786 * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
6787 in the taskbar. Transient windows seem to accomplish that.
6789 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
6792 - Re-enabled CreateParams.X/Y code for FormStartPosition
6793 - Added code for manual placement when creating the Control
6794 - Incomplete patch to treat MDI forms differently when
6795 setting the ClientSizeCore. (Still need to figure out handling
6798 - When we're explicitly setting the X/Y position of a non-Child
6799 window, let the WM know. Metacity really wants this.
6801 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
6803 * ThemeNice.cs: Added CPDrawButton
6805 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
6807 * ThemeNice.cs: Changed the color for focused buttons and activated
6808 the arrows for small scroll buttons.
6810 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
6812 * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
6813 anymore. Changed some method modifiers to protected (virtual)
6814 * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
6816 * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
6817 Updated drawing of menus, buttons and progressbars; added
6820 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6822 * ImageListStreamer.cs: implemented serialization/deserialization
6825 2006-04-03 Alexander Olk <alex.olk@googlemail.com>
6827 * ThemeWin32Classic.cs:
6828 - Removed all the DrawFrameControl stuff; CPDrawButton,
6829 CPDrawCheckBox and CPDrawRadioButton are now handled directly
6831 - Updated and corrected the drawing code of CPDrawButton,
6832 CPDrawCheckBox and CPDrawRadioButton to better match ms
6833 - Updated theme checkbox and radiobutton code to use the CP*
6836 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
6838 * XplatUIX11.cs: Enable clipping again now that the libgdiplus
6841 2006-03-31 Jackson Harper <jackson@ximian.com>
6843 * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
6845 * UpDownBase.cs: Don't CreateGraphics manually, use a
6846 Refresh. Ideally we would invalidate the correct areas here.
6848 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
6851 - We now track the mapping state of windows. If a window (or
6852 one of it's parents) is not mapped we no longer permit
6853 WM_PAINT messages to be generated since we'd otherwise get
6854 lots of BadMatch X errors. Jackson did all the work figuring
6856 - Destroying the caret if the window it's contained in is
6857 destroyed. Can't use regular DestroyCaret method since it
6858 might fall into a drawing function (trying to remove the
6859 caret) and with that generate new BadMatch errors. Again,
6860 Jackson tracked this down.
6861 - Changed DestroyChildWindows to SendWMDestroyMessages, we now
6862 make sure we send the messages to all windows. (The old code
6863 would send the WM_DESTROY to the window, and then all child
6864 windows would be 'gone' because the WM_DESTROY handle lookup
6865 would no longer find the destroyed window)
6866 * Hwnd.cs: Added Mapping property to track mapping state of hwnd
6867 * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
6869 2006-03-31 Jackson Harper <jackson@ximian.com>
6871 * ScrollableControl.cs: Dont recalc if we are not visible.
6873 2006-03-31 Mike Kestner <mkestner@novell.com>
6875 * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
6876 the visibility branch.
6878 2006-03-31 Jackson Harper <jackson@ximian.com>
6880 * ScrollBar.cs: Cap values when incrementing/decrementing.
6882 2006-03-31 Mike Kestner <mkestner@novell.com>
6884 * MenuAPI.cs: setup menu.tracker for popup/context menus.
6885 * ToolTip.cs: guard against timer expirations with no active control.
6886 Not sure why it happened.
6888 2006-03-31 Mike Kestner <mkestner@novell.com>
6890 * ThemeWin32Classic.cs: add some horizontal padding space for the tip
6892 * ToolTip.cs: Position the tooltip based on where the cursor is at
6893 popup time, not at MouseEnter time. Add a Down state so that we don't
6894 redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
6895 positioning offset. Lookup DisplaySize at positioning time, since it
6896 can theoretically change during invocation.
6897 * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
6898 * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
6900 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
6902 * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
6903 Fixes behaviour when the Text property of the box is String.Empty
6905 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
6907 * XplatUIX11.cs: Only send mouseleave for our client windows, not
6908 for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
6911 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
6913 * FileDialog.cs: Visual enhancement for the popup buttons in
6916 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
6918 * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
6921 2006-03-30 Alexander Olk <alex.olk@googlemail.com>
6923 * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
6924 highlighted menu items to match ms
6926 2006-03-30 Peter Dennis Bartok <pbartok@novell.com>
6928 * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
6930 2006-03-30 Mike Kestner <mkestner@novell.com>
6932 * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
6933 * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
6934 go active to account for HotLight to Selected transition.
6935 * MenuItem.cs: add internal Selected prop. Fill out the Status
6936 property by calculating it from item info. Add HotLight,
6937 NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
6939 2006-03-30 Mike Kestner <mkestner@novell.com>
6941 * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
6943 2006-03-29 Jackson Harper <jackson@ximian.com>
6945 * Form.cs: Implement TODO.
6947 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
6949 * PrintPreviewDialog.cs: Implemented missing methods and events; still
6950 missing proper dialog setup in the constructor
6952 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
6954 * ProgressBar.cs: Added 2.0 Style property that apps seem to use
6956 - Implemented CheckForIllegalCrossThreadCalls, removed TODO
6957 - Fixed ResetBindings and removed TODO
6958 - Added check for cross-thread calls to get_Handle()
6959 - Added Marshaller attribute for set_Font to satisfy class status
6960 * FontDialog.cs: Removed TODOs that seemed implemented
6961 * UpDownBase.cs: Removed unneeded TODO and Fixme
6962 * MessageBox.cs: Implemented support for Default button and removed TODO
6963 * FileDialog.cs: Removed obsolete TODO
6964 * DomainUpDown.cs: Removed obsolete TODO
6965 * ButtonBase.cs: Removed obsolete TODO
6966 * XplatUIWin32.cs: Removed obsolete TODO
6968 - Removed obsolete TODO
6969 - Calling CheckAcceptButton when the acceptbutton is changed to allow
6970 internal status updates
6971 - Making sure the active control is selected when the control is created
6972 * CurrencyManager.cs: Removed obsolete TODO
6974 2006-03-29 Mike Kestner <mkestner@novell.com>
6976 * *.cs: fix remaining corcompare issues for 1.1 API with the exception
6977 of PrintPreviewDialog and RichTextBox.
6979 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
6981 * Theme.cs: Added a little helper to SystemResPool to get the Dark,
6982 DarkDark, Light and LightLight colors for a specific color
6983 * ThemeWin32Classic.cs:
6984 - Use Button drawing code to draw RadioButtons and CheckBoxes with
6986 - Make use of the new ResPool helper CPColor
6987 - Draw ProgressBar and StatusBar with correct 3D borders
6989 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
6991 * ColorDialog.cs: Return selected color. Fixes bug #77940.
6993 2006-03-28 Mike Kestner <mkestner@novell.com>
6995 * ListView.cs: fix Icon layout to plan for scrollbar widths when
6996 calculating col/row counts.
6998 2006-03-28 Mike Kestner <mkestner@novell.com>
7004 switch to explicit interface method implementation for some methods
7005 corcompare identifies as inconsistent with MS.
7007 2006-03-28 Mike Kestner <mkestner@novell.com>
7011 add a few missing methods from the class status output.
7013 2006-03-28 Alexander Olk <alex.olk@googlemail.com>
7015 * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
7018 2006-03-28 Mike Kestner <mkestner@novell.com>
7020 * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
7022 2006-03-27 Mike Kestner <mkestner@novell.com>
7024 * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
7025 the Hilight state to adapt to Alex's CPDrawBorder3D changes.
7027 2006-03-27 Alexander Olk <alex.olk@googlemail.com>
7029 * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
7031 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
7033 * ThemeWin32Classic.cs:
7034 - GroupBox: Inserted a little gap between the text and the lines
7036 - Made the code in CPDrawBorder3D more readable
7037 - Corrected the drawing location of the up and down arrows in
7040 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
7042 * ControlPaint.cs: Corrected line widths in DrawBorder for
7043 ButtonBorderStyle Inset and Outset
7045 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
7047 * ThemeWin32Classic.cs:
7048 - Rewrote the totally broken CPDrawBorder3D method. That was
7049 one of the main problems for the terrific ThemeWin32Classic
7051 - Updated and corrected Button drawing
7052 - Correct the dimensions of the SizeGrip to match ms ones
7053 - Removed a small drawing glitch in DrawComboBoxEditDecorations
7054 * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
7055 Border3DStyle.Sunken to match ms.
7057 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
7059 * ThemeWin32Classic.cs: First small part of the "de-uglify
7060 ThemeWin32Classic" effort, SizeGrip
7062 2006-03-24 Jackson Harper <jackson@ximian.com>
7064 * XplatUIX11.cs: Give a max idle time of one second, this matches
7065 MS and forces an Idle event every second when there are no other
7066 events in the queue.
7068 2006-03-24 Mike Kestner <mkestner@novell.com>
7070 * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
7071 * ListView.Item.cs: fix layout issues with null image lists and images
7072 smaller than checkbox size.
7073 * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
7074 mode like MS does. It's weird, but consistent. ;-)
7077 2006-03-24 Mike Kestner <mkestner@novell.com>
7079 * ListView.cs: Scroll wheel support for the item control. Fixes
7082 2006-03-23 Jackson Harper <jackson@ximian.com>
7084 * ScrollableControl.cs: Special case negative sized areas, not
7086 * MonthCalendar.cs: Save the rect of the clicked date so we can
7087 use it for invalidation.
7088 - Try to cut down on the number of invalidates
7089 - Invalidate the rect the mouse is over and was over when moving
7090 the mouse, so we get the focus box following the cursor.
7092 2006-03-23 Mike Kestner <mkestner@novell.com>
7094 * ThemeWin32Classic.cs: fix FullRowSelect selection background and
7095 focus rectangle drawing. Fixes #77835.
7097 2006-03-23 Mike Kestner <mkestner@novell.com>
7099 * XplatUIX11.cs: rework the fix for #77828 by changing the order of
7100 the if and else if and reverting back to the original == check on the
7103 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
7105 * FontDialog.cs: Update the example panel if the selected index of
7106 the fontListBox changes.
7108 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
7110 * FileDialog.cs: Make FileDialog remember which directory it was in
7111 last in the same execution.
7113 2006-03-22 Mike Kestner <mkestner@novell.com>
7115 * FileDialog.cs: make the DropDownMenu on the toolbar display
7116 RadioChecks since they are mutually exclusive and that's what MS does.
7118 2006-03-22 Mike Kestner <mkestner@novell.com>
7120 * Theme.cs: add Color param to CPDrawMenuGlyph.
7121 * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
7122 checks and radio marks and arrows are visible on highlighted items.
7123 * ControlPaint.cs: update to use new Theme signature.
7125 2006-03-22 Mike Kestner <mkestner@novell.com>
7127 * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
7128 is active. Fixes #77870.
7130 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
7132 * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
7133 to be focused/selected after startup
7135 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
7138 - Corrected behaviour of Color, AllowFullOpen, FullOpen,
7139 CustomColors and ShowHelp properties
7140 - Some internal rewrites to get better results when using the
7143 2006-03-22 Mike Kestner <mkestner@novell.com>
7145 * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
7146 HoverSelection. Fixes #77836.
7148 2006-03-22 Mike Kestner <mkestner@novell.com>
7150 * FileDialog.cs: bugfixes for the toolbar. Use PushButtons instead of
7151 ToggleButtons. (De)Sensitize the Back button around a stack count of
7152 1, not 0. Update ButtonSize based on a pixel count of the win32
7153 control. Adjust the toolbar size/location for new button size.
7155 2006-03-22 Jackson Harper <jackson@ximian.com>
7157 * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
7159 * ScrollBar.cs: When doing increments and decrements we need to
7160 set the Value property so that ValueChanged gets raised. A
7161 possible optimization here would be to make an internal SetValue
7162 that doesn't invalidate immediately.
7163 * ToolTip.cs: Tooltips get added to their container (when
7164 supplied) so they get disposed when the container is disposed.
7165 - Don't create tooltips for String.Empty. This prevents all these
7166 little 2-3 pixel windows from showing up when running nunit-gui
7168 * Form.cs: Don't set topmost when setting the owner if the handles
7169 haven't been created yet. The topmost set will happen when the
7170 handles are created.
7172 2006-03-22 Peter Dennis Bartok <pbartok@novell.com>
7175 - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
7176 - SetVisible: Sending WINDOWPOSCHANGED for all controls when made
7177 visible (to allow them to recalculate their sizes)
7179 2006-03-21 Mike Kestner <mkestner@novell.com>
7181 * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
7182 methods. Removed a ton of redundant code. Still not really happy with
7183 the border rendering, but I think that's mainly because of the
7184 ControlDarkDark being black instead of a dark grey. Depending on how
7185 close we want to be, we might want to revisit those color choices.
7186 Among the new features added during the refactor were DropDownArrow
7187 pressed rendering, Disabled image rendering. Proper flat appearance
7188 boundary rendering. Removed the Divider and Wrapping dividers since I
7189 can't figure out any combination of themes and conditions to make the
7190 MS control draw a horizontal line on a toolbar despite what the
7191 Divider property docs indicate.
7192 * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
7193 conditions and incorrect layout. Updated to coding standard.
7194 * ToolBarButton.cs: refactored layout and positioning code from
7195 ToolBar to here. Invalidate wherever possible instead of forcing
7196 redraws of the whole toolbar.
7197 (Known remaining issues: explicit ButtonSize smaller than provided
7200 2006-03-21 Mike Kestner <mkestner@novell.com>
7202 * ContextMenu.cs (Show): use the position parameter instead of just
7203 showing at the MousePosition.
7205 2006-03-21 Jackson Harper <jackson@ximian.com>
7207 * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
7208 control handle this.
7209 * TreeNodeCollection.cs: If we are clearing the root node we need
7210 to reset top_node so calcs can still happen.
7211 * ThemeWin32Classic.cs: This is a Flags so we need to check
7214 2006-03-21 Jackson Harper <jackson@ximian.com>
7216 * DataGrid.cs: Create columns when the binding context has been
7218 * X11Structs.cs: Keysyms are uints.
7219 - Add size to fix build.
7221 2006-03-21 Peter Dennis Bartok <pbartok@novell.com>
7223 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
7225 - Added ResetMouseHover method to allow controls to retrigger
7226 hovering if they need it more than once
7227 - Implemented MouseHoverTime and MouseHoverSize properties
7228 * Timer.cs: Start() must reset the interval
7229 * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
7232 2006-03-21 Jackson Harper <jackson@ximian.com>
7234 * X11Keyboard.cs: improved layout detection. Move the nonchar
7235 tables into this file.
7236 * KeyboardLayouts.cs: Move the tables into resource files.
7238 2006-03-21 Mike Kestner <mkestner@novell.com>
7240 * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
7242 2006-03-21 Alexander Olk <alex.olk@googlemail.com>
7244 * Mime.cs: Various speed optimizations. Looking up mime types
7245 is now 2 times faster than before
7247 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
7249 * CreateParams.cs: Added internal menu field
7251 - Switched call order for UpdateBounds; now we always call
7252 the one that also takes ClientSize, and we're calculating the
7253 client size via driver method in the others. The previous
7254 method of tracking client size by difference wasn't working
7255 for forms where even the starting client size wouldn't match
7256 the overall form size (due to borders) (Part of fix for #77729)
7257 - CreateParams(): Do not use parent.Handle unless the handle is
7258 already created. Causes havoc with Nexxia and throws off our
7259 creation of controls
7261 - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
7262 - Switched handling of ConfigureNotify over to new PerformNCCalc
7263 method (consolidates code)
7264 - Changed RequestNCRecalc to use new PerformNCCalc method
7265 - Added calls to RequestNCRecalc when menus and borders are changed
7266 to allow app to set NC size. (Part of fix for #77729) This matches
7267 when MS send a WM_NCRECALC on Win32 windows.
7268 - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
7269 (Part of fix for #77729). This matches what MS does, they also
7270 send that message when the form is made visible.
7271 - XException.GetMessage: Improved usability of X errors by including
7272 a translation of the window into Hwnd and Control class
7273 - Improved debug info for window creation, reparenting and destruction
7274 - Created helper method WindowIsMapped() [Currently not used]
7275 * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
7277 - CreateParams: Now setting our menu on the new internal menu field
7278 - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
7279 avoid calculating the same property twice
7281 - Improved usability of ToString() for debugging purposes
7282 - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
7283 determine the height of the menu, instead of just the font. This
7284 required to also create a graphics context and to keep a bmp
7285 around (for performance reasons)
7287 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
7289 * MenuAPI.cs: Added OnMouseUp method
7291 - Now remembering the requested client size, avoids size errors
7292 - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
7293 instead of base if the menu is active. This is required due to
7294 control now capturing and releasing on down/up and it would
7295 prematurely release our menu capture
7297 2006-03-17 Jackson Harper <jackson@ximian.com>
7299 * KeyboardLayouts.cs: Add the czech layouts.
7301 2006-03-16 Jackson Harper <jackson@ximian.com>
7303 * Control.cs: Use the viewport space when sizing not the controls
7304 client size, so things like ScrollableControl that effect the
7305 viewport size (when scrollbars are added) are computed correctly.
7306 * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
7308 - Handle creating BindingManagers for null data sources.
7309 * DataGrid.cs: Bind the cached_currencymgr_events to the real data
7310 source, otherwise when rows are added they are added to the 'fake'
7311 datasource and we will crash when trying to set the position in
7313 - Use Implicit scrollbars on the datagrid so they arent
7316 2006-03-16 Jackson Harper <jackson@ximian.com>
7319 * InternalWindowManager.cs:
7320 * MdiWindowManager.cs:
7321 * X11Keyboard.cs: I really want Mike to love me again (fix
7324 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
7327 - OnMouseDown: Switch to editing mode when clicking on the cell
7328 even if we're clicking on the cell that's currently
7330 - ProcessGridKey: Left/Right now wrap like MS.Net does
7331 - ProcessGridKey: Tab now knows to add a new row when tab is
7332 pressed in the cell of the last column of the
7334 - ProcessGridKey: Enter now adds another row if pressed in the last
7335 row and selectes the new row, same column cell
7336 - ProcessGridKey: Home/End navigate columns, not rows, like
7337 originally implemented
7338 - Broke ProcessKeyPreview code out into an extra Internal method
7339 so it can be called from the edit code
7340 * DataGridTextBox.cs (ProcessKeyMessage):
7341 - Switched to accept Tab keypresses
7342 - Added F2 handling to allow jumping to the end of the edited cell
7343 - Added logic to allow moving caret left/right inside edited cell
7344 and making the edited cell jump when the caret hits cell borders
7345 - Tab and Enter are now passed to the datagrid after being handled
7347 - Removed capture code now that Control handles it
7348 - set_SelectionStart now ensures caret is visible
7350 2006-03-16 Jackson Harper <jackson@ximian.com>
7352 * TrackBar.cs: Debackwards the increment/decrement for handling
7353 mouse clicks on the bar with vertical trackbars.
7354 * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
7357 2006-03-16 Mike Kestner <mkestner@novell.com>
7359 * ListView.cs: make shift/ctrl keyboard and mouse selection
7360 consistent with the MS control. Fix a bug in
7361 SelectedListViewItemCollection.Clear that was pissing me off for the
7362 better part of a day because the collection was being altered
7363 underneath us as we walked the list.
7365 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
7367 * Control.cs: Not sure how we could miss this so long, but it seems
7368 that MS.Net has Capture set all the way from before calling
7369 OnMouseDown through sending the mouse events until after
7370 OnMouseUp. This will fix DataGrid's selection being set to end
7371 at the location of the MouseUp.
7373 2006-03-15 Jackson Harper <jackson@ximian.com>
7375 * BindingContext.cs: Check the binding after its added so that it
7376 can initialize the binding managers and hookup to events.
7377 * Binding.cs: Data members seem to sometimes include rows/cols in
7378 the format Row.Column we now take this into account.
7379 - Hookup to the position changed event so we can update the
7380 control when the position has changed in the data set.
7381 * CurrencyManager.cs: Take into account the row/col naming
7382 convention when creating dataset tables.
7383 * BindingContext.cs: Using a newer better way of storing
7384 datasource/datamember pairs. Hopefully this better matches MS for
7385 looking up binding managers.
7388 2006-03-15 Jackson Harper <jackson@ximian.com>
7390 * BindingContext.cs: The currency manager needs the data member
7391 name, if the member is a data set we use the name to find the
7393 * CurrencyManager.cs: When creating the list prefer an IList over
7395 - Attempt to create a DataTable from a DataSet (TODO: might need
7396 some better error checking here, although MS doesn't seem to have much)
7397 - If we have a DataTable create a view and use it as our list.
7399 2006-03-15 Mike Kestner <mkestner@novell.com>
7401 * ListView.cs: keep a matrix of the icon mode layout to facilitate
7402 keyboard navigation. Support Up/Down/Left/Right selection correctly
7403 for all 4 View modes.
7404 * ListViewItem.cs: add internal row/col fields for icon layouts.
7406 2006-03-15 Jackson Harper <jackson@ximian.com>
7408 * TabControl.cs: Redraw the tabs when we resize so their newly
7409 calculated sizes are drawn on screen.
7410 * X11Keyboard.cs: Begginnings of XIM support. We also now support
7411 composite characters.
7412 * XplatUIX11.cs: Keyboard driver needs to know about focus changes
7413 - filter events so that composite characters can be created
7415 * X11Structs.cs: Add XIMProperties enum.
7417 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
7419 * Control.cs (BringToFront, SendToBack): Don't use window or handle
7422 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
7424 * Control.cs (PerformLayout): We don't need to consider visiblity
7425 for anchoring, only for docking. This fixes 'whacky' alignment
7426 in listbox and other controls that use implicit scrollbars after
7427 the previous PerformLayout patch
7428 * ListBox.cs: Switched to use implicit scrollbars
7430 2006-03-14 Mike Kestner <mkestner@novell.com>
7434 - chain up the "new event" overrides to base and use
7435 OnEvent to raise them. Part of fix for bug #76509.
7437 2006-03-14 Alexander Olk <alex.olk@googlemail.com>
7439 * FileDialog.cs: Do not select an item in the parent directory
7442 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
7444 * Control.cs (PerformLayout): It would seem that we considered
7445 invisible windows for our layout. Not quite the right thing
7446 to do. Now we don't any longer, thereby fixing bug #76889.
7448 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
7450 * Control.cs (CanFocus): I goofed. A control can have focus
7451 even though it's not selectable. Made it match MS docs.
7453 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
7455 * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
7456 center by default (fixes #76895)
7457 * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced
7458 all uses of Border3DSides.All with the explicit ORd together
7459 Left|Right|Top|Bottom because I assume that nobody was aware
7460 that All also implies a center fill. Most places I checked had
7462 * ProgressBarStyle.cs: Added
7464 2006-03-13 Mike Kestner <mkestner@novell.com>
7466 * ListView.cs: fix breakage in drag shadow header positioning
7467 from Peter's csc compilation fix.
7469 2006-03-13 Mike Kestner <mkestner@novell.com>
7471 * ListView.cs: fix NRE produced by backspacing twice in a focused
7474 2006-03-13 Mike Kestner <mkestner@novell.com>
7476 * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
7478 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
7480 * Hwnd.cs: Added fixed_size field to track windows whose size cannot
7482 * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
7483 the allowed size before making programmatic size changes
7485 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
7487 * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are
7488 set, metacity is broken and will still use the emty sizes in
7489 the struct. (Fix for #77089)
7491 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
7493 * XplatUIStructs.cs: Split WindowStyles into WindowStyles and
7494 WindowExStyles and marked both enums as Flags
7495 * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
7496 NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
7497 to match WindowStyles split
7499 - SetWMStyles: Added cehck to not apply WM attributes to Child windows
7500 - Updated to match WindowStyles split
7502 - Fixed FosterParent creation, was using ExStyle on the Style field
7503 (This should help with Popup focus issues)
7504 - Updated to match WindowStyles split
7506 2006-03-13 Jackson Harper <jackson@ximian.com>
7508 * MdiWindowManager.cs: Use the system menu height. Fixes some
7509 strange sizing issues.
7511 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
7513 * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
7515 - Scroll to caret after inserting text (#77672)
7516 - Make scroll range one pixel higher, fixes off-by-one error (and
7517 makes underlines visible on the last line)
7519 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
7521 * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
7522 the keyboard state from being stuck with keys in 'pressed' state when
7523 focus is switched away via keyboard
7524 * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
7525 reset the keyboard if no X11 KeyUp events are expected to come
7526 * X11Structs.cs: Switched type of Visible to bool to match driver
7528 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
7531 - Switched caret to be just 1 pixel wide, matches MS and looks less
7533 - Moved caret display 1 pixel down from the top of the control
7535 - InsertCharAtCharet: Update the selection start if moving the caret
7536 (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
7537 - No longer always creating the caret when the caret methods are
7538 called. Only the actual ShowCaret/HideCaret will do that now
7539 - Only setting caret visible if the owner control has focus
7540 - UpdateView: Added invalidation-shortcut logic for center and right
7541 aligned text. Previously we'd update all according to the left
7542 logic which caused drawing errors. Also fixed height of invalidated
7543 areas, now properly invalidating the whole area (was off-by-one)
7544 - owner_HandleCreated: Always generate the document when the
7545 handle is created; this ensures that
7547 - Fixed situation where caret would disappear under the right
7548 window border, also improved scrolling behaviour on left-
7550 - Fixed right-aligned textboxes to have a border to the
7551 right instead of the caret being under the right border
7553 - Switched from 'nested' to simple visible/not visible tracking
7554 for caret (part of fix for #77671)
7555 - No longer passing through translated FocusIn/FocusOut messages
7556 since we were notifying too often and the wrong windows. Instead
7557 we just notify our focussed window of receiving or loosing focus
7558 * XplatUIWin32.cs: Switched from 'nested' show/hide
7559 counting for caret to simple visible yes/no behaviour (part of
7562 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
7564 * Mime.cs: Remove debug code...
7566 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
7568 * MimeGenerated.cs: Removed
7569 * Mime.cs: Mime now reads the mime data (magic, globs, aliases
7570 and subclasses) from /usr/(local/)share/mime and
7571 $HOME/.local/share/mime.
7573 2006-03-10 Jackson Harper <jackson@ximian.com>
7575 * MdiWindowManager.cs: Recalc the NC area when a window is
7576 maximized/restored so that the menu area is drawn on forms that
7579 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
7581 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
7582 XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
7583 us to force a WM_NCCALCRESIZE message being sent. This is needed
7586 2006-03-10 Jackson Harper <jackson@ximian.com>
7588 * Form.cs: We need to use the ActiveMenu when calculating menu
7590 - Fix nullref when the window manager hasn't been created yet.
7591 * Control.cs: Fix nullref when we try to bring a control to the
7592 front that has no parent.
7593 * MdiWindowManager.cs: Use the MaximizedMenu for calculating
7595 - Add a dummy item to the maximized menu so it always has the
7596 correct height. Otherwise when there are no menus we don't get our
7600 2006-03-10 Jackson Harper <jackson@ximian.com>
7602 * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
7604 * Form.cs: Make the window_state internal so the window managers
7606 - When an MDI child is maximized let its window manager create the
7607 main menu (so it can add its icon).
7608 - Notify the window managers of state changes
7609 - Let the window manager paint its buttons and handle button
7610 clicks on the menu when it is maximized.
7611 * InternalWindowManager.cs: Move the prev_bounds into the mdi
7612 window manager, since tool windows don't use it, only mdi windows.
7613 - Tell the main form that we don't want it to handle NCPAINT
7614 itself to avoid extra painting.
7615 - Handle clicks on a maximized windows menu.
7616 - Handle window state changes
7617 - Handle minimize/maximize clicks correctly by setting the window state.
7618 * MdiWindowManager.cs: Add an icon menu that (the menu you get
7619 when clicking on the forms icon).
7620 - New method to create a forms maximized menu. This is its normal
7622 - Handle window state changes.
7623 - Handle sizing of maximized windows. Maximized windows are just
7624 drawn bigger then the parent visible area. All controls are still
7625 there, they are just outside the visible area (this matches windows).
7626 * MdiClient.cs: No scrollbars when a child window is maximized.
7627 - Let the children windows figure out how big they should be when
7628 sizing maximized windows.
7629 - Implement a version of ArrangeIconicWindows somewhat similar to
7630 Windows version. There are some little differences, but I don't
7631 think any app will rely on the layout of minimized mdi windows.
7633 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
7635 * Padding.cs: Several fixes to allow compiling with csc 2.0
7637 2006-03-09 Jackson Harper <jackson@ximian.com>
7640 * MenuItem.cs: Cheap hack so we can add items to the list without
7641 the events being raised. This allows adding mdi items during
7642 drawing. TODO: Should probably find a better time to add the items.
7644 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
7646 * ThemeWin32Classic.cs:
7647 - CheckBox_DrawText: Added logic to not wrap if not enough space
7648 is available (Fix for bug #77727)
7649 - RadioButton_DrawText: Added logic not to wrap if not enough
7650 space is available (Fix for bug #77727). Also removed some
7651 duplicate code, DrawString always drawing the regular text
7652 before hitting the if statement.
7654 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
7656 * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
7658 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
7660 * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
7661 * ContainerControl.cs: Partial implementation of some 2.0 scaling
7662 methods. Moved the new 2.0 properties into alphabetical order with
7663 other properties and added MonoTODO tags
7665 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
7667 * AutoScaleMode.cs: Added. Fix build.
7669 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
7671 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
7672 XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
7673 and was requiring premature handle creation for calls from above
7674 * Form.cs, Control.cs: Removed handle arguments from calls to
7675 CalculateClientRect()
7677 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
7679 * ListView.cs (HeaderMouseMove): Fix csc compilation.
7680 drag_column.column_rect is MarshalByRef and can't be used that way
7682 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
7684 * AxHost.cs: Added deserialization constructor for
7685 AxHost+State (fixes 77743)
7687 2006-03-09 Mike Kestner <mkestner@novell.com>
7690 - Added column drag reordering for details view.
7691 - fixed behavior when mouse is dragged off column and
7692 AllowColumnReorder is false.
7693 * ColumnHeader.cs: clone the format too in Clone.
7694 * Theme.cs: add DrawListViewHeaderDragDetails method.
7695 * ThemeWin32Classic.cs:
7696 - impl new method for drawing drag column shadows and targets.
7697 - support column offset for details mode in DrawListViewItem.
7699 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
7701 * TextControl.cs: Reset the char_count when the document is cleared
7702 (Fixes bug reported on mono-winforms mailing list)
7704 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
7706 * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
7707 of calling base we simply process the key ourselves, since both
7708 DefWindowProc and the handled method would set m.Result.
7711 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
7713 * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
7714 method also moves the window; instead implemented a copy of
7715 Control.ScaleCore (Part of fix for #77456)
7717 - Created new CreateGraphicsInternal method to allow providing
7718 a graphics context when no handle is created without triggering
7719 handle creation. (Part of fix for #77456)
7720 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
7722 - Switched Constructor to require TextBoxBase instead of Control (to
7723 allow uncast access to CreateGraphicsInternal)
7724 - Safeguarded use of owner.Handle property. No longer accessing it
7725 unless the handle is already created.
7726 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
7727 - Now triggering a recalc when owning control becomes visible
7728 * TextBox.cs, RichTextBox.cs: Switched to use new internal
7729 TextBoxBase.CreateGraphicsInternal() method to avoid triggering
7730 premature handle creation (Part of fix for #77456)
7732 - We now only destroy our double-buffering buffers when the
7733 control is resized or disposed, but not when visibility
7734 changes. (The code even re-created them twice every time)
7735 - Now requiring a redraw of the buffer on visibility changes
7736 (fixes bug 77654 part 2)
7737 - Not passing OnParentVisibleChanged up unless the control
7739 - CanFocus: Fixed to match MS documentation
7740 - Focus: Fixed to return actual focus state and to check if
7741 setting focus is legal before setting it
7743 2006-03-08 Peter Dennis Bartok <pbartok@novell.com>
7745 * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
7746 when to draw focus rectangle by looking at parent focus and
7747 selected state instead. This fixes TabPages on Linux sometimes
7748 having none or multiple focus rectangles.
7749 * XplatUIX11.cs (SetFocus):
7750 - Don't set the focus if the same window already has focus
7751 - Use SendMessage instead of PostMessage (like it's Win32
7752 equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
7753 to match MS behaviour
7754 * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
7757 2006-03-07 Jackson Harper <jackson@ximian.com>
7759 * PictureBox.cs: Revert line I accidently committed last week.
7761 2006-03-07 Peter Dennis Bartok <pbartok@novell.com>
7764 - Added new IsRecreating and ParentIsRecreating properties to
7765 allow testing if RecreateHandle has been called on ourselves
7766 or one of our parents
7767 - WndProc(WM_DESTROY): If our control handle is being recreated
7768 we immediately need to create the handle when receiving the
7769 destroy, that way our child windows find a valid parent handle
7770 when they themselves are being recreated upon WM_DESTROY receipt
7771 (fix for bug #77654 part 1)
7773 - DestroyWindow: WM_DESTROY must be sent to our own window before
7774 notifying any child windows. MS documents that child windows
7775 are still valid when WM_DESTROY is received. (Control now relies on
7777 - Added some fine-grain debug options
7779 2006-03-06 Jackson Harper <jackson@ximian.com>
7781 * MdiClient.cs: Redid scrolling logic a bit to create a virtual
7782 box and base calculations off this.
7783 * MdiChildContext.cs:
7784 * MdiWindowManager.cs: Don't need to ensure scrollbars here
7787 2006-03-06 Peter Dennis Bartok <pbartok@novell.com>
7789 * Splitter.cs: In situations where the affected control is added
7790 to the parent's control list after the splitter, we would not
7791 populate affected. Now we try populating it on mousedown, if
7792 it's not already set, and force it to be re-set whenever our
7795 2006-03-03 Matt Hargett <matt@use.net>
7797 * Control.cs: implement Control.Padding
7798 * Padding.cs: -Padding.All returns -1 when constructing with the
7799 implicit default ctor
7800 -Padding.ToString() matches MS.NET
7801 * ContainerControl.cs: implement
7802 ContainerControl.AutoScaleDimensions
7803 * ListControl.cs: implement ListControl.FormattingEnabled
7804 * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
7806 * TabPage.cs: Implement UseVisualStyleBackColor.
7807 * PictureBox.cs: Implement PictureBox.InitialImage.
7809 2006-03-03 Mike Kestner <mkestner@novell.com>
7811 * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
7812 event declarations to proxy to base event.
7813 * ListViewItem.cs: update to use ItemControl.
7814 * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
7815 * ThemeWin32Classic.cs: update to new ListView theme API and fix
7816 column header label rendering for 0 width columns.
7818 2006-03-03 Peter Dennis Bartok <pbartok@novell.com>
7820 * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
7821 that causes the control to be created. Fixes #77476.
7823 2006-03-02 Jackson Harper <jackson@ximian.com>
7825 * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
7828 2006-03-02 Peter Dennis Bartok <pbartok@novell.com>
7830 * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
7831 passed in for the EventArgs (fixes #77690)
7833 2006-03-01 Jackson Harper <jackson@ximian.com>
7835 * ScrollBar.cs: Refresh afterbeing resized.
7837 2006-02-28 Mike Kestner <mkestner@novell.com>
7839 * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
7840 Clean up a tracker compile warning.
7841 * MenuItem.cs: add internal PerformPopup method.
7844 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
7846 * TextBoxBase.cs (set_Text): Recalculate the document (causing an
7847 implicit expose) when the text is set to null
7849 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
7851 * RichTextBox.cs (FlushText): When newline is true, we always
7852 need to split the line, even if no text is on it and we may
7853 never eat newlines. (Fixes #77669)
7855 2006-02-28 Mike Kestner <mkestner@novell.com>
7857 * ListView.cs: Add UpdateSelection internal method. Remove SelectItem
7858 and set Selected instead.
7859 * ListViewItem.cs: Call owner.UpdateSelection to manipulate the
7862 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
7864 * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
7866 2006-02-28 Alexander Olk <alex.olk@googlemail.com>
7869 - Got rid of the panel. All controls are now directly added to
7871 - It is now possible to set a font with the Font property
7872 - MinSize and MaxSize property do now what they should
7873 - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
7874 - Searching and selecting a font with the font textbox works now,
7875 the same applies to the style and size textbox
7876 - Draw the correct 3D border in the example panel
7877 - Fixed a little mem leak (unused fonts didn't get disposed)
7878 - Many other internal updates/rewrites...
7881 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
7884 - InsertRTFFromStream: Added 'number of characters inserted' argument
7885 - set_SelectedRTF: Now using the number of characters to calculate
7886 the new location for the selection and cursor (x/y cannot be used
7887 due to potentially already wrapped text)
7889 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
7891 * TextControl.cs: Added property and implemented means to allow
7892 disabling recalculation of a document (can be used to speed up
7893 multiple inserts and is needed to make RTF inserts predictable, see
7895 * RichTextBox.cs: Using the new NoRecalc property of Document to
7896 keep x/y insert locations predictable. Also makes it faster inserting
7899 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
7901 * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
7902 it's easier for a child control to handle the other messages without
7903 having to duplicate the special functionality
7905 - WndProc: Removed calling base handler for WM_KEYDOWN and added
7906 code to handle processing the key ourselves, in order to get
7907 access to the result of KeyEventArgs.Handled. We now only call
7908 ProcessKey if they key hasn't been handled already. Fixes #77526.
7909 - set_Text: If null or empty string is given, just clear the
7910 document. Fixes part of #77526
7912 2006-02-27 Jackson Harper <jackson@ximian.com>
7914 * SizeGrip.cs: Paint the background color before painting the grip
7915 so things look right.
7916 * MdiClient.cs: Add the sizegrip when both scrollbars are used.
7918 2006-02-27 Mike Kestner <mkestner@novell.com>
7921 - Restructure layout and invalidation model to remove a ton of
7922 flicker from the control and speed up performance in general.
7923 - Add manual column resize, flickers like crazy, but I already have
7924 some ideas on how I'll fix that. (#76822)
7925 - Merge the three Icon-based views into a single layout method.
7926 - Move item selection interaction logic from the item since
7927 interaction with the collections is more appropriate to the view.
7928 - Deselection on non-item clicks.
7930 - Encapsulate most of the layout. Add some internal props to trigger
7931 layout. Move to a model where Items invalidate themselves instead
7932 of just invalidating the whole control every time something changes.
7933 - Invalidate on Text/Caption changes.
7934 - switch to an offset based layout model to avoid having to absolute
7935 position every element on item moves.
7936 - correct checkbox layout to conform to MS layout.
7937 * ThemeWin32Classic.cs:
7938 - refactor some column header drawing code.
7939 - fix string justification for column headers (#76821)
7940 - make SmallIcon labels top justified for compat with MS impl.
7941 * ThemeClearlooks.cs:
7942 - adjust to new ListViewItem internal checkbox bounds api.
7944 2006-02-27 Jackson Harper <jackson@ximian.com>
7946 * Control.cs: Change where implicit controls fall in the zorder.
7947 They are now on top of all children.
7948 - Synced AddImplicit code with Add
7949 - Removed unused enumerator.
7950 * SizeGrip.cs: Remove the TODO as its been TODONE.
7952 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
7954 * TextControl.cs(Insert): Combine the last lines unless the insertion
7955 string ends with \n\n, otherwise we leave one line too many (Fixes
7956 something I noticed with the testapp for #77526; the bug itself was
7957 already fixed in the previous checkin)
7959 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
7962 - SelectionColor and SelectionFont methods no longer set absolute
7963 styles. Instead, the keep font or color respectively (This
7964 resolves a long-standing FIXME in the code)
7965 - When flushing RTF text, the insert code now considers text trailing
7966 behind the insertion point (Fixes the bug where when replacing
7967 the selected text via SelectedRTF the remainder of the line behind
7968 the selection would stay on the first insertion line)
7970 - AppendText now updates the selection points after inserting text
7971 - AppendText now ensures that the last tag (sometimes 0-length) of
7972 the document is used for the style information (Fixes part of
7975 - Created new FontDefiniton class to allow describing partial style
7977 - StreamLine() now takes a lines argument, to allow it to decide
7978 whether an encountered zero-length tag is the last in the document
7979 (which must be kept to not loose the font/color contained in it,
7981 - Created Combine() and Split() methods for Marker structs, to
7982 support marker updates due to reformatted documents (soft line
7984 - Implemented Document.CaretTag setter
7985 - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
7986 of the last line (Not the cause, but also exposed by bug #77220)
7987 - Added LineTag argument to InsertString method, to allow callers
7988 to force a certain tag to be used (required to force use of the
7989 trailing zero-length tag of a document)
7990 - Now updating markers in Combine(), to avoid stale tag markers
7991 - Added some method descriptions to aid maintenance
7992 - Implemented new FormatText concept, allowing additive/subtractive
7993 formatting by only specifying the components that are to be
7994 changed. This was needed for resolving the RTB.SelectedColor/
7995 RTB.SelectedFont fixmes
7996 - Added Break() support method to allow breaking up linetags (used
7997 for partial formatting)
7998 - Added GenerateTextFormat() method. It is used for partial
7999 formatting and allows to generate a full font/color from given
8000 attributes and an existing tag.
8002 2006-02-26 Jackson Harper <jackson@ximian.com>
8004 * XplatUIX11.cs: Use the correct caption height.
8005 - Translate hittest coordinates to screen coords to match MS.
8006 * XplatUIWin32.cs: When we create MDI windows we need to reset
8007 some of the style flags, so we get a nice blank window, and can
8008 draw all the decorations ourselves.
8009 - Set a clipping rectangle on the non client paint event, the
8010 window manager drawing code needs one.
8011 * Form.cs: The window manager needs to know when the window state
8013 * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
8014 don't need to factor in border and title sizes in these
8015 methods. TODO: Remove the args and fix the call points.
8016 * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
8018 - Let the driver set the cursors.
8019 - Improve active window handling
8020 - Correct sizes for title bars and buttons.
8021 - Match MS drawing better
8022 * MdiWindowManager.cs: We don't need to handle border style
8023 updates specially anymore.
8024 - Check for scrollbars when windows are done moving
8025 - Handle Active properly.
8026 * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
8027 correctly. I am spewing the exception though, so we don't hide the
8030 2006-02-26 Pedro Martinez Julia <pedromj@gmail.com>
8032 * DataGridViewRowPostPaintEventArgs.cs,
8033 DataGridViewCellPaintingEventArgs.cs,
8034 DataGridViewRowCollection.cs,
8035 DataGridViewRowPrePaintEventArgs.cs,
8036 DataGridViewCell.cs: Clear a few warnings and implement a few
8037 exceptions that should be thrown.
8039 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
8041 * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
8042 'inheriting' our parent's (non-default) cursor. (Part of
8045 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
8047 * XplatUIX11.cs: Fixed cast to make csc happy
8049 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
8051 * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
8052 it's for the client area (part of fix for #77479 and needed
8053 for MDI window cursor handling)
8055 - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
8056 the appropriate default cursors and also passing the message
8058 - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
8059 for non-client areas
8061 2006-02-15 Jackson Harper <jackson@ximian.com>
8063 * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
8064 is a real MDI window
8066 2006-02-14 Alexander Olk <alex.olk@googlemail.com>
8068 * X11DesktopColors.cs: Instead of checking the desktop session
8069 string for "KDE" check if it starts with "KDE"
8071 2006-02-10 Jackson Harper <jackson@ximian.com>
8073 * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
8076 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
8078 * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
8081 - Got rid of the panel. All controls are now directly added to
8083 - Changed to mono coding style
8085 2006-02-10 Jackson Harper <jackson@ximian.com>
8087 * InternalWindowManager.cs: We don't need the set visibility to
8088 false hack anymore now that peter has written beautiful shutdown
8091 2006-02-10 Peter Dennis Bartok <pbartok@novell.com>
8093 * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
8094 where already explicitly destroyed
8096 2006-02-10 Jackson Harper <jackson@ximian.com>
8098 * MdiClient.cs: Handle the case where windows are too high or to
8099 the left and we need scrollbars.
8101 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
8103 * MimeIcon.cs: Added some icons
8106 - Got rid of the panel. All controls are now directly added to
8108 - Changed to mono coding style
8109 - On Linux "My Computer" and "My Network" will now show some
8110 more usefull information. A new class, MasterMount, gathers
8111 this information from /proc/mount. Updated MWFFileView to make
8112 use of this information
8113 - Fixed a bug that caused FileDialog to crash when
8114 ".recently_used" file had a zero size
8115 - FilterIndex does now what it should
8117 * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
8120 2006-02-09 Jackson Harper <jackson@ximian.com>
8122 * ComboBox.cs: Don't touch if null.
8124 2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
8126 * Cursor.cs: 64bit safeness fix
8127 * XplatUIX11.cs: Removed several unneeded and one moronic cast.
8129 2006-02-09 Jackson Harper <jackson@ximian.com>
8131 * Form.cs: If a form is made into an MDI form update the styles so
8132 all the props can get set correctly.
8133 - Kill the mdi_container when we dont need it anymore.
8134 * InternalWindowManager.cs: Add missing NOT
8136 2006-02-08 Jackson Harper <jackson@ximian.com>
8138 * InternalWindowManager.cs: Respek clipping when drawing MDi
8141 2006-02-08 Jackson Harper <jackson@ximian.com>
8143 * Hwnd.cs: Add bits to track non client expose events.
8144 * XplatUIX11.cs: Track non client expose events on the hwnd. This
8145 gives us a proper invalid rect and will allow for some nice
8146 optimizations with NC client drawing
8147 - MDI windows are children windows, so move their style handling
8148 into the child window block.
8149 * InternalWindowManager.cs: Remove a state reset that was
8150 getting invoked at the wrong time. Fixes managed windows getting
8151 into a 'stuck' captured state.
8153 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
8155 * TextControl.cs (Document.ctor): Now initializing
8156 selection_anchor. Fixes #77493
8158 2006-02-07 Jackson Harper <jackson@ximian.com>
8160 * TrackBar.cs: The increment/decrements were backwards.
8162 2006-02-07 Mike Kestner <mkestner@novell.com>
8164 * Theme*.cs : remove ThemeEngine.Current usage as it just points back
8165 to the instance itself.
8167 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
8169 * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
8170 on ulongs and pointers, the size differs between 32bit and 64bit
8173 2006-02-07 Mike Kestner <mkestner@novell.com>
8175 * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
8176 for 64 bit platforms to work around a metacity bug.
8178 2006-02-07 Jackson Harper <jackson@ximian.com>
8180 * TrackBar.cs: Process the input keys we need, and hookup to
8181 KeyDown instead of using WndProc, so we get key messages.
8183 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
8185 * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
8187 * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
8188 we need to translate the XdndVersion atoms array before sending it
8190 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
8193 - The preceeding 64bit fixes had a bug: ChangeProperty expects the
8194 number of bits for the property, not the number of bytes. The
8195 change to provide IntPtr.Size broke 32bit. (64bit was also wrong
8196 but would not crash since it specified 8 bits instead of 4 bits)
8197 - More 64bit fixes: Switched all atoms from int to IntPtr (they are
8198 defined as XID -> long in the C headers)
8199 - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms
8200 references since those are now IntPtr to begin with
8201 - Switched all Atom.XXX 'int' casts to IntPtr casts
8202 - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
8203 - Fixed XInternAtom signature for 64bit, now returns an IntPtr
8204 - Added XChangeActivePointerGrab DllImport (for X11DnD)
8206 - Changed 'int' type for Atoms in XEvent structures to IntPtr
8207 - Changed atom in HoverStruct to be IntPtr
8209 - Removed local DllImports, switched code to use those from XplatUIX11
8210 - Removed/fixed casts related to the switch of Atom to be a IntPtr
8212 2006-02-06 Mike Kestner <mkestner@novell.com>
8214 * XplatUIX11.cs : many more 64 bit pinvoke changes. I've audited all the
8215 method signatures in the import region. There may still be some
8216 lingering struct marshaling issues, as I didn't drill down into those.
8219 2006-02-06 Jackson Harper <jackson@ximian.com>
8221 * ComboBox.cs: Dont manually set the top_item, this is computed
8222 when the scrollbar position is set.
8224 2006-02-06 Mike Kestner <mkestner@novell.com>
8226 * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
8227 startup crashes on amd64. There's other fixes needed. All pinvoke
8228 usage of Atom needs to be mapped to IntPtr for example. And there are
8229 likely other int/long issues to be addressed.
8231 2006-02-04 Alexander Olk <alex.olk@googlemail.com>
8233 * FileDialog.cs: One more...
8235 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
8237 * FileDialog.cs: Next try
8239 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
8241 * FileDialog.cs: First part of fix for #77464
8243 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
8245 * ButtonBase.cs, ContainerControl.cs, Forms.cs,
8246 ThemeWin32Classic.cs: Fix for #77458. Correct handling of
8247 AcceptButton border drawing.
8249 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
8251 * Form.cs: Moved positioning of form after auto scaling is applied,
8252 otherwise it would possibly use wrong form size.
8254 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
8256 * Control.cs (RecreateHandle): No need to re-create any child
8257 controls, the child windows will get destroyed automatically by
8258 the windowing system or driver, and re-created when the handle
8259 is being accessed the first time. Fixes #77456
8260 * Form.cs: No longer setting the form to closing if the handle is
8261 being recreated. This seems like the right thing to do, don't
8262 have a bug or testcase for this, though.
8264 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
8266 * FileDialog.cs: Suspend/Resume layouting when changing sizes of
8267 controls to avoid unwanted side effects
8269 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
8272 - ScaleCore needs to scale the bounds, not the ClientSize of the
8273 control. Fixes #77416.
8274 - DefaultSize is 0,0 for control
8276 - DefaultSize is 100, 20
8277 - SetBoundsCore: Now enforcing the height, no matter if the provided
8278 height is more or less than the preferred one, as long as AutoSize
8280 * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
8282 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
8285 - ResumeLayout: Fixed logic when to call PerformLayout, we may not
8286 call unless both performLayout is true *and* we have a pending
8288 - ResumeLayout: MS does not completely nest Suspend and Resume,
8289 they bottom out at 0, fixed our code to match that.
8290 - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
8291 SetBoundsCore, we were updating even when we shouldn't. This fixes
8292 swf-anchors mis-anchoring when resizing the app fast and lots.
8293 - UpdateDistances: Now only setting the left and top distance if
8294 we have a parent and are not suspended, this is based on
8295 a suggestion by Don Edvaldson in bug #77355.
8296 - OnVisibleChanged: Fixed logic when to create the control. We may
8297 not create the control if we have no parent or if it's not visible;
8298 switched to using Visible property instead of is_visible field
8299 since the property also considers parent states. This fixes a bug
8300 when starting Paint.Net
8302 2006-02-02 Jackson Harper <jackson@ximian.com>
8304 * Form.cs: If the forms handle hasn't been created yet don't call
8305 into xplatui to make it top most, just set the topmost flag on the
8306 form in CreateParams
8307 * XplatUIX11.cs: Handle WS_EX_TOPMOST.
8309 2006-02-01 Jackson Harper <jackson@ximian.com>
8311 * ScrollableControl.cs: Refactored the Recalculate method a
8312 little, this wasn't handling all the variants of bottom and right
8313 bars needed to be added and added/removed based on their
8314 counterparts being added/removed (which changes the drawable
8315 size). Also we special case client widths and heights of 0 and
8316 don't add the scrollbar for those.
8318 2006-02-01 Peter Dennis Bartok <pbartok@novell.com>
8321 - Added method to get AbsoluteGeometry(); currently unused, but might
8322 be used in the future, if we try again to figure out toplevel
8323 coordinates with some more crappy window managers
8324 - Added FrameExtents() method to retrieve the WM set decoration size
8325 - Tried to fix up AddConfigureNotify and handling of ReparentNotify
8326 to deal with at least KDE, FVWM and metacity (Fixes #77092)
8328 - Added whacky_wm tracking var for metacity
8329 - Added logic to have default menu height if the actual menu height
8330 has not yet been calculated (part of fix for #77426)
8331 * Form.cs: Keep track whether client size has been set and re-set
8332 it if a menu is added/removed afterwards (Fixes #77426)
8334 2006-01-31 Jackson Harper <jackson@ximian.com>
8336 * Control.cs: When a new Site is set on the component attempt to
8337 pull the AmbientProperties from it.
8339 2006-01-31 Peter Dennis Bartok <pbartok@novell.com>
8341 * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
8342 in the background of the owning form. Fixes #77332
8344 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
8346 * MimeIcon.cs: Fix for #77409
8348 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
8350 * XplatUIX11GTK.cs: Initial import
8352 2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
8354 * FixedSizeTextBox: fixes class signature
8356 2006-01-30 Jackson Harper <jackson@ximian.com>
8358 * FixedSizeTextBox.cs: New internal class that represents a
8359 textBox that will not be scaled.
8362 * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
8365 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
8367 * XplatUIX11.cs: Retrieve default screen number instead of
8368 assuming 0. Attempted fix for #77318
8370 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
8373 - GetWindowPos: When a window is parented by FosterParent, use
8374 the desktop instead of FosterParent as the base to get coordinates
8375 - CreateWindow: Don't make FosterParent the parent window for Popups
8376 if we don't want a taskbar entry, Popups automatically don't get one
8377 * Hwnd.cs: Need to call remove to actually remove the key from the
8380 2006-01-30 Mike Kestner <mkestner@novell.com>
8382 * MenuAPI.cs: adjust MainMenu item popup location to y=0.
8384 2006-01-30 Jackson Harper <jackson@ximian.com>
8387 * TreeNode.cs: Raise events no matter how the treenode is
8388 checked. Patch by Don Edvalson.
8390 2006-01-30 Jackson Harper <jackson@ximian.com>
8392 * TreeNode.cs: Signature fix.
8394 2006-01-29 Alexander Olk <alex.olk@googlemail.com>
8396 * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
8398 2006-01-20 Mike Kestner <mkestner@novell.com>
8400 * Form.cs: Add ActiveTracker property to do Captures and perform mouse
8401 event forwarding when menus are active.
8402 * MenuAPI.cs: kill the GrabControl hack. Use Form.ActiveTracker.
8403 Most of the patch is pdb's with a little rework.
8405 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
8407 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs:
8408 Removed GetMenuDC and ReleaseMenuDC methods; replaced
8409 by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
8410 * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
8411 * InternalWindowManager.cs: Added use of PaintEventStart/End to
8412 handling of WM_NCPAINT message, now passing the PaintEventArgs to
8413 the PaintWindowDecorations method
8414 * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
8415 * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
8416 * MenuAPI.cs: Made tracker window invisible
8418 - Removed GetMenuDC and ReleaseMenuDC methods
8419 - Implemented the client=false path for PaintEventStart and
8422 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
8424 * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
8425 * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
8428 - MaximizeBox, MinimizeBox: Recreate the handle when setting
8430 - CreateParams: Reworked the styles to match MS look'n'feel,
8431 removed automatic setting of MinimizeBox, MaximizeBox, etc. via
8432 the WS_OVERLAPPEDWINDOW style. This fixes #76823.
8434 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
8436 * XplatUIX11.cs(GetWindowState): Now throwing an exception when the
8437 window is not mapped, since otherwise every form that's being
8438 created is considered minimized, which is wrong.
8439 * Form.cs: Catching the exception and returning our internal value
8442 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
8444 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
8445 SetWindowMinMax() to have means to tell the driver about the minimum,
8446 maximum and maximized state window sizes. (Part of the fix for #76485)
8448 - Implemented tracking of minimum and maximum window size, now calling
8449 new SetWindowMinMax() driver method to tell the driver (Part of the
8451 - Finished handling of WM_GETMINMAXINFO method, now setting all values
8452 (Completes fix for #76485)
8453 - Calling new SetWindowMinMax driver method when the handle for a
8454 form is created, to make sure the driver knows about it even if
8455 the values have been set before the window was created
8456 - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
8457 to avoid messing up our anchoring calculations (partial fix
8459 * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
8461 - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
8462 - Improved GetWindowState() to detect 'Minimized' state on Metacity
8463 (and presumably other freedesktop.org compliant WMs). Left the
8464 assumption unmapped=minimized, needed for SetVisible to work.
8465 - Now setting the window state when creating windows
8466 - Fixed SetVisible to consider/set the window state when mapping
8467 a Form. We cannot set the state before it's mapped, and we cannot
8468 use Form.WindowState once it's mapped (since it would ask the
8469 driver and get 'normal'. Therefore, we grab the state before
8470 mapping, map, and then set state.
8471 - Implmemented SetWindowMinMax method; Metacity does not seem to
8472 honor the ZoomHints, though.
8474 - Removed MINMAXINFO (moved to XplatUIStructs)
8475 - Added SetWindowMinMax stub (on Win32 the only way to set that
8476 information is in response to the WM_GETMINMAXINFO message, which
8477 is handled in Form.cs)
8478 - Added logic to SetVisible to set the proper window state when a
8479 form is made visible (fixes #75720)
8481 2006-01-26 Jackson Harper <jackson@ximian.com>
8483 * Control.cs (BeginInvoke): Automagically handle EventHandlers the
8484 same way we handle them with Invoke.
8486 2006-01-25 Peter Dennis Bartok <pbartok@novell.com>
8489 - Added tracking of window state so CreateParams can return
8490 the appropriate style
8491 - Moved setting of WS_CAPTION style in CreateParams to allow
8492 styles without caption
8493 * DataGridTextBoxColumn.cs: We are now also creating the TextBox
8494 control if the TextBox property is accessed. Fixes #77345
8496 - get_Created: now uses is_disposed and is_created to determine
8497 return value (suggested by Jackson)
8498 - CreateHandle: No longer exits if the handle is being recreated
8499 - RecreateHandle: If the handle is not yet created call the
8500 appropriate method to create either control or handle. If the
8501 control is already created CreateHandle will simply exit instead
8502 of just creating the handle
8503 * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
8504 now SendMessage WM_DESTROY directly to the control when DestroyWindow
8507 - When DestroyWindow is called, instead of waiting for the
8508 DestroyNotification from X11, we directly post it to the WndProc
8509 and immediately dispose the hwnd object.
8510 Same applies to DestroyChildWindows, and this obsoletes the
8511 expose_pending tracking. Contrary to Win32 behaviour we destroy our
8512 child windows before our own, to avoid X11 errors.
8513 - Removed the direct sending of WM_PAINT on UpdateWindow
8515 - Reworked DoEvents and GetMessage to allow access to internal queue
8516 even when trying non-blocking access to the queue. Fixes #77335.
8517 Based on a patch suggestion by Don Edvalson. The new private
8518 GetMessage can now also be used as a backend for a PeekMessage
8520 * XplatUI.cs: Improved debug output for CreateWindow
8522 2006-01-25 Jackson Harper <jackson@ximian.com>
8524 * Help.cs: Allow param to be null. Patch by Don Edvalson.
8526 2006-01-24 Jackson Harper <jackson@ximian.com>
8528 * ComboBox.cs: Clamp the max value set for the vertical scrollbar
8529 when we have a MaxDropItems lower then the selected index.
8531 2006-01-24 Jackson Harper <jackson@ximian.com>
8533 * Control.cs: Don't allow selection of non visible controls, allow
8534 selection of controls without parents.
8536 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
8538 * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
8539 * DataGridDrawingLogic.cs: Add editing row only when is necessary
8541 2006-01-23 Jackson Harper <jackson@ximian.com>
8543 * UpDownBase.cs: Make the textbox handle all the selection and
8544 tabbing. This fixes tabing to updown controls.
8546 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
8548 * TextBoxBase.cs: fixes exception thown the object was null
8550 2006-01-23 Jackson Harper <jackson@ximian.com>
8552 * ButtonBase.cs: Just use the base CreateParams. They set
8553 visibility and enabled correctly.
8556 * MonthCalendar.cs: Lets let the base set as much of the
8557 createparams as possible so we don't have duplicate code all over
8560 2006-01-22 Alexander Olk <alex.olk@googlemail.com>
8562 * ThemeGtk.cs: Added TrackBar and some experimental code to
8563 get double buffering back
8565 2006-01-21 Jordi Mas i Hernandez <jordimash@gmail.com>
8567 * DataGrid.cs: Allows row number set internally higher than the last
8568 when creating a new row. Restores the editing functionality.
8570 2006-01-20 Mike Kestner <mkestner@novell.com>
8572 * MimeIcon.cs: delay Image creation until the icons are accessed
8573 instead of creating 190 scaled images on GnomeHandler startup.
8575 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
8577 * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
8578 first call base before processing the event. Fixes #77279
8580 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
8582 * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
8583 that the stride for the GDI bitmap would match the stride of
8586 2006-01-19 Alexander Olk <alex.olk@googlemail.com>
8588 * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
8590 2006-01-19 Jackson Harper <jackson@ximian.com>
8592 * ComboBox.cs: Hookup the text controls keydown event so we get
8593 those when the text control has the focus.
8595 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
8597 * Label.cs: Now using the base events instead of defining new ones;
8598 this allows us to just call the base properties without having to
8599 duplicate all base property logic
8601 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
8603 * Label.cs: A label by default is not a tabstop (Fixes one of our
8604 failing nunit tests)
8606 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
8608 * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
8609 * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
8611 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
8613 * Cursor.cs: Reimplemented creating cursor bitmaps without using
8614 the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
8617 - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream)
8618 constructor creates images that can't be saved. Part of the fix
8620 - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
8621 - SetWindowState: Switched ShowWindow flags (part of an upcoming
8622 bug fix for handling window state in forms properly)
8624 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
8626 * ThemeGtk.cs: Simplify ScrollBar drawing
8628 2006-01-18 Jackson Harper <jackson@ximian.com>
8630 * Splitter.cs: Set the default dock style for the splitter control
8633 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
8635 * ThemeGtk.cs: Corrected StateType and ShadowType for
8638 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
8640 * Control.cs: Make use of Theme.DoubleBufferingSupported
8642 - Added drawing for flat style buttons
8643 - Added ScrollBar drawing
8645 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
8647 * ThemeClearlooks.cs: Removed some unneeded code.
8648 * ThemeGtk.cs: First part of ThemeGtk enhancements.
8650 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
8652 * LinkLabel.cs: We need to update the hover drawing when
8653 leaving the control as well.
8655 2006-01-18 Jordi Mas i Hernandez <jordimash@gmail.com>
8657 * DataGrid.cs: Clicking on non empty areas in the columns
8658 area was giving an exception
8660 2006-01-17 Jackson Harper <jackson@ximian.com>
8662 * ThemeWin32Classic.cs:
8663 * ListView.cs: Do not draw/clip the headers when the header style
8666 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
8668 * DataGrid.cs: Fixes 77260
8670 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
8672 * DataGrid.cs: Clicking on a column on a empty grid was giving
8675 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
8677 * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
8678 or any keypress will crash the grid.
8680 2006-01-17 Mike Kestner <mkestner@novell.com>
8682 * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
8683 * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for
8684 invisible/previously-visible items.
8687 2006-01-17 Alexander Olk <alex.olk@googlemail.com>
8689 * ThemeClearlooks.cs:
8690 - Added CL_Draw_Button method; now other theme controls that are
8691 not derived from button or do not have a button can draw buttons
8693 - Updated ComboBox drawing
8694 - Beautified RadioButton drawing
8695 - Corrected drawing of bottom and left tabs
8696 - Beautified DateTimePicker and MonthCalendar
8697 - Added CPDrawButton and CPDrawRadioButton
8699 2006-01-16 Jackson Harper <jackson@ximian.com>
8701 * ComboBox.cs: Set the initial value of the scrollbar to the
8702 current index. Reduce the numbers of refreshs and IndexOfs called.
8704 2006-01-14 Alexander Olk <alex.olk@googlemail.com>
8706 * FileDialog.cs: When the file listview is focused hitting the
8707 backspace key moves the fileview to the parent directory
8709 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
8712 - Added RecreateHandle call when changing taskbar visibility to
8713 trigger reparenting in Win32 driver (Fixes #75719)
8714 - If a window has minimize or maximize buttons, it cannot have
8717 - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
8718 the toplevel form with FosterParent (A toolwindow not on the
8719 taskbar) (Fixes #75719)
8720 - Made FosterParent a toolwindow
8722 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
8724 * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
8726 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
8728 * ToolTip.cs: If SetToolTip is called from a control and the mouse
8729 is currently over that control, make sure that tooltip_window.Text
8732 2006-01-13 Mike Kestner <mkestner@novell.com>
8734 * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
8736 2006-01-13 Jackson Harper <jackson@ximian.com>
8738 * TreeView.cs: On MS GetNodeAt never actually factors in the X
8739 value passed. Also redraw the selected node when we recieve
8740 focus, so tabbing between trees works correctly.
8742 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
8744 * MimeIcon.cs: GnomeHandler: older gnome versions don't have
8745 ~/.gconf/%gconf-tree.xml, so use
8746 .gconf/desktop/gnome/interface/%gconf.xml
8748 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
8750 * TextControl.cs: Draw text in gray if control is disabled
8752 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
8754 * TreeView.cs: Draw the focus rectangle outside the highlight, to
8755 make sure it's always visible. Fixes #76680.
8757 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
8759 * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
8761 2006-01-13 Jonathan Chambers <jonathan.chambers@ansys.com>
8763 * PageSetupDialog.cs: Added.
8764 * PrintDialog.cs: Attributes.
8765 * PrintPreviewControl.cs: Updates.
8766 * PrintPreviewDialog.cs: Updates.
8768 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
8770 * Control.cs: Undid my selection check fix, since it's not needed
8772 - Now considering the presence of hscroll/vscroll when sizing
8773 vscroll/hscroll respectively. Fixed bug #77077
8774 - Added Left/Up/Down/Right to IsInputKey list to prevent
8775 ContainerControl from stealing them. This fixes what I broke
8776 with my last checkin.
8778 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
8780 * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
8781 I finally understand how the property can be set without a setter :-)
8783 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
8786 - Switched RunLoop to use static Message.Create to create a
8788 - Added PreProcessMessage call in runloop for keyboard events; this
8789 is part of the fix for #77219, I overlooked this originally in the
8790 MSDN doc for PreProcessMessage
8792 - Removed call to PreProcessMessage from handling of keyboard
8793 messages; it's supposed to be done in the message pump
8794 - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
8795 per MSDN documentation.
8796 - IsInputChar: All chars are input chars by default; removed the
8797 parent calling chain, MS does not document that
8798 - PreProcessMessage: If IsInputChar is true, we want to return false
8799 to allow dispatching of the message
8800 - When selecting the next control, now also check that we're not
8801 selecting ourselves again and therefore return a false positive.
8803 - Tried to match return values for IsInputKey and ProcessDialogKey
8804 to what MS returns; moved processing of our special keys outside
8805 ProcessDialogKey since MS does not seem to return true on those.
8806 - Moved code that previously was in ProcessDialogKey into new private
8807 ProcessKey method, which gets called upon receipt of WM_KEYDOWN
8808 - Reworked handling of WM_CHAR to not have to duplicate code from
8809 Control.cs anymore, instead we simply call down to base.
8811 2006-01-12 Jackson Harper <jackson@ximian.com>
8813 * ComboBox.cs: We always need to refresh the text area when
8814 EndUpdate is called. Fixes the combobox in the file dialog.
8815 * Control.cs: Don't create the creator_thread until the controls
8816 handle is created. Also in InvokeRequired we check if the
8817 creator_thread is null. This gives the effect of InvokeRequired
8818 returning true if the controls handle is not created yet, and
8821 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
8824 - Added StartLoop() driver method. This is used to allow drivers to
8825 prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
8826 loop for a particular thread
8827 - Added EndLoop() driver method. This is called once the message
8828 pump for the thread is shut down
8829 - Added SupportsTransparency method to allow the driver to indicate
8830 opacity support for windows
8832 - Removed TODO attribute, completed AllowTransparency property
8833 - Added documented logic to Opacity
8834 * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
8835 ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
8836 versions of CompatibleTextRendering
8837 * X11Structs.cs: Added opacity atom to our atom enumeration
8838 * Hwnd.cs: Added opacity tracking (we need to track since the opacity
8839 of a form might be set before it's reparented by the WM, and we need
8840 the opacity value without calling up to Form)
8841 * XplatUIDriver.cs: Added StartLoop(), EndLoop() and
8842 SupportsTransparency() driver methods
8843 * Application.cs: Now calling StartLoop and EndLoop driver methods
8845 - Added opacity atom registration
8846 - Added StartLoop()/EndLoop() methods. They're empty right now but
8847 will need to get implemented when we switch to a per-thread queue
8848 - Implemented SupportsTransparency() method
8849 - Implemented SetWindowTransparency() method
8850 - Added support for setting the opacity value when a window is
8851 reparented (since the opacity needs to be set on the WM frame)
8852 * XplatUIOSX.cs, XplatUIWin32.cs:
8853 - Added SupportsTransparency(), StartLoop() and EndLoop() methods
8855 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
8857 * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
8859 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
8861 * FileDialog.cs: Added ToolTip for MWFFileView
8862 * MimeIcon.cs: Rewrote GnomeHandler.
8863 - Get currently used gnome icon theme from
8864 ($HOME)/.gconf/%gconf-tree.xml
8865 - Make use of inherited icon themes
8866 - Support SVG icon themes like Tango via librsvg
8868 2006-01-12 Miguel de Icaza <miguel@novell.com>
8870 Revert's Jackson's revert which broke 2.0 builds. Fix both
8873 * Application.cs: Move the use_compatible_text_rendering outside
8874 the NET_2_0 define. If we ever need to use the
8875 use_compatible_text_rendering on the individual controls they will
8876 access the variable from the common shared code paths.
8878 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
8881 - Added more granular debug options
8882 - Added method to print both window text and id
8883 - Switched debug output to use new Window() debug method
8884 - Added IsEnabled() driver method
8885 - Added EnableWindow() driver method
8887 - Removed end_modal; no longer needed, new loop handles termination
8888 via 'closing' variable
8889 - If form is modal, setting DialogResult will now initiate loop
8890 termination via 'closing' variable
8891 - Added support for is_enabled/WS_DISABLED to CreateParams
8892 - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
8894 - Removed code that's now in RunLoop from ShowDialog()
8895 - Added various documented sanity checks to ShowDialog()
8896 - Added handling of WM_DESTROY message; we set 'closing' on getting
8897 the message to indicate the message pump to terminate
8898 - Added handling of new internal WM_CLOSE_INTERNAL message - it's
8899 send by the Application.ExitThread method. (We send the message
8900 to destroy the window after all other events have been
8901 processed through the queue, instead of destroying the handle
8903 - Moved code from Close() method to WM_CLOSE handler; added logic
8904 to only send close-related events if the form is not displayed
8906 * Splitter.cs (..ctor): Fixed typo in resource name
8908 - DrawBackgroundImage: Explicitly selecting the wrap mode for the
8910 - set_Cursor: Now only setting calling into XplatUI if the handle for
8911 the control is already created; this avoids implict handle creation
8912 or crashes if it's not created
8913 - set_Enabled: Now setting the enabled state via the new driver method
8914 instead of just tracking it
8915 - CreateParams: Added logic to set WS_DISABLED based on enabled state
8916 - CreateControl: Reordered event firing and method calls to more
8917 closely fire events in the order MS does. Now setting the
8918 enabled state in the driver when creating the control.
8919 - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
8921 * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
8922 MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED
8923 * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
8925 - Added tracking of window enabled state (get_Enabled/set_Enabled)
8926 - Added EnabledHwnd property to easily allow a driver to find the
8927 handle of the first enabled window in the parent chain (this is
8928 used by drivers to pass up input events of disabled windows)
8929 * XplatUIDriver.cs: Added IsEnabled() method
8931 - Removed crude and obsolete exiting tracking variable
8932 - Removed internal ModalRun(); replaced by RunLoop()
8933 - Implemented private CloseForms() method to allow closing all
8934 windows owned by a particular (or all) threads
8935 - Exit() now properly closes all windows without forcing the message
8937 - Removed obsolete InternalExit() method
8938 - Changed Run() methods to use new RunLoop() message pump
8939 - Implemented new RunLoop() method for both modal and non-modal forms
8941 - get_CreateParams: Added setting of WS_DISABLED
8942 - Simplified ShowDialog(); now all the work is done in RunLoop(),
8943 invoked via Form.ShowDialog()
8944 * NativeWindow.cs: We don't remove the window from the collection when
8945 the handle is destroyed; there might still be messages for it in the
8946 queue (mainly the resulting WM_DESTROY); instead it will be removed
8947 when Control calls InvalidateHandle in the WM_DESTROY handler
8949 - CreateWindow: Added logic to handle the WS_DISABLED window style
8950 - EnableWindow: Implemented based on Hwnd.Enabled
8951 - GetMessage: Reset PostQuitState so the method can be called again
8952 - Implemented support for disabled windows (passing messages to the
8953 first enabled parent) in handling all input messages
8954 - Added optimizations for handling Expose events
8955 - Implemeted new driver method IsEnabled()
8956 - Now always resetting paint pending tracking vars when we start paint
8957 - Re-implemented UpdateWindow via just sending a WM_PAINT message
8958 * XplatUIOSX.cs: Added IsEnabled method stub
8959 * XplatUIWin32.cs: Implemented new IsEnabled() method
8961 2006-01-11 Jackson Harper <jackson@ximian.com>
8963 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
8964 LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
8966 * ColorDialog.cs: Clear out the old form before adding the new
8969 2006-01-11 Jackson Harper <jackson@ximian.com>
8971 * X11Dnd.cs: Make sure to add all the text formats when adding
8972 strings to the data object.
8973 * TreeNodeCollection.cs: When adding to a sorted tree we need to
8974 do some redrawing too. Also change the UpdateNode to an
8975 UpdateBelow so the newly added node gets painted.
8977 2006-01-11 Miguel de Icaza <miguel@novell.com>
8979 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
8980 LinkLabel.cs, PropertyGrid.cs: Implement the
8981 UseCompatibleTextRendering property for 2.x
8983 * Application.cs (SetCompatibleTextRenderingDefault): Add.
8985 2006-01-11 Jackson Harper <jackson@ximian.com>
8987 * TreeView.cs: Use the property for setting the selected node so
8988 the correct events get raised.
8989 * TreeNode.cs: Update the tree when the fore/back colours of a
8992 2006-01-10 Jackson Harper <jackson@ximian.com>
8994 * TreeView.cs: Allow setting SelectedNode to null.
8996 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
8998 * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
9000 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
9002 * PrintControllerWithStatusDialog.cs: Update page number in dialog.
9004 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
9006 * PrintDialog.cs: Added attributes and set default property values.
9008 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
9010 * PrintControllerWithStatusDialog.cs:
9011 Added PrintControllerWithStatusDialog.
9013 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
9015 * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
9016 XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
9018 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
9020 * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
9022 2006-01-09 Jonathan Chambers <jonathan.chambers@ansys.com>
9024 * ComboBox.cs: Added KeyDown event handler for processing arrow keys
9025 and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
9027 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
9029 * MimeIcon.cs: Added internal class SVGUtil.
9031 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
9033 * FileDialog.cs: Don't crash if there are two files with the
9034 same name but different locations.
9036 2006-01-08 John BouAntoun <jba-mono@optusnet.com.au>
9038 * MonthCalendar.cs: Fixed annoying rendering bug when selecting
9039 dates across multiple month grids. Used to not highlight entire
9040 month, but does now.
9042 2006-01-06 Jackson Harper <jackson@ximian.com>
9044 * MonthCalendar.cs: Removed DoEvents call to prevent a running
9045 message loop. Change timer intervals to numbers that seem more
9048 2006-01-06 John BouAntoun <jba-mono@optusnet.com.au>
9050 * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
9051 object for location info since screen object is now implemented.
9053 2006-01-05 Jackson Harper <jackson@ximian.com>
9055 * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
9056 * AsyncMethodResult.cs: We no longer use a WeakReference for the
9057 AsyncMethodResult, this is because we ALWAYS want the
9058 ManualResetEvent to get set.
9059 * Control.cs: When disposing use an async invoke to call shutdown
9060 code, so that thigns don't block on the finalizer thread. Also
9061 check if we even have a message loop before trying to send
9062 messages, if we don't then don't bother sending messages.
9063 - No more weak references for async methods
9064 * XplatUIDriver.cs: No more weak references for async methods.
9066 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
9068 * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
9069 returns two FontFamily with the same name
9071 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
9073 * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of
9074 drawing disabled text. Instead using the ColorGrayText color
9076 2006-01-04 Jackson Harper <jackson@ximian.com>
9078 * TreeNode.cs: redraw the node when its image index is changed.
9080 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
9082 * RichTextBox.cs: Same fix as last, just for SelectionColor. This
9083 time I checked there are no others like it.
9085 2006-01-04 Jackson Harper <jackson@ximian.com>
9087 * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
9088 this gives the behavoir I was looking for.
9089 * Control.cs: Special case Invoking EventHandlers, this matches MS
9090 and fixes part of bug #76326.
9092 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
9094 * ThemeClearlooks.cs, FileDialog.cs:
9095 - Reflect the latest Theme class changes
9096 - Remove Mono.Unix.Syscall.time in FileDialg and replace it
9099 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
9101 * Theme.cs: Cache UI resource images and resize them if needed
9103 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
9105 * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
9106 is called. This fixes the crash in Nexxia when setting the font
9107 attributes in the chat. [However, RTF needs a look-over to make sure
9108 that all SelectionXXX methods handle the special case that selection
9109 is empty and therefore the change must be applied to all text starting
9110 at the cursor/selection start]
9112 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
9114 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
9115 XplatUIOSX.cs: Added SendMessage and PostMessage methods
9116 * X11Keyboard.cs: Switched to new way of calling PostMessage
9118 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
9120 * Theme.cs: Added theme interface for images to allow the theme to
9121 control what images are used for things like FileDialog, MessageBox
9123 * MessageBox.cs: Now uses the new Theme icon/image interfaces
9125 2006-01-03 Alexander Olk <alex.olk@googlemail.com>
9128 - Removed some dead code
9129 - Opening a recently used file does work now
9130 - Small UI enhancements
9133 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
9135 * FileDialog.cs: Forgot too add __MonoCS__
9137 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
9139 * FileDialog.cs: We are able to read recently used files now let's
9140 go on and write them.
9142 2006-01-01 Alexander Olk <alex.olk@googlemail.com>
9144 * FileDialog.cs: Breathe some life into "last open"/"recently used"
9146 * MimeIcon.cs: Do a check for the top level media type also
9148 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
9150 * ThemeClearlooks.cs:
9151 - Added CPDrawStringDisabled
9152 - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
9153 some chars if the text doesn't fit into text_rect
9154 - DrawListViewItem: If View = View.LargeIcon center the image;
9155 rewrote the drawing of ListViewItem.Text if View =
9158 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
9160 * MimeIcon.cs: Use default KDE icon theme if there is no
9161 "48x48" directory for the current icon theme, fixes #77114
9162 * Mime.cs: Disable not working and actually not used code.
9163 * ThemeWin32Classic.cs:
9164 - Replace "new SolidBrush" in GetControlBackBrush and
9165 GetControlForeBrush with ResPool.GetSolidBrush
9166 - Changed DrawListViewItem from private to protected virtual
9168 - Added form.MaximizeBox = true
9169 - Don't throw an exception if there is a broken symbolic link
9171 2005-12-23 Jackson Harper <jackson@ximian.com>
9173 * TabControl.cs: Give the panels focus, keyboard navigation is
9174 fixed so this works correctly now.
9175 - We need these key events also.
9176 * ToolBar.cs: Remove some of the poor mans double buffering.
9178 2005-12-24 Alexander Olk <alex.olk@googlemail.com>
9180 * ComboBox.cs: The internal TextBox now returns the focus.
9182 2005-12-23 Jackson Harper <jackson@ximian.com>
9184 * ThemeWin32Classic.cs: Draw the text for all tab appearances.
9186 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
9188 * Control.cs: Removed debug code
9189 * XplatUIX11.cs: Changed DestroyChildWindows to also consider
9192 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
9194 * Control.cs: When creating the control, update the Z-order after
9195 all it's children are created, too. (Fixes nexxia not showing
9198 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
9200 * Control.cs: Do not update the anchoring distances if layout is
9201 suspended, instead do it once layout is resumed
9203 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
9206 - After many hours of debugging, for both Jackson and
9207 myself, it turns out that it helps to set the parent of a control
9208 if you want to actually see it onscreen. In the spirit of that
9209 discovery, we're now setting the parent of the control and
9210 it's children when the control's handle is created. This fix
9211 will make Lutz Roeder's Reflector run happily.
9212 - now just creating the handle instead of the whole control when
9213 getting a graphics context for the control.
9215 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
9217 * ScrollableControl.cs: When calculating the canvas, don't consider
9218 the scrollbar widths. Instead, predict if horizontal scrollbar
9219 will affect canvas when deciding on vertical display and vice versa.
9221 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
9223 * RichTextBox.cs: Set default RTF font for documents that don't
9224 have a font table (Fixes #77076)
9226 2005-12-22 Jackson Harper <jackson@ximian.com>
9228 * TextBoxBase.cs: It's difficult to do, but you can have an empty
9229 clipboard. This prevents a NullRef in that case.
9230 * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
9231 clipboard. PRIMARY is for the currently selected text only. (We
9232 should implement PRIMARY at some point.
9234 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
9236 * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
9237 a Unicode function with a structure that was defined in Ansi way.
9240 2005-12-21 Jackson Harper <jackson@ximian.com>
9242 * StatusBar.cs: Statusbar handles its fore/back colours on it's
9243 on. Because thats how it rolls. (and this avoids it using ambient
9245 * ThemeWin32Classic.cs: Use the proper back color for filling.
9246 * Menu.cs: Use the system menu bar color for drawing menu
9247 bars. Using the window back color will bring ambient colours into
9250 2005-12-21 Alexander Olk <alex.olk@googlemail.com>
9252 * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
9253 Bitmaps were created and not disposed.
9255 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
9257 * Control.cs (CreateControl): Don't do anything if the control is
9258 already created, otherwise we'd fire the OnCreated event more than
9261 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
9263 * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
9264 will always match. Instead return -1. Fixes #76464.
9266 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
9268 * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
9269 neither the beginning nor the end of the line (Fixes bug #76479)
9271 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
9274 - ControlNativeWindow.ControlFromHandle(): Now handling situation
9275 where handle is invalid
9276 - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
9277 instead of slower linear search
9278 * NativeWindow.cs: Don't remove the window from the hashtable until
9279 after the driver has destroyed it (since the driver might use
9280 Control.FromHandle to lookup the control object
9281 * Hwnd.cs: Added DestroyPending property to track if a window is
9282 already destroyed as far as the driver is concerned and only hasn't
9283 yet notified the control
9285 - Activate(): Check if the window is still valid before using the
9287 - Implemented DestroyChildWindow() method to mark child windows as
9288 destroyed when a window is destroyed. This prevents situations
9289 where we might call an X method based on queued events for a
9290 window that already has been destroyed but we haven't yet pulled
9291 the destroy method from the queue.
9292 - Added a call to the new DestroyChildWindow() method to the drivers
9293 DestroyWindow code. Also now marking the destroyed window itself
9296 2005-12-20 Jackson Harper <jackson@ximian.com>
9299 * StatusBarPanel.cs: Don't calculate panel sizes on draw
9300 anymore. Just do them when needed, also track the rects of panels
9301 so that we can optimize refreshing more in the future.
9303 2005-12-20 Alexander Olk <alex.olk@googlemail.com>
9305 * ColorDialog.cs: Fixed focus drawing in small color controls
9307 2005-12-19 Jackson Harper <jackson@ximian.com>
9309 * InternalWindowManager.cs:
9310 * MdiWindowManager.cs: Cleanup some coordinate system changes so
9311 moving windows works properly.
9313 2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
9316 - Removed call to InitLayout() from SetBoundsCore(); doc says
9317 it's only called when a control is added to a container
9318 - Split InitLayout logic, moved to separate UpdateDistances() method
9319 since we need to perform those calculations more often than just
9320 when adding the control to a container. (Needed to fix #77022)
9321 - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
9322 - Reduced the OnBindingContextChanged events count, don't send them
9323 unless the control is created, we still aren't totally matching
9324 MS, but I can't quite figure out some of their rules
9326 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
9328 * ThemeClearlooks.cs: Corrected distance between ProgressBar
9331 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
9333 * ThemeClearlooks.cs:
9334 - Updated ProgressBar drawing
9335 - Corrected drawing of ScrollBars and scroll buttons
9336 - Some temporary fixes for minor pixel artefacts
9338 2005-12-18 Peter Dennis Bartok <pbartok@novell.com>
9341 - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
9342 cause events to be sent in the same order as MS does.
9343 - Added ChangeParent() method to trigger various OnXXXChanged events
9344 that need to be fired when a parent changes (This is a reworking
9345 of the patch from r54254, with the X11 errors fixed)
9346 - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
9347 since on MS we get OnLayoutChanged events when calling Clear()
9348 - Changed Enabled property to consider parent state as well, if a
9349 parent is not enabled, the control will not be either
9350 - Changed Parent property to simply call Controls.Add() since that
9351 now does all the work required, this way we avoid code duplication
9352 - Threw in a few OnBindingsContextChanged calls to try and match
9353 when MS sends them. We seem to send a few too many, though.
9354 - Added call to CreateControl when adding the control to a parent.
9355 We were never calling CreateControl. Still needs some work, in
9356 some places we treat HandleCreated and ControlCreated as equal,
9358 - Removed obsolete commented out code from UpdateZOrder()
9360 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
9362 * ThemeClearlooks.cs: Updated TrackBar drawing.
9364 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
9366 * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
9368 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
9370 * FileDialog.cs: Add the Help button and the open readonly
9371 checkbox only if needed
9373 2005-12-16 Jackson Harper <jackson@ximian.com>
9375 * Control.cs: Make sure we have an active menu before trying to
9376 process commands on it. Prevents menu-less forms from crashing
9377 when Alt is pressed.
9378 * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
9380 * RichTextBox.cs: Expand statement to help out gmcs and fix the
9383 2005-12-16 Jackson Harper <jackson@ximian.com>
9385 * InternalWindowManager.cs: Don't translate tool windows screen
9386 coordinates. This fixes windows 'bouncing' around when being moved.
9388 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
9391 - MaxLength now treats 2^31-1 equal to unlimited length (this is
9392 not quite MS compatible, MS uses that number only for single line
9393 and 2^32-1 for multi-line, but I figure it won't hurt keeping
9395 - Now enforcing the MaxLength limit when entering characters
9396 - Added argument to internal Paste() method to track if it's called
9397 from programatically or via keyboard, since keyboard driven pastes
9398 need to enforce max-length
9399 - Added logic to Paste to only paste as many chars as MaxLength
9401 * RichTextBox.cs: Updated to use new obey argument for internal Paste()
9403 - Added Length property to return number of characters in document
9404 - Added private CharCount property which only tracks actual chars
9405 in the document (no linefeeds) and fires event when CharCount
9407 - Added tracking of character count to all methods that alter it
9408 - Added LengthChanged event to allow applications to subscribe
9409 to any changes to the document
9411 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
9414 - Removed local password_char field (moved to TextBoxBase)
9415 - Now setting the document's password var when password is
9418 - Added password_char field (needed here so MultiLine can
9420 - Added logic to MultiLine property setter to set the document's
9421 variable when password display is allowed
9422 - Removed debug code and made some debug code conditional
9424 - Added RecalculatePasswordLine() method to handle special password
9426 - Added PasswordChar property, also added related tracking vars
9427 - Draw() method now uses local text var for grabbing text to draw,
9428 this var is set to line.text unless we're doing password display,
9429 then it is set to the pre-generated all-password-chars line
9430 - Added calling RecalculatePasswordLine() method for password lines
9432 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
9435 - Added Reparented property to allow tracking of Window Manager
9436 reparenting actions (which affect X/Y calculations of toplevel
9438 - Made ToString() print window handles in hex
9440 - AddConfigureNotify(): Now uses reparented state off Hwnd to
9441 determine if X/Y needs offsetting
9442 - AddConfigureNotify(): Fixed offset calculations
9443 - Now adds ReparentNotify messages into the queue
9444 - Now processes ReparentNotify messages and causes a
9445 WM_WINDOWPOSCHANGED message to be sent upstream if a window
9446 is reparented (as most likely it's X/Y coordinates are changed
9449 2005-12-14 Jackson Harper <jackson@ximian.com>
9451 * XplatUIX11.cs: Tool windows still need to respek focus.
9453 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
9455 * Control.cs: Undid 54254 (causing XConfigure errors) so we can
9456 have a working release
9458 2005-12-13 Jackson Harper <jackson@ximian.com>
9460 * Form.cs: Update styles after setting the border style regardless
9461 of whether or not the window is using a window manager.
9463 2005-12-13 Jackson Harper <jackson@ximian.com>
9465 * Form.cs: We now hook into an internal window manager instead of just an
9466 MDI subsystem, this is so we can have properly behaving tool windows.
9467 * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
9468 * InternalWindowManager.cs: New internal class that acts as a
9469 window manager for tool windows and as a base for mdi windows.
9470 * MdiWindowManager.cs: New class that acts as a window manager for
9473 2005-12-12 Jackson Harper <jackson@ximian.com>
9475 * Control.cs: Updates so we match behavoir for for implicit
9476 controls. Fixes explosions in MDI.
9478 2005-12-12 Jackson Harper <jackson@ximian.com>
9480 * Control.cs: Implement Invalidate (Region).
9482 2005-12-12 Peter Dennis Bartok <pbartok@novell.com>
9485 - Changed handling of Controls.Add/Controls.Remove to fire (almost)
9486 the same events as MS does. MS fires events for each property
9487 except, for unknown reasons, Cursor, when the control is reparented.
9488 I can't seem to totally match add/remove since MS also fires some
9489 VisibleChanged events, which makes no sense. Consolidated the
9490 parenting code into a separate method so it can be called from
9491 both Add and Remove. set_Parent no longer needs any special logic
9492 as it calls the parent's add method which implicitly fires
9494 - Removed some obsolete code and debug output
9495 - Enabled state is inherited from parents, if this is enabled
9497 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
9499 * Form.cs: Removed commented out code
9501 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
9504 - Added internal version of Invoke, with additional argument
9505 indicating if we're calling it from a Dispose() handler. That
9506 way we can avoid BeginInvoke throwing an exception if we're
9507 calling for an already destroyed window.
9508 - Added a dispose argument to BeginInvokeInternal, and made the
9509 check if a valid window handle chain exists conditional on
9510 it not being a dispose call
9511 - Removed code in DestroyHandle to destroy our children. Since we
9512 now handle the WM_DESTROY message we will catch all our children
9514 - Now calling OnHandleDestroyed from our new WM_DESTROY handler
9516 - Added a field to track the application context of the form.
9517 - No need to set closing variable as response to WM_CLOSE, instead
9518 we destroy the window. We also call PostQuitMessage if the form
9519 has an application context (which makes it the main app form,
9520 which, when closed terminates the app)
9522 - Dropped Exit() method, it's naming was confusing
9523 - Added PostQuitMessage() which causes GetMessage to return false
9524 once the message queue is empty
9525 * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added
9527 * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
9528 no longer a valid XplatUI method, but left it in since it's used
9529 internally. Added empty PostQuitMessage() method.
9530 * MenuAPI.cs: Replaced call to Exit() with call to
9531 PostQuitMessage, even though this is probably no longer needed.
9532 * Hwnd.cs: Added 'pretty' ToString() to support debugging.
9533 * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
9535 - Replaced call to XplatUI.Exit() with PostQuitMessage()
9536 - Removed old debug code that would call XplatUI for exception
9537 display, enabled standard exception handling (Still not enabled
9538 though, until NativeWindow's ExternalExceptionHandler define
9541 - Added internal method to allow control to update NativeWindow
9542 after a window has been destroyed
9543 - Added handling of already destroyed windows when calling i
9545 - Added removal of handle from list on ReleaseHandle
9547 - Dropped GetMessageResult var and related code
9548 - Added PostQuitState to field to track if PostQuitMessage has been
9550 - Dropped Exit() method
9551 - Added PostQuitMessage() method
9552 - GetMessage now will return false if PostQuitState is set and no
9553 more messages are in the queue.
9554 - Expose handler will no longer generate WM_PAINT messages if we are
9555 in PostQuitState since it's very likely any windows have already
9556 been destroyed, and since Hwnd won't get updated until we have
9557 processed the DestroyNotify we'd be causing X errors.
9559 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
9561 * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
9562 Thanks to Mike for pointing out the err of my ways.
9564 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
9566 * Control.cs(PreProcessMessage): Moved menu handling back, but
9567 after all other key handling, to match MS (who handles Menu in
9569 * Menu.cs (WndProc): Removed my brainfart
9571 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
9573 * Control.cs(PreProcessMessage): Removed special menu handling
9574 * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
9576 2005-12-07 Mike Kestner <mkestner@novell.com>
9578 * Control.cs : special case SYSKEYUP so that we can adjust keynav
9579 state according in tracker.
9580 * Menu.cs : promote tracker field to base class and provide a tracker
9581 lookup capability. Add/Remove shortcuts dynamically if the top menu
9582 has a tracker. Unparent items that are removed from the collection.
9583 * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
9584 * Theme*.cs: add always_show_hotkeys field to support configurability
9585 of mnemonic display. win32 doesn't show mnemonics until Alt is
9588 2005-12-07 Jackson Harper <jackson@ximian.com>
9590 * MdiChildContext.cs: Use Control.ResetCursor.
9591 * Control.cs: ResetCursor needs to set the property so that the
9592 correct XplatUI call gets made.
9594 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
9596 * Control.cs: More fixes to make our key events match MS. We
9597 were not setting the modifier state on KeyData, and we were
9598 not generating any events when Alt was pressed with a key
9599 since handling of WM_SYSxxx was missing for the OnKey methods.
9601 2005-12-07 Jackson Harper <jackson@ximian.com>
9603 * MdiChildContext.cs: reenable the sizing code.
9604 - When the mouse leaves a window reset its cursor.
9606 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
9608 * ThemeClearlooks.cs: Reflect latest Hwnd changes
9610 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
9612 * Hwnd.cs: Now using the theme 3d bordersize to calculate
9613 widths of Fixed3D borders
9615 2005-12-07 Jackson Harper <jackson@ximian.com>
9617 * MdiClient.cs: Fix warnings. Earn Mike's love.
9619 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
9621 * ThemeClearlooks.cs:
9622 - Adjusted mouse over button color
9623 - Added first parts of CheckBox drawing
9624 - Added correct color for selected text background
9625 - Fixed ComboBox drawing
9626 - Added CPDrawBorder3D and CPDrawBorder
9628 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
9630 * XplatUIX11.cs: Added call to XBell for AudibleAlert
9632 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
9634 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
9635 XplatUIOSX.cs: Added AudibleAlert() method to have a means to
9636 alert users via sound. We could add an enum arg with different
9637 types of alerts in the future
9639 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
9641 * Control.cs: Fix behaviour problems pointed out by Mike
9643 2005-12-05 Mike Kestner <mkestner@novell.com>
9645 * StatusBarPanel.cs: add Invalidate method and hook it into all the
9646 prop setters. Calls parent.Refresh for now, but could be maybe be
9647 optimized with an internal method on StatusBar at some point.
9650 2005-12-05 Peter Dennis Bartok <pbartok@novell.com>
9652 * RichTextBox.cs: Implemented get_SelectionColor
9654 2005-12-05 Alexander Olk <alex.olk@googlemail.com>
9656 * ThemeClearlooks.cs:
9658 - Draw black button border only if button is Form.AcceptButton
9659 - Draw correct button color for pressed RadioButton if the mouse
9660 has entered the button
9661 - Updated ProgressBar drawing!
9662 - Updated CPDrawSizeGrip drawing
9663 - Updated StatusBarPanel drawing
9665 2005-12-05 Mike Kestner <mkestner@novell.com>
9667 * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
9668 * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
9670 2005-12-04 Alexander Olk <alex.olk@googlemail.com>
9672 * ThemeClearlooks.cs: Initial check-in, activate with
9673 export MONO_THEME=clearlooks
9674 * ThemeEngine.cs: Added ThemeClearlooks
9676 2005-12-03 Mike Kestner <mkestner@novell.com>
9678 * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
9681 2005-12-02 Jackson Harper <jackson@ximian.com>
9683 * Form.cs: If the child form has no menu the default main menu is
9684 used as the active menu.
9686 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
9688 * ListBox.cs: Check if any items exist before trying to resolve
9689 coordinates into items
9691 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
9693 * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
9694 as the second color for the background hatch
9696 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
9698 * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
9699 * RichTextBox.cs: FormatText position arguments are 1-based, now making
9700 sure that what we pass to FormatText is always 1-based. Fixes #76885
9702 2005-11-29 Miguel de Icaza <miguel@novell.com>
9704 * NumericUpDown.cs (EndInit): When we are done initializing,
9705 reflect any updates on the UI.
9707 2005-12-02 Jackson Harper <jackson@ximian.com>
9709 * ImplicitHScrollBar.cs:
9710 * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
9711 their container controls.
9712 * TreeView.cs: Use the new implicit scrollbars.
9714 2005-12-02 Jackson Harper <jackson@ximian.com>
9716 * TreeView.cs: Make top_node internal so the TreeNodeCollections
9718 * TreeNodeCollection.cs: If we remove the topnode we need to
9719 update topnode to the next node in line.
9720 - When clearing nodes go through the same process as removing
9721 them, so they get depareneted and checked if they are top node.
9723 2005-12-01 Jackson Harper <jackson@ximian.com>
9725 * TreeView.cs: When imagelists are used the image area is
9726 selectable as well as the text.
9727 - If there are no selected nodes select the first one.
9728 * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
9729 so don't do it more then we need to.
9731 2005-12-01 Jackson Harper <jackson@ximian.com>
9733 * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
9734 that arrows can be scaled.
9736 2005-12-01 Jackson Harper <jackson@ximian.com>
9738 * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
9739 fail. Patch by Dieter Bremes
9741 2005-11-30 Jackson Harper <jackson@ximian.com>
9743 * Form.cs: Property is 2.0 only
9744 * PrintDialog.cs: Signature fix.
9746 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
9749 - No longer artificially moves text 2 pixels down (now that we have
9750 borders this is no longer needed)
9751 - Added calcs for left, hanging and right indent
9753 2005-11-23 Mike Kestner <mkestner@novell.com>
9755 * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
9757 2005-11-30 Jackson Harper <jackson@ximian.com>
9759 * MdiChildContext.cs: Set the cloned menus forms, as these don't
9760 get cloned as part of CloneMenu ().
9761 * Menu.cs: Make sure the parent of the items get set correctly
9762 when they are added. And the owners are notified of the changes.
9763 * Form.cs: Create an ActiveMenu property, so that when MDI is used
9764 we can change the menu being displayed/handled by the form without
9765 changing the menu assosciated with the form.
9766 - Don't let Mdi children draw/handle menus.
9768 2005-11-30 Jackson Harper <jackson@ximian.com>
9770 * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
9771 a MenuChanged event. Just to make the API a little more
9774 * MenuItem.cs: Use the new OnMenuChanged
9775 * MdiChildContext.cs: Handle menu merging.
9776 * Form.cs: Implement MergedMenu.
9778 2005-11-30 Jackson Harper <jackson@ximian.com>
9780 * Menu.cs: We were misusing Add. Add goes behind the specified
9781 index according to the docs, and does not replace the specified
9782 index. So I added an Insert method.
9784 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
9786 * TextBoxBase.cs: Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
9787 Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
9789 * RichTextBox.cs: Added calls to base for DnD events
9791 2005-11-28 Peter Dennis Bartok <pbartok@novell.com>
9794 - Fixed drag-selection related crash; style fixes
9795 - Implemented undo class
9796 o Implemented method to capture document state for specified
9797 range in document tree
9798 o Implemented method to restore captured document state
9799 o Implemented cursor tracking
9800 o Implemented basic undo stack
9801 - Added undo cursor tracking to methods altering cursor location
9802 - Added undo tracking to selection deletion (still missing
9803 other text-altering hookups)
9805 - Added SelectionLength property
9806 - Implemented CanPaste()
9807 - Implemented Paste()
9808 - Added missing protected methods
9809 - Fixed RTF->Document conversion; now uses font index 0 and color
9810 index 0 as the default font for the parsed text
9811 - Fixed RTF<->Document font size translation
9812 - Fixed RTF generation, now properly handles cross-tag boundaries
9813 for single line selection
9814 - No longer always appends blank line to generated RTF
9816 - Added missing attributes
9817 - Hooked up undo-related methods
9819 - Implemented Copy()
9820 - Implemented Paste()
9822 - Fixed caret mis-behaviour on backspace across line-boundaries
9824 2005-11-29 Jackson Harper <jackson@ximian.com>
9826 * MdiClient.cs: Add a method for activating mdi children. Very
9827 basic right now. I imagine someday it might need more girth.
9828 * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
9829 children windows names are added to the menu item.
9830 * ThemeWin32Classic.cs: Draw the arrow if the item is an
9831 mdilist. This happens regardless of whether or not there are any
9832 mdi windows to see in the list, and according to my tests happens
9833 before the items are even added. Also happens if there isn't even
9834 an mdi client to get windows from.
9836 2005-11-29 Alexander Olk <alex.olk@googlemail.com>
9838 * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
9839 * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
9841 2005-11-29 Jordi Mas i Hernandez <jordimash@gmail.com>
9843 * DataGridTableStyle.cs:
9844 - Create always the styles for the missing columns even if they are
9845 provided by the user (not default table style)
9848 - Fixes SetDataBinding (always re-attach source)
9849 - Fixes SetNewDataSource (only clear styles if they are not for
9851 - Expands OnTableStylesCollectionChanged to handle style refresh
9854 2005-11-29 Jackson Harper <jackson@ximian.com>
9856 * FileDialog.cs: Implement missing bits, remove some dead
9858 * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
9859 creation of the panel so that the options set on the dialog are
9860 seen when the panel is created.
9861 * TreeView.cs: raise a click when items are clicked.
9863 2005-11-29 Jackson Harper <jackson@ximian.com>
9865 * MdiClient.cs: Pass some signature methods through to base.
9867 2005-11-28 Jackson Harper <jackson@ximian.com>
9869 * ListView.cs: Raise the click event when items are clicked.
9871 2005-11-28 Jackson Harper <jackson@ximian.com>
9873 * MdiClient.cs: Make this algorithm even more beautiful. And fix
9876 2005-11-27 Alexander Olk <alex.olk@googlemail.com>
9878 * ThemeNice.cs: - Removed 1 pixel bitmaps
9879 - Use SmoothingMode.AntiAlias where it makes sense
9880 (ScrollButton arrow for example)
9881 - Enhanced Button focus drawing
9882 - Fixed ComboBox drawing (no artefacts anymore, focus
9883 rectangle is back again, reduced size of ComboButton, etc.)
9884 - Fixed RadioButton focus drawing for Appearence.Button
9885 - Slight ScrollButton redesign
9886 - Some LinearGradientBrush size fixes
9887 - GroupBoxes have now rounded edges
9888 - Fixed StatusBar drawing
9890 2005-11-25 Alexander Olk <alex.olk@googlemail.com>
9892 * ThemeNice.cs: - Remove dead code
9893 - use correct background colors for menus, etc.
9894 - Fake pixel drawing with 1 pixel bitmaps
9896 2005-11-24 Jackson Harper <jackson@ximian.com>
9898 * MdiClient.cs: Size the scrollbars when resizing the window.
9899 - Resize the maximized windows when the client is resized
9900 * Form.cs: Make the child context available
9902 2005-11-23 Jackson Harper <jackson@ximian.com>
9904 * MdiChildContext.cs: Don't size windows if they are maximized.
9906 2005-11-23 Mike Kestner <mkestner@novell.com>
9908 * ContextMenu.cs: use MenuTracker.
9909 * Control.cs: remove menu handle usage.
9910 * Form.cs: remove menu handle usage.
9911 * Hwnd.cs: remove menu handle usage.
9912 * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
9913 motion and clicks to the new Tracker handlers.
9914 * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
9916 * MenuAPI.cs: refactored to combine popup and menubar event handling.
9917 Killed the MENU and MENUITEM data types and associated collections
9918 since we now keep the info on Menu and MenuItem. Expanded TRACKER into
9919 MenuTracker class that exposes the leftovers from the old MenuAPI
9920 static methods. Restructured Capture handling so that only one grab is
9921 done for the entire menu hierarchy instead of handing off grabs to
9922 submenus. Tracker now has an invisible control to Capture when active.
9923 * MenuItem.cs: add sizing accessors, kill Create
9925 * Theme.cs: remove menu handle and MENU(ITEM) usage.
9926 * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
9927 MENU(ITEM). remove menu handle usage, use Menu directly.
9928 * XplatUIDriver.cs: remove menu handle usage.
9929 * XplatUIOSX.cs: remove menu handle usage.
9930 * XplatUIWin32.cs: remove menu handle usage.
9931 * XplatUIX11.cs: remove menu handle usage.
9933 2005-11-22 Jackson Harper <jackson@ximian.com>
9935 * Hwnd.cs: Don't compute the menu size for
9936 DefaultClientRectangle.
9937 - Reenable menu sizes being computed for GetClienRectangle.
9938 * Form.cs: Remove comment of trechery
9940 2005-11-22 Jackson Harper <jackson@ximian.com>
9942 * Hwnd.cs: The adjustments for the menu bar are made when it is
9943 attached to the form.
9945 2005-11-19 Jackson Harper <jackson@ximian.com>
9947 * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
9948 (just like on windows).
9950 2005-11-19 Jackson Harper <jackson@ximian.com>
9952 * MdiChildContext.cs: Handle all the buttons ourselves. We can't
9953 use real buttons anymore because they are in non client area. The
9954 one TODO here is that I need to somehow invalidate a section of
9955 the non client area.
9957 2005-11-18 Jackson Harper <jackson@ximian.com>
9959 * Control.cs: Put the enum check back in now that MDI doesnt have
9960 to use this to set border styles.
9961 * Form.cs: Only set mdi child windows borders if the handle has
9963 * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
9964 this directly on to the driver.
9965 - Get the move start position before adjusting for the titlebar
9966 height, this fixes the windows "skipping" when they are first
9969 2005-11-18 Jackson Harper <jackson@ximian.com>
9971 * XplatUIX11.cs: Just compute the mdi borders separately as they
9972 don't totally match up with normal form borders.
9974 2005-11-18 Jackson Harper <jackson@ximian.com>
9976 * Control.cs: Set WS_ styles for borders, so that the driver does
9977 not have to retrieve the control instance to figure out what kind
9978 of borders it should have.
9979 * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
9980 driver can know its an mdi child easily.
9981 * XplatUIX11.cs: Get the border styles and whether the window is
9982 MDI from the Styles and ExStyles params instead of having to get a
9983 control. This prevents a chicken and egg problem.
9985 2005-11-18 Jackson Harper <jackson@ximian.com>
9987 * MdiClient.cs: Fix typo so scrollbars show up correctly.
9989 2005-11-18 Jackson Harper <jackson@ximian.com>
9991 * MdiClient.cs: Calculate when to add and remove scrollbars
9993 * MdiChildContext.cs: Adjust the y position to take the titlebar
9995 - No height for FormBorderStyle.None
9997 2005-11-18 Jackson Harper <jackson@ximian.com>
9999 * Control.cs: Allow non enum values to be used for
10000 InternalBorderStyle. MDI does this to set a special border style.
10001 - New utility methods for converting points to/from client coords
10002 - Add the newly created control to the Controls collection before
10003 updating its style. This way UpdateStyle can walk the control
10004 heirarchy to find the control if needed.
10005 so I don't need to create a new Point object all the time.
10006 * Form.cs: Let MDI windows handle their border styles.
10007 - Set styles on MDI windows so the correct title style is derived.
10008 * MdiChildContext.cs: Move all the painting and window handling
10009 into the non client area.
10010 - Use correct sizing and put correct buttons on frames based on
10011 the FormBorderStyle.
10012 - Notify the mdi client about scrolling
10013 - Need to handle the buttons ourselves now, because they are all
10014 in non client areas and we can't add controls there.
10015 * MdiClient.cs: Halfway to scrolling, this implementation is
10016 somewhat broken though, we need to check to make sure other
10017 windows aren't causing scrolling before removing the bars. Also
10018 the bars need to be drawn on top, maybe I can switch implicit
10019 controls to be on top.
10020 * Hwnd.cs: caption_height and tool_caption_height are now
10021 properties of an hwnd, this way they can be set by the driver
10022 based on the type of window they are. In X11 the window manager
10023 handles the decorations so caption_height is zero unless its an
10025 - Add 3 pixel borders for MDI windows (0xFFFF).
10026 - Get rid of some code duplication, have DefaultClientRectanle
10027 just call GetClientRectangle.
10028 * XplatUIX11.cs: Pass caption_height and tool_caption_height to
10030 - Set border styles differently for mdi windows.
10031 * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
10034 2005-11-15 Mike Kestner <mkestner@novell.com>
10036 * Menu.cs: when adding an item to the collection, if item is already
10037 parented, remove it from the parent.
10039 2005-11-13 Alexander Olk <alex.olk@googlemail.com>
10041 * X11DesktopColors.cs: Added KDE support
10043 2005-11-11 Peter Dennis Bartok <pbartok@novell.com>
10046 - Clipboard methods now can translate Rtf format
10047 - No longer removes clipboard contents whenever a new format is added
10048 to allow placing multiple formats on the clipboard
10049 * Clipboard.cs: Clipboard now supports getting a IDataObject and
10050 will place all formats contained in it onto the clipboard. Also
10051 now cleans the clipboard before placing a new object onto it
10053 - Implemented set_Rtf
10054 - Implemented set_SelectedRtf
10055 - Created InsertRTFFromStream() method to allow single code base
10056 for all properties and methods that insert RTF into document
10057 - Removed debug output
10059 - Fixed Delete(int) to fix up line numbers
10060 - Fixed ReplaceSelection to combine start and end line
10061 - Fixed serious DeleteChars bug that would leave the document tree
10063 - Improved DumpTree with several logic checks to detect broken
10065 - Removed debug lines
10066 - Fixed Caret.WordForward/WordBack moving code, now always also
10067 updates caret.tag (fixes crash when word-selecting across tag
10068 boundaries via keyboard)
10069 - Added Insert() method for inserting multiline text into documents
10070 - Fixed DeleteChars() calculation errors that would cause a broken
10071 tag chain with multiple tag lines
10072 - DeleteChars() no longer crashes on multi-tag lines if not all tags
10073 - Split() no longer moves caret if split is at caret location
10074 - ReplaceSelection() now updates the cursor and re-displays it
10075 - ReplaceSelection() now uses new Insert() method to avoid code
10077 - FormatText() can now handle formatting partial lines
10079 - Append now uses new TextControl.Insert() method (this avoids
10081 - Implemented Ctrl-X (Cut) (
10082 - Implemented Ctrl-C (Copy)
10083 - Implemented Ctrl-V (Paste) (Still some bugs related to screen
10084 regeneration when pasting text; roundtripping Copy&Paste within
10085 edit control still fails due to some calculation bugs in GenerateRTF)
10086 - The Delete key will now remove the current selection if it is visible
10087 * TextBox.cs: Removed debug lines
10088 * XplatUI.cs: Trigger initialization of DataFormats (which requires the
10089 driver to be initialized and can't therefore be done via a static ctor)
10091 2005-11-10 Peter Dennis Bartok <pbartok@novell.com>
10093 * TextControl.cs: Added backend code for finding char arrays and strings
10095 - Added mouse wheel scroll support
10096 - Added support for VScroll and HScroll events
10098 - Implemented all seven Find() variants
10099 - Implemented GetCharFromPosition()
10100 - Implemented GetCharIndexFromPosition()
10101 - Implemented GetLineFromIndex()
10102 - Implemented GetPositionFromCharIndex();
10103 - Implemented SaveFile for PlainText and UnicodeText
10104 - Fixed set_Font, now setting a new font applies that font to
10106 - Implemented generic Document to RTF converter
10107 - Implemented SaveFile for RichText format (still missing unicode
10108 conversion for non-ansi chars)
10109 - Implemented get_Rtf
10110 - Implemented get_SelectedRtf
10112 2005-11-09 Peter Dennis Bartok <pbartok@novell.com>
10114 * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
10115 to allow any captures to be released before triggering OnClick. This
10116 way a click handler may capture the mouse without interference.
10117 * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
10118 This way we send them even though X may not allow a grab (if the window
10119 isn't visible, for example)
10121 2005-11-08 Pedro Martinez Julia <pedromj@gmail.com>
10123 * DataGridViewRowEventArgs.cs: DataGridView implementation
10124 * DataGridViewElement.cs: DataGridView implementation
10125 * DataGridViewComboBoxCell.cs: DataGridView implementation
10126 * DataGridViewDataErrorContexts.cs: DataGridView implementation
10127 * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
10128 * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
10129 * ImageLayout.cs: DataGridView implementation
10130 * DataGridViewComboBoxColumn.cs: DataGridView implementation
10131 * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
10132 * DataGridViewSelectionMode.cs: DataGridView implementation
10133 * IDataGridViewEditingControl.cs: DataGridView implementation
10134 * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
10135 * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
10136 * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
10137 * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
10138 * DataGridViewColumnSortMode.cs: DataGridView implementation
10139 * DataGridView.cs: DataGridView implementation
10140 * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
10141 * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
10142 * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
10143 * Padding.cs: DataGridView implementation
10144 * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
10145 * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
10146 * DataGridViewRowEventHandler.cs: DataGridView implementation
10147 * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
10148 * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
10149 * DataGridViewButtonCell.cs: DataGridView implementation
10150 * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
10151 * DataGridViewEditMode.cs: DataGridView implementation
10152 * DataGridViewCellValueEventArgs.cs: DataGridView implementation
10153 * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
10154 * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
10155 * DataGridViewCheckBoxColumn.cs: DataGridView implementation
10156 * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
10157 * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
10158 * DataGridViewCellEventHandler.cs: DataGridView implementation
10159 * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
10160 * DataGridViewCellStyleConverter.cs: DataGridView implementation
10161 * DataGridViewSelectedRowCollection.cs: DataGridView implementation
10162 * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
10163 * DataGridViewColumnEventArgs.cs: DataGridView implementation
10164 * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
10165 * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
10166 * QuestionEventArgs.cs: DataGridView implementation
10167 * IDataGridViewEditingCell.cs: DataGridView implementation
10168 * DataGridViewTriState.cs: DataGridView implementation
10169 * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
10170 * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
10171 * DataGridViewColumnCollection.cs: DataGridView implementation
10172 * DataGridViewCellValueEventHandler.cs: DataGridView implementation
10173 * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
10174 * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
10175 * DataGridViewColumn.cs: DataGridView implementation
10176 * DataGridViewCellBorderStyle.cs: DataGridView implementation
10177 * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
10178 * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
10179 * DataGridViewRow.cs: DataGridView implementation
10180 * DataGridViewImageCellLayout.cs: DataGridView implementation
10181 * DataGridViewImageCell.cs: DataGridView implementation
10182 * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
10183 * DataGridViewCheckBoxCell.cs: DataGridView implementation
10184 * DataGridViewHeaderCell.cs: DataGridView implementation
10185 * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
10186 * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
10187 * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
10188 * DataGridViewTextBoxColumn.cs: DataGridView implementation
10189 * QuestionEventHandler.cs: DataGridView implementation
10190 * DataGridViewCellStyleScopes.cs: DataGridView implementation
10191 * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
10192 * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
10193 * DataGridViewCell.cs: DataGridView implementation
10194 * DataGridViewCellEventArgs.cs: DataGridView implementation
10195 * DataGridViewClipboardCopyMode.cs: DataGridView implementation
10196 * DataGridViewCellStyle.cs: DataGridView implementation
10197 * DataGridViewColumnHeaderCell.cs: DataGridView implementation
10198 * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
10199 * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
10200 * TextFormatFlags.cs: DataGridView implementation
10201 * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
10202 * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
10203 * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
10204 * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
10205 * DataGridViewButtonColumn.cs: DataGridView implementation
10206 * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
10207 * HandledMouseEventArgs.cs: DataGridView implementation
10208 * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
10209 * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
10210 * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
10211 * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
10212 * DataGridViewRowCollection.cs: DataGridView implementation
10213 * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
10214 * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
10215 * DataGridViewHitTestType.cs: DataGridView implementation
10216 * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
10217 * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
10218 * DataGridViewColumnEventHandler.cs: DataGridView implementation
10219 * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
10220 * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
10221 * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
10222 * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
10223 * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
10224 * DataGridViewContentAlignment.cs: DataGridView implementation
10225 * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
10226 * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
10227 * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
10228 * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
10229 * DataGridViewPaintParts.cs: DataGridView implementation
10230 * DataGridViewCellCollection.cs: DataGridView implementation
10231 * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
10232 * DataGridViewImageColumn.cs: DataGridView implementation
10233 * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
10234 * DataGridViewElementStates.cs: DataGridView implementation
10235 * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
10236 * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
10237 * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
10238 * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
10239 * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
10240 * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
10241 * DataGridViewRowHeaderCell.cs: DataGridView implementation
10242 * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
10243 * DataGridViewTextBoxCell.cs: DataGridView implementation
10244 * DataGridViewBand.cs: DataGridView implementation
10245 * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
10246 * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
10247 * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
10248 * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
10249 * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
10250 * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
10251 * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
10252 * DataGridViewSelectedCellCollection.cs: DataGridView implementation
10253 * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
10254 * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
10255 * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
10257 2005-11-08 Peter Dennis Bartok <pbartok@novell.com>
10259 * ThemeWin32Classic.cs:
10260 - Draw the outside focus rectangle around buttons
10261 - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
10262 doesn't use end caps for every dash of a line anymore. This
10263 workaround ignores the forecolor.
10265 2005-11-08 Kornél Pál <kornelpal@hotmail.com>
10267 * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
10270 2005-11-07 Jackson Harper <jackson@ximian.com>
10272 * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
10274 2005-11-07 Jackson Harper <jackson@ximian.com>
10276 * ScrollableControl.cs: Calculate the maximum and change vars
10277 (more) correctly so that scrollbars appear as a sensible size.
10279 2005-11-04 Jackson Harper <jackson@ximian.com>
10281 * TreeNodeCollection.cs: Refresh when nodes are cleared from the
10283 * TreeView.cs: When the tree is sorted null out the top_node so
10284 that it is recalculated.
10285 - Use dotted lines instead of dashed lines to match MS better.
10287 2005-11-04 Jordi Mas i Hernandez <jordimash@gmail.com>
10290 - Implements key search for items. Useful when browsing files with FileDialog
10291 - When changing view mode or when clear the items reset scrollbar positions
10293 2005-11-04 Jackson Harper <jackson@ximian.com>
10295 * CurrencyManager.cs: Implement the MetaDataChanged event, the
10296 Reset method, and the CheckEmpty. CheckEmpty is just a total guess
10297 as to what the method may do as there is no real way of creating a
10298 derived CurrencyManager and calling the method.
10300 2005-11-03 Jackson Harper <jackson@ximian.com>
10302 * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
10303 * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
10304 method which seems to just be used internally to refresh the tabs.
10306 2005-11-03 Jackson Harper <jackson@ximian.com>
10308 * TabControl.cs: Implement the remove method. Fix some broken
10311 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
10313 * DateTimePicker.cs:
10314 - Added missing DateTimePickerAccessibleObject class
10315 - Added missing events
10316 - Added OnFontChanged method
10317 * Form.cs: Added missing attributes
10318 * TreeView.cs: Added missing attributes
10320 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
10322 * GridItemCollection.cs: Fix signatures
10324 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
10326 * XplatUI.cs: Updated build rev/date
10327 * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs,
10328 DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
10329 * Application.cs: Trigger context-specific ExitThread events
10331 2005-11-03 Jackson Harper <jackson@ximian.com>
10335 * GridTableStylesCollection.cs:
10340 * MonthCalendar.cs: Signature fixes
10342 2005-11-03 Jackson Harper <jackson@ximian.com>
10344 * TreeNodeCollection.cs: Remove should not be virtual.
10345 * TreeView.cs: Implement the last of the missing methods.
10347 2005-11-03 Jackson Harper <jackson@ximian.com>
10349 * TreeNodeConverter.cs: Implement to get off my class-status back.
10351 2005-11-03 Jackson Harper <jackson@ximian.com>
10353 * TreeView.cs: Hookup the bits for drag and drop.
10354 * TreeNode.cs: Don't cache the tree_view or index anymore, now
10355 that nodes can be moved from tree to tree easily this just causes
10356 all sorts of problems.
10357 * TreeNodeCollection: Don't need to give treenodes an index and
10358 treeview anymore when they are added, these are computed on the
10359 fly. Also make sure to remove a node before its added.
10361 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
10364 - Added CaretSelection enum
10365 - Added comparison methods to Marker struct, makes selection code
10367 - Added SelectionStart and SelectionEnd as 'moveable' location for
10368 the CaretDirection enum and handler
10369 - Added selection_prev variable to track optimized invalidation for
10370 word and line selection
10371 - Added SelectionVisible property (returns true if there is a valid
10373 - Switched CaretHasFocus to only display the caret if there is no
10375 - Avoiding StringBuilder.ToString to retrieve a single char, instead
10376 using the direct character index; should be much faster
10377 - Added various conditional debug statements
10378 - Fixed invalidation calculation for selection ranges
10379 - Added ExpandSelection() method to support word and line selection
10380 - Switched SetSelectionToCaret to use new Marker compare overloads
10381 - Added central IsWordSeparator() method to determine word
10382 separators/whitespace and FindWordSeparator() to streamline common
10383 usage of IsWordSeparator()
10385 - Removed unneeded grabbed variable, it was just mirroring
10387 - No longer firing OnTextChanged event when Text setter is called,
10388 since the base will fire the event for us
10389 - Added handling of Ctrl-Up/Down selection
10390 - Added handling of Shift-Cursorkey selection
10391 - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
10393 - Added handling of Shift and Ctrl-Shift-Home/End selection
10394 - Removed some debug output
10395 - Added handling for single/double/tripple-click to place caret/
10396 select word/select line respectively (Fixes bug #76031)
10397 - Added support for drag expansion of word/line selection
10398 * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
10401 2005-11-02 Jackson Harper <jackson@ximian.com>
10403 * X11Dnd.cs: If the drag is going to and from a MWF window just
10404 copy the data instead of sending it out through the X Selection
10407 2005-11-02 Jackson Harper <jackson@ximian.com>
10410 * XplatUIX11.cs: When in a drag we don't want motion notify
10411 messages to get passed on to the other controls. This prevents
10412 mouse move messages from showing up in the drag source.
10414 2005-11-02 Jackson Harper <jackson@ximian.com>
10416 * X11Dnd.cs: Remove unneeded call to XAllowEvents. Make sure that
10417 the correct button is release to end a drag.
10418 * XplatUIX11.cs: Make the button state internal so the drag system
10419 can access it. Dragging needs to know about all button releases,
10420 not just left button.
10422 2005-11-02 Miguel de Icaza <miguel@novell.com>
10424 * Form.cs (Icon): If the icon is null, reset the icon to the
10427 * Cursor.cs: When writing the AND-mask bitmap do not include the
10428 number of colors, but hardcode those to two (black and white),
10429 fixes the loading of color cursors (Paint Dot Net).
10431 * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
10432 turn off autoscaling.
10434 * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
10436 2005-11-02 Jackson Harper <jackson@ximian.com>
10438 * X11Dnd.cs: Make sure to send a status message if the pointer
10439 enters a control that can not accept a drop, otherwise the cursor
10440 isn't updated correctly. Also tried to compress the lines of code
10443 2005-11-02 Jackson Harper <jackson@ximian.com>
10445 * X11Dnd.cs: Change cursors based on drag action. Also attempt to
10446 set actions correctly. This isn't perfect as XDND and win32 have
10447 some differences on how you allow actions. I'll clear this up by
10448 adding a path for drag from MWF to MWF windows.
10449 * XplatUIX11.cs: Hook into the dnd system.
10451 2005-11-02 Jordi Mas i Hernandez <jmas@softcatala.org>
10453 * ListView.cs: Fixes scroll bar visibility. Hide them if they were
10454 previously shown but they are no longer need it. Very obvious when
10455 browsing files with FileDialog.
10457 2005-11-01 Peter Dennis Bartok <pbartok@novell.com>
10459 * Control.cs: We always need to call OnPaintBackground. We pretty much
10460 ignore AllPaintingInWmPaint and always do the painting there, whether
10461 it's set or not, since we always ignore the WM_ERASEBKGND message
10462 (which we don't generate on X11). This fixes #76616.
10463 * Panel.cs: Removed unneeded background painting. This happens properly
10464 in Control.cs already
10466 2005-10-31 Mike Kestner <mkestner@novell.com>
10468 * Menu.cs: Add items to collection before setting their index.
10469 * MenuItem.cs : add range checking with ArgumentException like MS.
10472 2005-10-31 Jackson Harper <jackson@ximian.com>
10474 * ListBox.cs: Invalidate if the area is visible at all not just
10475 contained in the visible rect. Fixes unselection of semi visible
10478 2005-10-31 Jackson Harper <jackson@ximian.com>
10480 * Control.cs: Consistently name the dnd methods. Make them
10481 internal so we can override them to match some MS behavoir
10483 * Win32DnD.cs: Use the new consistent names.
10485 2005-10-31 Jackson Harper <jackson@ximian.com>
10487 * TreeView.cs: Don't draw the selected node when we lose focus.
10489 2005-10-31 Jackson Harper <jackson@ximian.com>
10491 * X11Dnd.cs: We still need to reset the state even though a full
10492 reset isn't being done, otherwise status's still get sent all over
10495 2005-10-31 Jackson Harper <jackson@ximian.com>
10497 * Control.cs: Make the dnd_aware flag internal so the dnd
10498 subsystem can check it. Catch exceptions thrown in dnd handlers to
10500 * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
10501 * X11Dnd.cs: Handle null data in the converters. Set the XDND
10502 version when sending a XdndEnter. Use the control/hwnd dnd_aware
10503 flags to reduce the number of dnd enters/status's sent.
10505 2005-10-31 Jackson Harper <jackson@ximian.com>
10507 * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
10509 2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com>
10511 * PictureBox.cs: Fixes 76512
10513 2005-10-28 Jackson Harper <jackson@ximian.com>
10515 * X11Dnd.cs: Early implementation to support winforms being a drag
10516 source for data on X11. Also restructured the converters so they
10517 can go both ways now.
10518 * XplatUIX11.cs: Tie ins to the the Dnd stuff.
10520 2005-10-27 Peter Dennis Bartok <pbartok@novell.com>
10522 * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
10525 2005-10-27 Jackson Harper <jackson@ximian.com>
10527 * TreeNode.cs: Implement serialization so my DnD examples will work.
10529 2005-10-24 Kornél Pál <kornelpal@hotmail.com>
10531 * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
10532 TreeView.cs: Don't dispose objects that are not owned.
10534 2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
10536 * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
10537 should retrieve the current cursor and report that, but XplatUI
10538 doesn't (yet) have an interface for that (and I'm not sure I even
10540 * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
10541 until any message loop processing is done (and the WM_SETCURSOR
10542 replaces the cursor to the proper one)
10544 - Fixed override behaviour, we can't set the cursor globally on X11,
10545 just for our windows.
10546 - Invalidating the System.Drawing X11 display handle when we are
10548 * Control.cs: Fix to make csc happy
10550 2005-10-23 Peter Dennis Bartok <pbartok@novell.com>
10553 - get_Text: Add last line (without trailing newline) to returned
10554 value (Fixes 76212)
10555 - get_TextLength: Count last line in returned length
10556 - ToString: Call Text property instead of duplicating code
10558 2005-10-23 Kornél Pál <kornelpal@hotmail.com>
10560 * ImageList.cs: Dispose ImageAttributes objects.
10562 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
10564 * ImageList.cs: Use attribute constructors with less arguments where
10567 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
10569 * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
10570 Use typeof instead of strings when assembly is referenced. Added
10571 some more comments.
10573 2005-10-21 Jackson Harper <jackson@ximian.com>
10575 * ListView.cs: Raise a double click event. Also tried to somewhat
10576 fix when the selectedindexchanged event is raised. Its still
10579 2005-10-21 Jackson Harper <jackson@ximian.com>
10581 * TreeView.cs: New method to invalidate the plus minus area of a
10582 node without invalidating the whole node (maybe this can be used
10583 in some more places).
10584 * TreeNodeCollection.cs: When adding to an empty node we need to
10585 invalidate its plus minus area so the little block shows up.
10587 2005-10-21 Jackson Harper <jackson@ximian.com>
10589 * TreeView.cs: Make sure that when we invalidate a node the bounds
10590 are big enough to cover the selected box and the focus
10591 rectangle. Use a different colour for the lines connecting nodes
10592 so they show up with all themes.
10594 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
10596 * NativeWindow.cs: Don't call anything that could call into the driver,
10597 we might be on a different thread.
10599 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
10601 * Control.cs(Dispose): Since Dispose might run on a different thread,
10602 make sure that we call methods that could call into the driver via
10603 invoke, to avoid thread issues
10605 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
10607 * XplatUI.cs: Removed finalizer
10608 * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
10609 not allowing to be called on the finalizer thread.
10611 2005-10-21 Kornél Pál <kornelpal@hotmail.com>
10614 - Reverted r51889 and r51891.
10615 - Added ImageListItem class that stores unmodified image items and image
10616 properties required to create list images until handle is created.
10617 - Added AddItem and moved image creation logic to AddItemInternal.
10618 - Added CreateHandle method that creates images based on unmodified items.
10619 - Added DestroyHandle that changes state to store unmodified items.
10620 - Add and AddStrip methods no more create handle.
10621 - ReduceColorDepth has no return value.
10622 - Dispose destroys handle.
10623 - Modified other methods to reflect the above changes.
10624 - Implemented key support.
10625 - Added profile 2.0 members and attributes.
10626 - Added private Reset and ShouldSerialize methods that provide the same
10627 behavior as MS.NET but the Visual Studio .NET designer seems to ignore
10628 them as they are private.
10629 - Added some more comments about implementation details.
10631 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
10633 * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
10635 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
10637 * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
10639 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
10641 * DataGridDrawingLogic.cs: Fixes column hit calcultation
10642 * DataGridColumnStyle.cs: Remove debug message
10644 2005-10-20 Jackson Harper <jackson@ximian.com>
10646 * TreeView.cs: We can always get input keys regardless of whether
10647 or not editing is enabled. They are used for navigation.
10649 2005-10-20 Jackson Harper <jackson@ximian.com>
10651 * TreeNode.cs: Use the viewport rect for determining if a node
10652 needs to be moved for visibility. Don't use Begin/End edit. This
10653 calls a full refresh when its done.
10654 * TreeView.cs: New SetBottom works correctly. Make the viewport
10655 rect property internal so the treenodes can see it. When clicking
10656 on a node we need to ensure that its visible because it might just
10657 be partly visible when clicked.
10659 2005-10-20 Jackson Harper <jackson@ximian.com>
10661 * TreeNodeCollection.cs: Remove debug code.
10663 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
10665 * Datagrid.cs: Implements column sorting in Datagrid
10666 * DataGridColumnStyle.cs: Implements column sorting in Datagrid
10668 2005-10-20 Jackson Harper <jackson@ximian.com>
10670 * TreeNodeCollection.cs: Remove items properly. Update the correct
10671 area after removing them.
10673 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
10675 * Datagrid.cs: Should not call base.OnPaintBackground
10677 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
10679 * XplatUIX11.cs (GetMessage):
10680 - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
10681 window instead of client window
10682 - Now properly calculates NC_xBUTTONUP message coordinates
10683 - ScreenToMenu now properly calculates it's coordinates of whole
10684 window, since menus are in the whole window, not in the client
10686 - Added WholeToScreen coordinate translation method
10688 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
10690 * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
10691 want to return a message, loop back to the beginning of the function
10692 and grab the next real message to process instead.
10694 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
10696 * Splitter.cs: Properly set limits if no filler control is used
10698 2005-10-19 Jackson Harper <jackson@ximian.com>
10700 * ColorDialog.cs: Don't show the help button if it is not enabled
10701 instead of disabling it (this is what MS does). Don't create the
10702 panel until the dialog is run, otherwise the vars (such as
10703 ShowHelp) are not set yet.
10705 2005-10-19 Jackson Harper <jackson@ximian.com>
10707 * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
10708 are reduced when adding nodes.
10710 * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
10713 2005-10-19 Jackson Harper <jackson@ximian.com>
10715 * FolderBrowserDialog.cs: End editing our treeview so the window
10716 actually gets refreshed.
10718 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
10720 * Control.cs: Fixed logic flip on when to call OnPaintBackground.
10721 Obsoleted handling of WM_ERASEBKGND, now always draws our background
10724 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
10726 * MenuAPI.cs: Returns after Hidding window
10727 * XplatUIX11.cs: Added TODO found while debugging menu issues
10729 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
10731 * XplatUIX11.cs: Do not re-map the whole window when it's size
10732 becomes non-zero unless it's supposed to be actually visible
10734 2005-10-18 Jackson Harper <jackson@ximian.com>
10736 * TreeView.cs: We don't need to keep a count anymore.
10737 * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
10738 use the Grow method.
10740 2005-10-18 Jackson Harper <jackson@ximian.com>
10742 * TreeNodeCollection.cs: Insert is not supported on arrays, so
10743 implement it manually here.
10745 2005-10-18 Jackson Harper <jackson@ximian.com>
10747 * ImageList.cs: Dont kill the list when the colour depth is
10748 changed, just change the colour depth of all the images.
10749 - Same goes for setting the image size. Just resize them all
10750 instead of killing the list softly.
10752 2005-10-18 Jackson Harper <jackson@ximian.com>
10754 * Control.cs: Don't invalidate empty rectangles.
10756 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
10759 - Adds checked item to the Checked/Item lists (where empty before)
10760 - Do not add items to the Selected lists if they are already present
10762 - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
10763 - When deleting items make sure that we delete them for the Selected
10764 and Checked list also.
10766 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
10768 * Label.cs: Dispose objects no longer used
10769 * ThemeWin32Classic.cs: Dispose objects no longer used
10771 2005-10-18 Jackson Harper <jackson@ximian.com>
10773 * TabControl.cs: Don't refresh the whole control when the tabs are
10774 scrolled, we just need to refresh the tab area.
10776 2005-10-17 Jackson Harper <jackson@ximian.com>
10778 * XplatUIX11.cs: Compress code a little bit. Only calculate the
10779 after handle when we need it.
10781 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
10783 * Control.cs: When the parent size changes, recalculate anchor
10784 positions. Partial fix for #76462
10786 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
10788 * ThemeWin32Classic.cs: Make sure the picturebox has it's background
10789 drawn. Fixes #76462
10791 2005-10-17 Jackson Harper <jackson@ximian.com>
10793 * MonthCalendar.cs: Don't create the numeric up down until our
10794 handle is created. Otherwise our handle is created in the
10795 constructor and we don't know if we are a WS_CHILD or WS_POPUP
10798 2005-10-17 Jackson Harper <jackson@ximian.com>
10800 * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
10803 2005-10-17 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
10804 * TreeNode.cs : small logical fix (was using local var instead of field)
10806 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
10808 * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
10810 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
10812 * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
10814 2005-10-16 Peter Dennis Bartok <pbartok@novell.com>
10817 - Re-implemented anchoring code. My first version was really broken.
10818 This fixes bug #76033. Unlike the previous implementation we will
10819 no longer have round errors since all numbers are calculated from
10820 scratch every time. Removed various anchor-related obsolete vars.
10821 - InitLayout no longer causes layout event firing and layout to be
10824 2005-10-16 Jackson Harper <jackson@ximian.com>
10826 * Hwnd.cs: Compute invalid area correctly (fixes my last commit
10829 2005-10-16 Jackson Harper <jackson@ximian.com>
10831 * TabControl.cs: Remove debug code.
10833 2005-10-16 Jackson Harper <jackson@ximian.com>
10835 * XEventQueue.cs: Increase the default queue size (very simple
10836 apps needed to grow the queue).
10837 * Hwnd.cs: No finalizer so we don't need to suppress
10838 finalization. Compute the invalid area manually so a new rectangle
10839 does not newto be created.
10840 * ScrollableControl.cs: Don't set any params (otherwise visibility
10841 isn't set correctly).
10842 * MdiChildContext.cs: New constructor takes the mdi parent so it
10843 doesn't have to be computed and avoids a crash on windows. Draw
10844 the window icon properly, and allow the text to be seen.
10845 * Form.cs: Use new MdiChildContext constructor. Make sure the
10846 child context isn't null in wndproc.
10847 * TabControl.cs: Don't set focus, this is muddling keyboard
10848 behavoir. Expand the tab rows when a window size increase will
10849 allow extra tabs to be seen. Don't allow tabs smaller than the
10850 width of a window to be scrolled out of view.
10852 * TreeView.cs: Use measure string to calculate a nodes width, the
10853 width is cached and only updated when the text or the font is
10854 changed. Don't check for expand/collapse clicks on the first level
10855 nodes if root lines are disabled.
10857 2005-10-16 Ritvik Mayank <mritvik@novell.com>
10859 * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
10861 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
10863 * DataGridBoolColumn.cs: fixes warning
10865 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
10867 * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
10868 to match more to match more precisely the MS Net behavior
10870 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
10872 * Hwnd.cs: Added field to track if window is mapped
10874 - Unmap windows if they become 0-size, re-map when
10875 they are >0 again; fixes #76035
10876 - Re-set our error handler after initializing X11Desktop
10877 to override any error handlers Gtk or whatever was called
10880 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
10882 * CheckedListBox.cs: Removed unused vars
10883 * ListView.cs: Fixed signatures
10884 * RichTextBox.cs: Removed unused vars
10885 * TextBoxBase.cs: Removed unused vars
10886 * XplatUIWin32.cs: Removed unused vars
10887 * XplatUIX11.cs: Removed unused vars
10888 * XplatUI.cs: Updated version and date to latest published
10890 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
10892 * Cursor.cs: Added private .ctor to work around a bug in
10893 resourceset (Thanks to Geoff Norton for the help on this)
10894 * SplitterEventArgs.cs: Made fields accessible so we don't
10895 waste boatloads of objects and can reuse the same one
10897 * XplatUIWin32.cs(DrawReversibleLine): Now also considers
10898 any captions and borders when generating screen coordinates
10899 * Splitter.cs: Reimplemented control, now fully complete, uses
10900 rubberband drawing, supports and obeys all properties, has
10903 2005-10-13 Miguel de Icaza <miguel@novell.com>
10905 * Form.cs (Form): Setup default values for autoscale and
10906 autoscale_base_size; Make these instance variables, not static
10909 (OnLoad): on the first load, adjust the size of the form.
10911 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
10913 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added
10914 width argument to DrawReversibleRectangle()
10915 * XplatUIWin32.cs, XplatUIX11.cs:
10916 - Implemented width for DrawReversibleRectangle()
10917 - Added logic to DrawReversibleRectangle that recognizes a zero
10918 width or height and only draws a line in that situation
10920 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
10922 * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
10923 * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
10924 * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
10925 method (it uses our FosterParent window to get a graphics context)
10927 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
10929 * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground
10930 and SetWindowBackground methods
10932 - Setting proper ControlStyles
10933 - We no longer call XplatUI.SetWindowBackground and XplatUI.
10934 EraseWindowBackground, instead we draw the window background
10935 ourselves in PaintControlBackground. This behaviour is
10936 required to match MS, where, when OnPaintBackground is not
10937 called, the background is not drawn.
10938 - Removed unneeded Refresh() in set_Text
10939 * Hwnd.cs: Dropped the ErasePending support. No longer needed
10941 - Created DeriveStyles method to translate from CreateParams to
10942 FormBorderStyle and TitleStyle, also handles BorderStyle (which
10943 matches FormBorderStyle enum values)
10944 - Consolidated SetHwndStyles and CalculateWindowRect border/title
10945 style calculations into single DeriveStyles method
10946 - Fixed CreateWindow to (finally) use Gravity. This prevents X11
10947 from redrawing the whole window on any resize or expose.
10948 - Fixed CreateWindow usage of SetWindowValuemask. Before not
10949 all styles were applied to our whole/client window appropriately
10950 - Removed EraseWindowBackground() and SetWindowBackground() methods
10951 - Removed handling of WM_ERASEBKGND message from DefWndProc, we
10952 no longer clear/redraw the background through X
10953 - Removed handling of erase_pending bit, we have no use for it (or
10956 - Removed generation and handling of WM_ERASEBKGND message
10957 - Removed EraseWindowBackground() and SetWindowBackground() methods
10958 - Removed handling of hwnd.ErasePending flag
10960 - Removed EraseWindowBackground() and SetWindowBackground() methods
10961 - We no longer call EraseWindowBackground on PaintEventStart, we
10962 ignore the fErase flag, erasing is handled in Control in the
10964 * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
10965 LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
10966 TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs,
10967 CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs,
10968 DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs,
10969 TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
10970 DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
10972 2005-10-12 Jonathan Chambers <jonathan.chambers@ansys.com>
10974 * PropertyGrids.cs: Get sub properties
10975 * PropertyGridView.cs: Fix drawing code
10977 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
10979 * ListBox.cs: Fixes 76383
10981 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
10983 * DataGridTextBoxColumn.cs: Sets location and size before attachment
10984 * ThemeWin32Classic.cs: Fixes border drawing and calculations
10985 * DataGridDrawingLogic.cs: Fixes border drawing and calculations
10988 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
10990 * ComboBox.cs: Fixes border drawing
10992 2005-10-10 Miguel de Icaza <miguel@novell.com>
10994 * MimeIcon.cs: Ignore errors if the file can not be read.
10996 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
10998 * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
10999 - Fixed border calculations
11000 - Fixed horizontal scrolling in single column listboxes
11001 - Fixed drawing issues
11003 2005-10-10 Peter Dennis Bartok <pbartok@novell.com>
11005 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to
11006 FormBorderStyle enum
11007 * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added
11008 code to determine FormBorderStyles from CreateParams
11010 - Fixed bug where we'd set the wrong window styles if we were
11011 not creating an MDI window
11012 - Added call to XplatUI.SetBorderStyle when form borders are set
11013 * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
11015 - Removed obsolete edge style
11016 - Switched from BorderStyle to FormBorderStyle
11018 2005-10-10 Jackson Harper <jackson@ximian.com>
11020 * Form.cs: Use the property to get the window handle instead of
11021 accessing it directly. Prevents a null reference exception.
11023 2005-10-10 Jackson Harper <jackson@ximian.com>
11025 * TreeView.cs: Don't adjust the rect given to DrawString now that
11026 our libgdiplus draws correctly.
11028 2005-10-08 Jackson Harper <jackson@ximian.com>
11030 * TreeView.cs: Don't try to find the clicked on node if there are
11031 no nodes in the tree.
11033 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
11039 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
11041 * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
11042 ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
11044 Use ResPool for brushes and dispose System.Drawing objects that
11045 are not used anymore.
11047 2005-10-07 Jackson Harper <jackson@ximian.com>
11049 * MdiChildContext.cs: Use the new borders instead of drawing them
11052 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
11054 * Calling UpdateBounds after changing the window's BorderStyle
11055 since the style can change the ClientSize
11057 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
11059 * Control.cs: Made PaintControlBackground virtual
11060 * Panel.cs: Overriding PaintControlBackground instead of using paint
11061 event; paint event method was interfering with 'real' users of the
11064 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
11066 * ThemeWin32Classic.cs: remove border drawing since it is handled
11067 by the base control class now and was causing double border drawing.
11069 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
11071 * Panel.cs: Redraw our background on paint. Not a pretty solution,
11072 but it does seem to match MS behaviour. This fixes bug #75324
11074 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
11076 * XplatUIX11.cs: A better DrawReversibleRectangle version, however
11077 somewhat hackish looking
11079 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
11082 - We now accept Enter even if AcceptEnter is false, if the containing
11083 form does not have an AcceptButton configured (fixes bug #76355)
11084 - Calculations are now fixed to no longer use Width/Height, but
11085 ClientSize.Width/Height, since we now support borders (this was
11086 a result of fixing borders and therefore bug #76166)
11087 - We no longer show the horizontal scrollbar if TextBox.WordWrap is
11088 true (fixes bug #76354)
11090 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
11093 - Defaulting BorderStyle and setting it in XplatUI when our window
11095 - Added enum check to InternalBorderStyle setter
11097 - Added drawing of window borders
11098 - Now properly calculates WM decorations offset for toplevel
11099 windows (fixes bug #74763)
11101 - Implemented BorderStyles for windows (we're letting win32 draw
11103 - Fixed the signature for SetWindowLong
11104 * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
11105 ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for
11107 * UpDownBase.cs: Remove drawing of borders, this is handled by
11108 the driver, outside the client area
11109 * ListView.cs: Removed bogus border calculations. The control should
11110 be oblivious to borders, since those are not part of the client
11112 * X11DesktopColors.cs: Commented out (currently) unneeded variables
11113 * ThemeWin32Classic.cs: Removed border calculations from ListView
11116 2005-10-06 Jackson Harper <jackson@ximian.com>
11118 * MdiChildContext.cs: Clear out the old virtual position remove
11119 all the unneeded calls to CreateGraphics.
11121 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
11123 * TextControl.cs: Use proper color for highlighted text; fixes #76350
11125 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
11128 - Added loading and setting of our new default icon
11129 - Only set icon if window is already created
11131 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
11134 - Do not explicitly set the foreground and background colors, to
11135 allow inheriting from parents (fixes #76302)
11136 - Use Control's InternalBorderStyle property to deal with borders
11138 2005-10-06 Jackson Harper <jackson@ximian.com>
11140 * MdiChildContext.cs: Use the new xplatui function to draw a
11143 2005-10-06 Jackson Harper <jackson@ximian.com>
11145 * Form.cs: Add the parent before creating the child context cause
11146 we need the parent when setting up the child.
11148 2005-10-06 Jackson Harper <jackson@ximian.com>
11150 * FolderBrowserDialog.cs: redo the tree population code so a
11151 second thread isn't used. Should be a lot faster and more stable
11154 2005-10-05 Jackson Harper <jackson@ximian.com>
11156 * TreeView.cs: There are no expand/collapse boxes if the node has
11159 2005-10-05 Jackson Harper <jackson@ximian.com>
11161 * X11DesktopColors.cs: Get menu colours for the gtk theme.
11163 2005-10-05 Alexander Olk <alex.olk@googlemail.com>
11165 * FileDialog.cs: Fix InitialDirectory
11167 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
11170 - Fixes changing between styles
11171 - Fixes simple mode
11172 - Fixes last item crashing when navigating with keyboard
11174 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
11176 * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
11178 2005-10-05 Jackson Harper <jackson@ximian.com>
11180 * TreeView.cs: If updating the root node do a full refresh.
11181 * TreeNode.cs: The root node should be expanded by default. Also
11182 added a utility prop to tell if we are the root node.
11183 * TreeNodeCollection.cs: Only refresh if the node we are being
11184 added to is expanded. Also added a comment on a potential
11187 2005-10-04 Peter Dennis Bartok <pbartok@novell.com>
11189 * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize()
11190 in dispose method. Fixes #76330
11192 2005-10-04 Jordi Mas i Hernandez <jordi@ximian.com>
11194 * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
11196 - Implements vertical and horizontal scrolling using XplatUI
11197 - Fixes keyboard navagation
11198 - Fixes EnsureVisible
11200 - Handles and draws focus properly
11203 2005-10-04 Kornél Pál <kornelpal@hotmail.com>
11205 * ImageList.cs: Use upper case initials for internal fields. ImageStream:
11206 Create handle. NET_2_0: Destroy handle when value is null.
11208 2005-10-03 Jackson Harper <jackson@ximian.com>
11210 * ScrollBar.cs: My last scrollbar patch was broken. This is a
11211 revert and a new patch to prevent the thumb from refreshing so
11214 2005-10-02 Jackson Harper <jackson@ximian.com>
11216 * ScrollBar.cs: Don't update position if it hasn't actually
11217 changed. This occurs when you hold down the increment/decrement
11218 buttons and the thumb gets to the max/min.
11220 2005-10-01 Jackson Harper <jackson@ximian.com>
11223 * MdiChildContext.cs:
11224 * MdiClient.cs: Implement ActiveMdiChild in Form.
11226 2005-10-01 Jordi Mas i Hernandez <jordi@ximian.com>
11228 * ComboBox.cs: Include ComboBoxEdit flag for the edit item
11230 2005-10-01 Peter Dennis Bartok <pbartok@novell.com>
11232 * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
11235 2005-09-30 Jackson Harper <jackson@ximian.com>
11237 * ListBox.cs: Don't do a full refresh unless some data has
11240 2005-09-30 Jackson Harper <jackson@ximian.com>
11242 * TreeView.cs: Make sure that the checkboxes size is factored in
11243 even when not visible.
11245 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
11247 * FileDialog.cs: Fix Jordi's build break
11249 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
11252 - Use standard the Windows colours for the combobox as espected
11253 - Dispose objects that use resouces when no longer need them
11255 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
11257 * X11DesktopColors.cs: Initial incomplete implementation
11258 * XplatUIX11.cs: Added call to initialize X11DesktopColors
11260 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
11263 - Switched Theme color names to match the names defined in
11264 System.Drawing.KnownColors. Life's hard enough, no need to make
11266 - Added setters to all theme color properties so themes can set
11267 their color schemes. The setters also propagate the color changes
11268 to System.Drawing.KnownColors via reflection
11269 * ControlPaint.cs, Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
11270 ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
11271 DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
11272 use the new, more logical theme color names
11273 * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
11275 * ThemeWin32Classic.cs:
11276 - Removed code to set the old classic Windows colors. Instead it
11277 now relies on the colors returned by System.Drawing.KnownColors
11278 which will be either modern static colors (Unix) or colors
11279 read from the user's configuration (Win32)
11280 - Updated to use the new, more logical theme color names
11281 - Switched DataGrid drawing code to use only Theme colors instead of
11282 a mix of System.Drawing.KnownColors and Theme colors
11283 - DrawFrameControl(): Removed code that fills the button area, the
11284 fill would overwrite any previous fill done by a control. This
11286 - Added DrawReversibleRectangle() stub
11287 * ScrollableControl.cs: Set visible state to false when scrollbars
11288 are removed (pdn fix)
11289 * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added
11290 DrawReversibleRectangle() method to allow drawing primitive
11292 * XplatUIX11.cs: Implemented DrawReversibleRectangle()
11294 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
11296 * ImageList.cs: Add(Icon): Create handle.
11298 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
11301 * ThemeWin32Classic.cs:
11302 - Fixes detail mode
11304 - Issues with drawing
11306 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
11308 * ImageList.cs: Moved RecreateHandle back to ImageList as event
11309 source has to be the ImageList.
11311 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
11313 * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
11315 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
11317 * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
11319 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
11321 * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
11323 2005-09-29 Jonathan Chambers <jonathan.chambers@ansys.com>
11324 * GridItem.cs: Fixed TODOs
11325 * GridItemCollection.cs: Added ICollection interface
11327 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
11329 * ImageList.cs: Resize icons when needed.
11331 2005-09-29 Jordi Mas i Hernandez <jordi@ximian.com>
11334 - Fixes GetBounds and returns on screen rects
11336 - Fixes vertical and horzintal scrolling of items
11337 * ThemeWin32Classic.cs:
11340 2005-09-29 Raja R Harinath <harinath@gmail.com>
11342 * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
11344 2005-09-29 Kornél Pál <kornelpal@hotmail.com>
11346 * ImageList.cs: Added comments about handle creation. Moved Handle,
11347 HandleCreated and OnRecreateHandle implementations to ImageCollection.
11348 Handle is created in Add methods.
11350 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
11352 * DataGridDrawingLogic.cs:
11353 - Takes rows into account on Colum calculations
11354 - Returns the column when clickig
11356 - Fixes default HitTestInfo values
11357 - Fixes HitTestInfo.ToString
11358 - Fixes ResetBackColor
11360 2005-09-28 Jackson Harper <jackson@ximian.com>
11362 * MdiChildContext.cs: Obey rules for fixed sized windows (no
11363 sizing or cursor changes). Also added some temp code to draw the
11364 titlebars text (Makes dev a little easier).
11366 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
11368 * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
11370 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
11372 * ListBox.cs: Fixes bug 76253
11374 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
11376 * ImageList.cs: Added comments about the current implementation. Added
11377 ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
11378 Format32bppArgb to preserve transparency and can use Graphics.FromImage
11379 while using the specified ColorDepth. ReduceColorDepth uses unsafe code
11380 with Bitmap.LockBits for better performance. Revised the whole file to
11381 match MS.NET behaviour and provide better performance. Non-public
11382 interface members are calling public members even when they throw
11383 NotSupportedException for better maintainability. Moved ColorDepth,
11384 ImageSize, ImageStream and TransparentColor implementations to
11385 ImageCollection for better performance as these properties are not used
11387 * ImageListStreamer.cs: Added a new internal constructor that takes an
11388 ImageList.ImageCollection and serializes Images based on
11389 ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
11390 match ImageList property name.
11392 2005-09-28 Kazuki Oikawa <kazuki@panicode.com>
11394 * ListBox.cs: Fixes IndexFromPoint for last item
11396 2005-09-27 Jackson Harper <jackson@ximian.com>
11398 * Form.cs: Set the position of new mdi children correctly.
11400 2005-09-27 Jackson Harper <jackson@ximian.com>
11402 * MdiClient.cs: New mdi children need to be added to the back of
11403 the controls collection so the zorder is set correctly. Also add a
11404 count of all the child windows that have been created.
11406 2005-09-27 Jackson Harper <jackson@ximian.com>
11408 * Form.cs (CreateParams): Setup MDI forms correctly.
11410 2005-09-27 Jackson Harper <jackson@ximian.com>
11412 * MdiChildContext.cs:
11413 * MonthCalendar.cs:
11419 * ScrollableControl.cs:
11420 * ComboBox.cs: Add implicit controls using the new implict control
11421 functionality in ControlCollection. Also try to block multiple
11422 control add in a suspend/resume layout to save some cycles.
11424 2005-09-27 Jackson Harper <jackson@ximian.com>
11426 * Control.cs: Add functionality to the controls collection to add
11427 'implicit controls' these are controls that are created by the
11428 containing control but should not be exposed to the user. Such as
11429 scrollbars in the treeview.
11430 * Form.cs: The list var of the ControlsCollection is no longer
11431 available because of the potential of implicit controls getting
11432 ignored by someone accessing the list directly.
11434 2005-09-26 Peter Dennis Bartok <pbartok@novell.com>
11436 * Control.cs: Fixed SetChildIndex; it no longer causes a child to
11437 loose it's parent. (Fixed bug introduced in r49103 when we added
11438 setting the child parent to null on Remove)
11440 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
11442 * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
11443 * Splitter.cs: Added missing attributes for BorderStyle property.
11444 * TextBoxBase.cs: Marked Calculate* methods internal.
11445 * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
11448 2005-09-26 Jordi Mas i Hernandez <jordi@ximian.com>
11450 * ListBox.cs: Fixes navigation to the last item in multicolumn lists
11452 2005-09-25 Jackson Harper <jackson@ximian.com>
11454 * TreeView.cs: Update the node bounds correctly regardless of
11455 whether the node is visible.
11457 2005-09-25 Jackson Harper <jackson@ximian.com>
11459 * ImageList.cs: Don't dispose the image after it is added to the
11460 image list. Only reformat images that need to be resized.
11462 2005-09-25 Jackson Harper <jackson@ximian.com>
11464 * ImageList.cs: Don't set the format when changing the image.
11466 2005-09-25 Jackson Harper <jackson@ximian.com>
11468 * TreeView.cs: We can't just assume the node has a font. Use the
11469 treeviews font if no node font is available.
11471 2005-09-25 Jackson Harper <jackson@ximian.com>
11473 * TreeView.cs: Allow the scrollbars to be reset with negative
11475 - Don't add scrollbars to negative sized windows.
11477 2005-09-23 Jackson Harper <jackson@ximian.com>
11479 * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
11480 old Mono.Posix. Also remove some stray code that shouldn't have
11483 2005-09-23 Jackson Harper <jackson@ximian.com>
11485 * TreeView.cs: Attempt at proper sizing of the horizontal
11486 scrollbar. Also don't resize the scrollbars unless they are
11489 2005-09-23 Jackson Harper <jackson@ximian.com>
11491 * TreeView.cs: We don't need to expand the invalid area when the
11492 selection changes, as this is all drawn in the node's bounding
11493 box. The area needs to be expanded (previous typo was contracting
11494 it) when the focus rect moves.
11496 2005-09-23 Jackson Harper <jackson@ximian.com>
11498 * TreeView.cs: Display the selection box under the correct
11499 circumstances. We were rendering white text with no selection box
11502 2005-09-23 Peter Dennis Bartok <pbartok@novell.com>
11504 * TextControl.cs(Split): Now updates selection start/end if it points
11505 into a line that's being split. Fixes a FIXME and bug #75258
11507 2005-09-23 Jackson Harper <jackson@ximian.com>
11510 * ListControl.cs: Don't use the path when retrieving binding
11511 managers from the binding context. My bat sense tells me that the
11512 path is only used on insertion.
11514 2005-09-22 Jackson Harper <jackson@ximian.com>
11516 * Splitter.cs: Set the cursor an easier way. (Thanks peter).
11518 2005-09-22 Jackson Harper <jackson@ximian.com>
11520 * Splitter.cs: There are special cursors used for splitting.
11521 * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
11523 2005-09-22 Jackson Harper <jackson@ximian.com>
11525 * Splitter.cs: Change the cursor appropriately when the splitter
11526 is moused over, so the user actually knows there is a splitter
11529 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
11531 * Label.cs : Fix ToString method to give same output as MS.NET
11533 2005-09-22 Jackson Harper <jackson@ximian.com>
11535 * TreeView.cs: Create the scrollbars when the handle is created
11536 and add them right away, just make them invisble. Also account for
11537 the window being shrunk vertically to the point that the vert
11538 scrollbar needs to be added.
11539 - Remove some 0.5 adjustments to get around anti aliasing issues.
11541 2005-09-22 Jordi Mas i Hernandez <jordi@ximian.com>
11543 * MainMenu.cs: Fixes default value
11544 * MenuItem.cs: Fixes default value
11546 2005-09-22 Kazuki Oikawa <kazuki@panicode.com>
11548 * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
11550 2005-09-21 Jackson Harper <jackson@ximian.com>
11552 * Control.cs: Don't try to set the border style on the window if
11553 it hasn't been created. When the window is created the border
11554 style will be used.
11556 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
11558 * Control.cs (Update): Don't call XplatUI if we don't have a
11561 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
11563 * ContainerControl.cs: Instead of throwing an exception, print
11564 a one-time warning about Validate not being implemented
11565 * XplatUIWin32.cs: Removed debug output
11567 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
11569 * Control.cs: Only set XplatUI background if we expect the windowing
11570 system to handle the background. This stops controls that draw their
11571 own background from flickering
11573 * XplatUIX11.cs: Support custom visuals and colormaps for window
11574 creation. This allows, amongst other things, using MWF X11 windows
11577 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
11579 * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
11580 CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
11581 GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
11582 SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
11583 TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
11584 IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
11585 KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
11586 RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
11587 ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
11588 ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
11589 GridColumnStylesCollection.cs,
11590 IDataGridColumnStyleEditingNotificationService.cs,
11591 PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
11592 MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
11593 GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs,
11594 TreeNodeCollection.cs, AmbientProperties.cs,
11595 RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
11596 DataObject.cs, ErrorProvider.cs, Splitter.cs,
11597 DataGridLineStyle.cs, Shortcut.cs, Control.cs,
11598 FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
11599 BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
11600 IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
11601 FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
11602 IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
11603 NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
11604 PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
11605 SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
11606 FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
11607 DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
11608 ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
11609 RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
11610 MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
11611 ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
11612 CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
11613 MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
11614 NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
11615 ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
11616 SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
11617 Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
11618 RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
11619 DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
11620 ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
11621 PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
11622 DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
11623 ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
11624 AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
11625 RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
11626 CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
11627 SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
11628 Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
11629 SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
11630 ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
11631 TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
11633 2005-09-21 Jackson Harper <jackson@ximian.com>
11635 * TreeNode.cs: Call Before/After Expand not Collapse when
11638 2005-09-20 Jackson Harper <jackson@ximian.com>
11640 * XplatUIX11.cs: Use the more hand looking hand (in most themes).
11642 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
11646 - Fixes proper storing of subitems
11647 - Fixes not updated items
11649 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
11651 * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
11652 things if our window handle isn't created yet. Also disabled
11653 debug for TextBoxBase
11655 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
11657 * MenuAPI.cs: Remove filtering of events to allow menu usage
11659 2005-09-20 Miguel de Icaza <miguel@novell.com>
11661 * Cursor.cs: Allow null to be passed to Cursor.Current.
11663 2005-09-20 Alexander Olk <alex.olk@googlemail.com>
11665 * ThemeWin32Classic.cs:
11666 - Change some private methods/fields to protected virtual so that
11667 they can be accessed and overriden in derived classes
11668 - First refactoring of some methods. Derived themes now don't
11669 need to duplicate the complete code from ThemeWin32Classic
11671 - Added nice StatusBar
11672 - Derive from ThemeWin32Classic and not Theme
11673 - Removed duplicate ThemeWin32Classic code
11675 2005-09-20 Miguel de Icaza <miguel@novell.com>
11677 * Control.cs (ControlCollection.Add): If the value null is passed
11678 the control is ignored.
11680 Optimize this loop.
11682 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
11684 * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
11685 PostQuitMessage state.
11686 * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
11688 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
11690 * Application.cs: Our constructor will never get called, move
11691 initialization to fields; fixes bug #75933
11693 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
11696 - Allow files to be selected properly using file name
11698 - Add ability to change diretory (absolute / relative)
11699 using file name combo box.
11701 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
11704 - Fixes Multicolumn listboxes item wrong calculations
11705 - Allows to click when only one item is in the listbox
11706 - Fixes crash when no items using keyboard navigation
11708 2005-09-16 Alexander Olk <alex.olk@googlemail.com>
11710 * ComboBox.cs: Reverted almost everything from the latest patch which
11713 2005-09-16 Kazuki Oikawa <kazuki@panicode.com>
11716 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
11718 - When DropDownStyle is Simple, it does not show scrollbar
11719 to the last item of the list.
11720 - When DropDownStyle is Simple, it crashed when the list was
11721 scrolled down with the down cursor key.
11722 - Fixed a bug that when DropDownStyle is DropDownList, the
11723 selected item was not shown.
11724 - The position of the selected item was not preserved when
11725 the next dropdown happened.
11726 * ThemeWin32Classic.cs:
11727 - Items were wrapped at the right end.
11728 * CheckedListBox.cs:
11731 - Items should be fully shown.
11732 - When resizing and vertical scrollbar disappeared, the item
11733 of index 0 should be on the top of the list.
11734 - GetItemRectangle should consider the size of ver. scrollbar
11736 - SizingGrip area should not be allocated when it is not
11738 - Now it reflects MinWidth of the containing panel and
11739 fixed a crash that happens when its width becomes so small.
11741 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
11743 * CheckedListBox.cs: Fixes bug 76028
11744 * ListBox.cs: Fixes bug 76028
11746 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
11748 * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
11749 * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
11751 2005-09-12 Jordi Mas i Hernandez <jordi@ximian.com>
11753 * XplatUIX11.cs: fixes System.NullReferenceException in some situations
11755 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
11757 * IRootGridEntry.cs: Changed namespace to PropertyGridInternal
11759 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
11761 * IRootGridEntry.cs: Added
11762 * PropertyGridCommands.cs: Added
11763 * PropertiesTab.cs: Added missing methods and property
11764 * PropertyGridView.cs: Made class internal
11765 * PropertyGridTextBox.cs: Made class internal
11767 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
11769 * MimeIcon.cs: Try to check some other environment variables
11770 if "DESKTOP_SESSION" returns "default"
11772 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
11774 * ThemeNice.cs: Corrected background colors (e.g. menus)
11775 * ColorDialog.cs: Use correct background colors for controls
11777 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
11779 * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
11781 2005-09-08 Peter Dennis Bartok <pbartok@novell.com>
11783 * RichTextBox.cs: Added initial implementation
11784 * lang.cs: Removed. Was accidentally checked in long time ago
11785 * TODO: Removed. Contents were obsolete
11787 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
11789 * PropertiesTab.cs : Added
11791 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
11793 * PropertyGrid.cs : Update
11794 * PropertyGridView.cs : Update
11795 * System.Windows.Forms.resx : Added images and strings
11797 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
11799 * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
11801 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
11803 * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
11804 a busy loop right after the Ungrab the X11 display is otherwise
11807 2005-09-06 Jordi Mas i Hernandez <jordi@ximian.com>
11809 * ThemeWin32Classic.cs: Optimise the use of clipping
11811 2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com>
11813 * DataGrid.cs: fixes recursion bug
11815 2005-09-03 Alexander Olk <alex.olk@googlemail.com>
11818 - Draw RadioButton and CheckBox Buttons with DrawButtonBase
11821 2005-09-02 Alexander Olk <alex.olk@googlemail.com>
11823 * ThemeNice.cs: Draw nice ProgressBars
11825 2005-09-01 Miguel de Icaza <miguel@novell.com>
11827 * VScrollBar.cs: Another buglet found by Aaron's tool.
11829 * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
11832 2005-08-30 Alexander Olk <alex.olk@googlemail.com>
11835 - Added nicer menu drawing
11839 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
11841 * CreateParams.cs (ToString): Made output match MS
11842 * Control.cs (Text): Don't set Text or Focus via XplatUI unless
11843 handle is already created (to avoid forcing window creation)
11844 * XplatUIX11.cs: Set window text to caption after creating window,
11845 in case Text was set before window was created
11846 * Form.cs: Use this.Text instead of a static string as caption
11848 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
11850 * NotifyIcon.cs: Don't set the window to visible; this screws
11851 up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
11852 OnPaint without a bitmap)
11853 * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't
11854 happen very often anyway; we could add the check to the WM_PAINT
11855 event generation code
11857 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
11859 * NotifyIcon.cs: Fill the icon area with a background color, to
11860 avoid 'residue' when transparent icons are drawn
11862 - Handle whole_window == client_window when destroying windows
11863 - SystrayAdd(): Set client_window to whole_window value to
11864 get mouse and other events passed to NotifyIcon
11866 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
11868 * Form.cs: Set proper default for Opacity property
11870 - ShowSystray(): Don't bother creating telling the OS
11871 about the systray item if no icon is provided
11872 - Now handles WM_NCPAINT message to deal with whole/client window
11874 - Create window as visible to not get caught by Expose optimization
11875 * Hwnd.cs: Removed debug message
11876 * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
11877 StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched
11878 PaintEventStart/End to use new client argument
11880 - Commented out debug messages
11881 - Switched PaintEventStart/End to use new client argument
11882 * XplatUI.cs: Added client window bool to PaintEventStart()/
11883 PaintEventEnd() calls, to support drawing in non-client areas
11884 * XplatUIDriver.cs:
11885 - Added client window bool to PaintEventStart()/PaintEventEnd()
11886 calls, to support drawing in non-client areas
11887 - Added conditional compile to allow using MWF BeginInvoke
11890 - Added some conditional debug output
11891 - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
11892 whole/client window split
11893 - Implemented handling of client argument to PaintEventStart()/End()
11895 - Throw exception if BeginInvoke() is called and the window handle
11896 or one of the window's parent handles is not created
11897 - Added conditional compile to allow using MWF BeginInvoke on
11899 - get_Parent(): Only sets parent if handle is created. This avoids
11900 forcing window handle creation when parent is set.
11901 - Now fires Layout and Parent changed events in proper order
11902 - Switched to use Handle instead of window.Handle for Z-Order setting,
11903 the get_Parent() patch above causes us to possibly get null for 'window'
11904 - Implemented handling of client argument to PaintEventStart()/End()
11905 - Now reports back to windows that WM_SETCURSOR was handled (to avoid
11907 - Now sends a Refresh() to all child windows when Refresh() is called
11909 2005-08-29 Peter Dennis Bartok <pbartok@novell.com>
11911 * Form.cs: Added (non-functional) Opacity property
11912 * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
11914 2005-08-29 Alexander Olk <xenomorph2@onlinehome.de>
11915 * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
11916 use export MONO_THEME=nice to activate it.
11917 Currently supported controls:
11921 - TabControl (TabAlignment.Top only, other will follow)
11922 * ThemeEngine.cs: Add theme nice
11923 * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
11926 2005-08-25 Jonathan Chambers <jonathan.chambers@ansys.com>
11928 * Splitter.cs: Resize docked control and its neighbor.
11930 2005-08-24 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
11931 -- Making Windows with Menus layout correctly --
11932 * Form.cs : The first leg of the fix
11933 Menu setter - adjust Client Size as needed to make space for the menu
11934 SetClientSizeCore - doesn't call base version to be able to pass the
11935 menu handle to XplatUI.CalculateWindowRect
11936 * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
11937 * XplatUIX11.cs: The critical second leg of the fix
11938 GetWindowPos needs to use a recalculated client_rect
11939 so that resizing the window doesn't break layout of child controls.
11940 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
11941 Lots of \t\n killed
11943 2005-08-23 Peter Dennis Bartok <pbartok@novell.com>
11945 * Label.cs: Now properly recalculates width and height on Font and Text
11946 changes if AutoSize is set
11948 2005-08-19 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
11949 * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
11951 2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
11953 * ImageList.cs: Makes ToString method compatible with MS
11955 2005-08-18 Jordi Mas i Hernandez <jordi@ximian.com>
11957 * MenuAPI.cs: fixes bug 75716
11959 2005-08-11 Umadevi S <sumadevi@novell.com>
11960 * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
11962 2005-08-11 Umadevi S <sumadevi@novell.com>
11963 * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
11965 2005-08-10 Umadevi S <sumadevi@novell.com>
11966 * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
11968 2005-08-07 Jordi Mas i Hernandez <jordi@ximian.com>
11970 * Menu.cs: fixes bug 75700
11971 * MenuAPI.cs: fixes navigation issues
11973 2005-08-09 Umadevi S <sumadevi@novell.com>
11974 * CheckedListBox.cs - simple fix for GetItemChecked.
11976 2005-08-08 Jordi Mas i Hernandez <jordi@ximian.com>
11978 * ComboBox.cs: Serveral fixes
11979 * ListBox.cs: Serveral fixes
11981 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
11983 * ComboBox.cs: Fixes FindString methods and GetItemHeight
11984 * ListBox.cs: Fixes FindString methods
11986 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
11988 * DataGrid.cs: fixes bugs exposed by new tests
11990 2005-08-04 Peter Dennis Bartok <pbartok@novell.com>
11992 * Mime.cs: Compile Mono assembly references only if compiling
11993 with Mono (Allows to build with VS.Net again)
11995 2005-07-28 Marek Safar <marek.safar@seznam.cz>
11997 * Control.cs (PaintControlBackground): Draw background image
11999 (CheckForIllegalCrossThreadCalls): Stubbed.
12001 * Form.cs (OnCreateControl): Center when should be centered.
12003 * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
12005 2005-07-19 Jordi Mas i Hernandez <jordi@ximian.com>
12007 * Binding.cs: Binding to properties should be case unsensitive
12009 2005-07-18 vlindos@nucleusys.com
12011 * DataGrid.cs: fixes setmember order
12013 2005-07-07 Alexander Olk <xenomorph2@onlinehome.de>
12015 * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
12016 * FileDialog.cs: FileDialog is now resizable and uses the new
12019 2005-07-06 Jordi Mas i Hernandez <jordi@ximian.com>
12021 * DataGridTextBoxColumn.cs: default value
12022 * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
12023 * GridTableStylesCollection.cs: fixes checking MappingName
12024 * DataGridDrawingLogic.cs: fixes drawing logic issues
12025 * DataSourceHelper.cs: rewritten to make compatible with more data sources
12026 * DataGrid.cs: fixes
12028 2005-07-06 Alexander Olk <xenomorph2@onlinehome.de>
12030 * MimeGenerated.cs: Use case sensitive comparer for
12031 NameValueCollections
12033 2005-07-01 Jordi Mas i Hernandez <jordi@ximian.com>
12035 * DataGridTextBoxColumn.cs: bug fixes, code refactoring
12036 * ThemeWin32Classic.cs: bug fixes, code refactoring
12037 * DataGridDrawingLogic.cs: bug fixes, code refactoring
12038 * DataGrid.cs: bug fixes, code refactoring
12039 * DataGridTextBox.cs: bug fixes, code refactoring
12040 * DataGridColumnStyle.cs: bug fixes, code refactoring
12041 * Theme.cs: bug fixes, code refactoring
12043 2005-07-01 Peter Bartok <pbartok@novell.com>
12045 * TextControl.cs: Quick fix for the reported crash on ColorDialog
12046 and other text box usage
12048 2005-07-01 Jackson Harper <jackson@ximian.com>
12050 * TabControl.cs: Make sure the bottom of the tab covers the pages
12053 2005-06-30 Peter Bartok <pbartok@novell.com>
12055 * Form.cs (ShowDialog): Assign owner of the dialog
12056 * TextBoxBase.cs: Always refresh caret size when deleting, caret
12057 might have been moved to a tag with different height
12059 2005-06-30 Jackson Harper <jackson@ximian.com>
12061 * Form.cs: Don't create an infinite loop when setting focus
12062 * MenuItem.cs: Don't dirty the parents if we don't have any
12064 2005-06-29 Ben Maurer <bmaurer@ximian.com>
12066 * LibSupport.cs: Rename
12068 2005-06-29 Peter Bartok <pbartok@novell.com>
12070 * TextBoxBase.cs: Re-align caret after deleting a character
12072 - DeleteChars(): Ensure that tag covers the provided position
12073 - StreamLine(): Drop reference for dropped tag
12075 2005-06-29 Peter Bartok <pbartok@novell.com>
12078 - Selections now work properly, anchoring at the initial location
12079 and properly extending in either direction (SetSelectionToCaret(),
12080 SetSelectionStart() and SetSelectionEnd())
12081 - No longer redraws the whole control on selection change, now
12082 calculates delta between previous and new selection and only
12083 invalidates/redraws that area
12084 - Fixed FindPos() math off-by-one errors
12085 - Changed DeleteChars() to verify the provided tag covers the
12086 provided position, selections may have a tag that doesn't cover
12087 the position if the selection is at a tag border
12088 - Fixed off-by-one errors in DeleteChars()
12089 - Added missing streamlining check in DeleteChars() to remove
12091 - Implemented Invalidate() method, now properly calculates exposures
12092 between two given lines/positions
12093 - Implemented SetSelection()
12094 - Obsoleted and removed FixupSelection()
12095 - Improved RecalculateDocument() logic, removing code duplication
12097 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12099 * LibSupport.cs: changes to match different input/output arguments.
12101 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12103 * LibSupport.cs: added libsupport.so init routine.
12105 2005-06-29 Jordi Mas i Hernandez <jordi@ximian.com>
12107 * ControlBindingsCollection.cs
12108 - Throws an exception on null datasource when adding
12109 - Checks for duplicated bindings when adding
12111 2005-06-28 Jackson Harper <jackson@ximian.com>
12113 * TreeView.cs (OnKeyDown): Support left and right properly
12114 (navigates as well as expanding and collapsing.
12115 - Add support for Multiply, this expands all the selected nodes
12117 - Fix some tabbing.
12119 2005-06-28 Jackson Harper <jackson@ximian.com>
12121 * TreeView.cs: Implement keyboard navigation, currently supports,
12122 LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
12123 support for toggling checkboxes with the space bar.
12125 2005-06-28 Jackson Harper <jackson@ximian.com>
12127 * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
12130 2005-06-28 Jackson Harper <jackson@ximian.com>
12132 * TreeView.cs: Add missing event.
12134 2005-06-27 Peter Bartok <pbartok@novell.com>
12137 - Made line ending size configurable (now allows for counting
12138 lineendings as \n or \r\n)
12139 - Added margin to viewport to keep caret visible on right side
12140 - Fixed translation routines for line/pos to documentpos to consider
12141 cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
12142 - Fixed some line-endings to be unix style
12143 - Fixed Document.FormatText to perform it's calculations 1-based
12144 - Added descriptions for a few methods that might otherwise get
12146 - Added NOTE section with some basic conventions to remember at
12147 the top of the file
12148 - Major fixup for RichTextBox selection drawing:
12149 * Fixed crashes when multiple tags on a single line were selected
12150 * fixed selection box drawing not overlaying text
12151 * fixed bogus offset calculation for tags not starting at index 1
12152 * Switched behaviour from using multiple Substrings of a
12153 StringBuilder.ToString() to using multiple
12154 StringBuilder.ToString(start, length) statements, hoping this is
12155 faster (kept original version commented out in the code, in case
12156 original version was faster)
12157 * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if
12159 * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
12162 2005-06-27 Jackson Harper <jackson@ximian.com>
12164 * TabControl.cs: Move to the left and right with the arrow
12165 keys. These keys don't cycle beyond first and last like
12166 tab. Refresh all the tabs when scrolling them to the left or
12169 2005-06-27 Jackson Harper <jackson@ximian.com>
12172 - ToString: Added method
12173 - CreateParams: Remove TODO and comment
12174 - OnKeyDown: Cycle through bounds properly.
12175 - SelectedIndex: Scroll to the right or left if we need to
12176 display the newly selected tab.
12178 2005-06-23 Jackson Harper <jackson@ximian.com>
12180 * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
12183 2005-06-23 Jackson Harper <jackson@ximian.com>
12185 * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
12186 CTRL-SHIFT-TAB, and HOME, END are there any others?
12188 2005-06-23 Jackson Harper <jackson@ximian.com>
12190 * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
12192 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
12194 * DataGridTextBoxColumn.cs: fixes and enhancements
12195 * ThemeWin32Classic.cs: fixes and enhancements
12196 * DataGridBoolColumn.cs: fixes and enhancements
12197 * DataGridDrawingLogic.cs: fixes and enhancements
12198 * CurrencyManager.cs: fixes and enhancements
12199 * DataGrid.cs: fixes and enhancements
12200 * DataGridColumnStyle.cs: fixes and enhancements
12202 2005-06-22 Jackson Harper <jackson@ximian.com>
12204 * TabControl.cs: Add some missing methods that just call into the
12205 base. Make the TabPageCollection's IList interface behave in the
12206 same manner as the MS implementation.
12208 2005-06-22 Peter Bartok <pbartok@novell.com>
12210 * TextControl.cs: Added sanity check
12212 - Fixed wrapping behaviour, don't set wrap on single line controls
12213 (this fixes the breakage of colordialog introduced in an earlier
12215 - Added rudimentary support for autoscrolling right-aligned controls
12216 (still needs fixing, also, center alignment scroll is missing)
12218 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
12220 * ScrollBar.cs: Fixes thumbpos on Maximum values
12222 2005-06-21 Jonathan Chambers <jonathan.chambers@ansys.com>
12224 * PropertyGridView.cs: Pass context information to UITypeEditors
12226 2005-06-21 Peter Bartok <pbartok@novell.com>
12229 - Now calling PositionCaret with absolute space coordinates
12230 - Enabled vertical scrolling
12231 - Better tracking of scrollbar changes, tied into WidthChange
12233 - Improved cursor tracking
12234 - Removed debug output
12236 - PositionCaret coordinates are now works in absolute space, not
12238 - Improved tracking of document size
12239 - Added events for width and height changes
12241 2005-06-21 Peter Bartok <pbartok@novell.com>
12243 * Form.cs: Set focus to active control when form is activated
12245 - Added word-wrap functionality to RecalculateLine()
12246 - Added some short function descriptions for VS.Net to aid in
12247 writing dependent controls
12248 - Added Caret property, returning the current coords of the caret
12249 - Added ViewPortWidth and ViewPortHeight properties
12250 - Added Wrap property
12251 - Added CaretMoved event
12252 - Removed some old debug code
12253 - Split() can now create soft splits
12254 - Added PreviousTag()/NextTag() to allow walking "tag-lists"
12255 - Added method to format existing text
12256 - Fixed size/alignment calculations to use viewport
12257 - RecalculateDocument now can handle changing line-numbers while
12261 - Added some wrap logic, we don't wrap if alignment is not left
12262 - Added casts for scrollbar var, base class switched types to
12263 also support RichTextBoxA
12264 - Implemented handling of scrollbar visibility flags
12267 - Switched scrollbars type to RichTextBoxScrollBars to support
12269 - Added tracking of canvas width/height
12270 - Switched scrollbars to be not selectable (to keep focus on text)
12271 - Added central CalculateDocument() method to handle all redraw
12273 - Added ReadOnly support
12274 - Added WordWrap support
12275 - Fixed handling of Enter key (we now treat it as a DialogKey)
12276 - Fixed caret positioning when h or v scroll is not zero
12277 - Fixed placing/generation of vertical scrollbar
12278 - Added CalculateScrollBars() method to allow updating scrollbar
12279 limits and visibility
12280 - Fixed handling of horizontal scroll
12281 - Added handling of vertical scroll
12282 - Implemented auto-'jump' when caret moves to close to a left or
12283 right border and there is text to be scrolled into view (currently
12284 there's the potential for a stack overflow, until a bug in
12285 scrollbar is fixed)
12287 2005-06-21 Geoff Norton <gnorton@customerdna.com>
12289 * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
12291 2005-06-19 Alexander Olk <xenomorph2@onlinehome.de>
12295 - return application/x-zerosize for files with size zero
12296 (if no extension pattern matches).
12297 - check matches collection for strings too.
12298 - return only the first mime type if the name value
12299 collection has more than one mime type.
12301 2005-06-18 Jonathan Chambers <jonathan.chambers@ansys.com>
12303 * PropertyGrid.cs: Cleaned up some TODOs
12304 * PropertyGridView.cs: Added support for UITypeEditors
12306 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
12308 * DataGrid.cs: clears cached value
12310 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
12312 * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
12313 * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
12314 * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
12315 * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
12317 2005-06-16 Jordi Mas i Hernandez <jordi@ximian.com>
12319 * ThemeWin32Classic.cs: fixes colour
12321 2005-06-15 Peter Bartok <pbartok@novell.com>
12323 * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
12324 * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
12325 * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
12326 * Control.cs: Added some MWFCategory and MWFDescription attributes
12327 * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
12329 2005-06-15 Alexander Olk <xenomorph2@onlinehome.de>
12331 * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
12334 2005-06-14 Jordi Mas i Hernandez <jordi@ximian.com>
12336 * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
12337 * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
12338 * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
12339 * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
12340 * DataGrid.cs: default datagrid settings for Default Styles, fixes
12341 * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
12343 2005-06-13 Jackson Harper <jackson@ximian.com>
12345 * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
12346 isn't printed when the user enables dropping. (X11 does accept
12349 2005-06-13 Jackson Harper <jackson@ximian.com>
12351 * TreeView.cs: Remove some TODOS.
12353 2005-06-13 Jackson Harper <jackson@ximian.com>
12355 * Form.cs: Hook into the mdi framework.
12356 * MdiClient.cs: Use the base control collections add method so
12357 parents get setup correctly. Set the default back colour and dock
12359 * MdiChildContext.cs: New class, this bad actor handles an
12360 instance of an MDI window. Right now there is only basic
12361 support. You can drag, close, and resize windows. Minimize and
12362 Maximize are partially implemented.
12364 2005-06-13 Jackson Harper <jackson@ximian.com>
12366 * XplatUIX11.cs: Mash numbers together properly, otherwise we get
12367 freaky when both vals are negative. NOTE: There are probably other
12368 places in XplatUIX11 that this needs to be done.
12370 2005-06-13 Jordi Mas i Hernandez <jordi@ximian.com>
12372 * DataGrid.cs: implement missing methods, move KeyboardNavigation
12373 * DataGridColumnStyle.cs: fixes signature
12375 2005-06-12 Jackson Harper <jackson@ximian.com>
12377 * XplatUIX11.cs: Use sizing cursors similar to the ones on
12380 2005-06-11 Jackson Harper <jackson@ximian.com>
12382 * StatusBarPanel.cs: Signature cleanups. Implement
12385 2005-06-10 Jordi Mas i Hernandez <jordi@ximian.com>
12387 * DataGridTextBoxColumn.cs: Honors aligment
12388 * GridColumnStylesCollection.cs: Contains is case unsensitive
12389 * GridTableStylesCollection.cs: several fixes
12390 * DataGridTableStyle.cs: default column creation
12391 * DataGridDrawingLogic.cs: fixes
12392 * CurrencyManager.cs: ListName property
12393 * DataGrid.cs: multiple styles support
12394 * DataGridColumnStyle.cs: fixes
12397 2005-06-10 Peter Bartok <pbartok@novell.com>
12399 * Control.cs(Select): Moved SetFocus call to avoid potential
12400 loops if controls change the active control when getting focus
12401 * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
12402 the up/down buttons
12404 2005-06-10 Matthias Felgner <matthiasf@voelcker.ocm>
12406 * ImageListConverter.cs: Implemented
12408 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
12410 * MonthCalendar.cs: Wired in NumericUpDown control for year
12412 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
12414 * MonthCalendar.cs: Removed MonoTodo attributes on Click and
12415 DoubleClick events, since they are not meant to be fired.
12417 2005-06-09 Peter Bartok <pbartok@novell.com>
12419 * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
12420 Jonathan's standalone controls into MWF, implemented missing
12421 events, attributes and methods; added xxxAccessible classes
12422 * AccessibleObject.cs: Made fields internal so other classes
12423 can change them if needed
12425 2005-06-09 Jonathan Gilbert <2a5gjx302@sneakemail.com>
12427 * UpDownBase.cs: Complete implementation
12428 * NumericUpDown.cs: Complete implementation
12429 * DomainUpDown.cs: Complete implementation
12431 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
12433 * DataGridTextBoxColumn.cs: drawing fixes
12434 * DataGridCell.cs: fixes ToString method to match MSNet
12435 * DataGridTableStyle.cs: fixes
12436 * DataGridBoolColumn.cs: fixes, drawing
12437 * DataGridDrawingLogic.cs: fixes, new methods
12438 * DataGridTextBox.cs: Keyboard and fixes
12440 - Keyboard navigation
12442 - Row selection (single, multiple, deletion, etc)
12445 2005-06-07 Jackson Harper <jackson@ximian.com>
12447 * ThemeWin32Classic.cs: Clear the background area when drawing
12450 2005-06-06 Peter Bartok <pbartok@novell.com>
12452 * ImageListStreamer.cs: Fixed signature for GetData
12453 * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
12455 - Added missing ChildAccessibleObject class
12456 - Added missing OnXXXFocus overrides, switched to using those
12457 instead of the event handler
12459 - Added Parent property for ControlAccessibleObject
12462 - Added ResetBindings()
12463 * ListBindingConverter.cs: Implemented some methods
12464 * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
12465 * ImageList.cs: Implemented basic handle scheme, removed TODOs
12466 * ContainerControl.cs: Fixed signature, now subscribing to the
12467 ControlRemoved event instead of overriding the handler, LAMESPEC
12468 * CurrencyManager.cs: Added missing attribute
12469 * MonthCalendar.cs: Added missing properties
12471 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
12473 * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
12475 2005-06-06 Gaurav Vaish and Ankit Jain
12477 * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
12478 * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
12480 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
12482 * Control.cs: fixes CreateParams Width / Height.
12484 2005-06-05 Peter Bartok <pbartok@novell.com>
12486 * Win32DnD.cs: Removed compilation warnings
12488 2005-06-05 Peter Bartok <pbartok@novell.com>
12490 * Control.cs (CreateParams): Since we don't know if one of the
12491 properties we use is overridden, lets make sure if we fail accessing
12492 we continue with a backup plan
12494 2005-06-05 Peter Bartok <pbartok@novell.com>
12497 - Removed debug output
12498 - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
12500 - Plugged resource leak
12501 * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
12504 2005-06-05 Peter Bartok <pbartok@novell.com>
12506 * XplatUIWin32.cs: Removed DnD code
12507 * Win32DnD.cs: Implemented drop source and drop target functionality
12509 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12511 * UpDownBase.cs: remove duplicate addition of event, enable some code
12512 that was commented out.
12513 * NumericUpDown.cs: added missing attributes and Hexadecimal property.
12514 Validate input when a key is pressed. It works fine now for every
12515 combination of Hexadecimal. Only missing some drawing love when sharing
12516 space with other controls.
12518 2005-06-04 Peter Bartok <pbartok@novell.com>
12521 - We need to pass a window for DragDrop, so enable callback events
12522 - Added DnD callback events when being a DragSource
12523 * XplatUI.cs (StartDrag): Added window handle argument
12524 * XplatUIDriver.cs (StartDrag): Added window handle argument
12525 * QueryContinueDragEventArgs: Made fields internally accessible so
12526 drivers can set them
12527 * GiveFeedbackEventArgs: Made fields internally accessible so drivers
12530 2005-06-03 Jordi Mas i Hernandez <jordi@ximian.com>
12532 * DataGridTextBoxColumn.cs: column text editing
12533 * DataGridTableStyle.cs: Respect columns styles created by the user
12534 * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
12535 * DataGridBoolColumn.cs: bool column editing
12536 * DataGrid.cs: fixes to scrolling, properties, etc
12537 * DataGridTextBox.cs: handle keyboard
12538 * DataGridColumnStyle.cs: fixes
12540 2005-06-02 Jackson Harper <jackson@ximian.com>
12542 * ImageListStreamer.cs: Somewhat broken implementation of
12543 GetObjectData. The RLE needs some work to match MS properly.
12545 2005-06-02 Jackson Harper <jackson@ximian.com>
12547 * X11Dnd.cs: Attempting to keep at least one file in MWF
12550 2005-06-02 Peter Bartok <pbartok@novell.com>
12552 * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
12555 2005-06-02 Peter Bartok <pbartok@novell.com>
12557 * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
12558 * XplatUI.cs: Added DoDragDrop() method
12559 * XplatUIDriver.cs: Added DoDragDrop() method
12561 2005-06-02 Jackson Harper <jackson@ximian.com>
12563 * Splitter.cs: Implement BorderStyle.
12565 2005-06-02 Jackson Harper <jackson@ximian.com>
12567 * XplatUIX11.cs: Tie into the X11Dnd subsystem.
12568 * X11Dnd.cs: New file. A subsystem that handles drag and drop on
12571 2005-06-02 Peter Bartok <pbartok@novell.com>
12574 - Added Data setter
12575 - Fixed broken insertion code for SetData, now also
12576 overwrites any existing entry of the same format name
12577 * Hwnd.cs: Added list of pointers that automatically gets
12578 freed when the window is disposed
12579 * XplatUI.cs: Call driver initialization method when loading
12582 - OnDragLeave takes EventArgs, not DragEventArgs
12583 - Added setting of WS_EX_ACCEPTFILES style when dropping is
12585 - Forces style update when drop state changes
12586 * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
12587 not perfect since we cannot (yet) call the IDataObject.GetData()
12588 method, we keep getting 0x80004005 error, dunno why)
12590 2005-06-02 Peter Bartok <pbartok@novell.com>
12592 * DragEventArgs.cs: Make fields internal so we can cache the
12593 object and re-set the fields from XplatUI
12595 2005-06-02 Jackson Harper <jackson@ximian.com>
12597 * Control.cs: Add some internal methods so the DnD subsystem can
12598 raise DnD events. Also call into the driver when AllowDrop is set.
12600 * XplatUIDriver.cs: New method for setting whether or not a window
12601 is allowed to accept drag and drop messages.
12603 2005-06-01 Jordi Mas i Hernandez <jordi@ximian.com>
12605 * ScrollBar.cs: Make sure that values sent in Scroll events
12606 are always between Maximum and Minimum.
12608 2005-06-01 Marek Safar <marek.safar@seznam.cz>
12610 * Menu.cs: Call MenuChanged when menuitem visibility has been
12612 * MenuItem.cs: Rebuild menu when item is (not) visible.
12613 * MainMenu.cs: MainMenu has special MenuChanged.
12614 * Theme.cs: Caption and FrameBorderSize are not fixed.
12615 * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
12616 * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
12618 * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
12619 * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
12621 2005-05-30 Jackson Harper <jackson@ximian.com>
12623 * DataFormat.cs: We can't statically initialize this stuff because
12624 it calls into the xplatui and could create a loop. So we lazy init
12627 2005-05-28 Jackson Harper <jackson@ximian.com>
12629 * Control.cs: Proper implementation of Product(Name/Version).
12631 2005-05-27 Jackson Harper <jackson@ximian.com>
12633 * DataObject.cs: Dont crash if no data is found.
12635 2005-05-26 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
12636 * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
12637 as per status page, guessing it should be set to true
12639 2005-05-26 Jordi Mas i Hernandez <jordi@ximian.com>
12641 * DataGridTextBoxColumn.cs: Draws text and basic text formatting
12642 * DataGridTableStyle.cs: set proper formatting text, def header text
12643 * ThemeWin32Classic.cs: new themable paramaters
12644 * DataGridBoolColumn.cs: paint check box, get data, fixes
12645 * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
12646 * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
12647 * DataGridColumnStyle.cs: fixes
12648 * Theme.cs: new themable paramaters
12650 2005-05-26 Peter Bartok <pbartok@novell.com>
12652 * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
12654 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
12655 * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
12657 2005-05-24 Peter Bartok <pbartok@novell.com>
12659 * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
12660 Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
12661 Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
12662 FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
12663 NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
12664 ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
12665 DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
12666 AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
12667 DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
12668 StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
12669 missing attributes, etc
12670 * DataGridPreferredColumnWidthTypeConverter.cs: Added
12672 2005-05-24 Peter Bartok <pbartok@novell.com>
12674 * Help.cs: Added, implemented trivial functions, throws up MessageBox
12675 when user tries to get help
12676 * DataObject.cs, DataFormats.cs, LinkArea.cs,
12677 SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
12678 to suppress warnings
12679 * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
12680 avoid unreachable code warning
12682 2005-05-20 Peter Bartok <pbartok@novell.com>
12684 * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
12686 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
12688 * DataGridTextBoxColumn.cs: Basic painting methods
12689 * DataGridTableStyle.cs: Set table style in the column
12690 * ThemeWin32Classic.cs: Use Theme for colors
12691 * DataGridDrawingLogic.cs: Implement more drawing
12692 * DataGrid.cs: drawing, theming, enhacements, fixes
12693 * DataGridColumnStyle.cs: fixes, drawing
12694 * Theme.cs: theming for Datagrid
12696 2005-05-20 Peter Bartok <pbartok@novell.com>
12698 * Cursor.cs: Implemented GetObjectData() method
12700 2005-05-20 Peter Bartok <pbartok@novell.com>
12702 * Cursors.cs: Added setting of cursor name
12704 - Implemented constructors
12705 - Implemented Draw and DrawStretched
12706 - Implemented Current property
12707 - Implemented == and != operators
12708 - Implemented Dispose()
12709 - Implemented ToString
12710 - Added missing attributes
12712 - Added missing reset for OverrideCursor when DoEvents is called
12713 - Fixed creation of cursor, logic was wrong
12715 - Added missing reset for OverrideCursor when DoEvents is called
12716 - Fixed creation of cursor, bit arrays were swapped
12717 * Clipboard.cs: Removed obsolete MonoTODO attribute
12719 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
12721 * ComboBox.cs: fixes OnSelectedItemChanged
12722 * ControlBindingsCollection.cs: fixes item range check
12724 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
12727 - Calc preferred height properly
12728 - Implement missing properties
12730 * NumericUpDown.cs: Implement missing events
12732 2005-05-19 Jackson Harper <jackson@ximian.com>
12734 * TabControl.cs: New method that resizes the tab pages before
12735 redrawing them. This as needed as the control is double buffered
12736 and sizing will not be recalculated unless ResizeTabPages is
12738 * TabPage.cs: Set base.Text instead of Text in the constructor so
12739 that UpdateOwner does not get called. Use the new Redraw method of
12740 TabControl instead of Refresh so the sizing is recalculated.
12741 * ThemeWin32Classic.cs: Draw the text for button tabs.
12743 2005-05-19 Jackson Harper <jackson@ximian.com>
12745 * Control.cs: Paint control background images. Fix typo where
12746 PaintControlBackground was not getting called correctly.
12748 2005-05-19 Peter Bartok <pbartok@novell.com>
12750 * ScrollableControl.cs (DisplayRectangle): Undid my last change until
12751 I can investigate, apparently I broke FileDialog
12753 2005-05-19 Marek Safar <marek.safar@seznam.cz>
12755 * AxHost.cs: Some simple properties.
12756 * Control.cs: window must be accessible after ctor.
12757 * Form.cs: Added TransparencyKey property.
12758 * TextBoxBase.cs: Implemented Clear. Text property can be null.
12759 * XplatUIWin32.cs: SetBorderStyle implemented.
12761 2005-05-18 Peter Bartok <pbartok@novell.com>
12763 * DataObject.cs: Entries are not global but particular to the
12764 DataObject, now it behaves that way
12765 * XplatUIWin32.cs: Implemented Clipboard methods
12766 * Clipboard.cs: Implemented
12767 * ScrollableControl.cs (DisplayRectangle): Fixed calculation
12768 * XplatUIOSX.cs: Updated to final clipboard prototypes
12769 * XplatUIX11.cs: Implemented Clipboard methods
12770 * XplatUIDriver.cs: Updated to final clipboard prototypes
12771 * XplatUIStructs.cs:
12772 - Added BITMAPINFOHEADER struct
12773 - Added ClipboardFormats enum
12775 - Added ClipboardStruct
12776 - Added Atom enum items for clipboard types
12777 - Fixed atom types for Selection event structures
12779 - Added internal properties and methods for drivers to enumerate
12781 - Switched initialization method to allow drivers to assign their
12782 own IDs even for the MS predefined clipboard IDs
12783 * XplatUI.cs: Updated to final clipboard interface
12785 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
12786 * PropertyGridView.cs: Fixed compiler warnings.
12788 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
12789 * PropertyGrid.cs: Added some event calls
12790 * PropertyGridView.cs: Change drawing code to use double buffering
12791 * PropertyGridTextBox.cs: Changed Text property name
12792 * GridItem.cs: Added Bounds property.
12793 * GridEntry.cs: Added Bounds property.
12795 2005-05-17 Lluis Sanchez Gual <lluis@novell.com>
12797 * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
12798 since GetType() may not return the correct type if the object is
12801 2005-05-17 Jordi Mas i Hernandez <jordi@ximian.com>
12803 * TreeNodeCollection.cs: fixes get/set item ranges
12805 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
12807 * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
12809 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
12811 * ComboBox.cs: Fix item range comparation
12812 * ListView.cs: Fix item range comparation
12814 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
12817 - Clear example panel when OnPaint is called
12818 - Better solution for displaying the example panel text
12819 - Select default indexes in the ListBoxes
12821 2005-05-11 Geoff Norton <gnorton@customerdna.com>
12823 * XplatUIOSX.cs: Avoid painting into invisible views. Fixes #74926
12825 2005-05-11 Peter Bartok <pbartok@novell.com>
12827 * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
12828 * SelectionRangeConverter.cs: Implemented
12829 * PropertyGrid.cs: Fixed attribute value
12831 - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
12832 - Added Sebastien Pouliot's CAS Stack Propagation fixes
12833 * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
12834 that's common to all drivers. First methods to go there are
12835 Sebastien Pouliot's CAS Stack Propagation helper methods
12836 * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
12837 Sebastien Pouliot for CAS Stack Propagation
12839 2005-05-11 Geoff Norton <gnorton@customerdna.com>
12842 XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
12844 2005-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
12846 * DataGridTextBoxColumn.cs: fixed some members
12847 * GridColumnStylesCollection.cs: indexed column is case insensitive
12848 * DataGridTableStyle.cs: fixes
12849 * ThemeWin32Classic.cs: add new theme parameter
12850 * Theme.cs: add new theme parameter
12851 * DataGridDrawingLogic.cs: Datagrid's drawing logic
12852 * DataGrid.cs: fixes, new internal properties, etc.
12853 * DataGridColumnStyle.cs: allows to set grid value
12856 2005-05-10 Peter Bartok <pbartok@novell.com>
12858 * AccessibleObject.cs:
12859 - Removed MonoTODO attribute on help, method is correct
12860 - Fixed Bounds property
12861 * AxHost.cs: Moved MonoTODO
12862 * ButtonBase.cs: Now setting AccessibleObject properties
12863 * RadioButton.cs: Setting proper AccessibleObject role
12864 * CheckBox.cs: Setting proper AccessibleObject role
12865 * ControlBindingsCollection.cs: Added properties, methods and attributes
12866 * DataFormats.cs: Fixed awkward internal API, and changed to enable
12867 userdefined DataFormats.Format items as well
12868 * ListControl.cs: Removed data_member from the public eye
12869 * OpenFileDialog.cs:
12870 - Made class sealed
12871 - Added missing attributes
12872 * SaveFileDialog.cs: Added missing attributes
12873 * ImageListStreamer.cs: Fixed code that caused warnings
12874 * LinkLabel.cs: Removed unreachable code
12875 * TreeView.cs: Fixed code that caused warnings
12876 * PropertyGridView.cs: Fixed code that caused warnings
12877 * GridColumnStylesCollection.cs: Added missing attributes
12878 * GridTableStylesCollection: Added missing attribute
12879 * PropertyManager: Added .ctor
12880 * SecurityIDType: Added
12881 * DataObject.cs: Implemented class
12882 * LinkArea.cs: Added missing attribute
12884 2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
12886 * RadioButton.cs: call base method to allow to fire OnClick event
12887 * UpDownBase.cs: OnMouseUp call base method
12888 * CheckedListBox.cs: call base method before returning
12889 * TrackBar.cs: call base method before returning
12892 2005-05-10 Peter Bartok <pbartok@novell.com>
12894 * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
12897 2005-05-10 Peter Bartok <pbartok@novell.com>
12899 * DataFormats.cs: Implemented
12900 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
12901 XplatUIX11.cs: Added Clipboard APIs
12902 * XplatUIWin32.cs: Implemented Clipboard APIs
12903 * FolderBrowserDialog.cs: Added missing event, attributes
12905 2005-05-10 Jordi Mas i Hernandez <jordi@ximian.com>
12907 * CheckBox.cs: call base method to allow to fire OnClick event
12909 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
12911 * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
12913 2005-05-06 Peter Bartok <pbartok@novell.com>
12915 * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
12916 * Screen.cs: Implemented
12917 * HelpNavigator.cs: Added
12918 * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
12920 * HelpProvider.cs: Implemented all we can do until we have a CHM
12921 help library (which means that "What's This" does work now)
12923 2005-05-06 Jackson Harper <jackson@ximian.com>
12925 * XplatUIX11.cs: Fix waking up the main loop.
12927 2005-05-05 Peter Bartok <pbartok@novell.com>
12929 * XplatUI.cs: Updated revision
12930 * Form.cs: Removed enless loop
12931 * GroupBox.cs (OnPaint): Added call to base.OnPaint()
12932 * Label.cs (OnPaint): Added call to base.OnPaint()
12933 * ToolTip.cs: Made ToolTipWindow reusable for other controls
12934 * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
12935 * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
12937 * ButtonBase.cs: Moved base.OnPaint() call to end of method
12938 * ThemeWin32Classic.cs: Replaced references to ToolTip with references
12939 to ToolTip.ToolTipWindow for drawing and size methods; this allows
12940 reuse of ToolTipWindow by other controls
12941 * SizeGrip.cs: Moved base.OnPaint() call to end of method
12942 * XplatUIX11.cs: Now clipping drawing area (experimental)
12943 * PictureBox.cs: Moved base.OnPaint() call to end of method
12944 * Theme.cs: Fixed ToolTip abstracts to match new format
12945 * ErrorProvider.cs: Implemented
12947 2005-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
12949 * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
12953 - Implements LinkBehavior
12954 - Fixes many issues
12956 2005-05-03 Jackson Harper <jackson@ximian.com>
12958 * ListView.cs: Calculate the scrollbar positioning on resize and
12959 paint, so they get put in the correct place.
12961 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
12963 * ColorDialogs.cs: The small color panels are now handled by
12964 SmallColorControl. This fixes drawing of the focus rectangle
12965 and adds a 3D border.
12967 2005-05-03 Peter Bartok <pbartok@novell.com>
12969 * Control.cs: Modified version of Jonathan Chamber's fix for
12972 2005-05-03 Jackson Harper <jackson@ximian.com>
12974 * ListView.cs: Remove redraw variable. Control now handles whether
12975 or not a redraw needs to be done, and will only raise the paint
12976 event if redrawing is needed.
12978 2005-05-03 Jackson Harper <jackson@ximian.com>
12980 * Splitter.cs: No decorations for the splitter form. Cache the
12983 2005-05-03 Jackson Harper <jackson@ximian.com>
12985 * TreeView.cs: Use dashed lines to connect nodes. Use the
12986 ControlPaint method for drawing the focus rect instead of doing
12989 2005-05-02 Peter Bartok <pbartok@novell.com>
12991 * LinkLabel.cs: Fixed the fixes from r43566 and 43521
12993 2005-04-29 Jackson Harper <jackson@ximian.com>
12995 * ThemeWin32Classic.cs: Don't clear the GC that will clear the
12996 entire image buffer. Just clear the clipping rectangle.
12998 2005-04-29 Jackson Harper <jackson@ximian.com>
13000 * ThemeWin32Classic.cs: Don't draw list view items that are
13001 outside the clipping rectangle.
13003 2005-04-29 Jordi Mas i Hernandez <jordi@ximian.com>
13005 * ListBox.cs: added horizontal item scroll
13007 2005-04-29 Jackson Harper <jackson@ximian.com>
13009 * ThemeWin32Classic.cs: Remove some old debug code that was
13010 causing flicker with the new double buffering code.
13012 2005-04-29 John BouAntoun <jba-mono@optusnet.com.au>
13014 * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
13015 behave like combobox and comboboxlist (still not sure if this is
13018 2005-04-28 Jackson Harper <jackson@ximian.com>
13020 * ThemeWin32Classic.cs: Don't fill the middle of progress
13021 bars. This fills areas outside of the clip bounds that don't need
13024 2005-04-28 Jackson Harper <jackson@ximian.com>
13026 * Control.cs: Don't expose functionality to touch the image buffers.
13028 * ListView.cs: We do not need to (and no longer can) manipulate
13029 the image buffers directly. All of this is handled by Control.
13031 2005-04-28 Peter Bartok <pbartok@novell.com>
13033 * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
13034 RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
13035 RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
13037 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
13040 - Adjust control's height for non-simple comboboxes (bug fix)
13042 * MenuAPI.cs: remove unused var
13043 * ScrollBar.cs: remove unsed var
13045 * ListBox.cs: unselect items when clearing
13047 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
13049 * ListControl.cs: honors OnPositionChanged and default Selected Item
13050 * ListBox.cs: unselect items when clearing
13052 2005-04-27 Jackson Harper <jackson@ximian.com>
13054 * X11Keyboard.cs: Initialize a default keyboard and give a warning
13055 if a "correct" keyboard is not found. This will make us not crash,
13056 but might give some users bad keyboard layouts...seems to be the
13057 same thing rewind does.
13059 2005-04-27 Jackson Harper <jackson@ximian.com>
13061 * BindingManagerBase.cs: Attach the current/position changed
13062 handlers to their respective events.
13064 2005-04-27 Jackson Harper <jackson@ximian.com>
13066 * Control.cs: Make sure that the first WM_PAINT does a full draw,
13068 * ThemeWin32Classic.cs: Don't fill the background for picture
13069 boxes. This could overright user drawing.
13070 * ComboBox.cs: Just fill the clipping rect not the entire client
13071 rect when drawing the background. This prevents pieces of the
13072 image buffer from getting overwritten and is theoretically faster.
13074 2005-04-26 Jordi Mas i Hernandez <jordi@ximian.com>
13076 * ComboBox.cs: Databinding support fixes, fire missing events
13077 * ListControl.cs: implement missing methods and properties, fixes
13078 * ThemeWin32Classic.cs: Databiding support on Drawing
13079 * CheckedListBox.cs: Databinding support fixes, fire missing events
13080 * ListBox.cs: Databinding support fixes, fire missing events
13082 2005-04-25 Peter Bartok <pbartok@novell.com>
13084 * LinkLabel.cs: Length of LinkArea is not allowed to be negative
13086 2005-04-25 Jackson Harper <jackson@ximian.com>
13088 * TreeView.cs: Use the horizontal scrollbars height not width when
13089 determining how much of the client area is available.
13091 2005-04-25 Jackson Harper <jackson@ximian.com>
13093 * Control.cs: Double buffering is handled differently now. As per
13094 the spec, the extra buffer is created in the WM_PAINT message and
13095 passed down to the control's drawing code.
13103 * PropertyGridView.cs:
13115 * DateTimePicker.cs:
13117 * TreeView.cs: Update to new double buffering system.
13118 * MonthCalendar.cs: Uncomment block, as Capture is now
13119 working. Update to new double buffering
13120 * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
13121 * PaintEventArgs.cs: New internal method allows us to set the
13122 graphics object. This is used for double buffering.
13123 * ThemeWin32Classic.cs: Give the picture box drawing code a clip
13124 rectangle. The internal paint_area var has been removed from
13125 StatusBar. The clipping rect should be used instead.
13126 * Theme.cs: Give the PictureBox drawing method a clipping rect.
13127 * TabPage.cs: The RefreshTabs method was removed, so just call the
13128 tab controls Refresh method now.
13129 * TabControl.cs: Update to new double buffering. Make sure the
13130 handle is created before sizing the tab pages, otherwise we will
13131 get stuck in a loop.
13133 2005-04-24 Borja Sanchez Zamorano <borsanza@gmail.com>
13135 * LinkLabel.cs: Fix typo, bug #74719; patch
13136 from Borja Sanchez Zamorano
13138 2005-04-22 Jackson Harper <jackson@ximian.com>
13140 * TreeNode.cs: Implement Handle stuff.
13141 * TreeView.cs: Utility methods so nodes can get/lookup by handle.
13143 2005-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
13145 * DataGridTextBoxColumn.cs: call base constructors, fixes
13146 * GridColumnStylesCollection.cs: missing events, methods, and functionality
13147 * GridTableStylesCollection.cs: fixes, check duplicate mapping names
13148 * DataGridTableStyle.cs: implements create default column styles
13149 * DataGridBoolColumn.cs: which types can handle
13150 * DataGrid.cs: missing methods, fixes, new functionality
13151 * DataGridColumnStyle.cs: fixes
13153 2005-04-20 Alexander Olk <xenomorph2@onlinehome.de>
13154 * FolderBrowserDialog.cs:
13155 - Use a thread to fill the TreeView
13156 - Adjusted some sizes
13158 2005-04-19 Peter Bartok <pbartok@novell.com>
13160 * LinkLabel.cs: (Re-)create the pieces when setting the Text
13161 property. Fixes #74360.
13163 2005-04-19 Jackson Harper <jackson@ximian.com>
13165 * XEventQueue.cs: Lock when getting the lockqueue size.
13166 * PictureBox.cs: Call base OnPaint
13168 2005-04-19 Peter Bartok <pbartok@novell.com>
13170 * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
13171 messages were no longer being processed (this broke BeginInvoke)
13174 2005-04-18 Jackson Harper <jackson@ximian.com>
13176 * TreeView.cs: buglet that caused node images to get drawn
13177 regardless of whether or not they were in the clipping rectangle.
13179 2005-04-18 Jackson Harper <jackson@ximian.com>
13181 * CurrencyManager.cs: There are four rules for GetItemProperties:
13182 - If the type is an array use the element type of the array
13183 - If the type is a typed list, use the type
13184 - If the list contains an Item property that is not an object, use
13186 - use the first element of the list if there are any elements in
13189 2005-04-17 Jackson Harper <jackson@ximian.oom>
13191 * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
13192 click. This handles offsets for scrolling properly and reduces
13193 memory. Also fixed GetNode to not offset now that TopNode works
13195 * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
13197 2005-04-17 Jackson Harper <jackson@ximian.com>
13199 * CursorConverter.cs: Initial implementation.
13201 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
13203 * ListControl.cs: work towards complex data binding support on ListControl
13204 * CurrencyManager.cs: work towards complex data binding support on ListControl
13205 * ListBox.cs: work towards complex data binding support on ListControl
13208 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
13210 * GridTableStylesCollection.cs: fixes name and constructor
13211 * DataGridTableStyle.cs: fixes
13212 * DataGridBoolColumn.cs: fixes names and constructors
13213 * DataGrid.cs: define methods and properties. Some init implementations
13214 * DataGridCell.cs: define methods and properties. Some init implementations
13215 * GridTablesFactory.cs: Define methods and properties
13217 2005-04-15 Geoff Norton <gnorton@customerdna.com>
13219 * XplatUIOSX.cs: Handle proper mouse tracking even if the current
13220 graphics port changes. We still want the coordinates in global screen
13223 2005-04-14 Jackson Harper <jackson@ximian.com>
13225 * TreeView.cs: Handle clicks when plus minus is disabled. Don't
13226 check plus minus or checkbox clicks unless those features are enabled.
13228 2005-04-14 Jackson Harper <jackson@ximian.com>
13230 * TreeView.cs: Add methods for setting the top and bottom visible
13231 nodes. TreeNode::EnsureVisible uses these methods.
13232 * TreeNode.cs: Implement EnsureVisible
13234 2005-04-13 Jordi Mas i Hernandez <jordi@ximian.com>
13236 * Form.cs: Pospone menu assignation if the window has not been created yet
13237 * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
13240 2005-04-12 Jackson Harper <jackson@ximian.com>
13242 * TreeView.cs: Set the TopNode properly when scrolling
13243 occurs. This has the added benifit of reducing the amount of
13244 walking that needs to be done when drawing. Also removed an old
13246 * OpenTreeNodeEnumerator.cs: Fix moving backwards.
13248 2005-04-11 Jordi Mas i Hernandez <jordi@ximian.com>
13250 * Timer.cs: fixes interval setting when the timer is already enabled
13252 2005-04-10 Alexander Olk <xenomorph2@onlinehome.de>
13254 * FolderBrowserDialog.cs: First approach
13256 2005-04-09 Peter Bartok <pbartok@novell.com>
13258 * FolderBrowserDialog: Added
13260 2005-04-07 Jordi Mas i Hernandez <jordi@ximian.com>
13262 * LinkLabel.cs: move drawing code into the theme
13263 * ThemeWin32Classic.cs: drawing code and painting background bugfix
13264 * Theme.cs: define DrawLinkLabel method
13266 2005-04-05 Jackson Harper <jackson@ximian.com>
13268 * BindingContext.cs: Use weak references so these bad actors don't
13269 stay alive longer then they need to.
13271 2005-04-05 Jackson Harper <jackson@ximian.com>
13273 * ListControl.cs: Basic implementation of complex databinding.
13275 * ListBox.cs: Add calls to ListControl databinding methods.
13277 2005-04-05 Alexander Olk <xenomorph2@onlinehome.de>
13280 - Don't change PopupButtonState to Normal when the
13281 PopupButton gets pressed several times.
13282 - Renamed ButtonPanel to PopupButtonPanel
13284 2005-04-05 Jordi Mas i Hernandez <jordi@ximian.com>
13286 * ColorDialog.cs: Use cached objects instead of creating them
13287 * LinkLabel.cs: Use cached objects instead of creating them
13288 * Splitter.cs: Use cached objects instead of creating them
13289 * FontDialog.cs: Use cached objects instead of creating them
13290 * PropertyGridView.cs: Use cached objects instead of creating them
13291 * MessageBox.cs: Use cached objects instead of creating them
13292 * FileDialog.cs: Use cached objects instead of creating them
13293 * ThemeWin32Classic.cs: Use cached objects instead of creating them
13294 * TreeView.cs: Use cached objects instead of creating them
13296 2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
13298 * Control.cs: use Equals to compare the font since no == op
13299 * ScrollBar.cs: use Equals to compare the font since no == op
13301 2005-04-04 Alexander Olk <xenomorph2@onlinehome.de>
13303 * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
13305 2005-04-01 Jackson Harper <jackson@ximian.com>
13307 * Binding.cs: Implement IsBinding.
13308 * BindingManagerBase.cs:
13309 * PropertyManager.cs:
13310 * CurrencyManager.cs: Add IsSuspended property.
13312 2005-04-01 Jackson Harper <jackson@ximian.com>
13314 * Binding.cs: Had some IsAssignableFrom calls backwards.
13316 2005-04-01 Jackson Harper <jackson@ximian.com>
13318 * Binding.cs: Handle null data members when pulling data.
13319 * PropertyManager.cs: Handle the data member being a property that
13322 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
13324 * DataGridTextBoxColumn.cs: fixes signature
13325 * DataGrid.cs: calls right constructor
13327 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
13329 * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
13330 * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
13331 * GridTableStylesCollection.cs: implements GridTableStylesCollection
13332 * DataGridTableStyle.cs: implements DataGridTableStyle
13333 * DataGridBoolColumn.cs: implements DataGridBoolColumn
13334 * DataGridTextBox.cs: implements DataGridTextBox
13335 * DataGridColumnStyle.cs: implements DataGridColumnStyle
13337 2005-03-31 Alexander Olk <xenomorph2@onlinehome.de>
13339 * FileDialog.cs: Added simple PopupButton class for ButtonPanel
13341 2005-03-29 Peter Bartok <pbartok@novell.com>
13344 - Properly implemented CompanyName property
13345 - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
13346 returns a path that includes CompanyName, ProductName and
13347 Version (fixes bug #70330)
13349 2005-03-29 Stefan Buehler <sbuehler@gmx.ch>
13351 * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
13354 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
13356 * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
13358 - Added ReadOnly CheckBox
13359 - Further refactoring: moved some code from Open-/SaveFileDialog
13362 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
13364 * OpenFileDialog.cs: Fixed CheckFileExists
13366 Moved FileView and DirComboBox outside FileDialog class.
13367 They can now be used outside FileDialog
13369 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
13371 * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
13372 * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
13374 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
13376 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
13377 - Added missing CreatePrompt property in SaveDialog
13378 - Overall SaveDialog handling should be better now
13379 - Added non standard ShowHiddenFiles property
13380 - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
13381 - Added InitialDirectory and RestoreDirectory support
13383 2005-03-26 Alexander Olk <xenomorph2@onlinehome.de>
13385 * FileDialog.cs: Made dirComboBox usable
13387 2005-03-24 Alexander Olk <xenomorph2@onlinehome.de>
13389 * FileDialog.cs: Added Filter support (case sensitiv)
13391 2005-03-24 Jackson Harper <jackson@ximian.com>
13393 * TabControl.cs: Need a couple more pixels for the lines.
13395 2005-03-23 Jackson Harper <jackson@ximian.com>
13397 * TabControl.cs: Give the tab page focus when it is selected.
13399 2005-03-23 Jackson Harper <jackson@ximian.com>
13401 * TabControl.cs: Account for the drawing of tabs borders when
13402 invalidating. If the slider was clicked dont do click detection on
13405 2005-03-23 Jackson Harper <jackson@ximian.com>
13407 * TabControl.cs: Fix typo, emilinates an unneeded expose event.
13409 2005-03-22 Jonathan Chambers <jonathan.chambers@ansys.com>
13411 * CategoryGridEntry.cs: Added
13412 * GridItem.cs: Added helper properties
13413 * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
13414 * GridEntry.cs: Updated code for collection
13415 * PropertyGrid.cs: Cleaned up some formatting
13416 * PropertyGridView.cs: Added drop down functionality for enums.
13417 * GridItemCollection.cs: Added enumerator logic
13418 * PropertyGridEntry.cs: Added
13420 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
13423 - Removed unnecessary commented code
13424 - Fixed handling for entering the filename manually in the combobox
13426 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
13428 * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
13430 2005-03-18 Peter Bartok <pbartok@novell.com>
13432 * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
13433 them being touching the border
13435 2005-03-18 Peter Bartok <pbartok@novell.com>
13437 * TextControl.cs: Quick hack to center text better
13439 2005-03-18 Peter Bartok <pbartok@novell.com>
13442 - Don't throw NotImplemented exceptions, just print a notice once
13443 instead (requested by Miguel). This makes running existing SWF
13446 - Commented out Drag'N'Drop XplatUI call (no driver support yet)
13447 - Added context menu trigger on right click
13448 * Panel.cs: Trigger invalidate on resize
13450 - Removed old double-buffer drawing
13451 - Added ResizeRedraw style to force proper update of statusbar
13453 - Removed debug output
13454 * ThemeWin32Classic.cs:
13455 - Fixed drawing of status bar, now draws Text property if there
13456 are no defined panels
13458 2005-03-18 Jackson Harper <jackson@ximian.com>
13460 * ImageList.cs: When the image stream is set pull all the images
13462 * ImageListStreamer.cs: Implement reading image list streams.
13464 2005-03-18 Peter Bartok <pbartok@novell.com>
13466 * ThemeWin32Classic.cs (DrawPictureBox):
13467 - Fixed calculations for centered drawing
13468 - Fixed drawing for normal mode, not scaling the image on normal
13470 2005-03-18 Peter Bartok <pbartok@novell.com>
13472 * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
13475 - Made Open/Save button the accept button for FileDialog
13476 - Tied the cancel button to the IButtonControl cancel button
13477 - Save/Open now properly builds the pathname
13478 - Now handles user-entered text
13479 - Preventing crash on right-click if no item is selected
13480 - Fixed Text property, now uses contents of textbox
13481 - Fixed SelectedText property, now just returns the text part that
13482 is selected in the text box
13484 2005-03-18 Jackson Harper <jackson@ximian.com>
13486 * ThemeWin32Classic.cs: Use the proper func for drawing the focus
13487 rect, make sure to de-adjust the interior rect after drawing the
13490 2005-03-18 Peter Bartok <pbartok@novell.com>
13492 * MenuAPI.cs: Remove menu *before* executing selected action to
13493 prevent the menu from 'hanging around'
13495 2005-03-17 Geoff Norton <gnorton@customerdna.com>
13497 * XplatUIOSX.cs: Implemented WorkingArea property
13499 2005-03-17 Peter Bartok <pbartok@novell.com>
13501 * XplatUIX11.cs: Fixed menu coord calculations
13502 * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
13503 for calculating offsets
13505 2005-03-17 Peter Bartok <pbartok@novell.com>
13507 * Hwnd.cs: Do not consider menu presence for default client
13508 rectangle location/size
13509 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
13510 XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
13511 translation functions
13512 * FileDialog.cs: Fixed (what I presume is a) typo
13514 2005-03-17 Jonathan Gilbert <logic@deltaq.org>
13516 * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
13517 X access (avoids X-Async errors)
13519 2005-03-16 Jackson Harper <jackson@ximian.com>
13521 * TabControl.cs: Raise the SelectedIndexChanged event.
13523 2005-03-16 Alexander Olk <xenomorph2@onlinehome.de>
13525 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
13526 - Removed vertical ToolBar and replaced it with a custom panel
13527 (desktop and home button already work)
13528 - Added Help button (some controls get resized or relocated then)
13529 - Draw correct text depending on Open or Save.
13530 - Fixed some typos...
13532 2005-03-16 Jordi Mas i Hernandez <jordi@ximian.com>
13535 - Only change Maximum and Minimum when need it (bug fix)
13537 2005-03-15 Peter Bartok <pbartok@novell.com>
13539 * Form.cs: Use Handle for icon, to trigger creation if
13540 the window does not yet exist
13542 - CanSelect: Slight performance improvement
13543 - Focus(): Preventing possible recursion
13544 - Invalidate(): Removed ControlStyle based clear flag setting
13545 - WM_PAINT: fixed logic for calling OnPaintBackground
13546 - WM_ERASEBKGND: Fixed logic, added call to new driver method
13547 EraseWindowBackground if the control doesn't paint background
13549 - Moved EraseWindowBackground() method to internal methods
13550 - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
13551 is sent via SendMessage on BeginPaint call on Win32
13553 - Added EraseWindowBackground() method
13554 - No longer sends WM_ERASEBKGND on .Expose, but on call to
13555 PaintEventStart, which more closely matches Win32 behaviour
13556 - Fixed Invalidate() call, now updates new ErasePending Hwnd property
13557 - Fixed SetFocus() to properly deal with client and whole windows
13558 * Hwnd.cs: Added ErasePending property
13559 * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
13560 * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
13562 2005-03-12 Geoff Norton <gnorton@customerdna.com>
13565 - Fix hard loop when timers exist.
13566 - Fix bugs with middle and right click for 3 button mice.
13568 2005-03-11 Peter Bartok <pbartok@novell.com>
13571 - get_WorkingArea: Need to call X directly, GetWindowPos only
13572 returns cached data now
13573 - Added sanity check to GetWindowPos hwnd usage
13575 2005-03-11 Jackson Harper <jackson@ximian.com>
13577 * BindingManagerBase.cs: This method isn't used anymore as
13578 PullData now updates the data in the control.
13580 2005-03-11 Jordi Mas i Hernandez <jordi@ximian.com>
13582 * Form.cs: fixes menu drawing on X11
13583 * MenuAPI.cs: fixes menu drawing on X11
13585 2005-03-11 Peter Bartok <pbartok@novell.com>
13587 * Control.cs: Changed OnCreateControl behaviour based on a suggestion
13588 from Jonathan Gilbert; should fix bug #73606
13589 * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
13590 in Screen coordinates. Thanks, Jordi.
13591 * Form.cs: Added missing attribute
13593 2005-03-11 Peter Bartok <pbartok@novell.com>
13596 - Rudimentary Mdi support
13597 - Removed outdated FormParent code
13598 - Implemented lots of missing properties and methods, still missing
13599 transparency support
13600 - Added missing attributes
13601 - Implemented support for MaximumBounds
13602 - Added firing of various events
13603 * XplatUI.cs: Added SetIcon() method
13604 * XplatUIDriver.cs: Added SetIcon() abstract
13605 * XplatUIOSX.cs: Stubbed out SetIcon() method
13607 - Implemented SetIcon() support
13608 - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
13609 - Switched to unix line endings
13611 - Made POINT internal so for can access it as part of MINMAX
13612 - Implemented SetIcon() support
13613 - Implemented support for CLIENTCREATESTRUCT (but might have to drop
13614 native Mdi support again, might have to go managed)
13615 * Control.cs: Now fires the StyleChanged event
13616 * MdiClient.cs: Added; still mostly empty
13618 2005-03-10 Peter Bartok <pbartok@novell.com>
13620 * SaveFileDialog.cs: Added emtpy file
13622 2005-03-08 Peter Bartok <pbartok@novell.com>
13624 * Control.cs: Fixed bug #73190; now invokes CreateControl (which
13625 in turn triggers OnCreateContro) when creating a handle for the
13627 * TextControl.cs: Fixed endless loop in certain cases when
13628 replacing the current selection
13630 2005-03-08 Jordi Mas i Hernandez <jordi@ximian.com>
13633 - Honors NewValue changes in Scroll events allowing apps to change it
13634 - Adds First and Last Scroll events
13635 - Fixes Thumb events
13637 2005-03-07 Peter Bartok <pbartok@novell.com>
13639 * Hwnd.cs: Added DefaultClientRectangle property
13640 * XplatUI.cs: Now using the X11 driver Where() method, which provides
13641 more detailed debug information
13643 - Fixed size-change feedback loop, where we would pull an old size
13644 off the queue and mistakenly change our window's size to an
13646 - Now compressing ConfigureNotify events, to reduce looping and
13648 * TextBoxBase.cs: Preventing crash when no text is set and ToString()
13651 2005-03-07 Jackson Harper <jackson@ximian.com>
13653 * Binding.cs: Push data pushes from data -> property. Check if the
13654 property is readonly when attempting to set it.
13656 2005-03-07 Jackson Harper <jackson@ximian.com>
13658 * Binding.cs: Format and parse data correctly. Use ASsignableFrom
13659 instead of IsSubclassOf. Pulling data now sets the value on the
13661 * PropertyManager.cs:
13662 * CurrencyManager.cs: Just need to pull data when updating now,
13663 because PullData will set the value on the control.
13665 2005-03-04 Jackson Harper <jackson@ximian.com>
13667 * Binding.cs: Implement data type parsing and converting on pulled
13668 data. TODO: Are there more ways the data can be converted?
13670 2005-03-04 Jackson Harper <jackson@ximian.com>
13672 * Binding.cs: Support <Property>IsNull checks. Also bind to the
13673 controls Validating method so we can repull the data when the
13674 control loses focus.
13676 2005-03-03 Jordi Mas i Hernandez <jordi@ximian.com>
13679 - Fixes null string format
13682 - Adds enum type checks
13683 - Fixes redrawing and recalc need after changing some properties
13684 - Fixes on focus_item set after the event
13685 - Fixes adding columns after the control has been created
13687 * ThemeWin32Classic.cs:
13688 - Fixes CheckBox focus rectangle
13689 - Fixes ColumnHeader drawing
13692 2005-03-03 Jackson Harper <jackson@ximian.com>
13694 * Binding.cs: Bind to <Property>Changed events so we can detect
13695 when properties are changed and update the data.
13697 2005-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
13700 - Changes 32-bit pixel format to Format32bppArgb to allow transparency
13701 - Fixes ImageList constructor with ImageList container
13702 - Fixes image scaling (wrong parameters at DrawImage)
13704 2005-02-02 Jackson Harper <jackson@ximian.com>
13706 * Binding.cs: Make property searches case-insensitive. Eliminate
13707 some duplicated code.
13709 2005-03-01 Jordi Mas i Hernandez <jordi@ximian.com>
13712 - Handle focus event
13713 - Fix scrollbar events
13714 - Discard highlighted item if remove it
13715 - Fixes SelectedItem with strings
13717 2005-03-01 Peter Bartok <pbartok@novell.com>
13720 - Fixed Visible property, now follows (once again) parent chain
13721 to return false if any control in the chain is visible=false
13722 - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
13723 - Fixed several places where is_visible instead of Visible was used
13724 - Implemented FIXME related to focus selection when setting focused
13725 control to be invisible
13727 * XplatUIWin32.cs: Now using proper method to find out if window is
13728 visible. Thanks to Jordi for pointing it out
13730 2005-02-28 Jordi Mas i Hernandez <jordi@ximian.com>
13732 * ComboBox.cs: show/hide scrollbar instead of creating it
13734 2005-02-27 Jackson Harper <jackson@ximian.com>
13736 * CurrencyManager.cs: Add PositionChanged stuff.
13738 2005-02-27 Peter Bartok <pbartok@novell.com>
13740 * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
13741 * XplatUIOSX.cs: Added GetMenuOrigin() stub
13742 * XplatUIWin32.cs: Implemented GetMenuOrigin()
13744 - Implemented GetMenuDC()
13745 - Implemented GetMenuOrigin()
13746 - Implemented ReleaseMenuDC()
13747 - Implemented generation of WM_NCPAINT message
13748 - Implemented generation and handling of WM_NCCALCSIZE message
13749 * Form.cs: Added debug helper message for Jordi's menu work
13751 - Modified ClientRect property; added setter, fixed getter to handle
13752 setting of ClientRect
13753 - Added MenuOrigin property
13755 2005-02-26 Peter Bartok <pbartok@novell.com>
13758 - Destroys the caret if a window that's being destroyed contains it
13759 - Ignores expose events coming from the X11 queue for windows that
13760 already are destroyed
13761 - Now uses the proper variable for handling DestroyNotify, before we
13762 marked the wrong window as destroyed
13763 - Improved/added some debug output
13765 2005-02-26 Peter Bartok <pbartok@novell.com>
13767 * X11Keyboard.cs: Fixes to work on 64bit systems
13769 2005-02-26 Peter Bartok <pbartok@novell.com>
13772 - Now calling OnHandleDestroyed from DestroyHandle()
13773 instead of Dispose()
13774 - Removed bogus call to controls.Remove() from DestroyHandle()
13776 2005-02-26 Peter Bartok <pbartok@novell.com>
13778 * Control.cs: Properly destroy child windows when our handle is
13781 2005-02-25 Peter Bartok <pbartok@novell.com>
13784 - Added 'DriverDebug' define to allow tracing XplatUI API calls
13785 - Alphabetized Static Methods and Subclasses
13788 - Added XException class to allow custom handling of X11 exceptions
13789 - Created custom X11 error handler, tied into XException class
13790 - Added support for MONO_XEXCEPTIONS env var to allow the user
13791 to either throw an exception on X errors or continue running
13792 after displaying the error
13793 - Added handling of DestroyNotify message
13794 - Added handler for CreateNotify message (still disabled)
13795 - Improved (tried to at least) Where method to provide file and lineno
13797 - Added XErrorHandler delegate
13798 - Added XRequest enumeration (to suppor translation of errors)
13800 2005-02-25 Jackson Harper <jackson@ximian.com>
13802 * PropertyManager.cs: Implement editing features
13803 * CurrencyManager.cs:
13804 * Binding.cs: First attempt at UpdateIsBinding
13805 * BindingManagerBase.cs: Call UpdateIsBinding before
13806 pushing/pulling data.
13808 2005-02-25 Jordi Mas i Hernandez <jordi@ximian.com>
13810 * MenuAPI.cs: Respect disabled items
13811 * ThemeWin32Classic.cs
13812 - Caches ImageAttributes creation for DrawImageDisabled
13813 - Fixes vertical menu line drawing
13814 - Draws disabled arrows in disable menu items
13816 2005-02-24 Peter Bartok <pbartok@novell.com>
13819 - Added UserData property to allow associating arbitrary objects
13821 - Fixed leak; now removing Hwnd references from static windows array
13823 - Fixed Graphics leak in PaintEventEnd
13824 - Removed usage of HandleData, switched over to Hwnd class
13825 * HandleData.cs: Removed, obsoleted by Hwnd.cs
13827 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
13829 * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
13830 * ScrollBar.cs: Fixes bug
13831 * TrackBar.cs: removes death code, clipping, mimize refreshes,
13832 keyboard navigation enhancements
13834 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
13836 * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
13837 * GroupBox.cs: Add control styles
13838 * Label.cs: Add control styles
13839 * UpDownBase.cs: Add control styles
13840 * ListBox.cs: Add control styles
13841 * XplatUIWin32.cs: Fixes wrong parameter order
13844 2005-02-23 Chris Bacon <chris.bacon@docobo.co.uk>
13846 * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
13848 2005-02-23 Jackson Harper <jackson@ximian.com>
13850 * PropertyManager.cs: Implement property binding. This doesn't
13851 seem to work yet though as (I think) there are some bugs in
13852 System.ComponentModel.PropertyDescriptor.
13853 * BindingContext.cs: Use new PropertyManager constructor.
13855 2005-02-23 Jordi Mas i Hernandez <jordi@ximian.com>
13857 * ProgressBar.cs: use clip region in ProgressBar
13858 * ThemeWin32Classic.cs: use clip region in ProgressBar
13860 2004-02-22 Jackson Harper <jackson@ximian.com>
13862 * BindingsCollection.cs: Remove some debug code.
13864 2005-02-22 Jackson Harper <jackson@ximian.com>
13866 * BindingContext.cs:
13867 * ControlBindingsCollection.cs:
13868 * CurrencyManager.cs:
13870 * BindingManagerBase.cs: Initial implementation
13871 * BindingsCollection.cs: Add an internal contains method that the
13872 BindingManagerBase uses to ensure bindings aren't added twice to
13874 * PropertyManager.cs: Stubbed out.
13876 * ContainerControl.cs: Hook up databinding
13878 2005-02-22 Geoff Norton <gnorton@customerdna.com>
13881 OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
13882 Fixed Invalidate/Update chain.
13883 Fixed tons of other minor bugs (this is almost a complete rewrite).
13885 2005-02-22 Jordi Mas i Hernandez <jordi@ximian.com>
13887 * ComboBox.cs: do subcontrol creation when the control is created
13889 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
13891 * Label.cs: fixes image drawing (image and imagelist)
13892 * ThemeWin32Classic.cs: cache brushes
13894 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
13896 * Form.cs: Move menu drawing code to Theme class
13897 * ComboBox.cs: Move ComboBox drawing code to Theme class
13898 * MenuItem.cs: Move menu drawing code to Theme class
13899 * MenuAPI.cs: Move menu drawing code to Theme class
13900 * ThemeWin32Classic.cs: New methods
13901 * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
13902 * ListBox.cs: Move Listbox drawing code to Theme class
13903 * Theme.cs: New methods
13905 2005-02-20 Peter Bartok <pbartok@novell.com>
13908 - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
13909 only process mnemonics on those)
13910 - Fixed event sequence for key handling; first calling
13911 ProcessKeyEventArgs now
13913 - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
13914 for processing non-character keys
13915 - Fixed WM_CHAR to generate proper event sequence before processing
13916 * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
13919 2005-02-19 Peter Bartok <pbartok@novell.com>
13921 * UserControl.cs: Added TextChanged event; added attributes
13922 * SizeGrip.cs: Implemented resizing and optional display of grip
13923 * Form.cs: Fixed attribute
13924 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
13925 Changed meaning of ScrollWindow bool argument; instead of the
13926 clear attribute (which will be true usually anyway), it gives the
13927 option of moving child controls as well.
13929 - Changed to match new ScrollWindow argument
13930 - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
13931 now handles the implicit parent window a WM puts around us
13932 * ScrollableControl.cs: Implemented (not the prettiest, but it seems
13934 * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
13935 * TreeView.cs: Adjusted to new ScrollWindow arguments
13937 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
13939 * Form.cs: Menu integration with non-client area
13940 * MenuItem.cs: Menu integration with non-client area
13941 * MenuAPI.cs: Menu integration with non-client area
13943 2005-02-18 Peter Bartok <pbartok@novell.com>
13945 * MethodInvoker.cs: Added
13946 * MdiLayout.cs: Added
13947 * SendKeys.cs: Started implementation
13948 * ErrorIconAlignment.cs: Added
13950 2005-02-18 Peter Bartok <pbartok@novell.com>
13952 * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
13953 * Form.cs: Added handling for Menu-related Non-client messages
13955 2005-02-17 Peter Bartok <pbartok@novell.com>
13957 * UpDownBase.cs: Fixed typo, compilation errors
13958 * DomainUpDown.cs: Fixed attribute value
13960 2005-02-16 Miguel de Icaza <miguel@novell.com>
13962 * UpDownBase.cs: Attach entry events.
13964 Add ForeColor property, Focused, InterceptArrowKeys (interception
13965 does not work yet).
13967 2005-02-17 Jordi Mas i Hernandez <jordi@ximian.com>
13970 - Redraw non client are on Setmenu
13971 - Calc proper menu starting point
13973 2005-02-17 Peter Bartok <pbartok@novell.com>
13975 * Application.cs: Fixed message_filter check
13977 2005-02-17 Peter Bartok <pbartok@novell.com>
13979 * Application.cs: Now calls registered message filters
13980 * DockStyle.cs: Fixed attribute
13981 * Form.cs: Fixed attribute
13982 * Menu.cs: Fixed attribute
13983 * ToolTip.cs: Fixed attribute
13984 * TreeNode.cs: Added missing attributes and arranged in regions
13985 * PropertyGrid.cs: Fixed signatures
13986 * TreeNodeCollection.cs: Added attributes
13987 * Splitter.cs: Added missing attributes; arranged into regions
13988 * TabPage.cs: Added missing attributes; arranged into regions
13989 * TextBoxBase.cs: Added missing attributes
13990 * TextBox.cs: Added missing attributes
13991 * ArrangeDirection.cs: Added missing attributes
13992 * TreeNodeConverter.cs: Added stub (needed for TreeNode)
13993 * ToolBarButton.cs: Fixed attributes
13994 * AnchorStyles.cs: Fixed attribute
13995 * TrackBar.cs: Fixed attributes
13996 * TabControl.cs: Added missing attributes and arranged into regions
13997 * ToolBar.cs: Fixed attribute
13998 * StatusBar.cs: Fixed signature, organized into regions and added
14000 * StatusBarPanel.cs: Fixed attributes
14001 * ContentsResizedEventArgs.cs: Implemented
14002 * ContentsResizedEventHandler.cs: Implemented
14003 * DateBoldEventArgs.cs: Implemented
14004 * DateBoldEventHandler.cs: Implemented
14005 * UpDownEventArgs.cs: Implemented
14006 * UpDownEventHandler.cs: Implemented
14008 2005-02-16 Jordi Mas i Hernandez <jordi@ximian.com>
14010 * Form.cs: first Menu NC refactoring
14011 * MenuAPI.cs: first Menu NC refactoring
14013 2005-02-16 Peter Bartok <pbartok@novell.com>
14015 * ImeMode.cs: Added missing attributes
14016 * Menu.cs: Fixed attribute
14017 * GroupBox.cs: Fixed attribute
14018 * Label.cs: Fixed attribute
14019 * ColorDialog.cs (RunDialog): Removed TODO attribute
14020 * ComboBox.cs: Fixed attributes
14021 * ListControl.cs: Added missing attributes
14022 * PropertyGrid.cs: Fixed attributes
14023 * Control.cs: Fixed attributes
14024 * ListViewItem.cs: Added TypeConverter attribute
14025 * NotifyIcon.cs: Fixed attributes
14026 * ListView.cs: Fixed attributes
14027 * ButtonBase.cs: Fixed attribute
14028 * ImageList.cs: Added missing attributes
14029 * ContainerControl.cs: Fixed signature
14030 * CheckedListBox.cs: Fixed attribute; added missing attributes
14031 * Panel.cs: Fixed attributes
14032 * PropertyTabChangedEventArgs.cs: Added missing attribute
14033 * PropertyValueChangedEventArgs.cs: Added missing attribute
14034 * Binding.cs: Fixed attribute
14035 * ListViewItemConverter: Implemented ListViewSubItemConverter class
14036 * ListBox.cs: Fixed attribute; added missing attributes;
14037 * ScrollableControl.cs: Added missing attributes
14038 * PictureBox.cs: Added missing attributes; implemented missing property
14039 * DateTimePicker.cs: Added missing attributes
14040 * Theme.cs (ToolWindowCaptionHeight): Fixed type
14041 * MonthCalendar.cs: Fixed attributes
14042 * StatusBarPanel.cs: Added missing attributes
14043 * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
14045 2005-02-16 Peter Bartok <pbartok@novell.com>
14047 * TextBoxBase.cs: The previous method to enforce height yet remember
14048 the requested high was less than ideal, this is an attempt to do
14050 * Control.cs: Added comment about possible problem
14051 * Copyright: Updated format
14052 * GridItemType.cs: Fixed swapped values
14054 2005-02-15 Jackson Harper <jackson@ximian.com>
14056 * BaseCollection.cs: Use property so we never access an
14057 uninitialized list. Also initialize the list in the property.
14059 2005-02-15 Peter Bartok <pbartok@novell.com>
14061 * GroupBox.cs (ProcessMnemonic): Implemented
14062 * Label.cs (ProcessMnemonic): Implemented
14063 * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
14066 2005-02-15 Peter Bartok <pbartok@novell.com>
14068 * RadioButton.cs (ProcessMnemonic): Implemented
14069 * CheckBox.cs (ProcessMnemonic): Implemented
14071 - Added handling of WM_SYSxxx keyboard messages to support mnemonic
14073 - Added internal method to allow calling ProcessMnemonic from other
14075 * ContainerControl.cs:
14076 - Started support for handling validation chain handling
14077 - Implemented ProcessMnemonic support
14078 - Added Select() call to Active, to make sure the active control
14080 * Form.cs: Setting toplevel flag for Forms (this was lost in the
14081 FormParent rewrite)
14082 * ThemeWin32Classic.cs:
14083 - DrawCheckBox(): Fixed stringformat to show hotkeys
14084 - DrawRadioButton(): Fixed stringformat to show hotkeys
14085 * CommonDialog.cs: Removed WndProc override, not needed
14087 2005-02-14 Peter Bartok <pbartok@novell.com>
14089 * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
14090 missed those in the rewrite
14092 2005-02-14 Miguel de Icaza <miguel@novell.com>
14094 * NumericUpDown.cs (Increment, ToString): Add.
14095 (DecimalPlaces): implement.
14099 * UpDownBase.cs: Add the designer attributes.
14101 2005-02-13 Peter Bartok <pbartok@novell.com>
14103 * Panel.cs: Removed border_style, now in Control
14104 * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
14105 ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
14107 2005-02-13 Peter Bartok <pbartok@novell.com>
14109 * MouseButtons.cs: Added missing attributes
14110 * XplatUIStructs.cs: Added enumeration for title styles
14111 * LeftRightAlignment.cs: Added missing attributes
14112 * Hwnd.cs: Switched to use client_window as handle (slower, but makes
14113 it compatible with Graphics.FromHwnd()
14114 * SelectedGridItemChangedEventArgs.cs: Fixed property type
14115 * Keys.cs: Added missing attributes
14116 * SelectionRange.cs: Added missing attributes
14117 * SelectionRangeConverter.cs: Added
14119 - Introduced SetBorderStyle, SetMenu, GetMenuDC and
14120 ReleaseMenuDC methods
14121 - Renamed ReleaseWindow to UngrabWindow
14122 - Added proper startup notice to allow version identification
14124 - Added missing attributes
14125 - Removed FormParent concept
14126 * Label.cs: Removed border_style field, now in Control
14127 * RadioButton.cs: Now properly selects RadioButton when focus is
14129 * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
14131 - Added missing attributes
14132 - Added borderstyle handling
14133 - Removed FormParent concept support
14134 - Fixed calls to XplatUI to match changed APIs
14135 - Fixed bug that would case us to use disposed Graphics objects
14136 - Removed unneeded internal methods
14137 - PerformLayout(): Fixed to handle DockStyle.Fill properly
14138 - SelectNextControl(): Fixed to properly check common parents
14139 * TextBoxBase.cs: Removed border_style field (now in Control)
14141 - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
14142 fixed calculations for form size
14143 - Added support for localized strings and icons
14144 - Improved form size calculations, added border
14145 * ListView.cs: Removed border_style field (now in Control)
14146 * X11Structs.cs: Moved several structs from X11 driver here
14147 * X11Keyboard.cs: Changed debug message
14148 * Application.cs: Removed FormParent concept support
14150 - Resetting end_modal flag
14151 - Removed FormParent concept support
14152 * NativeWindow.cs: Removed FormParent concept support
14153 * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
14154 Client area and Non-Client whole window to allow support for WM_NC
14156 * XplatUIOSX.cs: Updated to match latest driver spec; added exception
14157 prevent using it until it supports Hwnd as per Geoff Norton's request
14158 * ToolBar.cs: Fixed drawing, was not doing proper drawing
14159 * PictureBox.cs: Removed border_style field, now in Control
14160 * XplatUIWin32.cs: Added new driver methods
14162 2005-02-12 Peter Bartok <pbartok@novell.com>
14164 * OpacityConverter.cs: Implemented
14165 * Hwnd.cs: Internal class to support drivers that need to emulate
14166 client area/non-client area window behaviour
14168 2005-02-11 Peter Bartok <pbartok@novell.com>
14170 * KeysConverter.cs: Implemented
14172 2005-02-11 Jordi Mas i Hernandez <jordi@ximian.com>
14174 * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
14175 * LinkLabel: Added missing attributes
14176 * MainMenu.cs: fixes ToString
14177 * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
14178 * ListBox.cs: fixes event position
14179 * TrackBar.cs: adds missing attributes and events
14181 2005-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
14183 * MenuItem.cs: Use SystemInformation and bug fixes
14184 * MenuAPI.cs: Use SystemInformation and bug fixes
14186 2005-02-09 Jackson Harper <jackson@ximian.com>
14188 * X11Keyboard.cs: We ignore some keys, but still need to set/reset
14189 their keystate otherwise things like VK_MENU get stuck "on".
14191 2005-02-09 Kazuki Oikawa <kazuki@panicode.com>
14193 * ListBox.cs: Fixes AddRange bug
14195 2005-02-09 Jordi Mas i Hernandez <jordi@ximian.com>
14198 - Add missing attributes
14199 - Add missing method
14201 * CheckedListBox.cs: Added missing attributes
14202 - Add missing attributes
14203 - Remove extra method
14205 * ComboBox.cs: Added missing attributes
14206 * VScrollBar.cs: Added missing attributes
14207 * ScrollBar.cs: Added missing attributes
14208 * ListBox.cs: Fixes signature, add missing consts
14209 * LinkArea.cs: Added missing attributes
14212 2005-02-08 Peter Bartok <pbartok@novell.com>
14214 * Menu.cs: Added missing attributes
14215 * MainMenu.cs: Added missing attributes
14216 * GroupBox.cs: Added missing attributes
14217 * Label.cs: Added missing attributes
14218 * CheckBox.cs: Implemented CheckBoxAccessibleObject class
14220 - Added Instance and Options properties
14221 - Added missing attributes
14222 * Cursor.cs: Made Serializable
14223 * NotifyIcon: Added missing attributes
14224 * MenuItem.cs: Added missing attributes
14225 * TextBoxBase.cs: Implemented AppendText() and Select() methods
14226 * Panel.cs: Added Missing attributes
14227 * MonthCalendar.cs: Fixed CreateParams
14229 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
14233 - Fixes issues with links
14234 - Adds the class attributes
14236 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
14239 - Fixes button when no items available in dropdown
14240 - Fixes repainting problems
14241 - Adds the class attributes
14243 2005-02-07 Geoff Norton <gnorton@customerdna.com>
14245 * XplatUIOSX.cs: Detect the menu bar and title bar height from
14246 the current theme. Cache these on startup.
14248 2005-02-07 Jackson Harper <jackson@ximian.com>
14250 * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
14251 the scrollbar buttons when they are depressed.
14253 2005-02-07 Geoff Norton <gnorton@customerdna.com>
14255 * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
14256 Get the display size from the main displayid. We currently dont
14257 support multiple display configurations.
14259 2005-02-07 Geoff Norton <gnorton@customerdna.com>
14261 * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
14263 2005-02-07 Miguel de Icaza <miguel@novell.com>
14265 * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
14267 2005-02-05 Jonathan Chambers <jonathan.chambers@ansys.com>
14269 * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
14271 2005-02-04 Jackson Harper <jackson@ximian.com>
14273 * ThemeWin32Classic.cs: Respect the clipping rect when
14274 drawing. Only fill the intersection of clips and rects so there
14275 isn't a lot of large fills.
14276 * ScrollBar.cs: Pass the correct clipping rect to the theme
14277 engine. Remove some debug code.
14279 2005-02-05 John BouAntoun <jba-mono@optusnet.com.au>
14281 * DateTimePicker.cs:
14282 - Fixed crash on DateTime.Parse, use Constructor instead
14284 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
14288 - Owner draw support (MeasureItem and DrawItem)
14290 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
14293 - Implements FindMergePosition and MergeMenu functions (very poor documented)
14294 - Fixes MenuItems.Add range
14296 - MergeMenu and Clone and CloneMenu functions
14298 2005-02-03 Jackson Harper <jackson@ximian.com>
14300 * ScrollBar.cs: Make abstract
14301 * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
14304 2005-02-03 Jackson Harper <jackson@ximian.com>
14306 * ScrollBar.cs: First part of my scrollbar fixups. This removes
14307 all the unneeded refreshes and uses invalidates with properly
14310 2005-02-03 Peter Bartok <pbartok@novell.com>
14312 * ComponentModel.cs: Added
14313 * IDataGridEditingService.cs: Added
14314 * Timer.cs: Added missing attributes
14315 * ToolTip.cs: Added missing attributes
14317 2005-02-03 Jonathan Chambers <jonathan.chambers@ansys.com>
14319 * PropertyGridView.cs: Added. Patch by Jonathan Chambers
14321 2005-02-03 Peter Bartok <pbartok@novell.com>
14323 * ListBox.cs: Added missing attributes
14325 2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
14328 - Fixes font height after font change
14329 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
14331 2005-02-02 Peter Bartok <pbartok@novell.com>
14333 * HandleData.cs: Introduced static methods to allow class
14334 to be more self-contained and track it's own HandleData objects
14335 * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
14336 HandleData to use new static methods
14338 2005-02-02 Jordi Mas i Hernandez <jordi@ximian.com>
14341 - Fixes default size and PreferredHeight
14343 - ObjectCollection.Insert implementation
14349 - ObjectCollection.Insert implementation
14350 - No selection after clean
14353 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
14355 * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
14357 2005-02-01 Jordi Mas i Hernandez <jordi@ximian.com>
14360 - Caches ItemHeight calculation for OwnerDrawVariable
14361 - Handles dropdown properly
14362 - Fixes several minor bugs
14364 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
14367 - Fixes 71946 and 71950
14368 - Fixes changing Multicolumn on the fly
14369 - Fixes keyboard navigation on Multicolumn listboxes
14371 2005-01-31 Geoff Norton <gnorton@customerdna.com>
14373 * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
14374 crash reporter log.
14376 2005-01-31 Geoff Norton <gnorton@customerdna.com>
14378 * XplatUIOSX.cs: Allow applications to actually exit.
14380 2005-01-31 Geoff Norton <gnorton@customerdna.com>
14382 * XplatUIOSX.cs: SetWindowStyle implemented. Reposition views in
14383 their parent at creation time rather than lazily later. Fixes a major
14384 regression we were experiencing.
14386 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
14388 * ThemeWin32Classic.cs: more date time picker painting fixes
14389 * DateTimePicker.cs: more monthcalendar drop down fixes
14390 * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
14392 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
14395 - When moving the thumb going outside the control should stop the moving
14396 - Adds the firing of missing events
14397 - Fixes no button show if Size is not specified
14398 - End / Home keys for keyboard navigation
14400 2005-01-30 Peter Bartok <pbartok@novell.com>
14402 * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
14403 sanity check to prevent theoretical loop
14404 * XplatUIWin32.cs (SetVisible): Removed debug output
14405 * XplatUIX11.cs (SystrayChange): Added sanity check
14406 * ScrollableControl.cs (OnVisibleChanged): Now calls base method
14407 * Control.cs (OnVisibleChanged): Added workaround for ParentForm
14408 behaviour, valid until the X11 client window rewrite is done
14409 * TextBox.cs (ctor): Setting proper default foreground and background
14412 2005-01-30 John BouAntoun <jba-mono@optusnet.com.au>
14414 * Theme: Added DrawDateTimePicker to interface
14415 * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
14416 * DateTimePicker.cs: Created (still needs keys and painting code)
14417 * DateTimePickerFormat.cs: added
14418 * MonthCalendar.cs: fixed CreateParams for popup window mode
14420 2005-01-29 Peter Bartok <pbartok@novell.com>
14422 * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
14423 this should also the calculations for ligher/darker
14424 * Theme.cs: Fixed defaults for ScrollBar widths/heights
14426 2005-01-29 Peter Bartok <pbartok@novell.com>
14428 * ArrangeDirection.cs: Added
14429 * ArrangeStartingPositon.cs: Added
14430 * SystemInformation.cs: Implemented
14431 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
14432 XplatUIX11.cs, Theme.cs: Added/implemented new static properties
14433 used by SystemInformation class
14434 * X11Strucs.cs: Added XSizeHints structure
14436 - Fixed CreateParams to make sure the menu window is always visible
14437 - TrackPopupMenu: Added check to make sure we don't draw the
14440 2005-01-29 Peter Bartok <pbartok@novell.com>
14442 * HandleData.cs: Added method for altering invalid area
14443 * TextBoxBase.cs: Implemented TextLength
14445 2005-01-28 Peter Bartok <pbartok@novell.com>
14447 * XplatUIX11.cs: Improvement over last patch, not sending
14448 the WM_PAINT directly anymore, instead we scroll any pending
14449 exposed areas and let the system pick out the WM_PAINT later
14451 2005-01-28 Peter Bartok <pbartok@novell.com>
14453 * SWF.csproj: Deleted, no longer used. Instead,
14454 Managed.Windows.Forms/SWF.csproj should be used
14455 * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
14456 directly, to avoid a potential race condition with the next
14459 2005-01-28 Peter Bartok <pbartok@novell.com>
14461 * XplatUI.cs: Made class internal
14463 2005-01-28 Jordi Mas i Hernandez <jordi@ximian.com>
14465 * CheckedListBox.cs:
14468 - Missing methods and events
14470 2005-01-27 Peter Bartok <pbartok@novell.com>
14472 * Application.cs (Run): Don't use form if we don't have one
14474 2005-01-27 Peter Bartok <pbartok@novell.com>
14476 * TextBoxBase.cs (get_Lines): Fixed index off by one error
14478 2005-01-27 Peter Bartok <pbartok@novell.com>
14480 * GridEntry.cs: Added; Patch by Jonathan S. Chambers
14481 * GridItem.cs: Added; Patch by Jonathan S. Chambers
14482 * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
14483 * GridItemType.cs: Added; Patch by Jonathan S. Chambers
14484 * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
14485 * PropertySort.cs: Added; Patch by Jonathan S. Chambers
14486 * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
14487 * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
14488 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
14489 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
14490 * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
14491 * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
14493 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
14496 - Draw focus on Simple Combobox
14497 - Fixes drawing issues
14500 2005-01-27 Peter Bartok <pbartok@novell.com>
14503 - Place window in default location, instead of hardcoded 0/0
14504 - Send initial LocationChanged event
14506 - UpdateBounds after creation to find out where the WM placed us
14507 - Make sure that if the ParentForm changes location the Form
14509 * XplatUIX11.cs: XGetGeometry will not return the coords relative
14510 to the root, but to whatever the WM placed around us.
14511 Translate to root coordinates before returning toplevel
14513 * XplatUIWin32.cs: Removed debug output
14514 * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
14515 flag to GetWindowPos, to allow translation of coordinates on X11
14517 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
14519 * ListBox.cs: connect LostFocus Event
14521 2005-01-27 Peter Bartok <pbartok@novell.com>
14523 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
14524 XplatUIX11.cs: Extended the Systray API
14525 * Form.cs: Removed debug output
14526 * Application.cs: Fixed focus assignment, always need to call
14527 XplatUI.Activate() since Form.Activate() has rules that may
14529 * NotifyIcon.cs: Should be complete now
14530 * ToolTip.cs: Worked around possible timer bug
14532 2005-01-27 Jackson Harper <jackson@ximian.com>
14535 - Only invalidate the effected tabs when the
14536 selected index changes. This reduces drawing and gets rid of some
14538 - Only refresh if the tabs need to be shifted, otherwise only
14539 invalidate the slider button.
14540 - On windows the tabs are not filled to right if the slider is
14543 2005-01-27 Jackson Harper <jackson@ximian.com>
14545 * TabControl.cs: Only refresh on mouseup if we are showing the
14546 slider. Also only invalidate the button whose state has changed.
14548 2005-01-26 Peter Bartok <pbartok@novell.com>
14550 * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
14551 * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
14552 and SystrayRemove() methods
14553 * XplatUIOSX.cs: Stubbed Systray methods
14555 - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
14557 - Fixed broken XChangeProperty calls (marshalling messed up things)
14558 * X11Structs.cs: Added enums and structs required for Size hinting
14559 * NotifyIcon.cs: Added & implemented
14561 2005-01-26 Jackson Harper <jackson@ximian.com>
14563 * TabControl.cs: Space vertically layed out tabs properly.
14565 2005-01-26 Peter Bartok <pbartok@novell.com>
14567 * Form.cs (CreateClientParams): Always set the location to 0,0
14568 since we're a child window.
14570 * Control.cs (SetVisibleCore): Always explicitly setting the location
14571 of a toplevel window, apparently X11 doesn't like to move windows
14572 while they're not mapped.
14574 2005-01-26 Jackson Harper <jackson@ximian.com>
14576 * TabControl.cs: Implement FillToRight size mode with vertically
14579 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
14581 * ControlPaint.cs, ThemeWin32Classic.cs
14582 - Fixes DrawFocusRectangle
14584 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
14587 - MenuBar tracking only starts when item is first clicked
14588 - Fixes menu hidding for multiple subitems
14589 - Unselect item in MenuBar when item Executed
14592 2005-01-25 Jordi Mas i Hernandez <jordi@ximian.com>
14595 - IsInputKey for ListBox
14598 - Shift and Control item selection
14599 - Implement SelectionMode.MultiExtended
14600 - Fixes RightToLeft
14602 - IsInputKey implemented
14603 - Do not generate OnTextChangedEdit on internal txt changes
14605 2005-01-23 Peter Bartok <pbartok@novell.com>
14607 * AccessibleObject.cs: Partially implemented Select()
14608 * MonthCalendar.cs: Added missing attributes and events
14609 * Form.cs: Fixed CreateParams behaviour, now controls derived from
14610 form can properly override CreateParams.
14611 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
14612 XplatUIX11.cs: Dropped RefreshWindow method, not needed if
14613 Control performs Invalidate & Update
14614 * NativeWindow (CreateHandle): Added special handling for Form
14615 and Form.FormParent classes to allow overriding of From.CreateParams
14617 - ControlNativeWindow: Renamed 'control' variable to more intuitive
14619 - ControlNativeWindow: Added Owner property
14620 - Removed usage of Refresh() on property changes, changed into
14621 Invalidate(), we need to wait until the queue is processed for
14622 updates, direct calls might cause problems if not all vars for
14623 Paint are initialized
14624 - Added call to UpdateStyles() when creating the window, to set any
14625 styles that CreateWindow might have ignored.
14626 - Added support for Form CreateParent overrides to UpdateStyles()
14627 * MessageBox.cs: Removed no longer needed FormParent override stuff,
14628 CreateParams are now properly overridable
14629 * CommonDialog.cs: Removed no longer needed FormParent override stuff,
14630 CreateParams are now properly overridable
14632 2005-01-23 Miguel de Icaza <miguel@ximian.com>
14634 * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
14637 Capture LostFocus and OnTextBoxChanged. The later introduces a
14638 recursive invocation that I have not figured out yet.
14640 Reset the timer when not using (it was accumulating).
14643 (OnTextBoxChanged): Set UserEdit to true here to track whether the
14644 user has made changes that require validation.
14646 Reset changing to avoid loops.
14648 2005-01-22 Miguel de Icaza <miguel@ximian.com>
14650 * NumericUpDown.cs: Display value at startup.
14652 * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
14655 * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
14656 filled in. Added some basic parsing of text.
14658 Still missing the OnXXX method overrides, and figuring out the
14659 events that must be emitted.
14661 * UpDownBase.cs: Handle UserEdit on the Text property.
14663 2005-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
14666 - Fixes IntegralHeight
14669 2005-01-21 Jackson Harper <jackson@ximian.com>
14671 * TabControl.cs: Set the SelectedIndex property when SelectedTab
14672 is set so that the page visibility is updated and the tabs are
14675 2005-01-21 Jackson Harper <jackson@ximian.com>
14677 * TabControl.cs: Use cliping rectangle for blitting. Give the
14678 theme the clipping rect so we can do clipping while
14679 drawing. Remove some debug code.
14681 2005-01-21 Jackson Harper <jackson@ximian.com>
14683 * TabPage.cs: Add a new method so tab pages can force the tab
14684 control to recalculate the tab page sizes.
14685 * TabControl.cs: UpdateOwner needs to make the tab control recalc
14688 2005-01-20 Jackson Harper <jackson@ximian.com>
14690 * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
14692 2005-01-20 Jackson Harper <jackson@ximian.com>
14694 * TreeView.cs: Set the bounds for nodes properly. They were
14695 getting screwed up when checkboxes were not enabled, but images
14698 2005-01-20 Jordi Mas i Hernandez <jordi@ximian.com>
14701 - Owner draw support
14704 2005-01-20 Jackson Harper <jackson@ximian.com>
14706 * XplatUIStructs.cs: More misc keys
14707 * X11Keyboard.cs: Ignore some control keys.
14709 2005-01-20 Jackson Harper <jackson@ximian.com>
14711 * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
14712 * X11Keyboard.cs: Set the AltGr mask when we get a key event.
14714 2005-01-19 Peter Bartok <pbartok@novell.com>
14716 * Control.cs: Un-selecting the control when it is loosing focus
14718 2005-01-19 Jackson Harper <jackson@ximian.com>
14720 * TreeView.cs: Hook up to the text controls leave event so we can
14721 end editing when the users clicks outside the text box.
14723 2005-01-19 Jackson Harper <jackson@ximian.com>
14725 * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
14726 get set in the conversion array.
14728 2005-01-19 Peter Bartok <pbartok@novell.com>
14730 * Application.cs (ModalRun): Added a call to CreateControl to ensure
14731 focus is properly set
14733 - Added missing attributes
14734 - removed styles, those are already set in the base class
14736 - Added missing attributes
14737 - Added clip window styles
14738 * CheckBox.cs: Added missing attributes
14740 - FormParentWindow.CreateParams: Added required clip styles
14741 * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
14742 also filters modifier keys
14744 - Added assignment of Accept and Cancel button to enable Enter
14745 and Esc keys in MessageBox dialogs
14746 - FormParentWindow.CreateParams: Added required clip styles
14747 * RadioButton.cs: Added missing attributes
14748 * TextControl.cs: No longer draws selection if control does not
14751 - Now draws simple rectangle around test area to make it obvious
14752 there's a control. This is a hack until we properly support borders
14753 - A few simple fixes to support selections better, now erases selected
14754 text when typing, and resets selection when using movement keys
14756 2005-01-19 Miguel de Icaza <miguel@ximian.com>
14758 * UpDownBase.cs: Added some new properties.
14760 * DomainUpDown.cs: Implement a lot to get my test working.
14762 2005-01-19 Geoff Norton <gnorton@customerdna.com>
14764 * XplatUIOSX.cs: Fix a minor bug to bring the close box back
14766 2005-01-19 Geoff Norton <gnorton@customerdna.com>
14768 * OSXStructs (WindowAttributes): Fixed csc complaints
14770 2005-01-19 Geoff Norton <gnorton@customerdna.com>
14773 OSXStructs.cs: Initial refactor to move enums and consts into
14774 OSXStructs and use them in the driver for greater readability.
14776 2005-01-19 Geoff Norton <gnorton@customerdna.com>
14778 * XplatUIOSX.cs: Initial support for Standard Cursors.
14779 * OSXStructs.cs: Move our structs here; added ThemeCursor enum
14781 2005-01-19 Jordi Mas i Hernandez <jordi@ximian.com>
14783 * ComboBox.cs: ability to change style when the ctrl is already
14784 created, missing methods and events, bug fixes, signature fixes
14786 2005-01-19 Peter Bartok <pbartok@novell.com>
14788 * Cursors.cs (ctor): Added ctor to fix signature
14790 2005-01-18 Peter Bartok <pbartok@novell.com>
14792 * Button.cs: Implemented DoubleClick event
14794 - Fixed keyboard handling to behave like MS, where the press of
14795 Spacebar is equivalent to a mousedown, and the key release is
14796 equivalent to mouseup. Now a spacebar push will give the same
14797 visual feedback like a mouse click.
14798 - Added missing attributes
14799 - Added ImeModeChanged event
14800 - Added support for generating DoubleClick event for derived classes
14802 - Implemented DoubleClick event
14803 - Added missing attributes
14804 * CommonDialog.cs: Added missing attribute
14805 * ContextMenu.cs: Added missing attributes
14807 - AutoChecked buttons do not allow to be unselected when clicked
14808 (otherwise we might end up with no selected buttons in a group)
14809 - Added missing attributes
14810 - Implemented DoubleClickEvent
14811 * ThreadExceptionDialog.cs: Enabled TextBox code
14813 2005-01-18 Peter Bartok <pbartok@novell.com>
14815 * Form.cs: Removed debug output
14816 * Button.cs: Added support for DoubleClick method
14818 2005-01-18 Peter Bartok <pbartok@novell.com>
14821 - Added method to parent window that allows triggering size
14822 calculations when a menu is added/removed
14823 - set_Menu: Cleaned up mess from early days of Form and Control,
14824 now properly triggers a recalc when a menu is added/removed
14825 - Added case to select form itself as focused form if no child
14827 - Added PerformLayout call when showing dialog, to ensure properly
14830 - Select(): Made internal so Form can access it
14831 - Focus(): Only call Xplat layer if required (avoids loop), and sets
14833 * Application.cs (Run): Removed hack and calls PerformLayout instead
14834 to trigger calculation when Form becomes visible
14836 2005-01-18 Jordi Mas i Hernandez <jordi@ximian.com>
14838 * ComboBox.cs: fixes for ownerdraw
14840 2005-01-18 Peter Bartok <pbartok@novell.com>
14843 - Sentinel is no longer static, each Document gets it's own, this
14844 avoids locking or alternatively overwrite problems when more
14845 than one text control is used simultaneously.
14846 - Switched to use Hilight and HilightText brushes for text selection
14848 * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
14850 2005-01-18 Peter Bartok <pbartok@novell.com>
14853 - Hooked up the following events:
14861 o SystemColorsChanged
14862 o ParentFontChanged
14864 - Removed debug output
14865 - Added a call to the current theme's ResetDefaults when a color change
14867 * Form.cs: Now setting the proper ImeMode
14868 * Theme.cs: Defined a method to force recreation of cached resources
14869 and rereading of system defaults (ResetDefaults())
14870 * ThemeWin32Classic.cs: Added ResetDefaults() stub
14872 2005-01-17 Peter Bartok <pbartok@novell.com>
14874 * Control.cs: Added missing attributes
14876 2005-01-17 Jackson Harper <jackson@ximian.com>
14878 * TreeNode.cs: Implement editing. Add missing properties selected
14880 * TreeView.cs: Implement node editing. Also some fixes to use
14881 Invalidate (invalid area) instead of Refresh when selecting.
14883 2005-01-17 Peter Bartok <pbartok@novell.com>
14886 - Implemented InvokeGotFocus() method
14887 - Implemented InvokeLostFocus() method
14888 - Implemented InvokePaint() method
14889 - Implemented InvokePaintBackground() method
14890 - Implemented InvokeClick() method
14891 - Implemented FindForm() method
14892 - Implemented RectangleToClient() method
14893 - Implemented ClientToRectangle() method
14894 - Implemented ResetBackColor() method
14895 - Implemented ResetCursor() method
14896 - Implemented ResetFont() method
14897 - Implemented ResteForeColor() method
14898 - Implemented ResetImeMode() method
14899 - Implemented ResetLeftToRight() method
14900 - Implemented ResetText() method
14901 - Implemented Scale() methods
14902 - Implemented ScaleCore() method
14903 - Implemented Update() method
14904 - Removed unused variables
14905 - Stubbed AccessibilityNotifyClients and
14906 ControlAccessibleObject.NotifyClients() methods (dunno what to do
14908 - Now setting proper default for RightToLeft property
14909 - Fixed bug in SetClientSizeCore that would cause windows to get
14911 - Now sending Click/DoubleClick events
14912 - Now selecting controls when left mouse button is clicked on
14914 * AccessibleEvents.cs: Added
14915 * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
14916 * XplatUIOSX.cs: Stubbed UpdateWindow() method
14917 * XplatUIWin32.cs: Implemented UpdateWindow() method
14918 * XplatUIX11.cs: Implemented UpdateWindow() method
14919 * Form.cs: Removed stray semicolon causing CS0162 warning
14920 * ThemeWin32Classic.cs: Fixed unused variable warnings
14921 * ScrollableControl.cs: Now calls base method for ScaleCore
14922 * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
14923 style to avoid interference with internal click handler (which is
14924 different than standard Control click handling)
14926 - Now unchecks all sibling radio buttons when control is
14927 selected (Fixes #68756)
14928 - Removed internal tabstop variable, using the one inherited from
14931 2005-01-17 Jackson Harper <jackson@ximian.com>
14933 * NavigateEventArgs.cs: Fix base type.
14934 * LinkLabel.cs: Sig fix
14936 2005-01-17 Jackson Harper <jackson@ximian.com>
14938 * TreeView.cs: Only invalidate the effected nodes bounds when
14941 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
14943 * XplatUIWin32.cs: fixes Win32 marshaling
14944 * XplatUIX11.cs: fixes method signature
14946 2005-01-17 Peter Bartok <pbartok@novell.com>
14948 * XplatUIX11.cs: Clean up resources when we no longer need them
14950 2005-01-17 Peter Bartok <pbartok@novell.com>
14952 * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
14953 OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
14954 and DestroyCursor() methods.
14955 * Cursor.cs: Partially implemented, now supports standard cursors;
14956 still contains some debug code
14957 * Cursors.cs: Implemented class
14959 - WndProc(): Added handling of WM_SETCURSOR message, setting the
14961 - Implemented Cursor property
14962 - Replaced break; with return; more straightforwar and possibly
14964 - Now properly setting the result for WM_HELP
14965 * X11Structs.cs: Added CursorFontShape enum
14966 * XplatUIStructs.cs:
14967 - Added StdCursor enum (to support DefineStdCursor() method)
14968 - Added HitTest enum (to support sending WM_SETCURSOR message)
14970 - Now sends the WM_SETCURSOR message
14971 - Implemented new cursor methods
14972 * XplatUIOSX.cs: Stubbed new cursor methods
14974 - Implemented new cursor methods
14975 - Added GetSystemMetrics function and associated enumeration
14977 2005-01-15 Peter Bartok <pbartok@novell.com>
14980 - WndProc(): Now handles EnableNotifyMessage
14981 - SelectNextControl(): Fixed bug where if no child or sibling
14982 controls exist we looped endlessly
14984 2005-01-14 Jackson Harper <jackson@ximian.com>
14986 * TreeView.cs: Recalculate the tab pages when a new one is added
14987 so that the proper bounding rects are created.
14989 2005-01-14 Jackson Harper <jackson@ximian.com>
14991 * TreeView.cs: Draw a gray box instead of a grip in the lower
14992 right hand corner when there are both horizontal and vertical
14995 2005-01-14 Jackson Harper <jackson@ximian.com>
14997 * Control.cs: When erasing backgrounds use FromHwnd instead of
14998 FromHdc when there is a NULL wparam. This occurs on the X driver.
14999 * XplatUIX11.cs: Set the wparam to NULL.
15001 2005-01-13 Jackson Harper <jackson@ximian.com>
15003 * PictureBox.cs: Implement missing methods (except ToString, need
15004 to test that on windows) and events. When visibility is changed we
15005 need to redraw the image because the buffers are killed. When size
15006 is changed refresh if the sizemode needs it.
15008 2005-01-13 Peter Bartok <pbartok@novell.com>
15010 * Control.cs (SelectNextControl): Was using wrong method to select
15013 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
15015 * ComboBox.cs: fixes dropstyle
15017 2005-01-13 Peter Bartok <pbartok@novell.com>
15020 - Implemented Select() override
15021 - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
15022 - Now sets keyboard focus on startup
15023 * Control.cs (SelectNextControl): Now properly handles directed=true
15025 - WndProc: Now passes tab key on to base if AcceptTabChar=false
15026 - Added (really bad) focus rectangle (mostly for testing)
15027 * TextBox.cs: Added code to handle getting/loosing focus and invalidating
15028 to enforce redraw on focus changes
15029 * ContainerControl.cs:
15030 - Fixed detection of Shift-Tab key presses
15031 - Fixed traversal with arrow keys
15032 * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
15033 gonna keep this or if it's complete yet
15035 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
15037 * ComboBox.cs: missing properties, fixes
15039 2005-01-13 Peter Bartok <pbartok@novell.com>
15041 * Panel.cs (ctor): Setting Selectable window style to off
15042 * Splitter.cs (ctor): Setting Selectable window style to off
15043 * GroupBox.cs (ctor): Setting Selectable window style to off
15044 * Label.cs (ctor): Setting Selectable window style to off
15046 2005-01-12 Miguel de Icaza <miguel@ximian.com>
15048 * UpDownBase.cs (InitTimer): If the timer has been already
15049 created, enable it.
15051 Use a TextBox instead of a Label.
15053 2005-01-12 Jackson Harper <jackson@ximian.com>
15055 * TreeView.cs: Refresh the tree after sorting the nodes. Always
15056 draw the connecting node lines (when ShowLines is true).
15057 * TreeNode.cs: The nodes index can now be updated. This is used
15058 when a node collection is sorted.
15059 * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
15060 insert or an existing unsorted node collection can be sorted.
15062 2005-01-12 Peter Bartok <pbartok@novell.com>
15064 * ContainerControl.cs: Implemented ProcessDialogKeys()
15066 2005-01-12 Peter Bartok <pbartok@novell.com>
15069 - Implemented SelectNextControl() method
15070 - Several focus related bug fixes
15071 - Fixed Docking calculations to match MS documentation and
15074 2005-01-12 Jordi Mas i Hernandez <jordi@ximian.com>
15076 * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
15079 2005-01-12 Peter Bartok <pbartok@novell.com>
15082 - Fixed broken Contains() method
15083 - Implemented GetNextControl() method. Finally. This is the pre-
15084 requisite for focus handling.
15086 2005-01-12 Peter Bartok <pbartok@novell.com>
15088 * OSXStrucs.cs: Added
15090 2005-01-12 Peter Bartok <pbartok@novell.com>
15093 - Removed PeekMessageFlags
15094 - Implemented SetWindowStyle() method
15095 * XplatUIStructs.cs: Added PeekMessageFlags
15096 * X11Structs: Added missing border_width field to XWindowChanges struct
15098 - PeekMessage: Now throws exception if flags which are not yet
15099 supported are passed
15100 - Implemented SetWindowStyle() method
15101 - Fixed SetZOrder to handle AfterHwnd properly
15102 * XplatUI.cs: Added SetWindowStyle() method
15103 * XplatUIDriver.cs: Added SetWindowStyle() abstract
15105 - Implemented UpdateStyles() method
15106 - Implemented UpdateZOrder() method
15107 * XplatUIOSX.cs: Added SetWindowStyle() stub
15109 2005-01-12 Geoff Norton <gnorton@customerdna.com>
15111 * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
15115 2005-01-11 Jackson Harper <jackson@ximian.com>
15117 * TreeView.cs: Still need to draw lines to siblings even if out of
15118 the current node is out of the clip.
15120 2005-01-11 Jackson Harper <jackson@ximian.com>
15122 * TreeView.cs: When setting the hbar/vbar/grip position use
15123 SetBounds so that perform layout is only called once. Also suspend
15124 and resume layout so layout is only done once for all controls.
15125 - Removed some debug fluff
15126 * SizeGrip.cs: Call base implmentation in overriding methods.
15127 - When visibility is changed the drawing buffers are killed so we
15130 2005-01-11 Jackson Harper <jackson@ximian.com>
15132 * TreeView.cs: Calculate the open node count while drawing. This
15133 saves us an entire tree traversal for every paint operation. Use
15134 a member var for the open node count so less vars are passed around.
15136 2005-01-11 John BouAntoun <jba-mono@optusnet.com.au>
15138 * MonthCalendar.cs:
15139 - fixed selection to use mousemove, not mouse polling on timer
15140 * ThemeWin32Classic.cs
15141 - removed redundant unused variable "no_more_content"
15143 2005-01-11 Peter Bartok <pbartok@novell.com>
15145 * XplatUIX11.cs (DoEvents): Needs to return when no more events
15146 are pending, so it now calls PeekMessage instead of GetMessage;
15147 implemented a incomplete version of PeekMessage
15149 2005-01-11 Peter Bartok <pbartok@novell.com>
15151 * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
15153 * TextBoxBase.cs: Added sending of TextChanged event
15155 2005-01-10 Jackson Harper <jackson@ximian.com>
15157 * TreeView.cs: Try not to draw outside the clipping rectangle on
15160 2005-01-10 Jordi Mas i Hernandez <jordi@ximian.com>
15162 * ComboBox.cs: keyboard navigation, item navigation, bug fixes
15164 2005-01-10 Jackson Harper <jackson@ximian.com>
15167 - Implement fast scrolling. Now only the newly
15168 exposed nodes are drawn and the old image is moved using the
15169 XplatUI::ScrollWindow method.
15170 - Factor in height of nodes when calculating whether or not the
15171 node is in the clipping rect.
15173 2005-01-10 Jackson Harper <jackson@ximian.com>
15175 * TreeNodeCollection.cs: Refresh the tree when a new node is added.
15177 2005-01-10 Peter Bartok <pbartok@novell.com>
15179 * Application.cs: Added temporary hack to resolve all our resize
15180 required issues on startup. This will get fixed properly at
15181 some point in the future
15183 2005-01-10 Jackson Harper <jackson@ximian.com>
15185 * SizeGrip.cs: New internal class that is used as a sizing
15186 grip control...hence the name.
15188 2005-01-10 Peter Bartok <pbartok@novell.com>
15190 * Control.cs: Implemented proper TabIndex handling, now assigning
15191 a tabindex when a control is added to a container
15192 * GroupBox.cs (ctor): Now sets the Container style bit, required
15193 for Control.GetNextControl()
15195 2005-01-09 Jackson Harper <jackson@ximian.com>
15197 * TextBoxBase.cs: Clear window when scrolling (fixes build).
15199 2005-01-09 Peter Bartok <pbartok@novell.com>
15201 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
15202 XplatUIX11.cs: Added ability to control ScrollWindow expose and
15203 an overload for ScrollWindow to allow only scrolling a rectangle
15205 2005-01-09 Peter Bartok <pbartok@novell.com>
15208 - Implemented SetDesktopBounds method
15209 - Implemented SetDesktopLocation method
15211 2005-01-08 Jackson Harper <jackson@ximian.com>
15213 * TreeView.cs: Only set the vbar's Maximum and LargeChange when
15214 the node count has changed, this removes to VScroll::Refresh calls
15217 2005-01-08 Geoff Norton <gnorton@customerdna.com>
15219 * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
15221 2005-01-07 Jackson Harper <jackson@ximian.com>
15223 * TreeNode.cs: Just update the single node when it is
15224 checked. Don't refresh after toggling, the Expand/Collapse already
15226 * TreeView.cs: Respect clipping a little more when drawing. Try
15227 not to redraw things that don't need to be redrawn. Just hide the
15228 scrollbars when they are no longer needed instead of removing
15229 them, so they don't have to be created again and again.
15231 2005-01-07 Geoff Norton <gnorton@customerdna.com>
15233 * XplatUIOSX.cs (SetCaretPos): We need to translate the view
15234 coordinates to window space to place the caret properly, FIXED.
15235 Implement GetWindowState & SetWindowState
15237 2005-01-06 Peter Bartok <pbartok@novell.com>
15240 - Implemented ClientSize property
15241 - Implemented DesktopBounds property
15242 - Implemented DesktopLocation property
15243 - Implemented IsRestrictedWindow property
15244 - Implemented Size property
15245 - Implemented TopLevel property
15246 - Implemented FormWindowState property
15248 - Implemented GetTopLevel() method
15249 - Implemented SetTopLevel() method
15250 * X11Structs.cs (Atom):
15251 - Added AnyPropertyType definition
15252 - Added MapState definiton and updated XWindowAttribute struct
15253 * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
15254 * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
15255 * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
15257 - Implemented GetWindowState() and SetWindowState() methods
15258 - Fixed Win32GetWindowLong return type
15260 - Introduced central function for sending NET_WM messages
15261 - Implemented GetWindowState() and SetWindowState() methods
15262 * TextBoxBase.cs (set_Lines):
15263 - Now uses Foreground color for text added via Text property (Duh!)
15264 - Added code to remember programmatically requested size (fixes
15265 behaviour when Multiline is set after Size)
15266 - Added AutoSize logic
15268 2005-01-06 Jackson Harper <jackson@ximian.com>
15270 * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
15272 2005-01-06 Jackson Harper <jackson@ximian.com>
15274 * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
15275 set to less then 0.
15277 2005-01-06 Jackson Harper <jackson@ximian.com>
15279 * ScrollableControl.cs: Lazy init the scrollbars.
15281 2005-01-06 Jackson Harper <jackson@ximian.com>
15283 * Theme.cs: Speed up getting pens and solid brushes, by using
15284 their ARGB as a hash instead of tostring and not calling Contains.
15286 2005-01-06 Peter Bartok <pbartok@novell.com>
15289 - Implemented OnActivated and OnDeactivate event trigger
15290 - Implemented Activate() method
15291 - Fixed ShowDialog() to activate the form that was active before
15292 the dialog was shown
15294 - Added global active_window var that tracks the currently active
15296 - Now always grabs Property changes from the root window to always
15297 catch changes on the active window property
15298 - Added code to PropertyNotify handler to send Active/Inactive
15299 messages when state changes. This puts X11 and Win32 en par on
15300 WM_ACTIVATE notifications (except for double notifications when
15301 the user clicks away from our modal window to another one of our
15304 2005-01-05 Jackson Harper <jackson@ximian.com>
15306 * ImageList.cs: Implment ctor
15308 2005-01-05 Geoff Norton <gnorton@customerdna.com>
15310 * XplatUIOSX.cs: Implement Activate/SetTopmost
15312 2005-01-05 Geoff Norton <gnorton@customerdna.com>
15314 * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
15316 2005-01-05 Geoff Norton <gnorton@customerdna.com>
15318 * XplatUIOSX.cs: Implement GetActive/SetFocus.
15320 2005-01-05 Peter Bartok <pbartok@novell.com>
15322 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
15323 XplatUIOSX.cs: Added GetActive method to return the currently
15324 active window for the application (or null, if none is active)
15326 - Implemented ActiveForm
15327 - Commented out owner assignment for modal dialogs (causes problems
15328 on Win32, since the owner will be disabled)
15329 - Reworked some Active/Focus handling (still incomplete)
15330 * CommonDialog.cs: Commented out owner assignment for modal dialogs
15331 (causes problems on Win32, since the owner will be disabled)
15332 * IWin32Window: Added ComVisible attribute
15334 2005-01-05 Peter Bartok <pbartok@novell.com>
15336 * ToolTip.cs (WndProc): Enable setting focus now that we have the
15337 required XplatUI functions.
15339 2005-01-05 Peter Bartok <pbartok@novell.com>
15341 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
15342 XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
15343 to implement focus and activation handling; still incomplete and
15346 2005-01-04 Peter Bartok <pbartok@novell.com>
15348 * TextBoxBase.cs: Changed access level for Document property to
15349 match switch to internal for TextControl
15351 2005-01-04 Peter Bartok <pbartok@novell.com>
15353 * AccessibleObject: Added ComVisible attribute
15355 2005-01-04 Jackson Harper <jackson@ximian.com>
15357 * X11Keyboard.cs: Remove unneeded var.
15359 2005-01-04 Jackson Harper <jackson@ximian.com>
15361 * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
15363 * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
15364 ClientMessage. This makes apps exit cleanly (more often).
15366 2005-01-04 Jackson Harper <jackson@ximian.com>
15368 * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
15369 handling focus, return correct colors and fonts,
15370 * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
15371 handle selection, horizontal scrolling, and mouse interaction.
15373 2005-01-04 Peter Bartok <pbartok@novell.com>
15375 * ICommandExecutor.cs: Added
15376 * IDataGridColumnStyleEditingNotificationService.cs: Added
15377 * IFeatureSupport.cs: Added
15378 * IFileReaderService.cs: Added
15379 * IDataObject.cs: Added ComVisible attribute
15380 * AmbientProperties.cs: Added
15381 * BaseCollection.cs: Added missing attributes
15382 * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
15383 * BaseCollection.cs: Added missing attributes
15384 * Binding.cs: Added TypeConverter attribute
15385 * BindingContext.cs: Added DefaultEvent attribute
15386 * BindingsCollection.cs: Added DefaultEvent attribute
15387 * Button.cs: Added DefaultValue attribute
15388 * DragEventArgs.cs: Added ComVisible attribute
15389 * GiveFeedbackEventArgs.cs: Added ComVisible attribute
15390 * KeyEventArgs.cs: Added ComVisible attribute
15391 * KeyPressEventArgs.cs: Added ComVisible attribute
15392 * MouseEventArgs.cs: Added ComVisible attribute
15393 * NavigateEventArgs.cs: Added
15394 * NavigateEventHandler.cs: Added
15395 * FeatureSupport.cs: Added
15396 * OSFeature.cs: Added
15397 * Theme.cs: Added abstract Version property to support OSFeature
15398 * ThemeWin32Classic.cs: Added Version property to
15399 support OSFeature.Themes
15400 * ProgressBar.cs: Removed OnPaintBackground override, not required since
15401 the proper styles to avoid background drawing are set, also doesn't
15403 * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
15404 * QueryContinueDragEventArgs.cs: Added ComVisible attribute
15405 * ScrollEventArgs.cs: Added ComVisible attribute
15406 * SplitterEventArgs.cs: Added ComVisible attribute
15407 * AccessibleSelection.cs: Added Flags attribute
15408 * Appearance.cs: Added ComVisible attribute
15409 * Border3DSide.cs: Added ComVisible attribute
15410 * Border3DStyle.cs: Added ComVisible attribute
15411 * BorderStyle.cs: Added ComVisible attribute
15412 * DragAction.cs: Added ComVisible attribute
15413 * ErrorBlinkStyle.cs: Added
15414 * ScrollEventType.cs: Added ComVisible attribute
15415 * AnchorStyles.cs: Added Editor attribute
15416 * DockStyle.cs: Added Editor attribute
15417 * HorizontalAlignment.cs: Added ComVisible attribute
15418 * HelpEventArgs.cs: Added ComVisible attribute
15419 * PaintEventArgs.cs: Added IDisposable
15421 2005-01-04 Peter Bartok <pbartok@novell.com>
15423 * TextControl.cs: Switched Line, LineTag and Document classes to
15426 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
15428 * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
15429 Simple mode, fixes, IntegralHeight, etc.
15431 2005-01-04 Peter Bartok <pbartok@novell.com>
15433 * TextBoxBase.cs: Using proper font variable now
15435 2005-01-04 Peter Bartok <pbartok@novell.com>
15437 * Form.cs (ShowDialog): Set parent to owner, if provided
15438 * GroupBox.cs: Removed unused vars
15440 - Added GetHashCode() for Document and LineTag classes
15441 - Removed unused variables
15442 - Added CharIndexToLineTag() and LineTagToCharIndex() methods
15443 to allow translation between continuous char position and line/pos
15444 * CheckBox.cs: Removed vars that are provided by base class
15445 * RadioButton.cs: Removed vars that are provided by base class, added
15446 new keyword where required
15447 * LinkLabel.cs: Added new keyword where required
15448 * Control.cs (WndProc): Removed unused variable
15450 - Finished SelectionLength property
15451 - Implemented SelectionStart property
15452 - Implemented Text property
15453 - Removed unused vars
15454 * MessageBox.cs: Added new keyword where required
15455 * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
15457 * MenuAPI.cs: Added new keyword where required
15458 * ButtonBase.cs: Removed vars that are provided by base class, added
15459 new keyword where required
15460 * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
15461 argument to double, to allow compiling with csc 2.0 (Atsushi ran
15463 * Application.cs (Run): Now triggers the ThreadExit event
15464 * CommonDialog.cs: Added new keyword where required; now properly sets
15465 parent (owner) for dialog
15466 * XplatUIX11.cs: Commented out unused vars
15467 * StatusBar.cs: Fixed signature for Text property
15468 * TabPage.cs: Undid Jordi's removal of unused var, now using the var
15470 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
15472 * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
15473 TrackBar.cs, MonthCalendar.cs: remove unused vars
15475 2005-01-03 Jackson Harper <jackson@ximian.com>
15477 * ThemeWin32Classic.cs:
15478 * X11Keyboard.cs: Remove unused vars.
15480 2005-01-03 Peter Bartok <pbartok@novell.com>
15483 - set_Text: Tied into TextControl
15484 - set_TextAlignment: Tied into TextControl
15486 - Added alignment properties and implemented alignment handling
15487 and drawing (still has a bug, not generating proper expose events)
15488 - Added new Line() constructor to allow passing the line alignment
15489 - Fixed selection setting, properly handling end<start now
15490 - Added aligment considerations to RecalculateDocument()
15492 - Now properly enforces control height for single line controls
15493 - Added support for CharacterCasing
15494 - Added IsInputKey override
15495 - Fixed Keys.Enter logic
15496 - Added SetBoundsCore override
15497 - Fixed mouse selection handling
15499 2005-01-03 Jackson Harper <jackson@ximian.com>
15502 - Collapse and uncheck all nodes when CheckBoxes is disabled.
15503 - Checkboxes are always aligned to the bottom of the node,
15504 regardless of item height.
15505 - Use the node bounds to draw the text so we can center it when
15506 the item height is greater then the font height.
15507 - Node::Bounds are only the text part of the node.
15508 * TreeNode.cs: New method to combine collapsing and unchecking all
15511 2005-01-02 Jackson Harper <jackson@ximian.com>
15513 * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
15514 * TreeNode.cs: Add a bounding box for the checkbox, refresh the
15515 tree when a check is changed. TODO: Only refresh the checked node.
15517 2004-12-30 Jackson Harper <jackson@ximian.com>
15519 * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
15520 * TreeNode.cs: When collapsing make sure to never collapse the
15523 2004-12-29 Jackson Harper <jackson@ximian.com>
15525 * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
15527 2004-12-28 Zoltan Varga <vargaz@freemail.hu>
15529 * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
15531 2004-12-28 Peter Bartok <pbartok@novell.com>
15533 * MessageBox.cs (get_CreateParams): Don't use owner var if it's
15536 2004-12-28 Peter Bartok <pbartok@novell.com>
15538 * Control.cs (WndProc): Added WM_HELP handler, now generates
15539 HelpRequested event
15540 * Form.cs: Added HelpButton property and required support code
15541 * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
15543 2004-12-28 Peter Bartok <pbartok@novell.com>
15546 - Made DialogForm.owner variable internal
15547 - Added check to ensure owner form is set before setting
15548 owner properties in CreateParams
15550 2004-12-28 Geoff Norton <gnorton@customerdna.com>
15552 * XplatUIOSX.cs: Implement mouse hovering. Fix QDPoint struct to avoid
15553 swizzling. Implement ClientToScreen and ScreenToClient. Implement
15554 GetCursorPos. Fix major visibility issues. Rework the windowing
15555 system to support borderless/titleless windows (implements menus).
15556 Fix GetWindowPos. Implement initial background color support for
15559 2004-12-28 Peter Bartok <pbartok@novell.com>
15561 * Form.cs (get_CreateParams): Make sure we have an owner before using
15562 the owner variable. Implement proper default if no owner exists
15564 2004-12-28 Peter Bartok <pbartok@novell.com>
15566 * In preparation for making Managed.Windows.Forms the default build target
15567 for System.Windows.Forms, the following stubbed files were added.
15568 Dialogs are currently being implemented by contributors and are only
15569 short-term place holders.
15570 * ColorDialog.cs: Initial check-in (minmal stub)
15571 * DataGrid.cs: Initial check-in (minimal stub)
15572 * DataGridLineStyle.cs: Initial check-in (minimal stub)
15573 * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
15574 * DataGridTableStyle.cs: Initial check-in (minimal stub)
15575 * FontDialog.cs: Initial check-in (minimal stub)
15576 * FileDialog.cs: Initial check-in (minimal stub)
15577 * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
15578 * GridTableStylesCollection.cs: Initial check-in (minimal stub)
15579 * OpenFileDialog: Initial check-in (minimal stub)
15580 * IComponentEditorPageSite.cs: Initial check-in
15581 * Splitter.cs: Initial check-in (for Jackson)
15582 * SplitterEventArgs.cs: Initial check-in (for Jackson)
15583 * SplitterEventHandler.cs: Initial check-in (for Jackson)
15584 * TextBox.cs: Initial check-in; still needs some wiring to
15585 TextControl backend
15586 * Form.cs: Implemented ControlBox property
15587 * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
15588 * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
15589 * TextControl.cs: Added selection functionality; added todo header
15591 - Implemented Lines property
15592 - Implemented TextHeight property
15593 - Implemented SelectedText property
15594 - Implemented SelectionLength property
15595 - Implemented SelectAll method
15596 - Implemented ToString method
15597 - Removed and cleaned up some debug code
15598 - Implemented (still buggy) mouse text selection
15600 2004-12-27 Jordi Mas i Hernandez <jordi@ximian.com>
15602 * ComboBox.cs: Complete DropDownList implementation, fixes.
15604 2004-12-26 Jordi Mas i Hernandez <jordi@ximian.com>
15606 * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
15607 * ComboBoxStyle.cs: ComboBoxStyle enum
15608 * ComboBox.cs: Initial work on ComboBox control
15610 2004-12-21 Peter Bartok <pbartok@novell.com>
15612 * Control.cs (ctor, CreateParams): Moved setting of is_visible
15613 forward so that anything that creates a window gets the default,
15614 also no longer uses Visible property in CreateParams to avoid
15615 walking up the parent chain and possibly get the wrong visible
15616 status. Fixed IsVisible to no longer walk up to the parent.
15618 2004-12-21 Peter Bartok <pbartok@novell.com>
15620 * Form.cs (ShowDialog): Unset modality for the proper window
15622 2004-12-20 Peter Bartok <pbartok@novell.com>
15624 * CommonDialog.cs: Initial check-in
15626 2004-12-20 Peter Bartok <pbartok@novell.com>
15628 * Control.cs (Visible): Now uses the parent window instead of the
15629 client area window for the property
15632 - ShowDialog(): Now uses the proper window for modality
15633 - The default visibility state for the form parent is now false. This
15634 will prevent the user from seeing all the changes to the form and
15635 its controls before the application hits Application.Run()
15636 - Removed some stale commented out code
15639 - Added FindWindow() method to have a method to check for existence
15641 - Added ability to override default exception handling (for example
15642 when debugging with VS.Net; to do this the ExternalExceptionHandler
15644 - Removed some useless debug output
15647 - Removed r37929 (SetModal patch from Ashwin Bharambe), was
15648 not working as expected
15649 - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
15650 property to allow switching back to the modal window if focus is
15651 given to another one of our windows (Application Modal)
15652 - Now only sets override_redirect if we create a window
15654 - Moved EventMask selection before mapping of newly created window
15655 so we can catch the map event as well
15656 - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
15657 - Added various Atom related DllImports
15658 - Implemented Exit() method
15659 - .ctor() : No longer shows window if WS_VISIBLE is not defined
15660 in the CreateParams
15662 * MessageBox.cs: Now properly deals with the FormParent window by
15663 providing an override the FormParent CreateParams property to
15664 set as POPUP instead of OVERLAPPED window.
15666 2004-12-19 Geoff Norton <gnorton@customerdna.com>
15668 * XplatUIOSX.cs: Implement DestroyWindow. Implement ScrollWindow
15669 Minor code cleanup.
15671 2004-12-19 Geoff Norton <gnorton@customerdna.com>
15673 * XplatUIOSX.cs (SetModal): Implement this method on OSX.
15675 2004-12-18 Peter Bartok <pbartok@novell.com>
15677 * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
15678 implementing SetModal() method
15680 2004-12-18 Peter Bartok <pbartok@novell.com>
15682 * X11Structs.cs (XGCValues): Fixed type of function element
15683 * XplatUI.cs: Added ScrollWindow() method
15684 * XplatUIDriver.cs: Added ScrollWindow() abstract
15685 * XplatUIWin32.cs: Implemented ScrollWindow() method
15686 * XplatUIX11.cs: Implemented ScrollWindow() method
15687 * XplatUIOSX.cs: Stubbed out ScrollWindow() method
15689 2004-12-17 Geoff Norton <gnorton@customerdna.com>
15691 * XplatUIOSX.cs: Fix cursor to use an Invert instead of drawing it
15692 Some more keyboard support (INCOMPLETE)
15694 2004-12-17 Peter Bartok <pbartok@novell.com>
15697 - Added color attribute to line tags.
15698 - Added color argument to all functions dealing with tags
15699 - Added color argument support to various functions
15700 - Fixed miss-calculation of baseline/shift in certain circumstances
15702 * TextBoxBase.cs: Added new color option to test code
15704 2004-12-17 Jackson Harper <jackson@ximian.com>
15707 * MonthCalendar.cs: Signature fixes
15709 2004-12-17 Geoff Norton <gnorton@customerdna.com>
15711 * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
15712 keyboard event moved it. Create a new graphics context for each paint resolves this
15714 2004-12-17 Geoff Norton <gnorton@customerdna.com>
15716 * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
15717 Make caret exist and go blink blink. Initial keyboard support.
15718 Fix exception handler, Add Invalidate support. Change way RefreshWindow
15721 2004-12-17 Jackson Harper <jackson@ximian.com>
15723 * XplatUIStructs.cs: Updated set of virtual keycodes.
15724 * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
15726 2004-12-17 Jackson Harper <jackson@ximian.com>
15728 * XplatUIX11.cs: Prune old keyboard code.
15730 2004-12-17 Jackson Harper <jackson@ximian.com>
15732 * XplatUIX11.cs: When generating mouse wparams get the modifier
15733 keys from the ModifierKeys property.
15735 2004-12-17 Jackson Harper <jackson@ximian.com>
15737 * X11Keyboard.cs: Send up/down input when generating
15738 messages. Remove some unused vars.
15740 2004-12-17 Jackson Harper <jackson@ximian.com>
15743 * TreeView.cs: get rid of warnings.
15745 2004-12-17 Jackson Harper <jackson@ximian.com>
15747 * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
15749 2004-12-17 Jordi Mas i Hernandez <jordi@ximian.com>
15751 * ListBox.cs: bug fixes, changes for CheckedListBox.cs
15752 CheckedListBox.cs: Implementation
15754 2004-12-17 Peter Bartok <pbartok@novell.com>
15756 * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
15758 2004-12-16 Peter Bartok <pbartok@novell.com>
15761 - InsertCharAtCaret(): Fixed start pos fixup
15762 - CaretLine_get: No longer derives the line from the tag, the tag
15763 could be stale if lines in the document have been added or deleted
15764 - RebalanceAfterDelete(): Fixed bug in balancing code
15765 - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
15766 - Line.Streamline(): Now can also elminate leading empty tags
15767 - DumpTree(): Added a few more tests and prevented exception on
15769 - Added Debug section for Combining lines
15770 - Delete(): Now copies all remaining properties of a line
15773 - Left mousebutton now sets the caret (and middle button still acts
15774 as formatting tester, which must go away soon)
15775 - Added Debug section for Deleting/Combining lines
15776 - Fixed calculations for UpdateView after Combining lines
15778 2004-12-16 Peter Bartok <pbartok@novell.com>
15780 * TextControl.cs: Now properly aligns text on a baseline, using the
15781 new XplatUI.GetFontMetrics() method. Simplified several calculations
15782 * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
15785 2004-12-16 Peter Bartok <pbartok@novell.com>
15787 * XplatUI.cs: Added GetFontMetrics() method
15788 * XplatUIDriver.cs: Added GetFontMetrics() abstract
15789 * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
15790 into libgdiplus, our private GetFontMetrics function
15791 * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
15792 * XplatUIWin32.cs: Implemented GetFontMetrics() method
15794 2004-12-16 Jackson Harper <jackson@ximain.com>
15796 * XplatUIStruct.cs: Add enum for dead keys
15797 * X11Keyboard.cs: Map and unmap dead keys.
15799 2004-12-16 Jackson Harper <jackson@ximian.com>
15801 * X11Keyboard.cs: Detect and use the num lock mask.
15803 2004-12-16 Peter Bartok <pbartok@novell.com>
15805 * Control.cs (CreateGraphics): Added check to make sure the
15806 handle of the window exists before calling Graphics.FromHwnd()
15808 2004-12-16 Peter Bartok <pbartok@novell.com>
15810 * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
15811 contains a lot of code that's not supposed to be there for the
15812 real thing, but required for developing/testing the textbox
15815 2004-12-16 Peter Bartok <pbartok@novell.com>
15818 - Fixed Streamline method
15819 - Added FindTag method to Line
15820 - Added DumpTree method for debugging
15821 - Added DecrementLines() method for deleting lines
15822 - Fixed UpdateView to update the cursor to end-of-line on single-line
15824 - Added PositionCaret() method
15825 - Fixed MoveCaret(LineDown) to move into the last line, too
15826 - Added InsertChar overload
15827 - Fixed InsertChar tag offset calculations
15828 - Added DeleteChar() method
15829 - Added Combine() method for folding lines
15830 - Fixed Delete() method, no longer allocates wasted Line object and
15831 now copies all properties when swapping nodes
15832 - Delete() method now updates document line counter
15834 2004-12-15 Jackson Harper <jackson@ximian.com>
15836 * XplatUIX11.cs: Get the modifier keys from the keyboard driver
15837 * X11Keyboard.cs: Expose the currently selected modifier keys
15838 through a property.
15840 2004-12-15 Peter Bartok <pbartok@novell.com>
15842 * TextControl.cs: Initial check-in. Still incomplete
15844 2004-12-15 Jackson Harper <jackson@ximian.com>
15847 * TreeView.cs: Fix build on csc (second time today ;-))
15849 2004-12-15 Jackson Harper <jackson@ximian.com>
15851 * TreeView.cs: Store the treenodes plus/minus box bounds when it
15852 is calculated and use this for click testing.
15853 * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
15855 2004-12-15 Jackson Harper <jackson@ximian.com>
15857 * TreeView.cs: Pass the nodes image index to the image list when
15858 drawing that image.
15860 2004-12-15 Jackson Harper <jackson@ximian.com>
15862 * X11Keyboard.cs: Set messages hwnd.
15863 * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
15864 post_message calls.
15866 2004-12-15 Jackson Harper <jackson@ximian.com>
15868 * X11Keyboard.cs: Fix to compile with csc.
15870 2004-12-15 Jackson Harper <jackson@ximian.com>
15872 * X11Structs.cs: Add key mask values
15873 * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
15874 * X11Keyboard.cs: New file - Extrapolates and interpolates key
15875 down/up foo into WM_CHAR foo
15876 * KeyboardLayouts.cs: Common keyboard layouts
15877 * XplatUIX11.cs: Add the keyboard driver. Add functionality to
15878 post messages into the main queue.
15880 2004-12-13 Jordi Mas i Hernandez <jordi@ximian.com>
15882 * Button.cs: implement ProcessMnemonic
15883 * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
15885 * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
15886 * ButtonBase.cs: Show HotkeyPrefix (not the &)
15888 2004-12-12 John BouAntoun <jba-mon@optusnet.com.au>
15890 * MonthCalendar.cs: Implemented click-hold for next/previous month
15893 2004-12-11 Peter Bartok <pbartok@novell.com>
15896 - Added XKeyboardState (moved from XplatUIX11.cs)
15897 - Added XCreateGC related enums and structures
15898 - Added GXFunction for XSetFunction
15900 * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
15902 * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
15903 CaretVisible() calls
15905 * ToolTip.cs: Added code to prevent stealing focus from app windows
15907 * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
15908 DestroyCaret, SetCaretPos and CaretVisible)
15911 - Added implementation for caret functions
15912 - Moved hover variables into a struct, to make it a bit easier
15913 on the eyes and to debug
15914 - Removed XKeyboardState (moved to XplatUIX11.cs)
15915 - Moved Keyboard properties into the properties region
15917 * Control.cs (get_Region): Control.CreateGraphics is the appropriate
15918 call to get a graphics context for our control
15920 * XplatUIOSX.cs: Added empty overrides for the new caret functions
15922 * TreeView.cs: Fixed bug. No matter what color was set it would always
15923 return SystemColors.Window
15925 * XplatUIWin32.cs: Implemented caret overrides
15927 2004-12-10 Jordi Mas i Hernandez <jordi@ximian.com>
15929 * ListBox.cs: fire events, implement missing methods and properties,
15932 2004-12-10 John BouAntoun <jba-mono@optusnet.com.au>
15934 * MonthCalendar.cs: invalidation bug fixing
15935 * ThemeWin32Classic.cs: paint fixing
15937 2004-12-09 Geoff Norton <gnorton@customerdna.com>
15939 * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
15940 prepare the CGContextRef there now.
15942 2004-12-09 John BouAntoun <jba-mono@optusnet.com.au>
15944 * MonthCalendar.cs:
15945 - optimisationL only invalidate areas that have changed
15946 * ThemeWin32Classic.cs:
15947 - only paint parts that intersect with clip_area
15949 2004-12-09 Peter Bartok <pbartok@novell.com>
15951 * Application.cs: Undid changes from r37004 which cause problems
15954 2004-12-09 Ravindra <rkumar@novell.com>
15956 * ToolBar.cs: Added support for displaying ContextMenu
15957 attached to a button on ToolBar.
15958 * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
15961 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
15963 * Label.cs: autosize works in text change and removes unnecessary
15966 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
15968 * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
15971 2004-12-08 Geoff Norton <gnorton@customerdna.com>
15973 * XplatUIOSX.cs: Added mouse move/click/grab support
15974 Remove some debugging WriteLines not needed anymore.
15975 Add window resizing/positioning.
15976 Fix visibility on reparenting.
15978 2004-12-08 Peter Bartok <pbartok@novell.com>
15980 * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
15982 2004-12-07 Geoff Norton <gnorton@customerdna.com>
15984 * XplatUIOSX.cs: Initial checkin
15985 * XplatUI.cs: Use the Quartz driver if the environment is set to use it
15987 2004-12-03 Ravindra <rkumar@novell.com>
15989 * ListView.cs: Added some keybindings and fixed scrolling.
15990 ScrollBars listen to ValueChanged event instead of Scroll
15991 Event. This would let us take care of all changes being
15992 done in the scrollbars' values programmatically or manually.
15993 * ListView.cs (CanMultiselect): Added a check for shift key.
15994 * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
15995 * ListViewItem.cs (Clone): Fixed. We need to make a copy
15996 of ListViewSubItemCollection as well.
15998 2004-12-06 Peter Bartok <pbartok@novell.com>
16000 * Control.cs (Parent): Added check and exception to prevent
16003 2004-12-03 Jordi Mas i Hernandez <jordi@ximian.com>
16005 * ListBox.cs: implemented clipping, selection single and multiple,
16008 2004-12-03 Ravindra <rkumar@novell.com>
16010 * ListView.cs (ListView_KeyDown):
16011 * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
16012 when CTRL key is pressed.
16013 * ListViewItem.cs (Selected): Fixed setting the property.
16015 2004-12-03 Marek Safar <marek.safar@seznam.cz>
16017 * Application.cs (OnThreadException): Use ThreadExceptionDialog.
16019 * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
16020 MinimizeBox, ShowInTaskbar, TopMost properties.
16022 * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
16023 will be implemented).
16025 2004-12-03 Marek Safar <marek.safar@seznam.cz>
16027 * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
16029 * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
16032 * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
16034 * TreeView.cs: BackColor is Colors.Window.
16036 2004-12-01 Jackson Harper <jackson@ximian.com>
16038 * TreeView.cs: When resizing the tree if the user is making it
16039 smaller we don't get expose events, so we need to handle adding
16040 the horizontal scrollbar in the size changed handler as well as
16041 the expose handler.
16043 2004-12-02 Jordi Mas i Hernandez <jordi@ximian.com>
16045 * DrawItemState.cs: fixes wrong enum values
16047 2004-12-01 Jackson Harper <jackson@ximian.com>
16049 * TreeView.cs: Resize the hbar as well as the vbar on resize.
16051 2004-12-01 Jackson Harper <jackson@ximian.com>
16053 * NodeLabelEditEventArgs.cs:
16054 * NodeLabelEditEventHandler.cs:
16055 * OpenTreeNodeEnumerator.cs:
16057 * TreeNodeCollection.cs:
16059 * TreeViewAction.cs:
16060 * TreeViewCancelEventArgs.cs:
16061 * TreeViewCancelEventHandler.cs:
16062 * TreeViewEventArgs.cs:
16063 * TreeViewEventHandler.cs: Initial implementation.
16065 2004-12-01 Ravindra <rkumar@novell.com>
16067 * ListView.cs (CalculateListView): Fixed scrolling related
16068 calculations. Also, removed some debug statements from other
16070 * ListViewItem.cs: Changed access to 'selected' instance variable
16071 from private to internal.
16072 * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
16074 2004-12-01 Jordi Mas i Hernandez <jordi@ximian.com>
16076 * ThemeWin32Classic.cs: remove cache of brush and pens for
16077 specific controls and use the global system, fixes scrollbutton
16078 bugs (for small sizes, disabled, etc)
16080 * ScrollBar.cs: does not show the thumb for very small controls
16081 (as MS) and allow smaller buttons that the regular size
16083 2004-12-01 Miguel de Icaza <miguel@ximian.com>
16085 * UpDownBase.cs: Add abstract methods for the interface.
16086 Add new virtual methods (need to be hooked up to TextEntry when it
16088 Add override methods for most features.
16089 Computes the size, forces the height of the text entry.
16091 * NumericUpDown.cs: Put here the current testing code.
16093 * Set eol-style property on all files that do not have mixed line
16094 endings, to minimize the future problems. There are still a few
16095 files with mixed endings, and someone should choose whether they
16096 want to move it or not.
16098 2004-11-30 Jordi Mas i Hernandez <jordi@ximian.com>
16100 * MonthCalendar.cs, ListView.cs: use Theme colours instead of
16103 2004-11-30 Ravindra <rkumar@novell.com>
16105 * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
16106 drawing and replaced use of SystemColors by theme colors.
16107 * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
16108 * ListView.cs (ListViewItemCollection.Add): Throw exception when
16109 same ListViewItem is being added more than once.
16111 2004-11-30 John BouAntoun <jba-mono@optusnet.com.au>
16113 * MonthCalendar.cs:
16114 - ControlStyles love to make the control not flicker
16116 2004-11-30 Peter Bartok <pbartok@novell.com>
16118 * CharacterCasing.cs: Added
16120 2004-11-29 Peter Bartok <pbartok@novell.com>
16122 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
16123 TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
16124 I am removing these files as they conflict with already completed
16125 work. While it is fantastic to get contributions to MWF, I
16126 respectfully ask that everyone please coordinate their contributions
16127 through mono-winforms-list or #mono-winforms at this time. We're
16128 explicitly avoiding stubbing and don't want controls that don't have
16129 their basic functionality implemented in svn. Please also see
16130 http://www.mono-project.com/contributing/winforms.html
16133 2004-11-29 Marek Safar <marek.safar@seznam.cz>
16135 * Application.cs (ModalRun): Don't hang after exit.
16137 * Theme.cs: New TreeViewDefaultSize property.
16139 * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
16140 with less hardcoded SystemColors constant.
16141 Implemented TreeViewDefaultSize.
16143 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
16144 TreeViewAction.cs, TreeViewEventArgs.cs: New files.
16147 2004-11-29 John BouAntoun <jba-mono@optusnet.com.au>
16149 * MonthCalendar.cs:
16150 - Fix NextMonthDate and PrevMonthDate click moving calendar
16152 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
16154 * MonthCalendar.cs:
16155 - Fix usage of ScrollChange Property when scrolling months
16157 2004-11-26 Jordi Mas i Hernandez <jordi@ximian.com>
16159 * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
16160 - Fixes menu destroying
16161 - Support adding and removing items on already created menus
16163 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
16165 * MonthCalendar.cs:
16166 - Re-worked all bolded dates handling to match win32
16167 * ThemeWin32Classic.cs:
16168 - Fixed rendering with bolded dates
16170 2004-11-25 Jordi Mas i Hernandez <jordi@ximian.com>
16172 * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
16173 - Horizontal scroolbar
16178 2004-11-25 John BouAntoun <jba-mono@optusnet.com.au>
16180 * MonthCalendar.cs:
16181 - Fix Usage of MaxSelectionCount from SelectionRange
16182 - Fixed Shift + Cursor Selection
16183 - Fixed Shift + (Pg up/Pg dn, Home/End) selection
16184 - Fixed normal cursor selection to be compat with win32
16185 - Fixed Shift + Mouse Click selection
16187 2004-11-24 Peter Bartok <pbartok@novell.com>
16189 * XplatUI.cs (DispatchMessage): Switched to return IntPtr
16190 * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
16192 - CreatedKeyBoardMsg now updates keystate with Alt key
16193 - Added workaround for timer crash to CheckTimers, Jackson will
16194 develop a proper fix and check in later
16195 - Implemented DispatchMessage
16196 - Removed calling the native window proc from GetMessage (call
16197 now moved to DispatchMessage)
16199 * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
16200 the keydata (Fixes bug #69831)
16203 - (DispatchMessage): Switched to return IntPtr
16204 - Added DllImport for SetFocus
16206 2004-11-24 Ravindra <rkumar@novell.com>
16208 * ThemeWin32Classic.cs: Fixed ListView border and checkbox
16209 background drawing.
16210 * ListViewItem.cs: Fixed various properties, calculations
16211 and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
16212 * ListView.cs: Fixed calculations, BackColor, ForeColor properties
16213 and some internal properties. Fixed MouseDown handler and Paint
16216 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
16218 * MonthCalendar.cs: Add TitleMonth ContextMenu handling
16220 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
16222 * ContainerControl.cs: correct accidental check in of local changes
16224 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
16226 * ThemeWin32Classic.cs:
16227 - Fixed Drawing Last month in grid (sometimes not showing)
16228 * MonthCalendar.cs:
16229 - Fixed title width calculation bug (makeing title small)
16231 2004-11-23 Peter Bartok <pbartok@novell.com>
16234 - Added generation of WM_MOUSEHOVER event
16235 - Added missing assignment of async_method atom
16236 - Fixed WM_ERASEBKGND; now only redraws the exposed area
16238 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
16240 * ThemeWin32Classic.cs:
16241 - Fixed Drawing of today circle when showtodaycircle not set
16242 - fixed drawing of first and last month in the grid (gay dates)
16243 * MonthCalendar.cs:
16244 - Fixed Drawing of today circle
16245 - Fixed drawing of grady dates
16246 - Fixed HitTest for today link when ShowToday set to false
16247 - Fixed DefaultSize to obey ShowToday
16249 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
16251 * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
16252 * System.Windows.Forms/Theme.cs
16253 * MonthCalendar.cs: added for MonthCalendar
16254 * SelectionRange.cs: added for MonthCalendar
16255 * Day.cs: added for MonthCalendar: added for MonthCalendar
16256 * DateRangeEventArgs.cs: added for MonthCalendar
16257 * DateRangeEventHandler.cs: added for MonthCalendar
16259 2004-11-22 Ravindra <rkumar@novell.com>
16261 * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
16264 2004-11-22 Miguel de Icaza <miguel@ximian.com>
16266 * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
16269 * NumericUpDown.cs: Added new implementation.
16270 * UpDownBase.cs: Added new implementation.
16272 * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
16275 * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
16278 * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
16281 2004-11-21 Miguel de Icaza <miguel@ximian.com>
16283 * Timer.cs (Dispose): Should call the base dispose when
16286 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
16288 * ScrollBar.cs: updates thumb position when max, min or increment
16291 2004-11-21 Ravindra <rkumar@novell.com>
16293 * ListView.cs: Implemented item selection, activation and
16294 column header style. Fixed properties to do a redraw, if
16295 required. Added support for MouseHover, DoubleClick, KeyDown
16296 and KeyUp event handling and some minor fixes.
16297 * ListViewItem.cs: Fixed constructor.
16298 * ThemeWin32Classic.cs: Improved drawing for ListView.
16300 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
16302 * ThemeWin32Classic.cs: initial listbox drawing code
16303 * DrawMode.cs: new enumerator
16304 * ListControl.cs: stubbed class
16305 * ListBox.cs: initial implementation
16306 * Theme.cs: new methods definitions
16307 * SelectionMode.cs: new enumerator
16309 2004-11-17 Peter Bartok <pbartok@novell.com>
16311 * XplatUIWin32.cs: Added double-click events to the class style
16312 * Control.cs (WndProc):
16313 - Added handling of click-count to MouseDown/ MouseUp events.
16314 - Added handling of middle and right mouse buttons
16315 - Removed old debug code
16317 2004-11-17 Jackson Harper <jackson@ximian.com>
16319 * XplatUIX11.cs: Use the new Mono.Unix namespace.
16321 2004-11-17 Ravindra <rkumar@novell.com>
16323 * ListView.cs: Added event handling for MouseMove/Up/Down.
16324 * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
16325 * ThemeWin32Classic.cs: We need to clear the graphics context and
16326 draw column header in a proper state.
16329 2004-11-17 Jordi Mas i Hernandez <jordi@ximian.com>
16331 * Menu.cs: fixes signature
16333 2004-11-16 Peter Bartok <pbartok@novell.com>
16335 * XplatUIX11.cs (GetMessage): Implemented generation of
16336 double click mouse messages
16338 2004-11-12 Jordi Mas i Hernandez <jordi@ximian.com>
16340 * Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
16343 2004-11-11 Peter Bartok <pbartok@novell.com>
16345 * HandleData.cs: Added Visible property
16346 * XplatUIX11.cs (IsVisible): Now uses Visible property from
16348 * XplatUIX11.cs: Removed old debug leftovers
16349 * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
16350 * Control.cs (WndProc): Removed old debug leftovers,
16351 streamlined handling of WM_WINDOWPOSCHANGED, removed un-
16352 needed WM_SIZE handling
16354 2004-11-11 Jackson Harper <jackson@ximian.com>
16356 * OwnerDrawPropertyBag.cs:
16357 * TreeViewImageIndexConverter.cs: Initial implementation
16359 2004-11-10 Jackson Harper <jackson@ximian.com>
16361 * ThemeWin32Classic.cs:
16362 * TabControl.cs: instead of moving tabs by the slider pos just
16363 start drawing at the tab that is offset by the slider. This way
16364 scrolling always moves by exactly one tab.
16366 2004-11-10 Jackson Harper <jackson@ximian.com>
16368 * TabControl.cs: You can only scroll left when the slider has
16369 already ben moved right.
16371 2004-11-10 Jackson Harper <jackson@ximian.com>
16373 * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
16376 2004-11-10 Jackson Harper <jackson@ximian.com>
16378 * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
16381 2004-11-09 Jackson Harper <jackson@ximian.com>
16383 * TabControl.cs (CalcXPos): New helper method so we can determine
16384 the proper place to start drawing vertical tabs.
16385 * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
16387 2004-11-09 Jackson Harper <jackson@ximian.com>
16389 * TabControl.cs: Calculate sizing and rects for left aligned tabs.
16390 * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
16391 and Bottom, left and right are illegal values for this and
16392 multiline is enabled when the alignment is set to left or right.
16393 (DrawTab): Each alignment block should draw the text itself now
16394 because Left requires special love. Also add rendering for Left
16397 2004-11-09 Jordi Mas i Hernandez <jordi@ximian.com>
16399 * Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
16400 does not destroy the windows, removes debugging messages
16402 2004-11-09 jba <jba-mono@optusnet.com.au>
16404 * ThemeWin32Classic.cs
16405 (DrawButtonBase): Fix verticle text rect clipping in windows
16406 (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
16407 rendering and incorrect text rect clipping
16408 (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
16409 rendering and incorrect text rect clipping
16411 2004-11-08 Jackson Harper <jackson@ximian.com>
16413 * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
16414 bottom when they are bottom aligned so the bottoms of the tabs get
16416 * TabControl.cs (DropRow): Move rows up instead of down when the
16417 tab control is bottom aligned.
16419 2004-11-08 13:59 pbartok
16422 - Added handling for various window styles
16423 - Added handling for popup windows
16424 - Added SetTopmost handling
16426 2004-11-08 13:55 pbartok
16429 - Added argument to SetTopmost method
16430 - Fixed broken ClientToScreen function
16432 2004-11-08 13:53 pbartok
16434 * XplatUIStructs.cs:
16435 - Added missing WS_EX styles
16437 2004-11-08 13:53 pbartok
16439 * XplatUI.cs, XplatUIDriver.cs:
16440 - Added argument to SetTopmost
16442 2004-11-08 13:52 pbartok
16445 - Added XSetWindowAttributes structure
16446 - Improved XWindowAttributes structure
16447 - Added SetWindowValuemask enum
16448 - Added window creation arguments enum
16449 - Added gravity enum
16450 - Added Motif hints structure
16451 - Added various Motif flags and enums
16452 - Added PropertyMode enum for property functions
16454 2004-11-08 13:50 pbartok
16457 - Fixed arguments for updated SetTopmost method
16459 2004-11-08 13:49 pbartok
16462 - Fixed arguments for updated SetTopmost function
16463 - Fixed usage of PointToClient
16465 2004-11-08 13:44 pbartok
16468 - Added Clipping of children and siblings
16470 2004-11-08 13:41 pbartok
16473 - Removed SetMenuBarWindow call. We do this in Form.cs
16475 2004-11-08 13:40 jackson
16477 * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
16478 scrolling jimmi in the correct location with bottom aligned tabs
16480 2004-11-08 13:36 pbartok
16482 * ContainerControl.cs:
16483 - Implemented BindingContext
16484 - Implemented ParentForm
16486 2004-11-08 12:46 jackson
16488 * TabControl.cs: Put bottom rendered tabs in the right location
16490 2004-11-08 07:15 jordi
16492 * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
16495 2004-11-05 17:30 jackson
16497 * TabControl.cs: When selected tabs are expanded make sure they
16498 don't go beyond the edges of the tab control
16500 2004-11-05 14:57 jackson
16502 * TabControl.cs: Reset show_slider so if the control is resized to
16503 a size where it is no longer needed it's not displayed anymore
16505 2004-11-05 13:16 jackson
16507 * TabControl.cs: Make tab pages non visible when added to the
16510 2004-11-05 12:42 jackson
16512 * TabControl.cs: Implement SizeMode.FillToRight
16514 2004-11-05 12:16 jackson
16516 * Control.cs: Do not call CreateHandle if the handle is already
16519 2004-11-05 11:46 jackson
16521 * TabControl.cs: Remove superflous call to CalcTabRows
16523 2004-11-05 09:07 jackson
16525 * XplatUIX11.cs: Update for Mono.Posix changes
16527 2004-11-05 07:00 ravindra
16529 * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
16532 2004-11-04 22:47 jba
16534 * ThemeWin32Classic.cs:
16535 - Fix Button rendering for FlatStyle = Flat or Popup
16536 - Fix RadioButton and CheckBox rendering when Appearance = Button
16537 (normal and flatstyle).
16538 - Correct outer rectangle color when drawing focus rectangle
16539 - Adjust button bounds to be 1 px smaller when focused
16540 - Make button not draw sunken 3d border when pushed (windows compat)
16541 - Fix CPDrawBorder3D to not make bottom right hand corner rounded
16542 - Offset the text in RadioButton and Checkbox when being rendered as
16544 - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
16546 - Fixed disabled rendering for colored flatstyle radiobuttons (both)
16547 - Fixed disabled text rendering for normally rendered radiobuttons
16549 2004-11-04 10:26 jackson
16551 * TabControl.cs: Recalculate tab rows when resizing
16553 2004-11-04 07:47 jordi
16555 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
16556 collection completion, drawing issues, missing features
16558 2004-11-04 05:03 ravindra
16561 - We need to recalculate the Thumb area when
16562 LargeChange/maximum/minimum values are changed.
16563 - We set the 'pos' in UpdatePos() method to minimum, if it's less
16564 than minimum. This is required to handle the case if large_change is
16565 more than max, and use LargeChange property instead of large_change
16567 - We return max+1 when large_change is more than max, like MS does.
16569 2004-11-04 04:29 ravindra
16571 * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
16572 - Changed default value signatures (prefixed all with ListView).
16573 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
16575 - Fixed calculations for ListViewItem and implemented Clone()
16578 2004-11-04 04:26 ravindra
16580 * Theme.cs, ThemeWin32Classic.cs:
16581 - Changed default ListView values signatures (prefixed all with
16583 - Fixed default size values for VScrollBar and HScrollBar.
16584 - Fixed DrawListViewItem method.
16586 2004-11-04 04:05 ravindra
16588 * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
16590 2004-11-04 04:04 ravindra
16592 * ImageList.cs: Implemented the missing overload for Draw method.
16594 2004-11-03 19:29 jackson
16596 * TabControl.cs: Handle dropping rows on selection properly
16598 2004-11-03 11:59 jackson
16600 * TabControl.cs: remove debug code
16602 2004-11-03 11:52 jackson
16604 * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
16605 the scrolly widgerywoo
16607 2004-11-02 13:52 jackson
16609 * TabControl.cs: Resize the tab pages and tabs when the tab control
16612 2004-11-02 13:40 jackson
16614 * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
16615 selected tab to the bottom
16617 2004-11-02 13:39 jackson
16619 * TabPage.cs: Store the tab pages row
16621 2004-11-02 12:33 jordi
16623 * MenuItem.cs: fixes handle creation
16625 2004-11-02 11:42 jackson
16627 * TabControl.cs: signature fix
16629 2004-11-02 08:56 jackson
16631 * TabControl.cs: Calculate whether the tab is on an edge properly.
16632 Remove top secret debugging code
16634 2004-11-01 19:57 jackson
16636 * TabControl.cs: Add click handling, and proper sizing
16638 2004-11-01 19:47 jackson
16640 * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
16643 2004-11-01 19:39 jackson
16645 * TabPage.cs: add internal property to store the bounds of a tab
16648 2004-10-30 04:23 ravindra
16650 * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
16653 2004-10-30 04:21 ravindra
16655 * ListView.cs, ListViewItem.cs: Added support for scrolling and
16656 fixed calculations.
16658 2004-10-30 03:06 pbartok
16661 - Removed extension of DllImported libs
16663 2004-10-29 09:55 jordi
16665 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
16666 navigation, itemcollection completion, menu fixes
16668 2004-10-27 22:58 pbartok
16671 - Now throws a nice error message when no X display could be opened
16673 2004-10-26 13:51 jordi
16675 * ListView.cs: removes warning
16677 2004-10-26 03:55 ravindra
16679 * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
16680 ThemeWin32Classic.cs: Some formatting for my last checkins.
16682 2004-10-26 03:36 ravindra
16684 * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
16685 control and default values.
16687 2004-10-26 03:35 ravindra
16689 * Theme.cs: Added some default values for ListView control.
16691 2004-10-26 03:33 ravindra
16693 * ToolBar.cs: ToolBar should use the user specified button size, if
16694 there is any. Added a size_specified flag for the same.
16696 2004-10-26 03:33 ravindra
16698 * ColumnHeader.cs: Added some internal members and calculations for
16701 2004-10-26 03:32 ravindra
16703 * ListViewItem.cs: Calculations for ListViewItem.
16705 2004-10-26 03:31 ravindra
16707 * ListView.cs: Added some internal members and calculations for
16710 2004-10-22 13:31 jordi
16712 * MenuAPI.cs: speedup menus drawing
16714 2004-10-22 13:16 jackson
16716 * XplatUIX11.cs: Make sure to update exposed regions when adding an
16719 2004-10-22 11:49 jackson
16723 2004-10-22 11:41 jackson
16725 * Control.cs: Check to see if the window should have its background
16726 repainted by X when drawing.
16728 2004-10-22 11:31 jackson
16730 * XplatUIX11.cs: When invalidating areas only use XClearArea if
16731 clear is true, this way we do not get flicker from X repainting the
16734 2004-10-22 11:28 jackson
16736 * XEventQueue.cs: Queue properly
16738 2004-10-21 09:38 jackson
16740 * XEventQueue.cs: Fix access modifier
16742 2004-10-21 09:36 jackson
16744 * XEventQueue.cs: Don't loose messages
16746 2004-10-21 09:22 jackson
16748 * XEventQueue.cs: Don't loose messages
16750 2004-10-20 04:15 jordi
16752 * BootMode.cs: enum need it by SystemInfo
16754 2004-10-19 21:58 pbartok
16757 - Small sanity check
16759 2004-10-19 21:56 pbartok
16762 - Added private FormParentWindow class which acts as the container
16763 for our form and as the non-client area where menus are drawn
16764 - Added/Moved required tie-ins to Jordi's menus
16765 - Fixed/Implemented the FormStartPosition functionality
16767 2004-10-19 21:52 pbartok
16770 - Removed unneeded locals
16771 - Added code to all size and location properties to understand and
16772 deal with the parent container of Form
16774 2004-10-19 21:33 pbartok
16777 - Fixed to deal with new Form subclasses for menus
16779 2004-10-19 17:48 jackson
16781 * XEventQueue.cs: commit correct version of file
16783 2004-10-19 16:50 jackson
16785 * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
16787 2004-10-19 16:15 jordi
16789 * MenuAPI.cs: MenuBarCalcSize returns the height
16791 2004-10-19 08:31 pbartok
16794 - Added missing call to PreProcessMessage before calling OnXXXKey
16797 2004-10-19 00:04 ravindra
16799 * ToolTip.cs: Fixed constructor.
16801 2004-10-18 09:31 jordi
16803 * MenuAPI.cs: menuitems in menubars do not have shortcuts
16805 2004-10-18 09:26 jordi
16807 * MenuItem.cs: fixes MenuItem class signature
16809 2004-10-18 08:56 jordi
16811 * MenuAPI.cs: prevents windows from showing in the taskbar
16813 2004-10-18 00:28 ravindra
16815 * ToolTip.cs: Suppressed a warning message.
16817 2004-10-18 00:27 ravindra
16819 * Control.cs: Default value of visible property must be true.
16821 2004-10-17 23:19 pbartok
16824 - Complete implementation
16826 2004-10-17 23:19 pbartok
16829 - Added EnableWindow method
16830 - Added SetModal stub
16831 - Added generation of WM_ACTIVATE message (still needs testing)
16832 - Added SetTopMost stub
16833 - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
16835 2004-10-17 23:17 pbartok
16838 - Removed VirtualKeys to XplatUIStructs
16839 - Implemented SetTopMost method
16840 - Implemented EnableWindow method
16841 - Bugfix in ScreenToClient()
16842 - Bugfixes in ClientToScreen()
16844 2004-10-17 22:51 pbartok
16846 * XplatUIStructs.cs:
16847 - Added WS_EX styles to WindowStyles enumeration
16849 2004-10-17 22:50 pbartok
16851 * XplatUI.cs, XplatUIDriver.cs:
16852 - Added method for enabling/disabling windows
16853 - Added method for setting window modality
16854 - Added method for setting topmost window
16856 2004-10-17 22:49 pbartok
16858 * ThemeWin32Classic.cs:
16859 - Added ToolTip drawing code
16861 2004-10-17 22:49 pbartok
16864 - Added ToolTip abstracts
16866 2004-10-17 22:47 pbartok
16869 - Fixed Form.ControlCollection to handle owner relations
16870 - Added Owner/OwnedForms handling
16871 - Implemented Z-Ordering for owned forms
16872 - Removed unneeded private overload of ShowDialog
16873 - Fixed ShowDialog, added the X11 incarnation of modal handling (or
16875 - Fixed Close(), had wrong default
16876 - Added firing of OnLoad event
16877 - Added some commented out debug code for Ownership handling
16879 2004-10-17 22:16 pbartok
16882 - Fixed/implemented flat list of controls
16884 2004-10-17 22:14 pbartok
16887 - Added code to simulate modal dialogs on Win32
16889 2004-10-17 16:11 jordi
16891 * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
16894 2004-10-17 13:39 jordi
16896 * MenuAPI.cs: menu drawing fixes
16898 2004-10-15 09:10 ravindra
16900 * StructFormat.cs: General Enum.
16902 2004-10-15 09:09 ravindra
16904 * SizeGripStyle.cs: Enum for Form.
16906 2004-10-15 09:08 ravindra
16908 * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
16909 in Theme for ListView.
16911 2004-10-15 09:06 ravindra
16913 * ColumnHeader.cs: Flushing some formatting changes.
16915 2004-10-15 09:05 ravindra
16917 * ListViewItem.cs: Implemented GetBounds method and fixed coding
16920 2004-10-15 09:03 ravindra
16922 * ListView.cs: Implemented Paint method and fixed coding style.
16924 2004-10-15 07:34 jordi
16926 * MenuAPI.cs: fix for X11
16928 2004-10-15 07:32 ravindra
16930 * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
16931 - Renamed Paint() method to Draw() for clarity. Also, moved
16932 DrawImage() to OnPaint().
16934 2004-10-15 07:25 ravindra
16936 * CheckBox.cs, RadioButton.cs:
16937 - Removed Redraw (), we get it from ButtonBase.
16938 - Implemented Paint (), to do class specific painting.
16940 2004-10-15 07:16 ravindra
16943 - Redraw () is not virtual now.
16944 - Added an internal virtual method Paint (), so that
16945 derived classes can do their painting on their own.
16946 - Modified OnPaint () to call Paint ().
16948 2004-10-15 06:43 jordi
16950 * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
16951 MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
16953 2004-10-15 00:30 ravindra
16956 - MessageBox on windows does not have min/max buttons.
16957 This change in CreateParams fixes this on Windows. We
16958 still need to implement this windowstyle behavior in
16961 2004-10-14 05:14 ravindra
16964 - Changed Redraw () to do a Refresh () always.
16965 - Fixed the MouseMove event handling when mouse is pressed,
16966 ie drag event handling.
16967 - Replaced the usage of ToolBarButton.Pressed property to
16968 ToolBarButton.pressed internal variable.
16970 2004-10-14 05:10 ravindra
16972 * ToolBarButton.cs:
16973 - Added an internal member 'inside' to handle mouse move
16974 with mouse pressed ie mouse drag event.
16975 - Changed 'Pressed' property to return true only when
16976 'inside' and 'pressed' are both true.
16977 - Some coding style love.
16979 2004-10-14 00:17 ravindra
16981 * Form.cs: Fixed class signature. ShowDialog (Control) is not a
16984 2004-10-14 00:15 ravindra
16986 * ButtonBase.cs: Redraw () related improvements.
16988 2004-10-14 00:14 ravindra
16990 * MessageBox.cs: Moved InitFormSize () out of Paint method and
16991 removed unnecessary calls to Button.Show () method.
16993 2004-10-13 17:50 pbartok
16997 - Removed destroying of window until we solve the problem of X
16998 destroying the window before us on shutdown
17000 2004-10-13 16:32 pbartok
17003 - Now Redraws on MouseUp for FlatStyle Flat and Popup
17005 2004-10-13 14:18 pbartok
17008 - Added code to destroy the X window
17010 2004-10-13 14:18 pbartok
17013 - Added code to destroy a window
17015 2004-10-13 14:12 pbartok
17018 - Added the Redraw on Resize that got dropped in the last rev
17020 2004-10-13 09:06 pbartok
17022 * ThemeWin32Classic.cs:
17023 - Path from John BouAntoun:
17024 * Fix check rendering (centre correctly for normal style, offset
17025 correctly for FlatStyle).
17026 * Fix border color usage (use backcolor) for FlatStyle.Popup
17027 * Use checkbox.Capture instead of checkbox.is_pressed when
17028 rendering flatstyle states.
17030 2004-10-12 21:48 pbartok
17032 * ThemeWin32Classic.cs:
17033 - Removed all occurences of SystemColors and replaced them with the
17034 matching theme color
17036 2004-10-12 21:41 pbartok
17038 * ThemeWin32Classic.cs:
17039 - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
17040 him using the function for flatstyle drawing
17041 - Changed functions to use the new version of CPDrawBorder3D
17043 2004-10-12 21:15 pbartok
17046 - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
17047 match MS documentation. They need to return defined colors if the
17048 passed color matches the configured control color. Thanks to John
17049 BouAntoun for pointing this out.
17051 2004-10-12 20:57 pbartok
17054 - Fix from John BouAntoun: Raise ForeColorChanged event when text
17057 2004-10-12 20:46 pbartok
17060 - Fix from John BouAntoun: Now properly sets the Appearance property
17062 2004-10-12 20:45 pbartok
17064 * ThemeWin32Classic.cs:
17065 - Fixes from John BouAntoun: now handles forecolors and backcolors
17066 for flatstyle rendered controls much better; It also fixes normal
17067 checkbox rendering when pushed or disabled.
17069 2004-10-08 02:50 jordi
17071 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
17074 2004-10-07 08:56 jordi
17076 * ThemeWin32Classic.cs: Removes deletion of cached brushes
17078 2004-10-06 03:59 jordi
17080 * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
17081 XplatUIWin32.cs: removes warnings from compilation
17083 2004-10-05 12:23 jackson
17085 * RadioButton.cs: Fix ctor
17087 2004-10-05 11:10 pbartok
17090 - Partial implementation by Benjamin Dasnois
17092 2004-10-05 10:15 jackson
17094 * ThemeWin32Classic.cs: Improve rendering of the radio button patch
17097 2004-10-05 03:07 ravindra
17100 - Removed a private method, Draw ().
17101 - Fixed the ButtonDropDown event handling.
17102 - Fixed MouseMove event handling.
17104 2004-10-05 03:04 ravindra
17106 * ThemeWin32Classic.cs:
17107 - Added DrawListView method and ListViewDefaultSize property.
17108 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
17109 - Changed DOS style CRLF to Unix format (dos2unix).
17111 2004-10-05 03:03 ravindra
17114 - Added DrawListView method and ListViewDefaultSize property.
17116 2004-10-05 02:42 ravindra
17118 * ToolBarButton.cs: Added an internal member dd_pressed to handle
17119 clicks on DropDown arrow.
17121 2004-10-04 22:56 jackson
17123 * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
17124 ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
17125 Control handle the buffers, derived classes should not have to
17126 CreateBuffers themselves.
17128 2004-10-04 21:20 jackson
17130 * StatusBar.cs: The control handles resizing the buffers now.
17132 2004-10-04 21:18 jackson
17134 * Control.cs: When resizing the buffers should be invalidated. This
17135 should be handled in Control not in derived classes.
17137 2004-10-04 14:45 jackson
17141 2004-10-04 02:14 pbartok
17143 * LeftRightAlignment.cs:
17146 2004-10-04 01:09 jordi
17148 * ThemeWin32Classic.cs: fixes right button position causing right
17149 button not showing on horizontal scrollbars
17151 2004-10-02 13:12 pbartok
17154 - Simplified the Invalidate method by using an X call instead of
17155 generating the expose ourselves
17156 - Added an expose when the window background is changed
17157 - Implemented ClientToScreen method
17159 2004-10-02 13:08 pbartok
17162 - Added Win32EnableWindow method (test for implementing modal
17164 - Added ClientToScreen method and imports
17166 2004-10-02 13:07 pbartok
17168 * XplatUI.cs, XplatUIDriver.cs:
17169 - Added ClientToScreen coordinate translation method
17171 2004-10-02 13:06 pbartok
17173 * KeyPressEventArgs.cs:
17174 - Fixed access level for constructor
17176 2004-10-02 13:06 pbartok
17179 - Changed access level for the window_collection hash table
17181 2004-10-02 13:05 pbartok
17184 - Added KeyPreview property
17185 - Added Menu property (still incomplete, pending Jordi's menu work)
17186 - Implemented ProcessCmdKey
17187 - Implemented ProcessDialogKey
17188 - Implemented ProcessKeyPreview
17190 2004-10-02 13:02 pbartok
17193 - Added private method to get the Control object from the window
17195 - Implemented ContextMenu property
17196 - Implemented PointToScreen
17197 - Implemented PreProcessMessage
17198 - Implemented IsInputChar
17199 - Implemented IsInputKey
17200 - Implemented ProcessCmdKey
17201 - Completed ProcessKeyEventArgs
17202 - Fixed message loop to call the proper chain of functions on key
17204 - Implemented ProcessDialogChar
17205 - Implemented ProcessDialogKey
17206 - Implemented ProcessKeyMessage
17207 - Implemented ProcessKeyPreview
17208 - Added RaiseDragEvent stub (MS internal method)
17209 - Added RaiseKeyEvent stub (MS internal method)
17210 - Added RaiseMouseEvent stub (MS Internal method)
17211 - Added RaisePaintEvent stub (MS Internal method)
17212 - Added ResetMouseEventArgs stub (MS Internal method)
17213 - Implemented RtlTranslateAlignment
17214 - Implemented RtlTranslateContent
17215 - Implemented RtlTranslateHorizontal
17216 - Implemented RtlTranslateLeftRight
17217 - Added generation of KeyPress event
17219 2004-10-02 05:57 ravindra
17221 * ListViewItem.cs: Added attributes.
17223 2004-10-02 05:32 ravindra
17225 * ListView.cs: Added attributes.
17227 2004-10-01 11:53 jackson
17229 * Form.cs: Implement the Close method so work on MessageBox can
17232 2004-09-30 14:06 pbartok
17237 2004-09-30 11:34 jackson
17239 * RadioButton.cs: Fix typo. Patch by John BouAntoun.
17241 2004-09-30 07:26 ravindra
17243 * ListViewItemConverter.cs: Converter for ListViewItem.
17245 2004-09-30 07:26 ravindra
17247 * SortOrder.cs: Enum for ListView control.
17249 2004-09-30 07:25 ravindra
17251 * ColumnHeader.cs: Supporting class for ListView control.
17253 2004-09-30 07:24 ravindra
17255 * ListView.cs, ListViewItem.cs: Initial implementation.
17257 2004-09-30 07:20 ravindra
17259 * ItemActivation.cs: Enum for ListView Control.
17261 2004-09-29 20:29 pbartok
17264 - Added lookup of pixel value for background color; tries to get a
17265 color 'close' to the requested color, it avoids having to create a
17266 colormap. Depending on the display this could mean the used color
17267 is slightly off the desired color. Might have to change it to a more
17268 resource intensive colormap approach, but it will work as a
17269 workaround to avoid red screens.
17271 2004-09-29 14:27 jackson
17273 * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
17275 2004-09-28 12:44 pbartok
17277 * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
17278 HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
17279 ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
17280 Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
17281 TrackBar.cs, VScrollBar.cs:
17282 - Streamlined Theme interfaces:
17283 * Each DrawXXX method for a control now is passed the object for
17284 the control to be drawn in order to allow accessing any state the
17285 theme might require
17287 * ControlPaint methods for the theme now have a CP prefix to avoid
17288 name clashes with the Draw methods for controls
17290 * Every control now retrieves it's DefaultSize from the current
17293 2004-09-28 12:17 jackson
17295 * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
17298 2004-09-24 14:57 jackson
17300 * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
17301 Gives us a nice little performance boost.
17303 2004-09-24 12:02 jackson
17305 * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
17306 TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
17307 Control and supporting classes. Initial checkin
17309 2004-09-23 13:08 jackson
17311 * Form.cs: Temp build fixage
17313 2004-09-23 01:39 ravindra
17315 * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
17316 ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
17317 ItemDragEventArgs.cs, ItemDragEventHandler.cs,
17318 LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
17319 EventHandlers needed by ListView Control.
17321 2004-09-22 14:12 pbartok
17323 * ScrollableControl.cs:
17324 - Implemented DockPadding property
17325 - Implemented AutoScroll property
17326 - Implemented AutoScrollMargin property
17327 - Implemented AutoScrollMinSize property
17328 - Implemented AutoScrollPosition property
17329 - Implemented DisplayRectangle property (still incomplete)
17330 - Implemented CreateParams property
17331 - Implemented HScroll property
17332 - Implemented VScroll property
17333 - Implemented OnVisibleChanged property
17335 2004-09-22 14:09 pbartok
17338 - Added Form.ControllCollection class
17339 - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
17340 RemoveOwnedForm (still incomplete, missing on-top and common
17341 minimize/maximize behaviour)
17342 - Added StartPosition property (still incomplete, does not use when
17344 - Added ShowDialog() methods (still incomplete, missing forcing the
17347 2004-09-22 14:05 pbartok
17350 - Added message loop for modal dialogs
17352 2004-09-22 14:02 pbartok
17355 - Fixed wrong types for events
17357 2004-09-22 14:00 pbartok
17359 * Shortcut.cs, FormWindowState.cs:
17360 - Fixed wrong values
17362 2004-09-22 12:01 jackson
17364 * Control.cs: Text is never null
17366 2004-09-20 22:14 pbartok
17369 - Fixed accessibility level for Idle handler
17371 2004-09-20 18:54 jackson
17373 * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
17374 XplatUIX11.cs: New message loop that uses poll so we don't get a
17377 2004-09-17 10:43 pbartok
17380 - Fixed behaviour of arrow buttons. Now properly behaves like
17381 Buttons (and like Microsoft's scrollbar arrow buttons)
17383 2004-09-17 10:14 pbartok
17386 - Added missing release of keyboard/mouse capture
17388 2004-09-17 06:18 jordi
17390 * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
17391 Theme.cs: Very early menu support
17393 2004-09-16 17:45 pbartok
17396 - Fixed sending a window to the front
17397 - Added overload for SetWindowPos to avoid casting
17399 2004-09-16 17:44 pbartok
17402 - Added SendToBack and BringToFront methods
17404 2004-09-16 07:00 ravindra
17406 * Copyright: Added Novell URL.
17408 2004-09-16 07:00 ravindra
17410 * ToolBar.cs: Invalidate should be done before redrawing.
17412 2004-09-15 21:19 ravindra
17414 * ColumnHeaderStyle.cs: Enum for ListView Control.
17416 2004-09-15 21:18 ravindra
17418 * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
17421 2004-09-13 18:26 jackson
17423 * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
17426 2004-09-13 18:13 jackson
17428 * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
17429 a second thread and post messages into the main threads message
17430 queue. This makes timing much more consistent. Both win2K and XP
17431 have a minimum timer value of 15 milliseconds, so we now do this
17434 2004-09-13 15:18 pbartok
17436 * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
17438 - Added Z-Ordering methods
17440 2004-09-13 10:56 pbartok
17443 - Fixed #region names
17444 - Moved properties and methods into their proper #regions
17446 2004-09-13 10:51 pbartok
17449 - Added Accept and CancelButton properties
17450 - Added ProcessDialogKey() method
17452 2004-09-13 08:18 pbartok
17454 * IWindowTarget.cs:
17457 2004-09-10 21:50 pbartok
17460 - Added DoDragDrop() [incomplete]
17461 - Properly implemented 'Visible' handling
17462 - Added SetVisibleCore()
17463 - Implemented FindChildAtPoint()
17464 - Implemented GetContainerControl()
17465 - Implemented Hide()
17467 2004-09-10 19:28 pbartok
17470 - Moved methods into their appropriate #regions
17471 - Reordered methods within regions alphabetically
17473 2004-09-10 18:57 pbartok
17475 * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
17476 - Added method to retrieve text from window
17478 2004-09-10 18:56 pbartok
17481 - Moved some internal functions into the internal region
17482 - Implemented FontHeight
17483 - Implemented RenderRightToLeft
17484 - Implemented ResizeRedraw
17485 - Implemented ShowFocusCues
17486 - Implemented ShowKeyboardCues
17487 - Implemented FromChildHandle
17488 - Implemented FromHandle
17489 - Implemented IsMnemonic
17490 - Implemented ReflectMessage
17491 - All public and protected Static Methods are now complete
17493 2004-09-10 16:54 pbartok
17496 - Implemented remaining missing public instance properties
17497 - Alphabetized some out of order properties
17499 2004-09-10 05:51 ravindra
17501 * PictureBox.cs: Added a check for null image.
17503 2004-09-10 00:59 jordi
17505 * GroupBox.cs: remove cvs tag
17507 2004-09-09 05:25 ravindra
17509 * ToolBar.cs: Make redraw accessible from ToolBarButton.
17511 2004-09-09 05:23 ravindra
17513 * ToolBarButton.cs: Changes in ToolBarButton need to make it's
17516 2004-09-09 02:28 pbartok
17518 * ThemeWin32Classic.cs:
17519 - Improve disabled string look
17521 2004-09-09 01:15 jordi
17523 * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
17526 2004-09-08 23:56 ravindra
17528 * ItemBoundsPortion.cs: It's enum, not a class!
17530 2004-09-08 23:47 ravindra
17532 * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
17535 2004-09-08 21:13 ravindra
17537 * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
17540 2004-09-08 21:03 ravindra
17542 * ThemeWin32Classic.cs: PictureBox would not draw a null image to
17545 2004-09-08 21:01 ravindra
17547 * ScrollableControl.cs: Removed unreachable code.
17549 2004-09-08 06:45 jordi
17551 * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
17553 2004-09-08 01:00 jackson
17555 * XplatUIX11.cs: Only run the timers when updating the message
17556 queue. This effectively gives X messages a higher priority then
17557 timer messages. Timers still need love though
17559 2004-09-07 14:01 jackson
17561 * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
17562 this for us and the handle is no longer valid.
17564 2004-09-07 13:59 jackson
17566 * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
17567 loop that manages to not crash. TODO: Add poll and cleanup timers
17569 2004-09-07 11:12 jordi
17571 * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
17573 2004-09-07 03:40 jordi
17575 * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
17576 fixes, methods, multiple links
17578 2004-09-06 06:55 jordi
17580 * Control.cs: Caches ClientRectangle rectangle value
17582 2004-09-05 02:03 jordi
17584 * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
17587 2004-09-04 11:10 jordi
17589 * Label.cs: Refresh when font changed
17591 2004-09-02 16:24 pbartok
17594 - Added sanity check to creation of double buffer bitmap
17596 2004-09-02 16:24 pbartok
17599 - Fixed selection of text color
17600 - Fixed handling of resize event; now properly recreates double
17602 - Added missing assignment of TextAlignment
17603 - Added proper default for TextAlignment
17605 2004-09-02 14:26 pbartok
17608 - Added missing RadioButton.RadioButtonAccessibleObject class
17610 2004-09-02 14:26 pbartok
17613 - Added missing Control.ControlAccessibleObject class
17614 - Started to implement Select()ion mechanisms, still very incomplete
17616 2004-09-02 14:25 pbartok
17618 * AccessibleObject.cs:
17619 - Added missing methods
17621 2004-09-02 14:23 pbartok
17623 * AccessibleNavigation.cs, AccessibleSelection.cs:
17626 2004-09-02 10:32 jordi
17628 * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
17629 pool for pens, brushes, and hatchbruses
17631 2004-09-01 15:30 jackson
17633 * StatusBar.cs: Fix typo
17635 2004-09-01 14:44 pbartok
17640 2004-09-01 14:39 pbartok
17642 * Button.cs, RadioButton.cs:
17643 - Functional initial check-in
17645 2004-09-01 14:01 pbartok
17648 - Added missing default
17649 - Added missing region mark
17651 2004-09-01 09:10 jordi
17653 * Label.cs: fixes method signatures, new methods, events, fixes
17656 2004-09-01 07:19 jordi
17658 * Control.cs: Init string variables with an empty object
17660 2004-09-01 04:20 jordi
17662 * Control.cs: fires OnFontChanged event
17664 2004-08-31 20:07 pbartok
17667 - Enabled display of strings
17669 2004-08-31 20:05 pbartok
17672 - Added (partial) implementation of DialogResult; rest needs to be
17673 implemented when the modal loop code is done
17675 2004-08-31 19:55 pbartok
17678 - Fixed to match the removal of the needs_redraw concept
17680 2004-08-31 19:55 pbartok
17683 - Removed the rather odd split between 'needs redraw' and redrawing
17684 - Now handles the events that require regeneration (ambient
17685 properties and size)
17687 2004-08-31 19:41 pbartok
17690 - Added firing of BackColorChanged event
17691 - Added TopLevelControl property
17692 - Fixed handling of WM_ERASEBKGRND message
17694 2004-08-31 12:49 pbartok
17700 2004-08-31 12:48 pbartok
17703 - Finished (famous last words)
17705 2004-08-31 04:35 jordi
17707 * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
17708 scrolling bugs, adds new methods
17710 2004-08-30 14:42 pbartok
17713 - Implemented CheckBox drawing code
17715 2004-08-30 14:42 pbartok
17718 - Made Redraw() and CheckRedraw() virtual
17719 - Improved mouse up/down/move logic to properly track buttons
17721 2004-08-30 09:44 pbartok
17724 - Updated to fix broken build. Not complete yet.
17726 2004-08-30 09:28 pbartok
17731 2004-08-30 09:17 pbartok
17736 2004-08-27 16:12 ravindra
17738 * ToolBarButton.cs: Added TypeConverter attribute.
17740 2004-08-27 16:07 ravindra
17742 * ImageIndexConverter.cs: Implemented.
17744 2004-08-27 14:17 pbartok
17747 - Removed unneeded stack vars
17748 - First attempt to fix sizing issues when layout is suspended
17750 2004-08-25 15:35 jordi
17752 * ScrollBar.cs: more fixes to scrollbar
17754 2004-08-25 14:04 ravindra
17756 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
17757 Added the missing divider code and grip for ToolBar Control.
17759 2004-08-25 13:20 pbartok
17762 - Control now properly passes the ambient background color to child
17765 2004-08-25 13:20 jordi
17767 * ScrollBar.cs: small bug fix regarding bar position
17769 2004-08-25 12:33 pbartok
17772 - Now only calls SetTimer or KillTimer if the enabled state has
17775 2004-08-25 12:33 pbartok
17778 - Fixed timer handling, now seems to work
17779 - Improved error message for window creation
17781 2004-08-25 12:32 pbartok
17784 - Fixed generation of MouseUp message
17786 2004-08-25 12:29 jordi
17788 * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
17789 and fixes for progressbar
17791 2004-08-24 18:43 ravindra
17793 * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
17794 in ToolBar control.
17796 2004-08-24 17:15 pbartok
17800 - Added missing events
17803 2004-08-24 17:14 pbartok
17805 * StatusBar.cs, PictureBox.cs:
17806 - Now uses Control's CreateParams
17808 2004-08-24 16:36 pbartok
17811 - Fixed background color handling
17812 - Fixed sending of enter/leave events on a grab
17814 2004-08-24 16:35 pbartok
17817 - Refined definitions for CrossingEvent
17819 2004-08-24 12:37 jordi
17821 * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
17822 formmating, methods signature, and adds missing events
17824 2004-08-24 12:24 jordi
17826 * Control.cs: fire OnEnabledChanged event
17828 2004-08-24 11:17 pbartok
17831 - Implemented SetTimer() and KillTimer()
17833 2004-08-24 11:16 pbartok
17836 - Now uses Remove instead of Add to kill the timer
17838 2004-08-24 10:16 jackson
17840 * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
17841 picture boxes in the theme now. Draw picture box borders and obey
17844 2004-08-24 05:49 jackson
17846 * Timer.cs: Remove top secret debugging code
17848 2004-08-24 05:34 jackson
17850 * PictureBox.cs: Temp hack to make picture boxes draw their full
17853 2004-08-24 05:29 jackson
17855 * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
17856 XplatUIX11.cs: Move timers to the driver level. On X they are
17857 queued by the driver and checked on idle.
17859 2004-08-24 01:07 jackson
17861 * XplatUIX11.cs: Use a queue for async messages instead of passing
17862 them as ClientMessages since that was totally broken. Also simply
17863 check for events and return an idle message if none are found. This
17864 gives us an idle handler, and prevents deadlocking when no messages
17867 2004-08-23 18:19 ravindra
17869 * XplatUIWin32.cs: Removed the unwanted destructor.
17871 2004-08-23 17:27 pbartok
17874 - Finishing touches. Works now, just needs some optimizations.
17876 2004-08-23 16:53 jordi
17878 * ScrollBar.cs: small fix
17880 2004-08-23 16:45 pbartok
17883 - Removed debug output
17886 2004-08-23 16:43 jordi
17888 * ScrollBar.cs: [no log message]
17890 2004-08-23 16:10 pbartok
17893 - Fixed handling of WM_CLOSE message
17894 - Removed debug output
17896 2004-08-23 16:09 pbartok
17899 - Added handling of Idle event
17900 - Added handling of form closing
17901 - Fixed reporting of MessageLoop property
17902 - Removed some unneeded code, should provide a bit of a speedup
17904 2004-08-23 15:22 pbartok
17907 - Added InitLayout() method
17908 - Added code to properly perform layout when Anchor or Dock property
17910 - Changed 'interpretation' of ResumeLayout. MS seems to have a
17911 LAMESPEC, tried to do it in a way that makes sense
17913 2004-08-23 14:10 jordi
17915 * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
17916 properties and methods
17918 2004-08-23 13:55 pbartok
17921 - Properly fixed Jordi's last fix
17922 - Now uses Cursor's Position property instead of calling XplatUI
17925 2004-08-23 13:44 jordi
17927 * PaintEventHandler.cs: Adding missing attribute
17929 2004-08-23 13:39 pbartok
17932 - Implemented Position property
17934 2004-08-23 13:39 pbartok
17936 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
17937 - Added method to move mouse cursor
17939 2004-08-23 13:39 pbartok
17942 - Fixed setting of background color
17943 - Added method to move mouse cursor
17945 2004-08-23 13:16 jordi
17947 * Control.cs: avoids null exception
17949 2004-08-22 17:46 jackson
17951 * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
17954 2004-08-22 17:40 jackson
17956 * XplatUIX11.cs: Add some missing locks
17958 2004-08-22 15:10 pbartok
17960 * Control.cs, Form.cs:
17961 - Removed OverlappedWindow style from Control, instead it's default
17963 - Made form windows OverlappedWindow by default
17965 2004-08-22 13:34 jackson
17967 * ScrollBar.cs: Update the position through the Value property so
17968 the OnValueChanged event is raised.
17970 2004-08-22 12:04 pbartok
17973 - Added Cursor.cs and UserControl.cs
17975 2004-08-22 12:03 pbartok
17978 - Started implementation, not usable yet
17980 2004-08-22 12:00 pbartok
17983 - Implemented UserControl (complete)
17985 2004-08-21 19:20 ravindra
17987 * ToolBar.cs: Correcting the formatting mess of VS.NET.
17989 2004-08-21 18:49 ravindra
17991 * ToolBar.cs: Probably this completes the missing attributes in
17994 2004-08-21 18:03 ravindra
17996 * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
17997 Fixed toolbar control signatures.
17999 2004-08-21 16:32 pbartok
18004 2004-08-21 16:30 pbartok
18009 2004-08-21 16:19 pbartok
18011 * Control.cs, Label.cs:
18014 2004-08-21 15:57 pbartok
18017 - Added loads of debug output for development
18018 - Fixed typo in method name
18020 2004-08-21 15:52 pbartok
18022 * ToolBarButtonClickEventArgs.cs:
18023 - Added missing base class
18025 2004-08-21 14:53 pbartok
18028 - Updated to match new GrabWindow signature
18030 2004-08-21 14:51 pbartok
18032 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
18033 - Added method to get default display size
18035 2004-08-21 14:23 pbartok
18037 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
18038 - Added method to query current grab state
18039 - Added argument to allow confining a grab to a window
18041 2004-08-21 14:22 pbartok
18044 - Added [Flags] attribute so that modifiers can be used in bitwise
18047 2004-08-21 14:21 pbartok
18049 * TrackBar.cs, ScrollBar.cs:
18050 - Replaced direct XplatUI calls with their Control counterpart
18052 2004-08-21 13:32 pbartok
18055 - Implemented Created property
18057 2004-08-21 13:28 pbartok
18060 - Implemented ContainsFocus
18062 2004-08-21 13:26 pbartok
18065 - Implemented CausesValidation
18067 2004-08-21 13:21 pbartok
18070 - Implemented CanFocus
18071 - Implemented CanSelect
18072 - Implemented Capture
18074 2004-08-21 12:35 pbartok
18077 - Fixed bug with Async message handling
18078 - Implemented getting the ModifierKeys
18080 2004-08-21 12:32 jackson
18082 * AsyncMethodResult.cs: Make sure we have the mutex before we
18083 release it. Fixes BeginInvoke on windows
18085 2004-08-21 11:31 pbartok
18087 * XplatUIWin32.cs, XplatUIX11.cs:
18088 - Drivers now return proper mouse state
18090 2004-08-21 10:54 jackson
18092 * Control.cs: Implement EndInvoke
18094 2004-08-21 10:48 jackson
18096 * Timer.cs: Remove unneeded finalizer
18098 2004-08-20 19:52 ravindra
18100 * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
18101 in mouse event handling in the ToolBar control.
18103 2004-08-20 19:50 ravindra
18105 * ImageList.cs: Changed draw method to use the arguments passed in
18108 2004-08-20 18:58 pbartok
18110 * XplatUIStructs.cs:
18111 - Added private message for async communication
18113 2004-08-20 17:38 ravindra
18115 * Control.cs: Made RightToLeft property virtual and removed a
18118 2004-08-20 14:39 jordi
18120 * ThemeGtk.cs: use style_attach
18122 2004-08-20 14:39 pbartok
18125 - Added jackson's Async code from X11 to Win32
18127 2004-08-20 14:09 pbartok
18130 - Added all new files
18132 2004-08-20 14:09 pbartok
18135 - Added call to set window background color
18137 2004-08-20 14:03 pbartok
18139 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
18140 - Added method for setting the window background
18142 2004-08-20 14:02 pbartok
18145 - Added method for setting the background color
18146 - Added handling for erasing the window background
18148 2004-08-20 13:45 jordi
18150 * TrackBar.cs: fixes timer, new properties and methods
18152 2004-08-20 13:34 jackson
18154 * ScrollBar.cs: Use the SWF timer so callbacks are run in the
18157 2004-08-20 13:22 jackson
18159 * Timer.cs: Timer Tick events are now handed through Controls Async
18160 mechanism so the callbacks are executed in the same thread as X
18162 2004-08-20 13:19 jackson
18164 * XplatUIDriver.cs: Expose functionality to send async messages
18167 2004-08-20 13:18 jackson
18169 * Control.cs: Implement Begininvoke
18171 2004-08-20 13:14 jackson
18173 * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
18174 messages through the driver
18176 2004-08-20 13:12 jackson
18178 * XplatUIX11.cs: Lock before all X operations. Also added Async
18179 method functionality through XSendEvent
18181 2004-08-20 13:11 jackson
18183 * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
18184 This will screw up on 64 bit systems)
18186 2004-08-20 13:10 jackson
18188 * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
18189 Async messages through X/Win32
18191 2004-08-19 19:39 pbartok
18194 - Updated code to match new HandleData.DeviceContext type
18196 2004-08-19 19:38 pbartok
18199 - Made DeviceContext a generic object to allow usage from various
18201 - Added support for queueing Windows messages
18203 2004-08-19 19:37 pbartok
18206 - Added generation of MouseEnter, MouseLeave and MouseHover events
18207 - Added cleanup on EndPaint
18209 2004-08-19 19:17 pbartok
18212 - Added handling of WM_MOUSEHOVER
18213 - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
18216 2004-08-19 18:55 jordi
18218 * ThemeGtk.cs: fixes button order
18220 2004-08-19 18:12 jordi
18222 * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
18224 2004-08-19 17:09 pbartok
18227 - Added Right property
18228 - Added RightToLeft property
18230 2004-08-19 16:27 jordi
18232 * ThemeGtk.cs: experimental GTK theme support
18234 2004-08-19 16:26 jordi
18236 * ITheme.cs, Theme.cs: move themes from an interface to a class
18238 2004-08-19 16:25 jordi
18240 * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
18243 2004-08-19 16:04 pbartok
18246 - Added colormap basics
18247 - Added a way to re-initialize with a different display handle
18248 - Fixed setting of the window background color
18249 - Added various X11 imports related to colors and colormaps
18251 2004-08-19 15:51 pbartok
18254 - Removed packing hints (Paolo suggested this a while back)
18255 - fixed colormap type
18256 - Added default Atom types
18257 - Added Screen and color structs and enums
18259 2004-08-19 15:39 pbartok
18262 - Added missing Draw() method
18263 - Added missing RecreateHandle event
18265 2004-08-19 15:30 pbartok
18268 - Added handling of WM_CLOSE
18270 2004-08-18 13:16 jordi
18272 * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
18275 2004-08-18 09:56 jordi
18277 * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
18279 2004-08-17 15:31 ravindra
18281 * SWF.csproj: Updated project.
18283 2004-08-17 15:25 pbartok
18286 - Drawing improvement; don't call UpdateBounds if we are not visible
18287 (or have been minimized)
18289 2004-08-17 15:24 pbartok
18292 - Finished IsVisible
18293 - Added Win32GetWindowPlacement
18295 2004-08-17 15:08 jackson
18297 * Panel.cs: Initial checkin of the Panel
18299 2004-08-17 14:25 pbartok
18302 - Fixed broken handling of default window sizes
18304 2004-08-17 13:29 jackson
18306 * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
18307 has a large startup time.
18309 2004-08-17 10:25 jackson
18311 * HandleData.cs: union areas properly
18313 2004-08-17 10:12 jackson
18315 * HandleData.cs: union areas properly
18317 2004-08-16 20:00 ravindra
18319 * ToolBar.cs, ToolBarButton.cs: Added attributes.
18321 2004-08-16 18:48 ravindra
18323 * ToolBar.cs: Added attributes.
18325 2004-08-16 17:17 ravindra
18327 * SWF.csproj: Updated project.
18329 2004-08-16 17:16 jackson
18331 * XplatUIX11.cs: Check for more expose events before sending a
18332 WM_PAINT so they can all be grouped together. This makes dragging a
18333 window across another window redraw in a sane way.
18335 2004-08-16 15:47 pbartok
18338 - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
18339 support OnMouseEnter/Leave()
18340 - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
18343 2004-08-16 15:46 pbartok
18345 * XplatUIStructs.cs, XplatUIX11.cs:
18346 - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
18347 OnMouseEnter/Leave()
18349 2004-08-16 15:34 jackson
18351 * XplatUIX11.cs: Group multiple expose events in HandleData, make
18352 sure messages get the message field set to WM_NULL if they are not
18355 2004-08-16 15:24 jackson
18357 * HandleData.cs: HandleData is used for storing message information
18360 2004-08-15 17:23 ravindra
18362 * ColorDepth.cs: Added attribute.
18364 2004-08-15 17:23 ravindra
18366 * SWF.csproj: Updated project for ToolBar Control.
18368 2004-08-15 17:20 ravindra
18370 * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
18371 control and also dos2unix format.
18373 2004-08-15 17:13 ravindra
18375 * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
18376 ToolBarButtonClickEventArgs.cs,
18377 ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
18378 ToolBarTextAlign.cs: First Implementation of ToolBar control.
18380 2004-08-15 15:31 pbartok
18383 - First (mostly) working version
18385 2004-08-13 16:15 pbartok
18388 - Fixed Anchor default
18390 2004-08-13 15:43 pbartok
18393 - Changed GetCursorPos signature
18395 2004-08-13 15:42 pbartok
18397 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
18398 - Changed signature for GetCursorPos
18400 2004-08-13 15:25 pbartok
18404 - Fixed resizing/exposure handling
18406 2004-08-13 15:22 jordi
18408 * ThemeWin32Classic.cs: removes redundant code and fixes issues
18411 2004-08-13 14:55 jordi
18413 * TrackBar.cs: change from wndproc to events
18415 2004-08-13 13:00 jordi
18417 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
18418 XplatUIX11.cs: implements PointToClient (ScreenToClient)
18420 2004-08-13 12:53 pbartok
18423 - Changed GetWindowPos to also provide client area size
18424 - Fixed broken prototypes for several win32 functions
18426 2004-08-13 12:53 pbartok
18428 * XplatUI.cs, XplatUIDriver.cs:
18429 - Changed GetWindowPos to also provide client area size
18431 2004-08-13 12:52 pbartok
18434 - Added generation of WM_POSCHANGED
18435 - Changed GetWindowPos to also provide client area size
18437 2004-08-13 12:52 pbartok
18440 - Added Dispose() and destructor
18441 - Fixed resizing and bounds calculation
18443 - Added memory savings for invisible windows
18445 2004-08-13 12:46 jordi
18447 * TrackBar.cs: adds timer and grap window
18449 2004-08-13 10:25 jackson
18451 * Timer.cs: SWF Timer
18453 2004-08-12 16:59 pbartok
18455 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
18456 - Implemented method to get current mouse position
18458 2004-08-12 14:29 jordi
18460 * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
18461 enhancement, fix mouse problems, highli thumb, etc
18463 2004-08-12 13:31 pbartok
18466 - Fixed Anchoring bugs
18468 2004-08-12 13:01 jackson
18470 * StatusBar.cs: Don't forget things
18472 2004-08-12 12:54 jackson
18474 * ThemeWin32Classic.cs: Handle owner draw status bars
18476 2004-08-12 12:54 jackson
18478 * StatusBar.cs: Implement missing properties, events, and methods.
18479 Handle mouse clicking
18481 2004-08-12 10:19 jackson
18483 * StatusBarPanelClickEventArgs.cs,
18484 StatusBarPanelClickEventHandler.cs: Classes for handling status
18485 bar panel click events
18487 2004-08-12 10:10 jackson
18489 * Control.cs: Add missing properties
18491 2004-08-12 09:46 pbartok
18493 * BindingsManagerBase.cs:
18494 - Name changed to BindingManagerBase.cs
18496 2004-08-12 09:25 jordi
18498 * ScrollableControl.cs: calls ctrlbase instead of exeception
18500 2004-08-11 16:28 pbartok
18502 * InputLanguageChangingEventArgs.cs:
18503 - Never check in before compiling. Fixes the last check-in
18505 2004-08-11 16:26 pbartok
18507 * InputLanguageChangingEventArgs.cs:
18508 - More signature fixes
18510 2004-08-11 16:20 pbartok
18512 * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
18513 Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
18514 ImageListStreamer.cs, InputLanguage.cs,
18515 InputLanguageChangedEventArgs.cs,
18516 InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
18517 LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
18518 ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
18519 XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
18522 2004-08-11 16:16 pbartok
18526 - Added .Net 1.1 method
18528 2004-08-11 15:25 pbartok
18531 - Fixed BindingManagerBase.cs filename
18533 2004-08-11 15:22 pbartok
18535 * BindingManagerBase.cs:
18536 - Was checked in with wrong filename
18538 2004-08-11 14:50 pbartok
18543 2004-08-11 13:41 jordi
18545 * XplatUIWin32.cs: Fixes ClientRect
18547 2004-08-11 13:19 pbartok
18549 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
18551 - We had SetWindowPos and MoveWindow to set window positions and
18552 size, removed MoveWindow. We have GetWindowPos, so it made sense to
18553 keep SetWindowPos as matching counterpart
18554 - Added some X11 sanity checking
18556 2004-08-11 12:59 pbartok
18559 - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
18560 (It seems that SetBounds is just a front for SetBoundsCore and
18561 SetBoundsCore updates the underlying window system and
18562 UpdateBounds is responsible for updating the variables associated
18563 with the Control and sending the events)
18564 - Major cleanup of Size handling; we now have two sizes, client_size
18565 and bounds. Bounds defines the window with decorations, client_size
18568 2004-08-11 12:55 pbartok
18570 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
18571 - Added method to calculate difference between decorated window and
18574 2004-08-11 12:54 pbartok
18577 - Forcing redraw on resize
18579 2004-08-11 11:43 pbartok
18582 - Removed disposing of the actual images when the list is disposed
18584 2004-08-11 09:13 pbartok
18587 - Now properly reparents windows
18589 2004-08-11 08:37 pbartok
18594 2004-08-11 07:47 pbartok
18597 - Rewrote the collection stuff. Might not be as fast now, not
18598 keeping the number of children around and accessible directly, but
18599 it's more straightforward
18601 2004-08-11 07:44 pbartok
18603 * AccessibleObject.cs:
18604 - Fixed to match ControlCollection rewrite
18606 2004-08-11 07:43 pbartok
18609 - Added missing creation of the collection list
18611 2004-08-10 20:08 jackson
18613 * StatusBar.cs: Get the paint message from WndProc
18615 2004-08-10 19:31 jackson
18617 * ThemeWin32Classic.cs: Create Brushes as little as possible
18619 2004-08-10 19:20 jackson
18621 * UICues.cs: Add Flags attribute
18623 2004-08-10 19:19 jackson
18625 * StatusBarPanel.cs: Signature cleanup
18627 2004-08-10 19:10 jackson
18629 * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
18630 Initial implementation of status bar item drawing
18632 2004-08-10 17:27 jordi
18634 * TrackBar.cs: add missing methods, properties, and restructure to
18637 2004-08-10 16:24 jackson
18639 * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
18640 ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
18643 2004-08-10 13:21 jordi
18645 * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
18646 enhancements and standarize on win colors defaults
18648 2004-08-10 12:52 jackson
18650 * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
18651 ThemeWin32Classic.cs: Implement DrawItem functionality
18653 2004-08-10 12:47 jordi
18655 * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
18657 2004-08-10 12:32 jordi
18659 * Control.cs: throw ontextchange event
18661 2004-08-10 11:43 pbartok
18664 - Added more to the still unfinished Dock/Anchor layout code
18666 2004-08-10 11:39 pbartok
18668 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
18669 - Added GetWindowPos method
18671 2004-08-10 11:36 pbartok
18674 - Implemented several methods
18676 2004-08-10 09:47 jackson
18678 * TrackBar.cs: Allow control to handle buffering
18680 2004-08-10 09:41 jackson
18682 * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
18684 2004-08-10 09:24 jackson
18686 * Label.cs, LinkLabel.cs: Let Control handle buffering.
18688 2004-08-10 09:09 jackson
18690 * StatusBar.cs: Let Control handle all the buffering.
18692 2004-08-10 09:08 jackson
18694 * Control.cs: Control will now handle the buffering code, so each
18695 control does not have to implement this.
18697 2004-08-10 08:34 jackson
18699 * XplatUIDriver.cs: Use default colors from the theme
18701 2004-08-09 17:12 pbartok
18704 - Fixed several bugs Ravindra pointed out
18706 2004-08-09 16:11 pbartok
18709 - Added incomplete dock layout code
18710 - Added support for mouse wheel
18712 2004-08-09 16:09 pbartok
18715 - Added handling for middle and right mousebutton
18716 - Added handling for mouse wheel
18717 - Added handling for key state and mouse state and position
18718 - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
18721 2004-08-09 15:40 jackson
18723 * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
18724 StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
18727 2004-08-09 15:37 jackson
18729 * StatusBar.cs: Initial implementation of StatusBar
18731 2004-08-09 15:36 jackson
18733 * ITheme.cs: Add support for drawing status bar and getting status
18736 2004-08-09 15:35 pbartok
18741 2004-08-09 15:34 jackson
18743 * ThemeWin32Classic.cs: Add support for drawing status bar and get
18744 status bar item sizes
18746 2004-08-09 15:21 jackson
18748 * ThemeWin32Classic.cs: Use known colors for default control
18751 2004-08-09 15:12 jackson
18753 * ThemeWin32Classic.cs: Make the default font static, it is static
18754 in control so this doesn't change functionality and creating fonts
18757 2004-08-09 14:56 pbartok
18760 - Added GrabMode enum
18762 2004-08-09 14:55 pbartok
18764 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
18765 - Removed Run method, was only required for initial development
18767 2004-08-09 14:51 pbartok
18769 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
18770 - Implemented GrabWindow/ReleaseWindow methods to allow pointer
18773 2004-08-09 13:48 pbartok
18776 - Fixed default sizing for child windows
18778 2004-08-09 12:56 pbartok
18781 - Added generation of WM_DESTROY message
18782 - Added handling of window manager induced shutdown
18784 2004-08-09 11:31 jackson
18786 * ThemeWin32Classic.cs: New names for control properties
18788 2004-08-09 11:25 jackson
18790 * Control.cs: Use new color names
18792 2004-08-09 11:02 jackson
18794 * XplatUI.cs: Get default window properties from the theme
18796 2004-08-09 11:01 jackson
18798 * ITheme.cs: The theme engine now controls default window
18801 2004-08-09 11:00 jackson
18803 * ThemeWin32Classic.cs: Add default window color properties
18805 2004-08-09 10:17 jackson
18807 * ThemeWin32Classic.cs: Use correct default back color
18809 2004-08-09 10:05 jackson
18811 * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
18814 2004-08-09 09:56 jackson
18816 * XplatUI.cs: Remove defaults, these are handled by the theme now.
18818 2004-08-09 09:54 jackson
18820 * Control.cs: Get default properties from the theme.
18822 2004-08-09 09:53 jackson
18824 * ITheme.cs: Themes now handle default control properties
18826 2004-08-09 09:53 jackson
18828 * ThemeWin32Classic.cs: Themes now handle default control
18829 properties so coloring will be consistent
18831 2004-08-08 16:54 jordi
18833 * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
18835 2004-08-08 15:08 jordi
18837 * XplatUIX11.cs: fixes keyboard crash
18839 2004-08-08 13:47 jordi
18841 * Label.cs: add cvs header info
18843 2004-08-08 12:09 jackson
18845 * ThemeWin32Classic.cs: Add pen_buttonface
18847 2004-08-08 11:52 jordi
18849 * Label.cs, LinkLabel.cs: [no log message]
18851 2004-08-08 11:34 jordi
18853 * ThemeWin32Classic.cs: Use Windows Standard Colours
18855 2004-08-07 17:32 jordi
18857 * TrackBar.cs: throw exceptions of invalid enums values
18859 2004-08-07 17:31 jordi
18861 * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
18864 2004-08-07 16:56 jackson
18866 * HorizontalAlignment.cs: Initial checkin
18868 2004-08-07 13:16 jordi
18870 * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
18873 2004-08-07 13:05 jordi
18875 * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
18876 GetSysColor defines
18878 2004-08-06 18:01 pbartok
18880 * ThemeWin32Classic.cs:
18881 - Fixed some rounding issues with float/int
18883 2004-08-06 18:00 jackson
18885 * DockStyle.cs, AnchorStyles.cs:
18887 Add flags and serializable attributes.
18889 2004-08-06 17:46 pbartok
18892 - Implemented GetParent
18894 2004-08-06 17:18 pbartok
18897 - Fixed some rounding issues with float/int
18899 2004-08-06 17:17 pbartok
18901 * X11Structs.cs, XplatUIX11.cs:
18902 - Fixed Refresh and Invalidate
18904 2004-08-06 15:30 pbartok
18906 * Control.cs, X11Structs.cs, XplatUIX11.cs:
18907 - Fixed recursive loop when resizing
18908 - Improved/fixed redrawing on expose messages
18910 2004-08-06 09:53 jordi
18912 * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
18913 keyboard navigation
18915 2004-08-06 08:02 pbartok
18917 * X11Structs.cs, XplatUIX11.cs:
18918 - Fixed reparenting
18919 - Fixed window border creation
18921 2004-08-05 15:38 pbartok
18924 - Attempted fix for reparenting problems
18926 2004-08-04 15:14 pbartok
18929 - Fixed Invalidation bug (calculated wrong client area)
18930 - Added ClientSize setter
18932 2004-08-04 15:13 pbartok
18935 - Added AutoScale properties
18937 2004-08-04 15:13 pbartok
18940 - Added latest files
18942 2004-08-04 14:11 pbartok
18944 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
18946 - Added Invalidate handling
18948 2004-08-03 17:09 jordi
18950 * XplatUIDriver.cs: fixes spelling mistake
18952 2004-07-27 09:53 jordi
18954 * TrackBar.cs: fixes trackbar events, def classname, methods
18957 2004-07-27 09:29 jordi
18959 * ScrollBar.cs: fixes scrollbar events
18961 2004-07-27 04:38 jordi
18963 * Control.cs: changes to be able to run winforms samples
18965 2004-07-26 11:42 jordi
18967 * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
18968 ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
18970 2004-07-26 05:41 jordi
18972 * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
18973 MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
18976 2004-07-22 09:22 jordi
18978 * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
18979 check link overlapping, implement events, and fixes
18981 2004-07-21 10:28 jordi
18983 * DialogResult.cs, IButtonControl.cs: fixes comments filenames
18985 2004-07-21 10:19 jordi
18987 * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
18988 LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
18989 LinkLabelLinkClickedEventArgs.cs,
18990 LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
18991 XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
18994 2004-07-19 13:09 jordi
18996 * Control.cs, Label.cs: label control re-written: added missing
18997 functionlity, events, and properties
18999 2004-07-19 10:49 jordi
19001 * Control.cs: fixes SetBounds logic
19003 2004-07-19 01:29 jordi
19005 * Control.cs: Call RefreshWindow only if the window has created
19007 2004-07-15 14:05 pbartok
19009 * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
19010 - Implemented ImageList and ImageList.ImageCollection classes
19011 - Added ColorDepth enumeration
19012 - Updated SWF VS.Net project
19014 2004-07-15 11:06 jordi
19016 * XplatUIStructs.cs: added MsgButons enum
19018 2004-07-15 11:03 jordi
19020 * Control.cs: added basic mouse handeling events
19022 2004-07-15 03:38 jordi
19024 * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
19025 Vertical TrackBar control implementation
19027 2004-07-13 09:33 jordi
19029 * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
19031 2004-07-13 09:31 jordi
19033 * Control.cs, Form.cs: commit: new properties and fixes form size
19036 2004-07-09 14:13 miguel
19038 * ProgressBar.cs: Spelling
19040 2004-07-09 11:25 pbartok
19043 - Removed usage of Rectangle for drawing. Miguel pointed out it's
19046 2004-07-09 11:17 miguel
19048 * ProgressBar.cs: 2004-07-09 Miguel de Icaza <miguel@ximian.com>
19050 * ProgressBar.cs: Fixed spelling for `block'
19052 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
19055 Avoid using the += on rect.X, that exposed a bug in the compiler.
19057 2004-07-08 23:21 pbartok
19059 * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
19060 AnchorStyles.cs, Application.cs, ApplicationContext.cs,
19061 BaseCollection.cs, Binding.cs, BindingContext.cs,
19062 BindingMemberInfo.cs, BindingsCollection.cs,
19063 BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
19064 BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
19065 ButtonState.cs, CaptionButton.cs, CheckBox.cs,
19066 ContainerControl.cs, Control.cs, ControlEventArgs.cs,
19067 ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
19068 ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
19069 CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
19070 DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
19071 FrameStyle.cs, GiveFeedbackEventArgs.cs,
19072 GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
19073 HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
19074 IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
19075 InputLanguageChangedEventArgs.cs,
19076 InputLanguageChangedEventHandler.cs,
19077 InputLanguageChangingEventArgs.cs,
19078 InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
19079 InvalidateEventArgs.cs, InvalidateEventHandler.cs,
19080 KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
19081 KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
19082 LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
19083 MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
19084 PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
19085 QueryAccessibilityHelpEventArgs.cs,
19086 QueryAccessibilityHelpEventHandler.cs,
19087 QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
19088 RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
19089 ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
19090 ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
19091 TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
19092 UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
19093 XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
19094 XplatUIX11.cs, lang.cs: