1 2006-10-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3 * PageSetupDialog.cs: Clean some code, fix some bits,
4 add some checks, and add a printer sub-dialog.
6 2006-10-26 Chris Toshok <toshok@ximian.com>
8 * PropertyGrid.cs: make set_SelectedObject call
9 set_SelectedObjects, and move the duplicate logic to the
10 SelectedObjects setter. Also, raise SelectedObjectsChanged.
12 * PropertyGridView.cs: hide the textbox when we get a
13 SelectedObjectsChanged event.
17 2006-10-26 Chris Toshok <toshok@ximian.com>
19 * PropertyGridView.cs: deal with the type converter not supporting
20 GetStandardValues() or GetStandardValues() returning null, which
21 is does in the default case. Fixes #79742.
23 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
25 * CheckedListBox.cs: nunit no longer crashes when selecting
26 Project/Edit menu option
28 2006-10-25 Andreia Gaita <shana.ufie@gmail.com>
30 * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
31 is no menu selected. fixes #79739
33 2006-10-25 Chris Toshok <toshok@ximian.com>
35 * PropertyGridView.cs: factor out the splitter invalidation code
36 into the SplitterPercent setter, and for kicks implement the
37 Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
38 amount in either direction.
40 2006-10-25 Chris Toshok <toshok@ximian.com>
42 * PropertyGridView.cs: do some cleanup of the brush used to draw
43 text - read only fields should be grayed out. not sure how to do
44 this with the textbox, though. but the textbox's should also be
45 readonly now at least. Also, hide/show the textbox when resizing
48 * CursorConverter.cs: use System.Reflection when getting the
49 properties of Cursors, as TypeDescriptor.GetProperties isn't
50 returning static properties.
52 2006-10-25 Chris Toshok <toshok@ximian.com>
54 * PropertyGridView.cs: factor out the up/down handling, and reuse
55 it for page up/down. also add End/Home support.
57 2006-10-25 Chris Toshok <toshok@ximian.com>
59 * PropertyGridView.cs:
61 - ensure the selected grid item is visible in the scrolled area,
64 - fix Keys.Down handling when you're on the last item in the
67 2006-10-25 Mike Kestner <mkestner@novell.com>
69 * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup
70 clicks too. Fixes #79725.
72 2006-10-24 Chris Toshok <toshok@ximian.com>
74 * PropertyGrid.cs: use property.Converter instead of
75 TypeDescriptor.GetConverter(property.PropertyType), so we catch
76 TypeConverters declared on the property as well as on the
77 PropertyType. Fixes bug #79678.
79 2006-10-24 Alexander Olk <alex.olk@googlemail.com>
81 * MimeIcon.cs, Mime.cs:
82 Fallback to the default platform handler if no shared mime info
83 stuff exists (fixes #79693).
85 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
86 * ContainerControl.cs: Incorrect contains check in ActiveControl
87 from previous fix (duh).
89 2006-10-20 Chris Toshok <toshok@ximian.com>
91 * PropertyGridView.cs: the dropdown should be MIN(number of items
92 in list, 15). Fixes #79551.
94 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
95 Fixes #79384, #79394, #79652, #79667
98 - Modal windows are now destroyed in the proper order for windows
100 * ContainerControl.cs:
102 - ActiveControl setter has more conditions on when to return:
103 - if we're reselecting the active control, but it actually
104 didn't have focus (window hidden or some such), it runs
105 - if the active control being selected doesn't actually
106 exist in the container, it returns
110 - The ShowDialog now gets the current form as the owner when
111 invoking without parameters, and correctly activates the owner
116 - MessageBox now catches the Escape key to exit
118 2006-10-20 Chris Toshok <toshok@ximian.com>
120 * PropertyGridView.cs: fix a number of issues (bug #78565, and
123 - you can navigate around the property grid with the arrow keys.
125 - the dropdown is sized properly when the pg has a vertical
128 - fix the indentation for subentries, and properly select the
131 - fix the gray bar's drawing (only draw it to the last element,
132 not for the height of the control. Also make sure we draw that
133 last horizontal grid line.
135 - use the same mechanism the datagrid uses wrt the editing textbox
136 when scrolling/resizing/etc. Namely, we hide it first, do the
137 operation, then show it again (if it's still visible).
139 - aggressively remove a lot of unnecessary refreshes (and also
140 calls to Invalidate(). call more limited variants, and only redraw
145 - when we're populating the merged collection, fill in the UI
146 parent with either the passed in item, or the category item we
149 - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
151 * GridItem.cs: drop some fully qualified names.
153 * GridEntry.cs: add a "UIParent", which is basically the parent
156 * GridItemCollection.cs: add an IndexOf method.
158 2006-10-20 Mike Kestner <mkestner@novell.com>
160 * MainMenu.cs : go back to Draw in OnMenuChanged. Until we get
161 a working win32 NC invalidation mechanism, we can't invalidate
162 menus. [Fixes #79705]
164 2006-10-20 Mike Kestner <mkestner@novell.com>
166 * ListBox.cs : don't update the VScrollbar if the list is empty,
167 just hide it. [Fixes #79692]
169 2006-10-20 Jackson Harper <jackson@ximian.com>
171 * RichTextBox.cs: Handle some special chars better, and don't skip
172 the entire group when we encounter a special char that we don't
175 2006-10-18 Chris Toshok <toshok@ximian.com>
177 * PropertyGridView.cs: address a number of issues from bug #79676,
178 mostly of the cosmetic variety.
180 - The highlight rectangle for indented items not extends all the
183 - Indented items aren't indented so much.
185 - the dropdown is properly sized width-wise if the pg has a
188 2006-10-18 Chris Toshok <toshok@ximian.com>
190 * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
191 systray stuff is rather convoluted to begin with.
193 systray icons are a single window for some reason (that I haven't
194 figured out yet), and for them, client_window == whole_window.
195 Given the way the tests are structured elsewhere to determine
196 which paints are pending (client vs. nc), that situation will
197 always yield PAINT, not NCPAINT. So, if we have a pending
198 nc_expose and no pending expose, remove the hwnd from the paint
199 queue, and also set nc_expose_pending to false, to keep us from
200 blocking further expose's adding the hwnd to the paint queue.
202 phew. like i said, a rather convoluted change. Fixes the
203 notifyicon repaint issues in bug #79645.
205 2006-10-18 Chris Toshok <toshok@ximian.com>
207 * Form.cs: when getting the backcolor of the form, don't get
208 base.BackColor, as this allows parents to influence the background
209 color. This breaks mdi forms. Instead, if the background_color
210 is empty, return the default.
212 2006-10-18 Chris Toshok <toshok@ximian.com>
214 * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
215 to being private instead of internal static.
217 * Control.cs: remove all the stupid ParentWaitingOnRecreation
218 crap, it wasn't working for more deeply nested controls anyway,
219 and we already have the is_recreating flag - use that instead.
220 Before calling DestroyHandle in RecreateHandle, recurse through
221 the control tree setting it to true. this returns the recreate
222 code to much of its original simplicity, while now guaranteeing we
223 actually recreate everything we're supposed to. This change gets
224 fyireporting actually showing mdi children.
226 2006-10-17 Chris Toshok <toshok@ximian.com>
228 * Form.cs: remove some debug spew, and collapse some duplicate
229 code at the end of SetClientSizeCore.
232 - add some more debug spew here too wrt Destroy handling.
233 - don't call hwnd.Dispose in DestroyWindow, it's effectively done
234 in Control's handling of WM_DESTROY.
235 - Remove the handling of zombie window DestroyNotifies from the
236 event loop - we don't need it. Now the only DestroyNotifies we
237 actually handle are ones generated by X.
238 - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
239 match gtk's (functioning) handling of this. This keep metacity
240 from leaving droppings in the form of wm borders with no window
241 contents all over the place.
244 - add a bunch of debug spew wrt control recreation.
245 - fix a bug where we weren't tracking Visible properly on
247 - fixed the WM_PAINT double buffer handling to support re-entrant
248 calls (yes, i know it's gross, but it's happening to us).
250 2006-10-17 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
251 * ThemeWin32Classic.cs: changed drawing of selected days
252 to make them look better.
254 2006-10-16 Chris Toshok <toshok@ximian.com>
256 * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
257 drawing_stack. Nuke the ClientDC/NonClientDC properties.
259 * XplatUIX11.cs: move away from using hwnd.client_dc and
260 hwnd.non_client_dc and on to a stack of dc's (and in window's
261 case, PAINTSTRUCT's), so we can deal with nested Paint calls
262 without puking or not disposing of Graphics objects.
264 * XplatUIOSX.cs: same.
266 * XplatUIWin32.cs: same.
268 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
270 * FileDialog.cs: Don't call on_directory_changed inside
271 OnSelectedIndexChanged (it changes the SelectedIndex too).
272 Instead move it to OnSelectionChangeCommitted.
274 2006-10-13 Chris Toshok <toshok@ximian.com>
276 * XplatUIX11.cs: more Destroy work. the current code does the
277 following things, in order:
279 1. Enumerates all handles of all controls at or below the one
280 being destroyed, in pre-order. As it is doing this, it marks the
281 handles as zombie and clears all references to them.
283 2. calls XDestroyWindow on the window passed in.
285 3. SendMessage's WM_DESTROY to all he handles in the accumulated
288 2006-10-13 Chris Toshok <toshok@ximian.com>
290 * XplatUIX11.cs: set hwnd.zombie to true before calling
291 SendMessage (WM_DESTROY). this keeps us from marking the new
292 window a zombie, and also keeps us from calling sendmessage at
295 2006-10-13 Jackson Harper <jackson@ximian.com>
297 * TextControl.cs: Do not show the caret and selection at the same
298 time. Reduces ugliness by 35%.
300 2006-10-13 Chris Toshok <toshok@ximian.com>
302 * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
303 zombie after we do the recursive call, so we actually do call
304 SendMessage on the children controls.
305 (GetMessage): if we find a pending paint event for a zombie hwnd,
306 remove the hwnd from the paint queue, or else it will always be
307 there (and we'll effectively loop infinitely)
309 2006-10-13 Mike Kestner <mkestner@novell.com>
311 * MenuItem.cs : add Selected format under keynav too.
314 2006-10-13 Gert Driesen <drieseng@users.sourceforge.net>
316 * PropertyGrid.cs: Fixed some NRE's and small difference between our
317 implementation and that of MS.
319 2006-10-13 Chris Toshok <toshok@ximian.com>
321 * Control.cs (OnInvalidated) only futz with the invalid_region if
322 the control is double buffered. this fixes the apparent hang in
323 the ListView unit tests. Someone needs to make the
324 BeginEndUpdateTest not call OnInvalidated 15004 times, though..
326 2006-10-13 Chris Toshok <toshok@ximian.com>
328 * PropertyGridView.cs:
330 - do a little refactoring so that only one place calls
331 dropdown_form.Hide, and that is CloseDropDown. make everywhere
332 else call that. Also make it Refresh, since there are redraw bugs
333 otherwise (we should take a look at that...)
335 - do a little more refactoring work to share the body of code
336 involved with the drop down. it was duplicated in the code
337 dealing with the listbox handling and in the code dealing with the
340 - add a Capture to the dropdown form's control once it's
341 displayed, and add a MouseDown handler that checks to make sure
342 the position is inside the control. If it's not, close the
343 dropdown. This fixes #78190.
345 - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
346 if the value is different than the initial value.
348 2006-10-13 Andreia Gaita <shana.ufie@gmail.com>
350 * Control.cs: see #78650
351 - Fixed GetNextControl for several cases:
352 - Changed FindFlatForward to return
353 correct sibling control when more than one
354 control has same TabIndex as the currently
356 - Changed FindFlatBackward to loop children
357 from last to first and apply same logic as in
359 - Changed FindControlForward to search for
360 children when control is not a container
361 but has children, or search for siblings if
362 control is a container...
363 - Changed FindControlBackward to continue
364 searching for child controls when hitting
367 - Fixed Focus method to update ActiveControl
368 (FocusTest.FocusSetsActive failure)
371 - Focus rectangle now refreshes when gaining
373 - Removed grab for Tab key on IsInputKey that
374 was keeping tab navigation from working (#78650)
376 2006-10-13 Chris Toshok <toshok@ximian.com>
378 * PropertyGridView.cs:
379 - Rewrite SetPropertyValue to loop over SelectedGridItem's
382 - Deal with GridItem.Value == null a few places.
385 - replace the PopulateGridItemCollection with a pair of methods
386 which compute the intersection of all the properties in the
387 SelectedObjects array. Fixes #79615.
389 - Throw ArgumentException from set_SelectedObjects if there's a
392 - Add GetTarget method which can be used to traverse up the
393 GridItem.Parent chain. It depends on the assumption that
394 selected_objects for different GridEntries are always in the same
395 order (a safe assumption). Use this method and loop over all the
396 selected objects in the entry when calling RemoveValueChanged and
399 * GridEntry.cs: Make this handle multiple selected objects.
400 .Value returns null if not all the selected objects share the same
403 2006-10-12 Jonathan Pobst <monkey@jpobst.com>
404 * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
405 ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
406 ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
407 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
408 ToolStripTextBox.cs: Add accessibility, fix attributes/API and
409 add additional functionality.
411 2006-10-12 Mike Kestner <mkestner@novell.com>
413 * ErrorProvider.cs : new ToolTipWindow ctor sig.
414 * HelpProvider.cs : new ToolTipWindow ctor sig.
415 * ToolTip.cs : remove ToolTip param from Window sig since it is
417 * ToolBar.cs : add tooltip support. Fixes #79565.
419 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
421 * ComboBox.cs: move the events in set_SelectedIndex to
422 after the call to HighlightIndex in order to avoid
423 possible recursion and subsequent problems with the call
424 to HighlightIndex and include a range check in
425 set_HighlightIndex. Fixes #79588
427 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
429 * MonthCalendar.cs: When FirstDayOfWeek is default set firstday
430 to ui thread's settings instead of sunday.
431 * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
433 2006-10-12 Rolf Bjarne Kvinge <rolfkvinge@ya.com>
437 * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
438 and implement missing functionality (selecting different parts
439 of the date and edit them individually with the keyboard).
441 2006-10-11 Chris Toshok <toshok@ximian.com>
443 * Control.cs (OnInvalidated): fix NRE relating to last change.
445 2006-10-11 Chris Toshok <toshok@ximian.com>
447 * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
448 atoms in _NET_WM_STATE here if the window is maximized. We need
449 to do this because we're *replacing* the existing _NET_WM_STATE
450 property, so those atoms will be lost otherwise, and any further
451 call to GetWindowState will return Normal for a window which is
452 actually maximized. Fixes #79338.
454 2006-10-11 Jackson Harper <jackson@ximian.com>
456 * TextControl.cs: Special case for setting selection end to
457 selection start, we basically kill the anchor.
458 - some todo comments.
460 2006-10-11 Chris Toshok <toshok@ximian.com>
462 * Control.cs: switch to using an "invalid_region" to track which
463 parts of the image buffer need updating. This is more code than
464 the simple fix from r66532. That version just attempted to always
465 fill the entire buffer on redraw, which turns out to be
466 inefficient when invalidating small rectangles. This version
467 simply adds the invalid rectangle to the invalid region. When we
468 get any WM_PAINT message we see if it can be filled using the
469 image buffer, and if it can't (if the paint event's clip rectangle
470 is visible in the invalid region) we first fill the image buffer.
471 So, the image buffer is still a cache, we just fill it lazily.
473 * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
476 2006-10-11 Chris Toshok <toshok@ximian.com>
478 * XplatUIX11.cs (SetWindowPos): we need to update both position as
479 well as size after calling XMoveResizeWindow. This keeps us from
480 ignoring future SetWindowPos calls. Fixes the disappearing
481 DateTimePicker in the ToolBarDockExample from bug #72499.
483 2006-10-11 Chris Toshok <toshok@ximian.com>
485 * TextBoxBase.cs: reorder things a bit when it comes to
486 resizing-causing-recalculation. we were recalculating the
487 document when our position was changed, which shouldn't happen.
488 We only care about size changes. Clear up some more redundant
489 recalculation calls while I'm at it. This makes the toolbar dock
490 example snappy when you're just dragging toolbars around (since it
491 causes a relayout whenever you move one.)
493 2006-10-11 Chris Toshok <toshok@ximian.com>
495 * ToolBarButton.cs (get_Rectangle): this only returns
496 Rectangle.Empty if Visible == false, or Parent == null.
497 Parent.Visible doesn't matter.
499 2006-10-10 Chris Toshok <toshok@ximian.com>
501 * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
502 by .net 1.1, so switch to an internal method instead.
504 2006-10-10 Chris Toshok <toshok@ximian.com>
506 * Control.cs (WM_PAINT): when a control is double buffered we draw
507 initially to the ImageBuffer and then copy from there. But when a
508 parent control which has child controls is double buffered, the
509 initial drawing doesn't encompass the entire ClientRectangle of
510 the parent control, so we end up with uninitialized bits (this is
511 easily seen by dragging the top toolbar in
512 wf-apps/ToolBarDockExample to the right, quickly). The fix is to
513 manually set the ClipRectangle of the paint_event (only the one we
514 use to populate the ImageBuffer) to ClientRectangle. Fixes more
515 of the nastiness in bug #72499.
517 * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
518 which we use in Control.cs's WM_PAINT handling.
520 2006-10-10 Jackson Harper <jackson@ximian.com>
522 * TextBoxBase.cs: Finish off the autoscrolling stuff.
524 2006-10-10 Chris Toshok <toshok@ximian.com>
526 * Cursor.cs: Apply a slightly different patch to the one suggested
529 2006-10-10 Jackson Harper <jackson@ximian.com>
531 * MenuItem.cs: Make sure to put the mdi child in the hashtable,
533 * TextControl.cs: use difference in old line count vs new count to
534 calculate how many lines were added, this takes into account soft
535 line breaks properly.
537 2006-10-10 Chris Toshok <toshok@ximian.com>
539 * LinkLabel.cs: don't call MeasureCharacterRanges against a
540 rectangle located at 0,0 and the size of the text. Use
541 ClientRectangle instead. This fixes rendering of non-left aligned
544 2006-10-10 Jackson Harper <jackson@ximian.com>
546 * TextBoxBase.cs: When we set the selection start position the
548 * TextControl.cs: Need to update the caret when we decrement it to
550 - Make sure that the selection_visible flag gets reset to false if
551 the selection isn't visible. Before this you could get it set to
552 visible by changing the selection start, then changing the end to
555 2006-10-09 Jackson Harper <jackson@ximian.com>
557 * TreeView.cs: Don't update scrollbars when we aren't visible.
558 * TreeNodeCollection.cs: Only need to update scrollbars if being
559 added to an expanded visible node or the root node.
561 2006-10-09 Chris Toshok <toshok@ximian.com>
563 * XplatUIX11.cs (SendMessage): fix NRE.
565 2006-10-09 Jackson Harper <jackson@ximian.com>
567 * TextBoxBase.cs: Implement horizontal autoscrolling.
568 * TextControl.cs: Add a movement types that allows moving forward
569 and backwards without wrapping.
571 2006-10-09 Mike Kestner <mkestner@novell.com>
573 * ListViewItem.cs : layout changes for wrapped LargeIcon labels
574 with focus "expansion" of labels. Fixes #79532 and then some.
575 * ThemeWin32Classic.cs : add LineLimit to ListView label format
578 2006-10-09 Jackson Harper <jackson@ximian.com>
580 * TextBoxBase.cs: Set the default max values to MaxValue since
581 we use the scrollbar for autoscrolling and the default value is
582 100. If we don't do this the caret won't keep up with typing
583 after about 18 characters.
584 * TextControl.cs: Make sure the selection is offset by the
585 viewport x. This fixes selection when using auto scrolling.
587 2006-10-07 Andreia Gaita <shana.ufie@gmail.com>
589 * Form.cs: The active control should be selected after the
590 OnLoad so that any child control initialization that affects
591 the selection is done. Fixes #79406
593 2006-10-06 Chris Toshok <toshok@ximian.com>
595 * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
596 to have no evil effects.
598 - Stop selecting StructureNotifyMask on non-toplevel windows.
600 The only way children should be resized is by using the SWF api,
601 and we already send WM_WINDOWPOSCHANGED messages in those cases.
602 Toplevel windows can be interacted with via the window manager,
603 and so we keep the input mask there.
605 The other event StructureNotifyMask gives us (that we care
606 about) is DestroyNotify. The code is already structured such
607 that it assumes we won't be getting a DestroyNotify event for
608 the window we pass to XDestroyWindow (which is what
609 StructureNotifyMask is supposed to guarantee.) So, that code
610 shouldn't be affected by this either.
612 - Stop selecting VisibilityChangeMask altogether.
614 We weren't doing anything with the resulting events anyway.
616 This vastly reduces the number of X requests and events we see
617 when resizing/laying out a large ui.
619 2006-10-06 Chris Toshok <toshok@ximian.com>
621 * ScrollableControl.cs (DisplayRectangle): we need to take into
622 account the DockPadding regardless of whether or not auto_scroll
623 == true. rework this slightly to this effect, and fix bug #79606,
624 and part of #72499 (you can now see the drag handles and drag
627 2006-10-06 Gert Driesen <drieseng@users.souceforge.net>
629 * ListViewItem.cs: Collections of selected and checked items are now
630 dynamically rebuilt. Whenever an item is (un)checked or (de)selected
631 we mark the collection "dirty".
632 * ListView.cs: Marked collections readonly. Modified UpdateSelection
633 to only clear SelectedItems when a new item is selected and MultiSelect
634 is enabled. CheckedItems and SelectedItems now subscribe to Changed
635 event of ListViewItemCollection, and mark its list dirty whenever
636 that event is fire. This allows us to return selected/checked items
637 in the same order as they are in the Items collection. This matches
640 2006-10-06 Chris Toshok <toshok@ximian.com>
642 * NotifyIcon.cs (HandleMouseUp): only show the context menu on
643 right mouse clicks. Fixes bug #79593.
645 2006-10-06 Chris Toshok <toshok@ximian.com>
647 * Splitter.cs: doh, fix splitters that don't want to cancel the
648 movement when you drag them. Also, impose the limits on the
649 values we send to the SplitterMovingEvent. Fixes #79598.
651 2006-10-06 Jackson Harper <jackson@ximian.com>
653 * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
654 since we use this for auto scrolling also.
656 2006-10-05 Chris Toshok <toshok@ximian.com>
658 * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus. I'm
659 beginning to think that most datagrid column types don't need this
660 method. Fixes bug #79392.
662 2006-10-05 Chris Toshok <toshok@ximian.com>
664 * DataGrid.cs: move back to a more lazy scheme for creating the
665 CurrencyManager, so we aren't updating it every time you set
666 either DataSource or DataMember. Also, don't call
667 RecreateDataGridRows if the currency manager hasn't changed.
669 2006-10-05 Chris Toshok <toshok@ximian.com>
671 * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
672 emitted, SelectedIndex should already be updated. Fixes bug
675 2006-10-05 Jonathan Pobst <monkey@jpobst.com>
677 * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
678 ToolStripTextBox.cs: Initial commit.
679 * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
681 2006-10-05 Jackson Harper <jackson@ximian.com>
683 * TabControl.cs: We need to invalidate the tab control area when
684 new ones are added (duh).
686 2006-10-03 Chris Toshok <toshok@ximian.com>
688 * Form.cs (ProcessDialogKey): if the focused control is in this
689 form and is a button, call its PerformClick method here. Fixes
692 2006-10-04 Jackson Harper <jackson@ximian.com>
694 * TabPage.cs: Ignore setting of Visible, and add an internal
695 method for setting the controls visibility. TabPage's Visible
696 property is a little strange on MS, this seems to make us
697 compatible, and fixes cases where people set all the tab pages to
699 * TabControl.cs: Use the new internal setting on tab pages
702 2006-10-03 Mike Kestner <mkestner@novell.com>
704 * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
706 2006-10-03 Mike Kestner <mkestner@novell.com>
708 * ListView.cs : use is_visible instead of Visible to check if
709 scrollbars should be placed/sized. Also some max_wrap_width
710 love for LargeIcon view. [Fixes #79533]
712 2006-10-03 Atsushi Enomoto <atsushi@ximian.com>
715 Make set_TextAlign() do actually update the align. Fixed #78403.
717 2006-10-03 Chris Toshok <toshok@ximian.com>
719 * DataGrid.cs: fix a crash when switching datasources if the
720 vertical scrollbar is at someplace other than Value = 0. Also,
721 reduce the number of recalculation passes we do in SetDataSource
724 2006-10-03 Jackson Harper <jackson@ximian.com>
726 * TextBoxBase.cs: Move the if value the same bail check up, we
727 don't want to empty the document if it is already empty, this
728 seems to severly mess up the caret. TODO: I should probably fix
729 the empty statement to update teh caret somehow.
731 2006-10-03 Chris Toshok <toshok@ximian.com>
733 * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
734 incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
735 reflection, an internal row type, properties on said type, etc.)
736 will work with our datagrid. Fixes #79531.
738 2006-10-03 Alexander Olk <alex.olk@googlemail.com>
740 * FileDialog.cs: Don't crash if a path is not accessible
741 (System.UnauthorizedAccessException). Fixes #79569.
742 * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
743 a ':' too. Return unknown icon for those paths/files.
745 2006-10-03 Sebastien Pouliot <sebastien@ximian.com>
747 * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when
748 GetContainerControl returns null.
750 2006-10-02 Chris Toshok <toshok@ximian.com>
752 * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
753 call to XGetWindowAttributes instead of "handle". fixes an X
754 error using notifyicon after the NotifyIconWindow to Form base
757 2006-10-02 Chris Toshok <toshok@ximian.com>
759 * XplatUIX11.cs (QueryPointer): new function, encapsulating the
760 server grab and looping we need to do to get down to the most
761 deeply nested child window.
762 (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
763 QueryPointer again after the WarpPointer so we can generate a
764 proper (fake) MotionNotify event to be enqueued in the destination
766 (GetCursorPos): call QueryPointer.
770 2006-10-02 Jackson Harper <jackson@ximian.com>
772 * NotifyIcon.cs: Derive the notify icon from a form, so things
773 like FindForm work on it.
774 - Swallow the WM_CONTEXTMENU message, since that is generated on
775 mouse down, and context menu is a mouse up kinda guy. I believe
776 the correct fix here is probably to make the notify icon entirely
777 NC area, but this seems to work fine for anyone not manipulating
780 2006-10-02 Jonathan Pobst <monkey@jpobst.com>
782 * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
783 ToolStripItemCollection.cs, ToolStripLabel.cs,
784 ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
785 ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
786 Initial implementation.
787 * TextRenderer.cs: Provide padding to MeasureText.
789 2006-10-02 Sebastien Pouliot <sebastien@ximian.com>
791 * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
792 of ButtonBaseAccessibleObject. Fix bug #79552.
794 2006-10-02 Jackson Harper <jackson@ximian.com>
796 * MdiWindowManager.cs: When maximizing use the containers client
797 rect, not it's bounds, so nc area is accounted correctly.
798 - Use the parent form's size for the menu position, since the
799 client isn't always the full form size.
801 2006-10-01 Chris Toshok <toshok@ximian.com>
803 * ScrollableControl.cs: make sure neither right_edge or
804 bottom_edge are < 0, since they're used as LargeChange for the
805 horiz/vert scrollbars respectively. Fixes #79539.
807 2006-10-01 Chris Toshok <toshok@ximian.com>
809 * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
810 the xplatuix11 code can cause us to destroy/recreate our handle.
814 - this code can be invoked many times for the same Hwnd. Make
815 sure we only destroy the client window once (the first time this
816 method is called). This fixes bug #79544.
817 - Remove the call to the improperly bound XSync. why we had two
818 bindings to this, I will never know, but this call resulted in
819 events being discarded from the queue(!).
820 - correct a misunderstanding of _XEMBED_INFO - the second atom is
821 not our current state but the state we wish to be in. So, 0 if
822 we don't want to be mapped. Change it to 1.
823 (SystrayRemove): The XEMBED spec makes mention of the fact that
824 gtk doesn't support the reparent of client windows away from the
825 embedder. Looking at gtksocket-x11.c seems to agree with this.
826 The only avenue we have for removing systray icons is to destroy
827 them. We don't want the handle to go away for good, though, so
828 call InternalRecreateHandle on the NotifyIconWindow. Fixes
831 2006-10-01 Chris Toshok <toshok@ximian.com>
833 * Form.cs (WndProc): inline the native_enabled variable usage into
834 the cases in which it's used. Fixes #79536.
836 2006-09-29 Mike Kestner <mkestner@novell.com>
838 * ListView.cs : toggle the selection state for ctrl clicks in
839 multiselect mode. [Fixes #79417]
841 2006-09-29 Mike Kestner <mkestner@novell.com>
843 * ListView.cs : kill CanMultiSelect and refactor the selection
844 code to support multiselection in the absence of mod keys. Steal
845 arrow/home/end keys by overriding InternalPreProcessMessage to
846 restore regressed keynav behavior.
849 2006-09-29 Jackson Harper <jackson@ximian.com>
851 * MdiClient.cs: Repaint the titlebars when the active window is
854 2006-09-29 Chris Toshok <toshok@ximian.com>
856 * Application.cs: when entering a runloop with a modal, make sure
857 the hwnd is enabled. Fixes #79480.
859 2006-09-29 Chris Toshok <toshok@ximian.com>
861 * DataGrid.cs (CurrentCell): if we try to navigate to the add row
862 when ListManager.CanAddRows == false, bump us back one.
864 * DataGridColumnStyle.cs (ParentReadOnly): remove the
865 listmanager.CanAddRows check. This makes ArrayLists uneditable
866 using a datagrid, which is not right.
867 (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
868 is an IEditable, but call property_descriptor.SetValue regardless.
871 2006-09-29 Chris Toshok <toshok@ximian.com>
873 * DataGridBoolColumn.cs: we need to test equality in the face of
874 possible null values (as is the case with the default NullValue).
875 This patch keeps us from crashing in that case.
877 2006-09-29 Jackson Harper <jackson@ximian.com>
879 * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
880 here, since it will get called for every node collection in the
881 tree. This is now done in the treeview once the sorting is
883 * TreeView.cs: Recalculate the visible order, and update the
884 scrollbars after sorting, set the top nope to the root so that the
885 recalc actually works.
887 2006-09-29 Chris Toshok <toshok@ximian.com>
889 * LinkLabel.cs: more handling of the default link collection in
890 the face of LinkArea manipulation. The default link collection
891 contains 1 element (start=0,length=-1). If the user sets LinkArea
892 to anything and the links collection is the default, clear it.
893 Then only add the link if its nonempty. Fixes #79518.
895 2006-09-29 Chris Toshok <toshok@ximian.com>
897 * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
898 piece correctly when we hit a '\n'. Fixes #79517.
900 2006-09-29 Chris Toshok <toshok@ximian.com>
902 * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
903 change the binding of gdk_init_check to take two IntPtr's, and
904 pass IntPtr.Zero for both of them. Fixes #79520.
906 2006-09-29 Mike Kestner <mkestner@novell.com>
908 * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
911 2006-09-28 Jackson Harper <jackson@ximian.com>
913 * XplatUIX11.cs: When translating NC messages make sure we go from
914 whole window to screen, not client window to screen.
915 * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
917 - Skip over controls that aren't forms when arranging.
919 2006-09-28 Jackson Harper <jackson@ximian.com>
921 * XplatUIWin32.cs: Clip the rect to the parent window.
922 * XplatUIStructs.cs: Add clipping modes struct.
923 * InternalWindowManager.cs: New private method that factors title
924 bar heights in when calculating the pos of an NC mouse message.
925 - Use SendMessage to force a paint when the form's size is changed
926 instead of painting the decorations immediately.
927 - Don't let the NC button click messages get to DefWndProc,
928 because they will attempt to handle windowing themself, and this
929 messes up z-order (it will put them in front of the scrollbars).
930 * XplatUIX11.cs: Make sure that we don't reset window managers if
931 we already have one (ie the window is an MDI window).
933 2006-09-28 Chris Toshok <toshok@ximian.com>
935 * MainMenu.cs: fix #79405 by way of a disgusting hack. all the
936 menu code really needs going over.
938 2006-09-27 Chris Toshok <toshok@ximian.com>
940 * XplatUIX11.cs (SetWMStyles): more metacity wonderment. turns
941 out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
942 window is maximizable. So, we need to make sure that even if we
943 clear the border/wm frame of those functions, they're still
944 available (basically, we remove the decoration without removing
945 the function). Half the fix for #79338.
947 2006-09-27 Chris Toshok <toshok@ximian.com>
949 * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
952 2006-09-27 Chris Toshok <toshok@ximian.com>
954 * Splitter.cs: reorder things a bit so that we don't actually
955 draw/move the splitter until after calling OnSplitterMoving. This
956 lets users cancel/disallow the movement by explicitly setting
957 event.SplitX/SplitY. Fixes #79372.
959 2006-09-27 Jackson Harper <jackson@ximian.com>
961 * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
962 because it is most likely on a window being destroyed, and that
963 will give us an X11 error.
965 2006-09-27 Chris Toshok <toshok@ximian.com>
967 * PropertyGridView.cs: half of the fix for #78190. Clicking on
968 the dropdown button now toggles between showing and hiding the
969 dropdown. Also, get rid of dropdown_form_showing and just use
970 dropdown_form.Visible. We still don't do a grab, but I'll leave
971 that part to someone who has handled Capture-fu before.
973 2006-09-27 Chris Toshok <toshok@ximian.com>
975 * DataGrid.cs: return false if alt isn't pressed when '0' is
976 pressed. this keeps the '0' key from being swallowed, and fixes
979 2006-09-27 Chris Toshok <toshok@ximian.com>
981 * ComboBox.cs: use Invalidate when scrolling the dropdown list.
982 Calling Refresh (in response to a scrollbar event) screws up the
983 scrollbar painting. Fixes bug #78923.
985 2006-09-27 Chris Toshok <toshok@ximian.com>
987 * Theme.cs (SystemResPool): make the "if hashtable[key] == null
988 then insert into hashtable" blocks threadsafe.
990 2006-09-27 Chris Toshok <toshok@ximian.com>
992 * MessageBox.cs (CreateParams): the styles should be |'ed with our
993 baseclass's, since otherwise the
994 ControlBox/MinimizeBox/MaximizeBox assignments above have no
995 effect. This gets the close button back in messageboxes.
997 2006-09-27 Chris Toshok <toshok@ximian.com>
999 * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
1000 flag, not just != 0. this makes flags that are actually multiple
1001 bits (like WS_CAPTION) work. fixes bug #79508.
1003 2006-09-27 Jordi Mas i Hernandez <jordimash@gmail.com>
1005 * PageSetupDialog.cs: add support for getting and settings the
1006 paper size, source and orientation.
1008 2006-09-26 Chris Toshok <toshok@ximian.com>
1010 * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
1011 and caption == "", we need to remove the resize handles as well as
1014 * Control.cs (set_Text): turns out that setting Text on a form
1015 should change the WM styles on the window, since if ControlBox ==
1016 false, the only way to get a window border is to have a non-""
1017 Text property. check winforms/forms/text.cs for an example. so,
1018 call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
1019 update both window styles and title. This fixes a lot of dialogs
1020 (including the preferences dialog in MonoCalendar.)
1022 2006-09-26 Chris Toshok <toshok@ximian.com>
1024 * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
1025 control isn't a Form), call Win32ShowWindow to hide the window,
1026 but don't update the control Visible property. When we reparent
1027 back to a parent control, call SetVisible in order for the
1028 window's visibility to be reinstated.
1030 * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
1033 * Control.cs (ControlCollection.Remove): remove that value.Hide()
1034 call for good, since it breaks MonoCalendar (and other things I'm
1035 sure.) Also, set all_controls to null *after* the owner calls,
1036 which end up regenerating it.
1037 (ChangeParent): allow new_parent to be == null, passing
1038 IntPtr.Zero down to XplatUI.
1040 this fixes #79294 the right way.
1042 2006-09-26 Mike Kestner <mkestner@novell.com>
1044 * GridEntry.cs : internal SetParent method.
1045 * PropertyGrid.cs : attach to property changed on the proper
1046 target if we have a hierarchical grid with subobjects. Setup
1047 GridItem.Parent for hierarchical items.
1048 * PropertyGridView.cs : Set value on the correct target for
1049 hierarchical grids. [Fixes #78903]
1051 2006-09-26 Chris Toshok <toshok@ximian.com>
1053 * Control.cs (ChildNeedsRecreating): this should return true if
1054 either we're being recreated and the child is in our list, or our
1055 parent is waiting for our recreation.
1057 2006-09-26 Chris Toshok <toshok@ximian.com>
1059 * Control.cs (ControlCollection.Remove): reinstate the
1060 value.Hide() call as suggested in bug #79294.
1062 2006-09-26 Sebastien Pouliot <sebastien@ximian.com>
1064 * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
1065 coordinates (versus a relative move).
1067 2006-09-26 Chris Toshok <toshok@ximian.com>
1069 * Control.cs: rework child recreation a little bit. It turns out
1070 that we race between the DestroyNotify the WM_DESTROY message. If
1071 the parent gets its DestroyNotify before the child gets the
1072 WM_DESTROY message, the child ends up not recreating (since the
1073 parent finishes its recreation on DestroyNotify, and the child
1074 checks ParentIsRecreating.)
1076 So, instead we store off a list of all the child controls which
1077 need to be recreated when the parent control starts to recreate
1078 itself. Then, when child controls get their WM_DESTROY message we
1079 check to see if they're in the parent's pending recreation list,
1080 and if so, we recreate. This removes all dependency on ordering
1081 from the code and fixes the initial MonoCalendar upgrade dialog.
1083 2006-09-26 Jackson Harper <jackson@ximian.com>
1085 * TextControl.cs: Use the Line to get the length of the line,
1086 since soft line breaks can change the end line.
1088 2006-09-26 Chris Toshok <toshok@ximian.com>
1090 * Control.cs (ControlCollection.AddImplicit): don't add the
1091 control again if it's already in one of our lists. This keeps us
1092 from adding controls over and over again for comboboxes when their
1093 handle gets recreated (as the combobox adds implicit controls in
1094 OnHandleCreated). Fixes the X11 errors in bug #79480.
1096 2006-09-26 Jackson Harper <jackson@ximian.com>
1098 * TextControl.cs: When deleting characters make sure that any
1099 orphaned zero lengthed tags get deleted.
1100 - Fix ToString for zero lengthed tags.
1102 2006-09-25 Jackson Harper <jackson@ximian.com>
1104 * TextControl.cs: When getting a tag at the location there can be
1105 multiple tags at the same spot, these are 0-lengthed tags that
1106 appear when extra formatting has been stuck in a location. We
1107 need to pull out the last of these 0 lengthed tags.
1109 2006-09-25 Jackson Harper <jackson@ximian.com>
1111 * TextControl.cs: Fix print out in debug method.
1112 * TextBoxBase.cs: When text is set bail if we are setting to the
1115 2006-09-24 Alexander Olk <alex.olk@googlemail.com>
1117 * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
1118 It is now possible to change the selected index in a FontXXXListBox
1119 with the up and down arrow keys from the FontXXXTextBoxes.
1120 Also, send the FontXXXTextBox mouse wheel event to the corresponding
1121 FontXXXListBoxes to match ms.
1123 2006-09-22 Sebastien Pouliot <sebastien@ximian.com>
1125 * SystemInformation.cs: Return a clone of the theme's MenuFont because
1126 anyone can dispose it, anytime. All other properties returns enums,
1127 structs or basic types so they don't need such tricks.
1129 2006-09-22 Jackson Harper <jackson@ximian.com>
1136 * XplatUIDriver.cs: Update interface to add a primary selection
1137 flag, so the driver can use the primary selection buffer if
1139 * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
1141 * RichTextBox.cs: We need to supply the data object to paste now
1142 (so we can choose to supply CLIPBOARD or PRIMARY).
1143 * TextBoxBase.cs: Supply data object to paste (see above).
1144 - Middle click uses the primary selection data object.
1146 2006-09-21 Chris Toshok <toshok@ximian.com>
1148 * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
1149 of SetWMStyles. It's still a rat's nest and is largely
1150 order-dependent which I dislike immensely. This also fixes the X
1151 button disappearing from toplevel forms.
1153 2006-09-21 Mike Kestner <mkestner@novell.com>
1155 * ListBox.cs: move Jordi's click/dblclick raising code to the
1158 2006-09-21 Jordi Mas i Hernandez <jordimash@gmail.com>
1160 * ListBox.cs: Fixes 79450
1162 2006-09-21 Mike Kestner <mkestner@novell.com>
1164 * TreeView.cs: guard against disposed conditions in UpdateScrollbars
1165 to deal with people updating the TreeNodeCollection after the tree
1166 is disposed. "Fixes" 79330.
1168 2006-09-20 Jackson Harper <jackson@ximian.com>
1170 * TextControl.cs: Push the cursor record onto the undo stack
1171 before the delete action. This fixes 78651.
1173 2006-09-20 Jonathan Chambers <joncham@gmail.com>
1175 * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
1176 CreateParams. Fixes 79329.
1178 2006-09-19 Chris Toshok <toshok@ximian.com>
1180 * XplatUIX11.cs: a couple of blanket code massage passes to clean
1181 things up a bit. First, get rid of the NetAtoms array (and the NA
1182 enum), and just embed the atoms as static fields. Also, add a
1183 couple of functions (StyleSet and ExStyleSet) to clean up all the
1184 bitmask testing of styles.
1186 * X11Structs.cs: remove the NA enum, not needed anymore.
1188 2006-09-19 Chris Toshok <toshok@ximian.com>
1190 * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
1191 (mapping them to _NET_WM_WINDOW_TYPE_UTILITY). and add a little
1192 added cleanup to get MessageBox titles appearing again, which were
1193 broken by my earlier fix for caption-less/ControlBox-less windows.
1195 2006-09-18 Jonathan Pobst <monkey@jpobst.com>
1197 * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
1198 ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
1199 ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
1200 ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
1201 ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
1202 ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
1203 ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
1204 ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
1205 ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
1206 ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
1207 ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
1209 * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
1210 ToolStripButton.cs: Stubs needed for above.
1211 * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
1213 2006-09-15 Chris Toshok <toshok@ximian.com>
1216 - make the MessageQueues hashtable Synchronized.
1218 - SendMessage: if the Hwnd is owned by a different thread, use the
1219 AsyncMethod stuff to dispatch the SendMessage on the hwnd's
1220 thread. Fixes bug #79201.
1222 2006-09-15 Chris Toshok <toshok@ximian.com>
1224 * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly. If
1225 ControlBox == false, we disallow maximize/minimize/close. If the
1226 form Caption is "" we also disallow move (and get rid of the Title
1227 decoration). Unfortunately, regardless of how things are set,
1228 we're stuck with the Title and WM menu.
1230 2006-09-15 Chris Toshok <toshok@ximian.com>
1232 * Application.cs: add locking around the static message_filters
1233 ArrayList, part of #79196.
1235 2006-09-15 Chris Toshok <toshok@ximian.com>
1237 * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
1238 Form.ControlBox == false, the window has no titlebar nor resize
1239 handles. fixes bug #79368.
1241 2006-09-15 Chris Toshok <toshok@ximian.com>
1243 * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
1244 >= 0. Fixes bug #79370.
1246 2006-09-15 Jonathan Pobst <monkey@jpobst.com>
1247 * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
1249 Add properties: LayoutEngine, Margin, DefaultMargin.
1250 Add method: GetPreferredSize.
1251 Move layout logic from PerformLayout to layout engines.
1253 2006-09-13 Chris Toshok <toshok@ximian.com>
1255 * XplatUIX11.cs: more destroy work. Jackson pointed out that my
1256 fix for #79326 broke #78718, so this change addresses that.
1258 - in SendWMDestroyMessages remove the call to
1259 CleanupCachedWindows, since we might be recreating the control and
1260 need to maintain the references to right Hwnd handles. Also, set
1261 the zombie flag to true for each of the children in the hierarchy
1262 instead of calling hwnd.Dispose. This will cause GetMessage to
1263 ignore all events for the window except for DestroyNotify.
1265 - In GetMessage, ignore messages except for DestroyNotify for
1268 * Control.cs: revert the is_recreating fix from the last
1269 ChangeLog. It's definitely "right", but it breaks switching from
1270 an MDI form to a non-MDI form. Will need to revisit that.
1272 * Hwnd.cs: add a zombie flag, which means "the
1273 client_window/whole_window handles are invalid, but we're waiting
1274 for the DestroyNotify event to come in for them". Set the flag to
1275 false explicitly if setting WholeWindow/ClientWindow, and also
1278 2006-09-13 Chris Toshok <toshok@ximian.com>
1280 * XplatUIX11.cs: rework window destruction slightly.
1282 - when destroying the windows associated with a control, we don't
1283 need 2 separate XDestroyWindow calls. Just the one for the
1284 whole_window (or for client_window if whole_window is somehow
1285 IntPtr.Zero -- can this happen?) is enough.
1287 - reworked SendWMDestroyMessages slightly, so we always dispose
1288 the child control hwnd's after sending the messages.
1290 - refactored out the ActiveWindow/FocusWindow/Caret clearing from
1291 the two places it was used (one was even using hwnd.Handle and the
1292 other hwnd.client_window. ugh), adding another call in
1293 SendWMDestroyMessages. We need this new call because now the
1294 DestroyNotify events in the queue will be ignored for the child
1295 controls (as their hwnd's were disposed, and the window id's
1296 removed from the hashtable in SendWMDestroyMessages.) fun, eh?
1298 - this fixes bug #79326.
1300 2006-09-13 Chris Toshok <toshok@ximian.com>
1302 * Control.cs: don't always set is_recreating to false at the end
1303 of RecreateHandle, since sometimes we're not done (and won't be
1304 until WndProc handles the WM_DESTROY message). Also, set
1305 is_recreating to false in the WM_DESTROY handling code. Part of
1306 the fix for bug #79326.
1308 2006-09-13 Miguel de Icaza <miguel@novell.com>
1310 * X11DesktopColors.cs: Start the droppage of debugging messages.
1312 * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
1314 2006-09-13 Jonathan Pobst <monkey@jpobst.com>
1316 * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
1318 2006-09-12 Chris Toshok <toshok@ximian.com>
1320 * DataGrid.cs (get_ListManager): if the list_manager is null, try
1321 to create it using SetDataSource. Fixes bug #79151.
1323 2006-09-11 Chris Toshok <toshok@ximian.com>
1325 * XEventQueue.cs: add a DispatchIdle property.
1327 * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
1328 either the queue is null, or the queue has DispatchIdle set to
1330 (DoEvents): set queue.DispatchIdle to false around the
1331 peek/translate/dispatch message loop in this method. This keeps
1332 Application.Doevents from emitting idle events. Part of the fix
1335 2006-09-11 Chris Toshok <toshok@ximian.com>
1337 * DataGrid.cs (set_DataSource): make this work for both the
1338 winforms/datagrid test and ReportBuilder. It seems as though when
1339 we've created a ListManager (or maybe it's if we have a
1340 BindingContext?), when we set the DataSource it clears the
1341 DataMember to "". otherwise we reuse the datamember. Fixes bug
1344 2006-09-11 Chris Toshok <toshok@ximian.com>
1346 * XplatUIX11.cs: deal with queue being null, which happens in all
1347 the Clipboard functions. Fixes one of the two problems mentioned
1350 2006-09-11 Chris Toshok <toshok@ximian.com>
1352 * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
1353 button on various spots (including outside the menu) works closer
1354 to MS, and doesn't crash. Fixes #79343.
1356 2006-09-11 Gert Driesen <drieseng@users.sourceforge.net>
1358 * ListView.cs: Do not initialize item_sorter in init. To match MS,
1359 return null for ListViewItemSorter if View is SmallIcon or LargeIcon
1360 and the internal comparer is set. When a new ListViewItemSorter is set,
1361 sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
1362 was specified. No further processing is necessary if SortOrder is set
1363 to it's current value. If Sorting is modified to None, and View is
1364 neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
1365 (either custom or our internal ItemComparer) to null, on 1.0 profile
1366 only set item_sorter to null if its our internal IComparer. If Sorting
1367 is modified to Ascending or Descending, then use our internal IComparer
1368 if none is set, and if the current IComparer is our internal one then:
1369 on 2.0 profile always replace it with one for new Sorting, and on 1.0
1370 profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
1371 Enum.IsDefined to verify whether a valid View value is specified in
1372 its setter. Automatically sort listview items when listview is
1373 created. In Sort, do nothing if ListView is not yet created, or if
1374 no item_sorter is set (no Sorting was set, Sorting was explicitly set
1375 to None or ListViewItemSorter was set to null). Added Sort overload
1376 taking a bool to indicate whether the ListView should be redrawn when
1377 items are sorted (we use this in ListViewItemCollection to avoid double
1378 redraws). Modified our internal IComparer to take the sort order into
1379 account. In Add and AddRange methods of ListViewItemCollection, also
1380 call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
1381 view), but use overload with noredraw option to avoid double redraw.
1382 On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
1383 true when View is Tile, and do the same when attempting to set View to
1384 Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
1385 for selected/checked indices, as it involves overhead when sorting is
1386 done while these collections are not used all that often. Instead
1387 we'll build the indices on demand. Modified IList implementation of
1388 CheckedIndexCollection to use public methods if object is int.
1389 Modified CheckedListViewItemCollection to hide checked items if
1390 ListView.CheckBoxes is false. Removed LAMESPEC remark in
1391 ListViewItemCollection as the .NET SDK docs have been fixed. Modified
1392 IList implementation in SelectedIndexCollection to use public methods
1393 if object is int. Modified SelectedListViewItemCollection to hide
1394 selected items if listview is not yet created.
1395 * ListViewItem.cs: CheckedIndices list no longer needs to be
1396 maintained separately (see ListView changes). Also clone font, fixes
1399 2006-09-11 Mike Kestner <mkestner@novell.com>
1401 * ComboBox.cs: if we are updating the contents of the currently
1402 selected index, refresh the control or the textbox selection.
1405 2006-09-11 Mike Kestner <mkestner@novell.com>
1407 * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since
1408 the 'specified' logic has been moved there. This seems like a bug
1409 in Control.cs, since our current SetBoundsCore completely ignores
1410 the specified parameter. Peter's commit seems to indicate that is
1411 the way the MS control implementation works. [Fixes #79325]
1413 2006-09-10 Jonathan Chambers <joncham@gmail.com>
1415 * XplatUI.cs: Set default_class_name to be composed
1416 of current domain id. This allows MWF to be loaded in multiple
1419 2006-09-09 Miguel de Icaza <miguel@novell.com>
1421 * X11Keyboard.cs: If we are unable to obtain the input method, do
1422 not call CreateXic to create the input context. Should fix
1425 2006-09-08 Alexander Olk <alex.olk@googlemail.com>
1427 * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
1428 Simplified gnome support by adding more pinvokes to get the
1429 icon for a file or mime type.
1431 2006-09-08 Jackson Harper <jackson@ximian.com>
1433 * MenuAPI.cs: Deslect popup context menu items before closing the
1434 window, so that you don't see the previously selected item
1435 selected when you reopen the menu.
1436 * TextControl.cs: Update the cursor position even if we don't have
1437 focus. This fixes typing in things like the ComboBox. I'm not
1438 totally sure we should always set the visibility if we don't have
1439 focus, but couldn't find any corner cases where the cursor showed
1440 up when it shouldn't.
1442 2006-09-08 Chris Toshok <toshok@ximian.com>
1444 * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
1445 our arrays are length 256. & 0xff before indexing. Fixes the
1446 crash in bug #78077.
1448 2006-09-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1450 * ThemeWin32Classic.cs:
1451 * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
1452 is true. Handle that check box too.
1454 2006-09-07 Chris Toshok <toshok@ximian.com>
1456 * MenuAPI.cs: move the PerformClick call to OnMouseUp. Fixes bug
1459 2006-09-07 Chris Toshok <toshok@ximian.com>
1461 * Control.cs: in set_BackColor only do the work if
1462 background_color != value.
1464 * XplatUIX11.cs: move the clearing of invalid areas (both client
1465 and nc) to the same block of code where we set (nc_)expose_pending
1466 to false. That is, move it from PaintEventEnd to PaintEventStart,
1467 so things that cause invalidates from within OnPaint will trigger
1468 another call to OnPaint. Fixes bug #79262.
1470 2006-09-07 Alexander Olk <alex.olk@googlemail.com>
1472 * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
1473 * FileDialog.cs: Fix typo
1475 2006-09-07 Jackson Harper <jackson@ximian.com>
1477 * ThemeWin32Classic.cs: oops, forgot to commit. Draw the images
1478 for tab pages if they have any.
1480 2006-09-06 Mike Kestner <mkestner@novell.com>
1482 * Splitter.cs: use the "current" rect when finishing drag handle
1483 to avoid an artifact demonstrated by resedit.exe. [Fixes #79251]
1485 2006-09-06 Mike Kestner <mkestner@novell.com>
1487 * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
1488 support offset splitters. [Fixes #79298]
1490 2006-09-06 Alexander Olk <alex.olk@googlemail.com>
1492 * Mime.cs: Fixed a bug that could override the global mime type
1495 2006-09-05 Jackson Harper <jackson@ximian.com>
1497 * TabControl.cs: Better calculation method for setting the slider
1498 pos. Prevents crashes on really wide tabs.
1499 - Draw Image on tab pages if an image list is used.
1501 2006-09-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1503 * MonthCalendar.cs: When Font changes, the Size should be
1504 updated to fit the new font's space requirements.
1506 2006-09-02 Alexander Olk <alex.olk@googlemail.com>
1508 * ListBox.cs: If the items are cleared with Items.Clear set
1511 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1513 * MonthCalendar.cs: Handle arrow keys as input keys. Also
1514 fire DateChanged event instead of DateSelected event when
1515 the date was changed by keyboard interaction.
1517 2006-09-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1519 * DateTimePicker.cs: Handle DateChanged for the associated
1520 month_calendar control, and set month_calendar.Font from
1521 OnFontChanged method, as well as resize the height of the
1522 control when needed. Make PreferredHeight proportional.
1524 2006-09-01 Chris Toshok <toshok@ximian.com>
1526 * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
1529 * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
1531 2006-09-01 Peter Dennis Bartok <pbartok@novell.com>
1533 * FileDialog.cs: Set ClientSize instead of window size, to allow space
1534 for decorations (Fixes #79219)
1536 2006-09-01 Mike Kestner <mkestner@novell.com>
1538 * ComboBox.cs: first stab at sorting plus some selection handling
1539 fixes to bring us more in line with MS behavior. Also switches back
1540 to index based selection. Alternative patches for index-based
1541 selection were provided by Jackson Harper, Carlos Alberto Cortez,
1542 and latency@gmx.de on bug 78848. I assume they were similar to this
1543 code I've had simmering in my tree forever.
1546 2006-09-01 Chris Toshok <toshok@ximian.com>
1548 * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
1549 when setting list position guard against ending up with a -1 index
1550 (the other part of the fix for #78812). Should probably make sure
1551 we don't need the analogous fix in the ItemDeleted case.
1554 - in SetDataSource, work around the fact that the way
1555 OnBindingContextChanged is invoked will cause us to re-enter this
1556 method. I'll remove the hack once I investigate
1557 OnBindingContextChanged.
1559 - fix the logic in set_DataSource and set_DataMember (basically
1560 what to do if the other of the two is null.)
1562 - in OnListManagerItemChanged, we need to take into account the
1563 edit row when deciding whether or not to call RecreateDataGridRows
1564 (part of the fix for #78812).
1566 2006-09-01 Jackson Harper <jackson@ximian.com>
1568 * Splitter.cs: Don't do anything if there is no control to affect
1569 (prevents us from crashing in weird tet cases).
1570 * TreeView.cs: Bounding box for the mouse movement reverting
1571 focus/selection back to previously selected node. This matches
1572 MS, and makes the tree a lot more useable.
1573 * GroupBox.cs: Instead of drawing over the lines of the groupbox,
1574 use clipping so they are not drawn. This fixes when the control
1575 is set to have a transparent background, or if it was over an
1578 2006-09-01 Alexander Olk <alex.olk@googlemail.com>
1580 * MimeIcon.cs: Improved handling for reading default icons when
1581 using gnome (2.16 made it necessary). Check and read svg icons
1582 first, then 48x48 and then 32x32 icons.
1584 2006-08-31 Chris Toshok <toshok@ximian.com>
1586 * DataGridTextBoxColumn.cs: only hide the textbox if it's still
1589 * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
1590 ProcessKeyPreview. Fixes part of #77806.
1592 * DataGrid.cs: big patch.
1594 - revert the queueing up of DataSource/DataMember if inside
1595 BeginInit/EndInit calls. That's not the way the datagrid achieves
1596 its delayed databinding. Instead, call SetDataSource in
1597 OnBindingContextChanged. This mimic's MS's behavior, and fixes
1600 - Also, it wasn't mentioned in #78811, but the test case exhibits
1601 behavior that was lacking in our datagrid implementation - Columns
1602 that have mapping names that don't exist in the datasource's
1603 properties aren't shown. Yuck. To fix this I added the bound
1604 field to the column style, and basically any calculation to figure
1605 out anything about columns uses a loop to find the bound columns.
1606 still need to investigate if I can cache an array of the bound
1607 columns or if the indices must be the same.
1609 - When setting CurrentCell, we no longer abort if the cell being
1610 edited was in the add row. This fixes the other part of #77806.
1612 - The new code also fixes #78807.
1614 * ThemeWin32Classic.cs: perpetrate the same disgusting
1615 column.bound field hack, and only render bound fields.
1617 2006-08-31 Chris Toshok <toshok@ximian.com>
1619 * DataGridColumnStyle.cs: add bound field. this field is true if
1620 the datasource has a property corresponding to the mapping name.
1622 * DataGridTableStyle.cs: set the bound field on the column styles
1623 depending on whether or not we have a column for that property.
1625 2006-08-31 Peter Dennis Bartok <pbartok@novell.com>
1627 * Splitter.cs (SetBoundsCore): Don't ignore width/height of the
1628 splitter control (fixes #79228)
1630 2006-08-31 Chris Toshok <toshok@ximian.com>
1632 * DataGridColumnStyle.cs: we need to delay the assignment of
1633 property descriptor until the last possible moment due to the lazy
1634 databinding stuff in the datagrid. Also, fix the exceptions
1635 thrown by CheckValidDataSource to match MS.
1637 2006-08-31 Jackson Harper <jackson@ximian.com>
1639 * Form.cs: When activated select the active control, if there is
1640 no active control, we select the first control.
1641 * XplatUIX11.cs: If there is no focus control when we get a
1642 FocusIn event, find the toplevel form and activate it. This
1643 occurs when you popup a window, it becomes the focus window, then
1644 you close that window, giving focus back to the main window.
1646 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1649 * ThemeWin32Classic.cs: Cache Font in bold style, as well
1650 as StringFormat with Center alignments in MonthCalendar,
1651 instead of creating new ones when drawing the control.
1652 Also, draw the month name in bold style.
1654 2006-08-30 Peter Dennis Bartok <pbartok@novell.com>
1657 - PerformLayout(): It would seem MS performs the fill even if the
1658 control is not visible (part of #79218 fix)
1659 - ResetBackColor(): Use the setter to reset the color, to allow
1660 overriders to catch the change.
1662 - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
1663 - CreateHandle(): dito (part of $79218 fix)
1664 - Don't set an icon if we have a dialog
1665 * ScrollableControl.cs:
1666 - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
1667 - ScrollIntoView(): No need to scroll if control is already visible
1668 (resolves fixme and fixes #79218)
1670 2006-08-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1672 * MonthCalendar.cs: Change proportions in SingleMonthSize
1673 to match the aspect of the original control.
1675 2006-08-29 Alexander Olk <alex.olk@googlemail.com>
1677 * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
1678 get updated when they get maximized.
1680 2006-08-29 Peter Dennis Bartok <pbartok@novell.com>
1682 * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
1684 2006-08-29 Chris Toshok <toshok@ximian.com>
1686 * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
1688 2006-08-29 Jackson Harper <jackson@ximian.com>
1690 * TreeView.cs: Need to track selected node and highlighted node,
1691 they aren't always the same thing, when the mouse is down on a
1692 node it is hilighted, but not selected yet.
1693 - Do the HideSelection stuff right
1694 - Need to focus on rbutton mouse down. And redraw selection when
1695 right click is mouse upped.
1697 2006-08-29 Mike Kestner <mkestner@novell.com>
1699 * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
1700 when SubItems.Count < Columns.Count. [Fixes #79167]
1702 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
1704 * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
1706 2006-08-28 Peter Dennis Bartok <pbartok@novell.com>
1708 * XplatUIX11.cs: Preempt the roundtrip for getting the location back
1709 from X. Only send based on ConfigureNotify if we don't have the
1710 correct location in hwnd (if the window manager moved us)
1712 2006-08-28 Mike Kestner <mkestner@novell.com>
1714 * ListView.cs: remove a TODO.
1715 * ThemeWin32Classic.cs: implement HideSelection support for ListView.
1716 [Fixes ListView part of #79166]
1718 2006-08-28 Mike Kestner <mkestner@novell.com>
1720 * ListView.cs: move wheel handler to parent since it is focused
1721 instead of the item_control now. [Fixes #79177]
1723 2006-08-28 Mike Kestner <mkestner@novell.com>
1725 * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
1726 when the control is focused. [Fixes #79171]
1728 2006-08-28 Mike Kestner <mkestner@novell.com>
1730 * ListView.cs: size the item and header controls for empty and
1732 * ThemeWin32Classic.cs: draw disabled backgrounds.
1735 2006-08-28 Chris Toshok <toshok@ximian.com>
1737 * Form.cs: remove unused "active_form" static field.
1739 * Hwnd.cs: lock around accesses to static windows collection.
1741 * Application.cs: lock threads in Exit ().
1743 2006-08-28 Chris Toshok <toshok@ximian.com>
1745 * NativeWindow.cs: lock around accesses to window_collection.
1747 2006-08-28 Chris Toshok <toshok@ximian.com>
1749 * Control.cs: err, fix this the right way, by locking on controls
1750 when using it. not by making it synchronized.
1752 2006-08-28 Chris Toshok <toshok@ximian.com>
1754 * Control.cs: make the static "controls" field synchronized, as it
1755 gets updated from multiple threads.
1757 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
1759 * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
1760 Prevent other threads from exiting when calling thread sets quit state.
1761 * XEventQueue.cs: Added PostQuitState property
1763 2006-08-27 Chris Toshok <toshok@ximian.com>
1765 * AsyncMethodData.cs: add a slot for the window handle.
1767 * XplatUIX11.cs (SendAsyncMethod): send the event to the right
1768 window (the destination control's window, not the foster window).
1770 * Control.cs (BeginInvokeInternal): store the window's handle in
1771 the AsyncMethodData.
1774 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
1777 - PostQuitMessage: Removed resetting S.D display handle, we might have
1778 another loop started after calling PostQuitMessage (Fixes #79119)
1779 - Created destructor to reset S.D handle
1781 2006-08-27 Peter Dennis Bartok <pbartok@novell.com>
1783 * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
1785 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
1787 * TextControl.cs (Insert): Update the caret position even if we don't
1788 have a handle yet, just don't call the driver in that case.
1789 * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
1790 to the end of the new selection text (Fixes #79184)
1792 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
1794 * Form.cs (Activate): Only activate if the handle is created)
1796 - Mark window as invisible when it's disposed
1797 - Check if window handle is created when setting window visible,
1798 instead of relying just on the is_created variable
1799 - Check if object is disposed when creating the control (Fixes #79155)
1801 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
1803 * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
1804 when allowing layout again. Otherwise we re-generate the anchoring
1805 distance to the border again and actually alter what the user wanted
1806 This is ugly, it'd be better if we used DisplayRectangle instead of
1807 ClientRectangle for Control.UpdateDistances, but that causes us to
1808 have other problems (initial anchoring positons would be wrong)
1811 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
1814 - The size and location setters shouldn't go directly to
1815 SetBoundsCore, but to SetBounds, which triggers layout on the
1816 parent, then calls SetBoundsCore. (Related to fix for #78835)
1817 - SetBounds: Moved actual location update code into this function
1818 from SetBoundsCore, to match MS. Added call to PerformLayout if
1819 we have a parent (to trigger resizing of anchored parents if the
1820 child size has changed (see testcase for #78835)
1821 * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match
1823 * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
1825 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
1827 * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
1828 System.Drawing when a toplevel window gets closed; there might
1829 be other toplevel windows belonging to the same app (Fixes #78052)
1831 2006-08-26 Alexander Olk <alex.olk@googlemail.com>
1833 * FileDialog.cs: After reading FileDialog settings from mwf_config
1834 use Desktop prefix only if a real folder doesn't exist anymore.
1835 * FontDialog.cs: Added char sets.
1836 It is now possible to select the font, size or style with the
1839 2006-08-25 Kornél Pál <kornelpal@gmail.com>
1841 * PrintPreviewDialog.cs: Use assembly name constants.
1843 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
1845 * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
1846 scrollbar from whacking it's buttons)
1848 2006-08-24 Chris Toshok <toshok@ximian.com>
1850 * ScrollableControl.cs: fix #78271. There's a lot of misc stuff
1851 in this patch (aggregating setting Left/Top/Width/Height to
1852 setting Bounds on the scrollbars), but the crux of the fix is in
1853 Recalculate, where we scroll by the remaining scroll_position if
1854 we're hiding a scrollbar. The 2*$5 reward in the comment is
1857 2006-08-24 Jackson Harper <jackson@ximian.com>
1860 * MdiWindowManager.cs: If the form is made a non-mdi window we
1861 need to remove the form closed event so that closing forms works
1864 2006-08-24 Jackson Harper <jackson@ximian.com>
1866 * Control.cs: Make IsRecreating internal so that the driver can
1868 - Temporarily remove the Hide when controls are removed, its
1869 making a whole bunch of things not work because visibility isn't
1870 getting reset elsewhere correctly
1871 * Form.cs: Need to do a full handle recreation when the mdi parent
1873 * XplatUIX11.cs: If we are recreating handles don't dispose the
1874 HWNDs. What was happening is the handles were being recreated in
1875 SendWMDestroyMessages, but then flow continued on in that method
1876 and destroyed the new handles.
1878 2006-08-23 Jackson Harper <jackson@ximian.com>
1880 * Form.cs: MdiClient is always at the back of the bus
1881 * Control.cs: When the order of items in the collection is changed
1882 we need to reset the all_controls array
1883 - do the same sorta setup thats done when adding a control when a
1884 control is set on the collection.
1886 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
1888 * TextBoxBase.cs (get_Text): Return an empty array if our document
1889 is empty (fixes #79052)
1891 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
1893 * Control.cs: We should call IsInputChar on only on WM_CHAR but not
1894 on WM_SYSCHAR messages (fixes #79053)
1896 2006-08-23 Chris Toshok <toshok@ximian.com>
1898 * DataGrid.cs: fix flickering when scrolling vertically.
1900 2006-08-23 Chris Toshok <toshok@ximian.com>
1902 * DataGrid.cs (EndEdit): only invalidate the row header when we
1905 2006-08-23 Chris Toshok <toshok@ximian.com>
1907 * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
1908 methods. fixes the flicker when scrolling around.
1910 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
1912 * FileDialog.cs: Making sure the control is created before we get a
1913 chance to use it with BeginInvoke (Fixes #79096)
1915 2006-08-23 Chris Toshok <toshok@ximian.com>
1917 * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
1918 width to use when painting the rows.
1920 2006-08-23 Peter Dennis Bartok <pbartok@novell.com>
1923 - Throw ArgumentException if a negative value is passed to SelectionLength
1924 - Update the selection end if start is moved. end needs to be always
1925 after start. (Fixes #79095)
1926 - Track selection length; MS keeps the selection length even if start
1927 is changed; reset on all other operations affection selection
1929 2006-08-22 Jackson Harper <jackson@ximian.com>
1931 * TreeView.cs: Make sure both scrollbars get displayed and sized
1932 correctly when the other bar is visible.
1933 - Use the original clip rectangle for checking if the area between
1934 the two scrollbars is visible, not the viewport adjusted clipping
1937 2006-08-22 Jackson Harper <jackson@ximian.com>
1939 * Binding.cs: We don't use IsBinding because it requires the
1940 control to be created, which really shouldn't be necessary just to
1941 set a property on the control.
1943 2006-08-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1945 * ComboBox.cs: Some CB.ObjectCollection methods must throw
1946 ArgumentNullReferenceException when the argument is null.
1948 2006-08-21 Jackson Harper <jackson@ximian.com>
1950 * Timer.cs: Track the thread that the timer is started in (NOT
1951 CREATED), this way messages for it will only be triggered on its
1953 * XEventQueue.cs: Track the timers here, this makes timers per
1955 * XplatUIX11.cs: The timers are moved to the XEventQueue.
1957 2006-08-19 Chris Toshok <toshok@ximian.com>
1959 * XplatUIX11.cs: after further communication with pdb, we get the
1960 best of both worlds. SetZOrder working for un-Mapped windows, and
1961 no X errors for un-mapped windows.
1963 2006-08-19 Chris Toshok <toshok@ximian.com>
1965 * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
1966 as it was causing pdn toolbars to not have the correct stacking.
1968 2006-08-18 Mike Kestner <mkestner@novell.com>
1970 * ListView.cs : guard against negative ClientArea.Width in scrollbar
1971 calculation. Not sure why control should ever be setting a negative
1972 width though. Fixes #78931.
1974 2006-08-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
1976 * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
1977 null items in ObjectCollection class.
1978 * ListBox.cs.: Likewise.
1980 2006-08-18 Atsushi Enomoto <atsushi@ximian.com>
1982 * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
1983 as the base method in ThemeWin32Classic should work fine.
1986 2006-08-18 Jackson Harper <jackson@ximian.com>
1988 * Binding.cs: When validating if the value entered doesn't convert
1989 properly reset to the old value.
1990 * RadioButton.cs: Don't fire click when we get focus.
1992 2006-08-18 Jackson Harper <jackson@ximian.com>
1994 * FileDialog.cs: Paint the selection on the directory combobox the
1997 2006-08-17 Jackson Harper <jackson@ximian.com>
1999 * ErrorProvider.cs: Don't allow the error control to be selected.
2000 * Control.cs: Don't send the SetFocus messages, the control
2001 activation will do this, and if we do it blindly here validation
2004 2006-08-17 Jackson Harper <jackson@ximian.com>
2007 * ContainerControl.cs: Make validation events fire in the correct
2008 order. TODO: For some reason the first validation event is not
2011 2006-08-17 Mike Kestner <mkestner@novell.com>
2013 * ComboBox.cs : some null guarding for ComboListBox.Scroll.
2015 2006-08-17 Mike Kestner <mkestner@novell.com>
2017 * ComboBox.cs : implement scroll wheel support for popped-down
2018 state. Fixes #78945.
2020 2006-08-17 Jackson Harper <jackson@ximian.com>
2022 * TreeView.cs: Specify treeview actions (old patch that didn't get
2023 committed for some reason).
2024 - Don't let the mouse wheel scroll us too far. Just want to make
2025 the bottom node visible, not scroll it all the ways to the top.
2027 2006-08-17 Jackson Harper <jackson@ximian.com>
2029 * XplatUIX11.cs: Mouse wheel events go to the focused window.
2031 2006-08-17 Mike Kestner <mkestner@novell.com>
2033 * ComboBox.cs : don't do mouseover selection in simple mode.
2035 2006-08-16 Jackson Harper <jackson@ximian.com>
2037 * Form.cs: Fire the closing events for all the mdi child windows
2038 when a window is closed. If the cancel args are set to true, the
2039 main window still gets the event fired, but it doesn't not close.
2040 * MdiWindowManager.cs: Do this closing cleanup in a Closed
2041 handler, instead of when the button is clicked, so cancelling the
2042 close works correctly.
2043 * ComboBox.cs: Send the mouse down to the scrollbar.
2045 2006-08-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2047 * ListBox.cs: When passing 'null' to SelectedItem,
2048 set SelectedIndex to -1, to unselect items. This is the
2049 observed behaviour in .Net.
2051 2006-08-16 Peter Dennis Bartok <pbartok@novell.com>
2053 * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
2054 MS flags saying there won't be any. (fixes #78800)
2055 * Control.cs (HandleClick): Made virtual
2057 2006-08-16 Atsushi Enomoto <atsushi@ximian.com>
2059 * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
2060 cultures. Fixed bug #78399.
2062 2006-08-16 Jackson Harper <jackson@ximian.com>
2064 * Form.cs: Use the MdiClients MdiChildren property to access
2065 MdiChildren instead of creating the array from the child controls.
2066 * MdiClient.cs: Maintain a separate array of the mdi children, so
2067 that insertion order is maintained when the Z-order is changed.
2069 2006-08-16 Mike Kestner <mkestner@novell.com>
2071 * ListView.cs : add an ItemComparer and default to it for sorting.
2072 Fixes #79076, but sorting needs a complete overhaul to be compat with
2075 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
2077 * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
2079 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
2081 * Hwnd.cs (Mapped): Properly traverse the tree
2083 2006-08-15 Chris Toshok <toshok@ximian.com>
2085 * Binding.cs: fix PullData/SetPropertyValue. We don't want to
2086 pass manager.Current.GetType() to ParseData. It has to be the
2087 property type. So, hold off doing the ParseData until we're in
2088 SetPropertyValue where we know the type. This fixes the crash in
2089 #78821 but the textbox is still empty.
2091 2006-08-15 Chris Toshok <toshok@ximian.com>
2094 - when we're scrolling, only call Edit() again if the
2095 current cell is still unobscured. Fixes bug #78927.
2096 - when handling mousedown on a cell, ensure the cell is visible
2097 before calling Edit.
2098 - remove the properties from DataGridRow, and remove the
2099 DataGridParentRow class altogether.
2102 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
2104 * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
2105 fire OnTextChanged by ourselves. There's no point calling base,
2106 we don't set the base value anywhere else. Fixes #78773.
2108 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2110 * ListBox.cs: Call CollectionChanged when modifying
2111 an item from Items indexer, to update the actual items
2114 2006-08-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2116 * PrintDialog.cs: Small fixes for focus and a pair of checks,
2117 to match .Net behaviour.
2119 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
2121 * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
2123 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
2125 * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
2127 2006-08-15 Peter Dennis Bartok <pbartok@novell.com>
2129 * MessageBox.cs: Prevent potential NRE exception.
2130 * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
2132 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
2134 * MessageBox.cs: Calculate the owner of a messagebox, also make
2135 it topmost. Fixes #78753
2137 2006-08-14 Chris Toshok <toshok@ximian.com>
2139 * XplatUIX11.cs: A couple of fixes so that metacity will let us
2140 programmatically move windows. first, set the PPosition hint as
2141 well as the USPosition hint. Second include some code from pdb
2142 that sets the window type to NORMAL when we set the transient for
2143 hint. This is because, in the absence of a window type, metacity
2144 thinks any window with TransientFor set is a dialog, and refuses
2145 to let us move it programmatically. fascists.
2147 2006-08-14 Peter Dennis Bartok <pbartok@novell.com>
2149 * XplatUIX11.cs: When setting normal hints, take into consideration
2150 an different hints previously set so we don't delete them (fixes #78866)
2152 2006-08-12 Chris Toshok <toshok@ximian.com>
2154 * ToolBarButton.cs: make Layout return a boolean, if something to
2155 do with the button's layout changed.
2158 - add another parameter to Redraw, @force, which all existing
2160 - make the Layout function return a boolean which is true if the
2161 layout has actually changed. Redraw now uses this (and @force)
2162 to determine when to invalidate. At present the only place
2163 where @force can be false is the call from OnResize, when
2164 background_image == null. So, resizing a toolbar when the
2165 layout doesn't change results in no drawing.
2167 2006-08-12 Chris Toshok <toshok@ximian.com>
2169 * ThemeWin32Classic.cs: fix the bottom right corner painting. had
2170 the VScrollBar and HScrollbar reversed. oops.
2172 * DataGrid.cs: fix the logic that assigns sizes to the implicit
2173 scrollbars. we were assigning them twice (once in
2174 Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
2175 therefore causing two scrollbar resizes (and redraws?) to happen
2178 2006-08-12 Chris Toshok <toshok@ximian.com>
2180 * ToolBarButton.cs: redraw the entire button if the theme tells us
2183 * Theme.cs: add ToolBarInvalidateEntireButton.
2185 * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
2186 buttons, just the border.
2188 * ThemeNice.cs: redraw the entire toolbar button since we need to
2189 draw the highlight image.
2191 * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
2192 we need to redraw the entire button (not just the border).
2194 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
2196 * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
2197 for vertical bars. Fixes the mismatches shown by #78513
2199 2006-08-11 Alexander Olk <alex.olk@googlemail.com>
2201 * FileDialog.cs: If a saved/remembered path doesn't exist
2202 anymore, fall back to "Desktop".
2204 2006-08-11 Peter Dennis Bartok <pbartok@novell.com>
2206 * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
2207 parent. It's apparently legal to not have one
2209 - SetZOrder: Don't try to set Z-Order on an unmapped window
2210 - CreateWindow: 0,0 are legal coordinates for a window. don't move
2211 it unless the coordinates are negative
2213 2006-08-10 Mike Kestner <mkestner@novell.com>
2215 * ListControl.cs: allow null for DataSource. Clear DisplayMember
2216 when setting to null per msdn docs. Fixes #78854.
2218 2006-08-10 Chris Toshok <toshok@ximian.com>
2220 * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
2221 flickering by setting a clip rectangle on the Graphics when we
2222 need to redraw just a particular menuitem. Also, rename "OnClick"
2223 to "OnMouseDown" to reflect what it actually is.
2225 * Form.cs: track the OnMouseDown change.
2227 2006-08-10 Peter Dennis Bartok <pbartok@novell.com>
2229 * CommonDialog.cs: Properly inherit the CreateParams from the form
2230 and only change what we need. Fixes #78865
2232 2006-08-10 Chris Toshok <toshok@ximian.com>
2234 * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
2235 flickering in flat mode (and most of the flickering in general) by
2236 only invalidating the button border (and not the entire rectangle)
2237 when the state changes. A couple of cases still flicker:
2238 ToggleButtons, and the dropdown arrow case when the user mouse
2241 2006-08-10 Alexander Olk <alex.olk@googlemail.com>
2243 * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
2244 for german keyboards. Numlock state shouldn't affect the behaviour
2245 of the Del key. Fixes bug #78291.
2247 2006-08-10 Chris Toshok <toshok@ximian.com>
2249 * ListControl.cs: remove the items.Clear line from BindDataItems,
2250 as this is the first thing done by both subclasses in their
2251 SetItemsCore overrides. Also, add a ItemChanged handler, and when
2252 passed -1, refresh the list. This gets databinding working when
2253 the datasource is set on the list before the datasource is
2254 populated (as in wf-apps/ReportBuilder.)
2256 * ComboBox.cs: remove the argument to BindDataItems. This call
2257 should really go away, and be initiated by the ListControl code.
2261 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
2263 * TextControl.cs (Document.ctor): Initialize caret so we don't crash
2264 if no data is in the document when the control is displayed
2266 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
2268 * TextBoxBase.cs: Don't try moving the caret if we don't have a window
2271 - PositionCaret: Allow positioning of caret but don't call methods
2272 requiring a handle if the window isn't created yet
2273 - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
2274 - owner_HandleCreated: Don't position the caret, just update it's
2275 location. User might have already set a different position
2277 2006-08-09 Peter Dennis Bartok <pbartok@novell.com>
2279 * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
2280 windows. Screws up the returned coordinates for child windows.
2281 Fixes #78825. I'm hoping this doesn't break something, since the
2282 code was explicitly put in 8 months ago, but no bug was attached.
2283 Menus still seem to work properly.
2285 2006-08-08 Chris Toshok <toshok@ximian.com>
2287 * DataGrid.cs: make BeginInit/EndInit actually do what they're
2288 supposed to do - delay data binding until the EndInit call. Also,
2289 make the table style collection's CollectionChangeAction.Refresh
2292 * GridTableStylesCollection.cs: raise a CollectionChangeEvent
2293 (with action = Refresh) when a consituent table's MappingName is
2296 2006-08-08 Chris Toshok <toshok@ximian.com>
2298 * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
2299 Invalidate, since changing the text can change the size of the all
2302 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
2304 * Form.cs (AddOwnedForm): Still need to add the form to our listif
2305 we don't have it yet
2307 2006-08-08 Chris Toshok <toshok@ximian.com>
2309 * PrintControllerWithStatusDialog.cs: don't .Close() the status
2310 dialog, as this causes X errors later on, since we actually
2311 destroy the window. Instead, .Hide() it.
2313 2006-08-08 Peter Dennis Bartok <pbartok@novell.com>
2315 * ComboBox.cs: Added focus reflection for popup window
2317 - Removed transient setting for non-app windows for now, not sure it
2319 - Fixed logic checking if we have captions when deciding
2320 override_redirect, WS_CAPTION is two bits and a 0 check was not
2322 - Removed the WINDOW_TYPE stuff, it was unneeded and making things
2325 - AddOwnedForm: Don't just add the form to the list, call the property
2326 to ensure the driver is informed about the ownership as well
2327 - CreateHandle: Set the TopMost status in the driver if we have an owner
2328 * XplatUI.cs: Fixed debug statement
2330 2006-08-08 Jonathan Pobst <monkey@jpobst.com>
2331 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
2332 GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
2333 ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs,
2334 TrackBarRenderer.cs: Make constructor private.
2335 * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
2336 * ProfessionalColorTable.cs: Make properties virtual.
2338 2006-08-06 Duncan Mak <duncan@novell.com>
2340 * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
2343 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
2344 * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
2345 GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
2346 ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
2347 TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
2348 Initial import of new 2.0 classes.
2350 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
2351 * Application.cs: Add 2.0 VisualStyles properties.
2353 2006-08-04 Jonathan Pobst <monkey@jpobst.com>
2354 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
2355 XplatUIX11.cs: Create property to allow access to existing private
2356 variable "themes_enabled"
2358 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2360 * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
2361 file size, as otherwise our class libraries fail using windows. Fixes
2364 2006-08-04 Jackson Harper <jackson@ximian.com>
2367 * XplatUIX11.cs: Move the toolwindow window manager creation into
2368 the X11 driver, this way on win32 we can let windows create/handle
2371 2006-08-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2373 * PrintDialog.cs: Remove some redundant checks, add some others,
2374 clean some code, and move the focus to the text boxes when the
2375 values are incorrect.
2377 2006-08-04 Alexander Olk <alex.olk@googlemail.com>
2379 * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
2381 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
2383 * NumericUpDown.cs: Setting the Minimum and Maximum is now
2384 handled correctly. Fixes bug #79001.
2386 2006-08-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2388 * PrintDialog.cs: The "Copies" numeric up down must have
2389 set the Minimum property to 1; only if the value is bigger
2390 than 1, activate "Collate" check box. This is the behaviour of .Net.
2391 Also modify the Document elements only if it is not null.
2393 2006-08-03 Jackson Harper <jackson@ximian.com>
2395 * TreeNodeCollection.cs: Fix copyto to use the correct nodes
2396 length. (We have a larger array then actual node count).
2398 2006-08-03 Jackson Harper <jackson@ximian.com>
2400 * ComboBox.cs: Don't show selection by default.
2401 - The SelectAll isn't needed here, since the focus code should do
2403 - DDL style lists to manual selection drawing, so when they
2404 get/lose focus they have to invalidate.
2406 2006-08-03 Peter Dennis Bartok <pbartok@novell.com>
2408 * TextBoxBase.cs: Don't always show all selections by default.
2410 2006-08-03 Jonathan Pobst <monkey@jpobst.com>
2411 * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
2412 HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
2413 Fixed various typos.
2415 2006-08-03 Alexander Olk <alex.olk@googlemail.com>
2417 * Control.cs: Removing the controls in a ControlCollection with
2418 Clear now hides the controls as expected. Fixes bug #78804.
2420 2006-08-03 Jackson Harper <jackson@ximian.com>
2422 * Control.cs: Revert previous focus patch, it breaks reflector.
2424 2006-08-03 Jackson Harper <jackson@ximian.com>
2426 * ComboBox.cs: Cleanup selection and focus with the combobox.
2427 This also eliminates some duplicated keyboard code, since now
2428 everything is handled by the main class.
2429 - Make list selection work on mouse up instead of down, to match
2432 2006-08-02 Jackson Harper <jackson@ximian.com>
2434 * Control.cs: Setting focus needs to go through the whole
2435 selection mechanism.
2437 2006-08-02 Chris Toshok <toshok@ximian.com>
2439 * PrintPreviewDialog.cs: change MinimumSize to use
2440 base.MinimumSize so it works.
2442 2006-08-02 Peter Dennis Bartok <pbartok@novell.com>
2445 - UpdateCaret: Added sanity check in case caret isn't defined yet
2446 - Line.Delete: Now updating selection and caret markers if we're
2447 transfering a node (Properly fixes #78323)
2448 - SetSelectionEnd: Added sanity check
2449 * TextBoxBase.cs: Removed broken attempt to fix #78323
2451 2006-08-01 Chris Toshok <toshok@ximian.com>
2453 * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
2454 Close() call is handled in Form, not here.
2456 2006-08-01 Chris Toshok <toshok@ximian.com>
2458 * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
2461 * PrintPreviewDialog.cs: add scrollbars, and add an image cache
2462 for sizes < 100% zoom. The code now aggressively attempts to keep
2463 from calling document.Print (), and tries not to use the scaling
2464 g.DrawImage whenever possible (it still does if you scale to >
2465 100%, since usually that involves huge images).
2467 * PrintPreviewControl.cs: hook up the close button.
2469 2006-08-01 Jonathan Pobst <monkey@jpobst.com>
2470 * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
2471 ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
2472 ItemDragEventHandler.cs, LabelEditEventHandler.cs,
2473 LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
2474 MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
2475 PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
2476 SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
2477 Removed [Serializable] for 2.0 Event Handlers.
2479 2006-07-31 Jackson Harper <jackson@ximian.com>
2481 * TextBoxBase.cs: Make ShowSelection invalidate when changed.
2482 * TextControl.cs: Uncomment out the body of this method.
2484 2006-07-31 Alexander Olk <alex.olk@googlemail.com>
2486 * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
2489 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
2491 * TextBoxBase.cs: Added internal property ShowSelection to allow controls
2492 that embed TextBox and need selections visible even if textbox is not
2493 focused to enforce that behaviour.
2494 * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
2497 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
2500 - Added new SetSelectionStart/SetSelectionEnd overloads
2501 - Fixed viewport width assignment to be accurate
2502 - Adjusted alignment line shift calculations to allow cursor on right
2503 aligned lines to be always visible at the right border (like MS)
2505 - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
2506 - TextBoxBase_SizeChanged: recalculating canvas on size changes
2507 - CalculateScrollBars: Use ViewPort size instead of window size, to
2508 properly consider space occupied by the border and scrollbars
2510 - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll
2511 calculations; no longer leaves artifacts
2512 - CaretMoved: Adjusted window scrolling to match MS and fixed several
2513 calculation bugs (Still missing right/center align calculations)
2515 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
2517 * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
2518 use of both scroll rect and clip rect, as they do the same.
2520 2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
2522 * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key
2523 in the event handler (fixes #78912)
2525 2006-07-31 Chris Toshok <toshok@ximian.com>
2527 * ThemeWin32Classic.cs: use grid.RowsCount here instead of
2528 grid.ListManager.Count, since grid.ListManager might be null.
2529 This of course begs the question "why are we drawing rows for a
2530 grid with no list manager (and therefor no rows)?" Fixes the
2531 crash in bug #78929.
2533 2006-07-31 Chris Toshok <toshok@ximian.com>
2535 * RelatedPropertyManager.cs: Don't always chain up to the parent
2536 ctor. instead, call SetDataSource if the parent's position is !=
2537 -1. Fixes the crash in #78822.
2539 2006-07-31 Chris Toshok <toshok@ximian.com>
2541 * DataGrid.cs (get_ListManager): use field instead of property
2542 accessors for datasource and datamember.
2543 (RowsCount): make internal again.
2544 (OnMouseDown): end edits before resizing columns/rows.
2545 (OnMouseUp): restart edits after resizing columns/rows.
2547 2006-07-30 Peter Dennis Bartok <pbartok@novell.com>
2549 * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
2550 This fixes the situation where the last set cursor is displayed
2551 whenever the mouse is over scrollbars.
2553 2006-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2555 * PrintDialog.cs: Fix the behaviour of PrinterSettings and
2556 Document properties, as well as initial values.
2558 2006-07-29 Peter Dennis Bartok <pbartok@novell.com>
2560 * XplatUIWin32.cs (SetBorderStyle): Setting both border
2561 and ClientEdge results in a 3-pixel border, which is
2564 2006-07-28 Jackson Harper <jackson@ximian.com>
2566 * TreeNodeCollection.cs: Fix the clear method.
2567 - Fix the Shrink also
2569 2006-07-27 Jackson Harper <jackson@ximian.com>
2571 * TreeView.cs: Make sure the visible order is computed when we
2572 attempt to size the scrollbars (for trees that mess with the
2573 scrolling when they shouldn't.
2574 - Make sure to give the scrollbars valid values.
2576 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
2578 * XplatUIX11.cs: Move motion compression code to where it
2579 has less performance impact
2581 2006-07-26 Jackson Harper <jackson@ximian.com>
2583 * UpDownBase.cs: When the control is selected make the child
2584 controls non selectable, so that a click on them won't do a
2585 focus/unfocus cycle.
2586 - Don't give focus to the text box when the spinner is selected.
2587 * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
2589 2006-07-26 Chris Toshok <toshok@ximian.com>
2591 * ThemeWin32Classic.cs: add print preview rendering. I'm not
2592 satisfied with this solution. If the bitmaps are small, we should
2593 just cache them in the PrintPreviewDialog and draw them here.
2594 Also, the layout is broken for the 2-up and 3-up cases.
2596 * Theme.cs: add PrintPReviewControlPaint.
2598 * PrintPreviewDialog.cs: first pass implementation.
2600 * PrintPreviewControl.cs: first pass implementation. No
2603 * PrintDialog.cs: only validate fields if that particular portion
2604 of the UI is enabled. Also, set the document's controller to a
2605 PrintControllerWithStatusDialog wrapping the document's print
2608 * PrintControllerWithStatusDialog.cs: if we're printing to a file,
2609 bring up a SaveFileDialog (i hope we don't want to match the
2610 behavior of the crappy windows file entry) and set the
2611 PrinterSettings.PrintFileName accordingly.
2613 2006-07-26 Jackson Harper <jackson@ximian.com>
2615 * ContainerControl.cs: Add a field that disables auto selecting
2616 the next control in a container when the container is activated.
2617 * UpDownBase.cs: Don't select the text box when the up down is
2620 2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
2622 * XEventQueue.cs: Added methods for peeking (used for compression
2623 of successive events)
2624 * XplatUIX11.cs (GetMessage): We're now compressing consecutive
2625 mouse move events (fixes #78732)
2627 2006-07-25 Jackson Harper <jackson@ximian.com>
2629 * UpDownBase.cs: Use an internal class for the textbox so that we
2630 can control focus. the updown control should always have focus,
2631 if either the text area or the buttons are clicked.
2632 - Send the key messages to the textbox, since it never actually
2634 - Activate and decativate the textbox caret.
2636 2006-07-24 Jackson Harper <jackson@ximian.com>
2638 * Control.cs: Use the directed select when selecting a control,
2639 this way the container controls override will get called and the
2640 whole ActiveControl chain will get triggered. TODO: probably need
2641 to make sure this gets done everywhere instead of the old
2643 * ContainerControl.cs: Implement the directed Select method to
2644 find and activate the correct child control.
2646 2006-07-22 Mike Kestner <mkestner@novell.com>
2648 * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
2649 menu handling code so that clicks without a grab work too.
2652 2006-07-22 Alexander Olk <alex.olk@googlemail.com>
2654 * FileDialog.cs: Enable the BackButton when dirstack has one element.
2655 Added some small optimizations.
2657 2006-07-21 Matt Hargett <matt@use.net>
2659 * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
2661 2006-07-21 Peter Dennis Bartok <pbartok@novell.com>
2663 * Control.cs (GetNextControl): Fixes to make all of Jackson's unit
2664 tests pass and match MS in some strange border cases.
2666 2006-07-21 Chris Toshok <toshok@ximian.com>
2668 * ThemeWin32Classic.cs: handle drawing of the relation links and
2671 * Theme.cs: change args to DataGridPaintParentRow.
2673 * DataGrid.cs: Don't use controls for the relation links and
2674 parent buttons, so we have to handle all their interactions in
2675 MouseMove, MouseDown, MouseUp, etc. Also, store a lot more stuff
2676 when we're navigating through child tables, so we can reinstate
2677 selection, expanded state, current cell, etc.
2679 2006-07-20 Chris Toshok <toshok@ximian.com>
2681 * ToolBar.cs: When we redraw a button, for whatever reason,
2682 there's no reason to redraw the entire toolbar. Also, don't call
2683 Control.Refresh from within Redraw, as it's much heavier than
2684 Invalidate (which is really what we want).
2686 2006-07-20 Chris Toshok <toshok@ximian.com>
2688 * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
2689 DataGridTextBoxColumn.cs, DataGridTextBox.cs,
2690 ThemeWin32Classic.cs, ListControl.cs: After staring at stack
2691 traces from within a debug IBindingList datasource
2692 (in mono/winforms/datagrid) for *days*, I've finally gotten things
2693 to work in a similar fashion.
2695 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2697 * ListBox.cs: Don't call Sort () when setting
2698 the Sorted property to false (avoid an unnecessary sort).
2700 2006-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2702 * ListControl.cs: DataSource should throw an ArgumentException
2703 instead of a normal exception when the argument is not of the
2706 2006-07-20 Mike Kestner <mkestner@novell.com>
2708 * Control.cs: add InternalPreProcessMessage to allow us to steal
2709 key events before MWF gets its paws on them. Adapted from a
2711 * ToolBar.cs: add GotLostFocus handing for flat toolbars, with
2712 up/down/left/right navigation. Override the new internal control
2713 method to steal the events since they never make it to WndProc.
2714 * ToolBarButton.cs: don't worry about pushed when setting hilight
2715 since the drawing code prefers pushed to hilight. Invalidate on
2716 Hilight changes. Fixes #78547 and #78525.
2718 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
2720 * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
2721 the canvas size. Fixes #78868
2723 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
2725 * Splitter.cs: Track requested split position until first layout
2726 is performed. Fixes #78871
2728 2006-07-20 Peter Dennis Bartok <pbartok@novell.com>
2730 * Application.cs: Removed code that forces 1.x for the version
2731 number if the version started with 0. Not sure why that code was
2732 there and I couldn't find any bugs that indicated we needed it.
2735 2006-07-20 Alexander Olk <alex.olk@googlemail.com>
2737 * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
2738 ResetDefaults(), just write some output to the console until it's
2739 implemented. Fixes bug #78907 for now. Eliminated two warnings.
2741 2006-07-19 Jonathan Chambers <joncham@gmail.com>
2743 * PropertyGridView.cs: set StartPosition of drop down forms
2744 so they appear in correct initial spot. Fixes #78190.
2746 2006-07-19 Mike Kestner <mkestner@novell.com>
2748 * ThemeWin32Classic.cs: use parent background color when drawing
2749 flat toolbars. Restructure the conditionals to make sure non-flat
2750 non-Divider toolbars are filled too. Fixes #78837.
2752 2006-07-19 Mike Kestner <mkestner@novell.com>
2754 * ListBox.cs: Sort on collection changes even if the handle
2755 isn't created yet. Fixes #78813.
2757 2006-07-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2759 * ListControl.cs: DisplayMember should never be null,
2760 and now we assign String.Empty when null is passed to it (this
2763 2006-07-17 Mike Kestner <mkestner@novell.com>
2765 * ListViewItem.cs: restructure Font and subitem Font handling
2766 to hold a specific font and refer back to owner on null.
2769 2006-07-17 Mike Kestner <mkestner@novell.com>
2771 * ToolBar.cs: bandaid for side-effect of previous patch which was
2772 discarding explicit heights for non-AutoSize toolbars. Need to
2773 extend my format tester to deal with AutoSize=false. Fixes #78864.
2775 2006-07-15 Jackson Harper <jackson@ximian.com>
2777 * LabelEditTextBox.cs:
2778 * TreeView.cs: Use a new LabelEdit class for node editing, this
2779 class automatically 'closes' itself when it gets the enter key or
2781 - Use the client rectangle when setting the trees scrollbars, so
2782 border style is taken into account.
2784 2006-07-14 Jackson Harper <jackson@ximian.com>
2787 * TreeView.cs: Make the editing work similar to MSs, firing the
2788 events correctly and ending edits correctly.
2790 2006-07-14 Mike Kestner <mkestner@novell.com>
2793 * ToolBar.cs: layout restructuring and redraw enhancements to support
2794 formatting changes gracefully, like setting TextAlign, ImageList,
2795 ButtonSize, and Appearance. Handles explicit button sizing quirks
2796 of the MS controls. Things like flat toolbars ignoring button size
2797 but becoming constant sized at the largest button's size. Normal
2798 toolbars with an image set cannot be shrunk smaller than the image,
2799 but text can be clipped/ignored.
2800 * ThemeWin32Classic.cs: don't draw text if text_rect height or width
2801 is zero. Seems like DrawString should be smart enough to not put
2802 anything on screen though. Also trim labels and ellipsize at the char
2804 Fixes #78711 and #78483.
2806 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
2808 * FolderBrowserDialog.cs: Disable "New Folder" button and
2809 "New Folder" contextmenu menuitem if a folder like "My Computer"
2812 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
2814 * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
2815 * FolderBrowserDialog.cs:
2816 - Use MWFConfig to store and read size and position settings
2817 - Added code to create a new folder (button or context menu).
2818 Use TreeView labeledit to change the name of the new folder.
2820 2006-07-14 Jackson Harper <jackson@ximian.com>
2822 * TreeView.cs: Raise the OnAfterLabelEdit event correctly. Also,
2823 when the tree is scrolled we end editing.
2825 2006-07-14 Alexander Olk <alex.olk@googlemail.com>
2827 * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
2830 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
2832 WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
2833 BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
2834 BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
2835 CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
2836 ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
2837 ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
2838 ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
2839 FormClosedEventHandler.cs, FormClosingEventArgs.cs,
2840 FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
2841 ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
2842 ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
2843 ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
2844 ListViewItemSelectionChangedEventHandler.cs,
2845 ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
2846 ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
2847 MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
2848 PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
2849 PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
2850 RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
2851 SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
2852 SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs,
2853 TabControlCancelEventHandler.cs, TabControlEventArgs.cs,
2854 TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
2855 TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
2856 ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
2857 ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
2858 TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
2859 TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
2860 TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
2861 WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
2862 WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
2863 WebBrowserNavigatingEventHandler.cs,
2864 WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
2866 2006-07-14 Jonathan Pobst <monkey@ipobst.com>
2868 MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
2869 RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
2870 SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
2871 TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
2872 ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
2873 ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
2874 ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
2875 ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
2876 ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
2877 ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
2878 ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
2879 ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
2880 TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
2881 WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
2882 ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
2883 AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
2884 BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
2885 ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
2886 FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
2887 HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
2888 ListViewItemStates.cs, MaskFormat.cs: Added
2890 2006-07-13 Jonathan Chambers <joncham@gmail.com>
2892 * PropertyGridView.cs: Fix keyboard navigation of drop down.
2893 Patch from eno for bug 78558.
2895 2006-07-13 Jackson Harper <jackson@ximian.com>
2897 * TreeView.cs: When an edit is finished make sure that the
2898 selected node is visible.
2899 - When setting the top/bottom use the scrollbars is_visible, so
2900 everything will be set correctly even if the tree isn't visible
2903 2006-07-13 Jackson Harper <jackson@ximian.com>
2905 * ComboBox.cs: Revert the item->index part of my previous patch.
2906 * TreeView.cs: Use LostFocus instead of Leave for detecting when
2907 the edit box has lost focus (duh).
2908 - Just make the edit box not visible when we get return, that will
2909 take the focus, which will call EndEdit
2910 * TreeNode.cs When we start editing, notify the treeview.
2912 2006-07-12 Jackson Harper <jackson@ximian.com>
2914 * ComboBox.cs: Clear out old items before setting the item list.
2915 This prevents databound controls from having their items added
2917 - Switch the combobox to use indices whereever possible instead of
2918 using Item's. This allows usto navigate through lists that have
2919 more then one item with the same string value (ie a, b, b, a).
2920 - Scroll the listboxes scrollbar when a non visible item is
2922 - Allow keypress to cycle through all the possible values. For
2923 example if you have b1, b2, b3 and hold down the B key all the
2924 values will be cycled through.
2926 2006-07-12 Jackson Harper <jackson@ximian.com>
2929 * ListView.cs: Don't need to override SETFOCUS anymore, we can do
2930 this using the internal methods.
2931 * Control.cs: Add OnGotFocusInternal. A new method that allows
2932 controls to "override" OnGotFocus and change focus behavior if
2934 - Same thing for LostFocus
2935 * ComboBox.cs: Pass off focus to the text control properly.
2937 2006-07-12 Alexander Olk <alex.olk@googlemail.com>
2939 * FileDialog.cs: Added GetFoldersOnly to MWFVFS
2940 * FolderBrowserDialog.cs: Almost a complete rewrite.
2941 - Better support for Environment.Specialfolders
2942 - Added support for MWFVFS
2943 - Made setting SelectedPath work
2945 2006-07-12 Jackson Harper <jackson@ximian.com>
2947 * Control.cs: Optimze getting all the controls.
2949 2006-07-11 Jackson Harper <jackson@ximian.com>
2951 * ContainerControl.cs: Override SETFOCUS in the container control,
2952 so that it is not selected on mouse click.
2954 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
2956 * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel.
2957 Hopefully we will have a better way once all of focus is complete.
2959 2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
2961 * ThemeWin32Classic.cs: Commented out some debug code and fixed
2962 a compile error with csc.
2964 2006-07-11 Jackson Harper <jackson@ximian.com>
2966 * Control.cs: When hiding a control only select the next control
2967 if the current control was focused.
2968 - Don't handle enter/leave when setting/killing focus, this is
2969 done by the container control.
2970 - Remove is_selected, it's not needed anymore.
2971 - Add utility methods for selecting a child control, and for
2972 firing the Enter/Leave events.
2973 * ContainerControl.cs: When a control is activated fire the
2975 - Don't wrap when processing the tab key, so that focus can be
2976 moved outside of the container.
2977 - Use the correct active control
2979 2006-07-11 Jackson Harper <jackson@ximian.com>
2981 * ComboBox.cs: Remove some debug code that was blinding me.
2982 * UpDownBase.cs: These controls actually aren't implicit, they are
2983 visible to the user.
2985 2006-07-10 Chris Toshok <toshok@ximian.com>
2987 * DataGrid.cs: move back to the is_adding boolean field. god i
2988 hate this is_editing/is_adding/is_changing stuff.
2990 2006-07-10 Chris Toshok <toshok@ximian.com>
2992 * DataGridTableStyle.cs: just check if the property type is bool.
2993 if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
2994 Don't use CanRenderType.
2996 * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
2997 if our text == NullText. Remove CanRenderType.
2999 * DataGridBoolColumn.cs: nuke CanRenderType.
3001 * DataGrid.cs: reenable some code to end the current edit inside
3002 of set_CurrentCell. This fixes the other 1.1.16 regression.
3003 Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
3004 Also, remove the visible_row_count arg from CalcRowHeaders, since
3005 we don't need to worry about the actual height of the area.
3007 2006-07-10 Chris Toshok <toshok@ximian.com>
3009 * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
3012 * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
3013 the real sense of the IsInEditOrNavigateMode property (true =
3014 navigate, false = edit). Also, update OnKeyPress to reflect this.
3016 * DataGridTableStyle.cs (CreateColumnsForTable): even if the
3017 column style exists, we still need to set its property descriptor
3018 to match up with our list manager.
3020 2006-07-10 Chris Toshok <toshok@ximian.com>
3022 * ThemeWin32Classic.cs: implement the new row/header painting
3023 approach. The parent row painting will likely go away and
3024 replaced with label controls, but the rest seems to work ok (and
3027 * Theme.cs: change the way we draw datagrid rows. we don't draw
3028 the row headers as a block now. Instead we draw them in the
3029 normal draw-row loop. Add some calls for drawing parent rows and
3032 * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
3033 a default table style. Set the defaults from ThemeEngine.Current,
3034 not SystemColors. Fix lots of misc issues with property setters.
3036 * DataGrid.cs: move loads of style information out of this class
3037 as it's being duplicated with DataGridTableStyle. keep track of a
3038 special DataGridTableStyle for the properties we used to mirror
3039 here. Switch all the style properties to access this table style
3040 instead of instance fields of this class. Also add a internal
3041 class to represent parent rows (more needs to be stored here, like
3042 the selection state from the parent table, as well as the
3043 expansion state.) Also, for datasources with relations, do the
3044 right thing for collapse/expand, and add support for the
3045 navigation/parent row buttons.
3047 Lastly, fix the crash in the 1.1.16 build.
3049 * GridTableStylesCollection.cs: make the explicit interface
3050 implementations call the class's methods as opposed to duplicating
3053 * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
3054 0 so the text doesn't jump around when we move the cursor.
3056 2006-07-10 Jackson Harper <jackson@ximian.com>
3059 * ListBox.cs: Match MS's ToString (this makes debugging focus
3060 stuff infinitely easier).
3062 2006-07-10 Jackson Harper <jackson@ximian.com>
3064 * Control.cs (SelectNextControl): When checking the control's
3065 parent use this instead of ctrl.parent so that null can be passed
3066 to SelectNextControl. (I have unit tests for this).
3067 - Remove unused var.
3069 2006-07-10 Chris Toshok <toshok@ximian.com>
3071 * CurrencyManager.cs: correct one regression, the removal of the
3072 finalType field. Also, add a MonoTODO on CanAddRows, implement
3073 Refresh() correctly, and fix some event emission in
3076 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
3078 * FileDialog.cs: Don't use brackets for new folders if they exist
3079 under *nix. Instead use -(number of existing folders +1).
3081 2006-07-07 Alexander Olk <alex.olk@googlemail.com>
3084 - Fixed really nasty bug #78771
3085 - Don't block the whole GUI when reading directories with a lot of
3086 entries. Use an other thread instead and call BeginInvoke to
3087 update the ListView in MWFFileView
3089 2006-07-07 Chris Toshok <toshok@ximian.com>
3091 * Control.cs (Dispose): release any Capture when disposing.
3093 2006-07-07 Chris Toshok <toshok@ximian.com>
3095 * LinkLabel.cs (Select): if we chain up to the parent, set
3096 focused_index to -1 so we'll search for the first available link
3097 the next time the user tabs into us. Also, if the direction is
3098 backward and focused_index == -1, start the search from the last
3101 2006-07-07 Chris Toshok <toshok@ximian.com>
3103 * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
3104 is beyond the end of the text, don't do anything.
3105 (CreateLinkPieces): set our ControlStyles.Selectable based on
3106 whether or not we have any links.
3107 (Link.Invalidate): use a loop instead of foreach.
3108 (Link.set_Start): null out owner.sorted_links so it'll be
3109 recreated by CreateLinkPieces.
3111 2006-07-06 Chris Toshok <toshok@ximian.com>
3113 * LinkLabel.cs: revert the SetStyle change.
3115 2006-07-06 Chris Toshok <toshok@ximian.com>
3117 * LinkLabel.cs (.ctor): SetStyle Selectable to true.
3118 (OnEnableChanged): s/Refresh/Invalidate
3119 (OnGotFocus): if we have a focused index already, refocus it (so
3120 if we mouse out/in to the window it'll focus the right link).
3121 (OnKeyDown): move the tab handling out of here.
3122 (OnLostFocus): don't set focused_index to -1, so we can refocus it
3124 (OnMouseDown): don't Capture here - Control handles it. Also,
3125 focus the active link.
3126 (OnMouseUp): don't deal with Capture.
3127 (OnPaintBackgroundInternal): remove.
3128 (OnTextAlignChanged): CreateLinkPieces before calling the
3129 superclass's method.
3130 (OnTextChanged): call CreateLinkPieces before calling superclass's
3132 (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
3134 (Select): implement this, moving the selection between different
3135 links, and call parent.SelectNextControl if we don't have another
3136 link to focus in the given direction.
3137 (CreateLinkPieces): call Invalidate instead of Refresh.
3139 2006-07-06 Chris Toshok <toshok@ximian.com>
3141 * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
3142 new LinkLabel internals.
3144 * LinkLabel.cs: fairly major rewrite. get rid of all the loops
3145 over pieces looking for active/focused/etc links. also, deal with
3146 runs of text (and links) with embedded \n's in them, and use
3147 MeasureCharacterRanges instead of MeasureString to figure out the
3148 regions text occupies. Lastly, do the usual s/Refresh/Invalidate
3151 2006-07-04 Jackson Harper <jackson@ximian.com>
3153 * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
3154 XKB or key auto repeat, do it manually. Without key auto repeat,
3155 when a key is held down we get key press, key release, key press,
3156 key release, ... with auto repeat we get key press, key press, key
3157 press ..., and then a release when the key is actually released.
3159 2006-07-03 Jackson Harper <jackson@ximian.com>
3162 * ThemeWin32Classic.cs: Tabs do not obey normal background color
3163 rules, they are always control color regardless of the background
3166 2006-07-02 Alexander Olk <alex.olk@googlemail.com>
3168 * FileDialog.cs: Added internal class MWFConfig.
3169 Removed Registry support and replaced it with support for the new
3170 MWFConfig class. See MWFConfig comments for more information.
3172 2006-06-30 Alexander Olk <alex.olk@googlemail.com>
3174 * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
3175 rectangle. Added some patches from eno from bug #78490 and fixed
3176 the arrow position for small up and down CPDrawScrollButtons.
3178 2006-06-30 Jackson Harper <jackson@ximian.com>
3180 * InternalWindowManager.cs: Remove some debug code.
3181 * Form.cs: When an MdiParent is set to null, the window is
3182 "detatched" and becomes a normal window.
3183 * MdiClient.cs: Don't bring the new child form to the front until
3184 it is activated (setting it as active does this), this makes the
3185 previously active forms titlebar get redrawn as inactive.
3187 2006-06-29 Peter Dennis Bartok <pbartok@novell.com>
3189 * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
3192 2006-06-29 Mike Kestner <mkestner@novell.com>
3194 * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
3195 arrow in keynav state. Fixes #78682.
3197 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
3199 * PrintDialog.cs: Reorder, relayout, remove extra code, set tab
3200 order (fixes #78393)
3202 2006-06-28 Jonathan Pobst <monkey@ipobst.com>
3204 * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs,
3205 ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
3206 ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
3207 FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
3208 GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
3209 ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs,
3210 PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
3211 Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
3212 TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
3213 ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
3214 enumerations (FlagsAttribute, SerializableAttribute, added/removed
3217 2006-06-28 Mike Kestner <mkestner@novell.com>
3219 * ComboBox.cs: implement scroll wheel support. Fixes #78360.
3221 2006-06-28 Atsushi Enomoto <atsushi@ximian.com>
3224 PropertyGridTextBox.cs : explicitly set BackColor to differentiate
3225 item lines from other area (It also makes BackColor consistent and
3226 compatible with .NET). Fixed bug #78564.
3228 2006-06-28 Jonathan Chambers <jonathan.chambers@ansys.com>
3230 * PropertyGrid.cs: refresh toolbar when PropertySort is set.
3231 Patch from Eno for #78555.
3233 2006-06-27 Chris Toshok <toshok@ximian.com>
3235 * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
3237 * DataGridColumnStyle.cs: same.
3239 * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
3241 * DataGridDrawingLogic.cs: nuke.
3243 2006-06-27 Chris Toshok <toshok@ximian.com>
3245 * DataGridTableStyle.cs: clean up the constructors, and build the
3246 list of child relations for this table. I have no idea if this is
3247 where we should be doing it (it probably isn't), but since we're
3248 already iterating over the properties..
3250 * DataGrid.cs: add row resizing. for now we add a DataGridRow
3251 struct and array for keeping track of row information, similar to
3252 what's shown in a hack on
3253 http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
3255 * Theme.cs: be consistent about the naming of DataGrid methods,
3256 prefering ColumnWidths and RowHeights over columnsWidths and
3259 * ThemeWin32Classic.cs: same, and also add support for variable
3260 sized rows (and the +/- expansion icons for related rows).
3262 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
3264 * TextBoxBase.cs: Applied Eno's patch from #78660
3266 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
3268 * Form.cs (ScaleCore): We don't want to scale our form if it's
3269 state is minimized or maximized, but we still need to scale our
3270 child windows. Also, added try/finally block to ensure layout
3271 gets reset (Fixes #78697)
3273 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
3275 * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
3277 2006-06-27 Peter Dennis Bartok <pbartok@novell.com>
3279 * Form.cs: Fixed c+p error and added check to resize form if minimum
3280 size is bigger than current size (Fixes #78709)
3282 2006-06-26 Peter Dennis Bartok <pbartok@novell.com>
3284 * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
3286 2006-06-26 Mike Kestner <mkestner@novell.com>
3288 * ComboBox.cs: only do Keypress handling in the combo when there
3289 are items in the collection. Fixes #78710.
3291 2006-06-26 Chris Toshok <toshok@ximian.com>
3293 * Binding.cs: make this work bi-directionally. also, clear up
3294 other mixups between Push/Pull Data (e.g. we're supposed to pull
3295 data when validating).
3297 * BindingManagerBase.cs: trim some fully qualified collection
3300 * PropertyManager.cs (get_IsSuspended): oops, fix this check.
3302 2006-06-23 Chris Toshok <toshok@ximian.com>
3304 * PropertyManager.cs: It appears (according to the unit tests)
3305 that PropertyManager doesn't use
3306 PropertyDescriptor.AddValueChanged to track propery value changes
3307 in its datasource, but uses the same scheme as Binding, where it
3308 looks for a <Property>Changed event and binds to it.
3310 Also, according to the docs, IsSuspended always returns false for
3311 a property manager with a non-null datasource.
3313 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
3315 * Form.cs: (ShowDialog): If we're returning a forced cancel we still
3316 need to update the actual DialogResult. (Fixes #78613)
3318 2006-06-22 Peter Dennis Bartok <pbartok@novell.com>
3320 * Form.cs (ShowDialog): Release any captures before running the
3321 new message pump (fixes #78680)
3323 2006-06-22 Mike Kestner <mkestner@novell.com>
3325 * ListView.cs: Layout column widths properly in details mode even
3326 if HeaderStyle.None is set. Fixes #78691.
3328 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
3330 * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
3332 2006-06-21 Peter Dennis Bartok <pbartok@novell.com>
3334 * Control.cs (ContainsFocus): Using new driver method to get focused
3335 window, instead of trying to use internal tracking var, which can
3336 recursion issues (Fixes #78685)
3337 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
3338 XplatUIWin32.cs: Added GetFocus method to return focused window
3340 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3342 * ColorDialog.cs: when the mouse button is pressed inside the color
3343 matrix, don't let the cursor move out of it until the button is
3344 released, which is the behavior on windows. Changed 'colours' by
3345 'colors' to use the same word consistently.
3347 2006-06-21 Chris Toshok <toshok@ximian.com>
3349 * DataGrid.cs: add in some basic navigation stuff (navigating to a
3350 child relation and back, using a stack). Also, remove
3351 GetDataSource and the code that calls it - it's not needed. Also,
3352 track CurrencyManager.ListName's removal.
3354 2006-06-21 Chris Toshok <toshok@ximian.com>
3356 * CurrencyManager.cs: push some of the original type checking from
3357 BindingContext.CreateBindingManager to here, and remove some of
3358 the finalType stuff. Need more tests to make sure I've got the
3359 ListName part right, and we might need more in SetDataSource.
3361 * PropertyManager.cs: add a ctor that takes just the datasource,
3362 and no property name. Make SetDataSource work with a null
3363 property_name, and make Current return the data_source if the
3364 property descriptor is null. this makes 'string foo = "hi";
3365 BindingContext[foo].Current' return "hi" as it should.
3367 * RelatedCurrencyManager.cs: make this code more generic - there's
3368 no reason the parent manager has to be CurrencyManager, and
3369 there's no reason to pass the DataRelation. It suffices to use a
3370 BindingManagerBase and PropetyDescriptor.
3372 * RelatedPropertyManager.cs: make a similar change here.
3374 * BindingContext.cs: make CreateBindingManager the beautiful, tiny
3375 flower I knew it could be.
3377 2006-06-20 Chris Toshok <toshok@ximian.com>
3379 * PropertyManager.cs: the PropertyChangedHandler is invoked when
3380 data in the source has changed and we need to update the control,
3381 so s/PullData/PushData.
3383 * CurrencyManager.cs: Refresh is meant to update the control from
3384 data in the datasource. So, s/PullData/PushData.
3386 * BindingContext.cs: add more ugliness (we weren't handling the
3387 case where data_source = DataTable and data_member = column_name).
3389 * Binding.cs: fix PushData/PullData mixup. Both are interpreted
3390 from the perspective of the datasource. PullData pulls from the
3391 control, PushData pushes to the control.
3393 2006-06-20 Chris Toshok <toshok@ximian.com>
3395 * BindingContext.cs: rewrite the CreateBindingManager code to
3396 handle navigation paths more or less properly. This could
3397 definitely stand some more work, in particular to push the
3398 recursion up to the toplevel. But that relies on fixes in other
3399 places (System.Data comes to mind).
3401 Also, move to a flat hashtable (and encode the twolevel nature of
3402 the dictionary into the hash key). This lets us implement the
3403 IEnumerable.GetEnumerator method.
3405 * RelatedCurrencyManager.cs: new class. Update our view based on
3406 our relation and our parent CurrencyManager's position.
3408 * CurrencyManager.cs: split out some logic from the ctor into
3409 SetView, so it can be called from the new RelatedCurrencyManager
3412 * RelatedPropertyManager.cs: new class. Update our datasource
3413 based on the position of our parent CurrencyManager.
3415 * PropertyManager.cs: split out some logic from the ctor into
3416 SetDataSource, so it can be called from the new RelatedDataSource
3417 subclass. Also, make the Current getter return the value
3418 of the PropertyDescriptor, not the data_source.
3420 * Binding.cs: no need to duplicate the string splitting code here.
3422 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
3425 - set_Enabled: OnEnabledChanged is not called if the inherited state
3426 of the control is not altered, even though we might be changing the
3427 internal state of the control (#78458)
3428 - set_Enabled: (Re)Moved the enabling/disabling of the window to
3429 OnEnabledChanged, to allow easy altering of any child window state
3430 - OnEnabledChanged: Added code to enable/disable driver window state
3431 - OnParentEnabledChanged: Instead of firing the event, call
3432 OnEnabledChanged, which will fire the event and also a) set driver
3433 window state and pass the enabled state to any grandchildren (#78458)
3435 2006-06-19 Jackson Harper <jackson@ximian.com>
3437 * InternalWindowManager.cs: We don't set the cursor explicitly
3438 thats done via the response to NCHITTESTs.
3439 - Don't need to adjust for titlebar heights anymore, the
3440 coordinates are coming in the correct coordinates now (see peters
3444 2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
3446 * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
3447 being translated relative to whole window, instead of client window.
3448 That caused broken offsets on mouseclick (and caused gas for our
3449 InternalWindowManager)
3451 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
3454 - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
3455 - Undo(): Added replay of cursor move on DeleteChars action; added
3456 calling Undo() again if a recorded cursor move is invalid (to
3457 ensure that some action is performed on Undo)
3458 * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
3460 2006-06-16 Jackson Harper <jackson@ximian.com>
3462 * MdiClient.cs: Instead of just sizing maximized windows when
3463 there is a resize we also have to adjust the Y of minimized
3464 windows, so they stay pinned to the bottom of the mdi container.
3465 - Eliminate separate tracking of the active control, we can just
3466 get this from the controls collection.
3467 - Paint the decorations for the newly activated titlebar so we get
3469 * InternalWindowManager.cs:
3470 * ThemeWin32Classic.cs: Minimized windows get all three buttons
3471 even if they are a tool window.
3473 2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
3475 * TextControl.cs (Undo): Handle non-existent cursor locations in the
3476 undo buffer, these can happen when text was deleted and the cursor
3477 was recorded first. Since we will also have a recorded cursor
3478 after the delete this is not an issue. (Fixes #78651)
3480 2006-06-14 Peter Dennis Bartok <pbartok@novell.com>
3482 * AccessibleObject.cs: Remove dependence on Control.is_selected;
3483 instead properly track control states internally (allows us to
3484 remove is_selected from Control)
3486 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3488 * ImageListStreamer.cs: correctly generate the 1bpp mask for images
3489 whose width is not a multiple of 8.
3491 2006-06-13 Jackson Harper <jackson@ximian.com>
3493 * MdiClient.cs: Only maximize the next child if the current one
3496 2006-06-13 Chris Toshok <toshok@ximian.com>
3498 * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
3499 modified. Also, guard against grid or grid_drawing being null in
3502 * DataGrid.cs: Reformat tons of getters/setters. In the
3503 DataMember setter, just call SetNewDataSource instead of
3504 duplicating some of its functionality. In SetNewDataSource, don't
3505 check ListManager for null, since the property getter creates the
3508 * DataGridTableStyle.cs: don't set TableStyle or call
3509 SetDataGridInternal on the column here, it's done in
3510 GridColumnStylesCollection.Add.
3512 * GridColumnStylesCollection.cs: fix all the explicit interface
3513 implementations to just call our methods. Nuke AddInternal() and
3514 move the body of it to Add(). Also, add a call to
3515 column.SetDataGridInternal to Add().
3517 * DataGridTextBoxColumn.cs (.ctors): call this() instead of
3518 base()+duplicate code. Also, use the Format property instead of
3519 format to generate an Invalidate ala MS. Lastly, create the
3520 textbox here, unconditionally.
3521 (set_Format): call Invalidate.
3522 (get_TextBox): no need to call EnsureTextBox.
3523 (Commit): remove the message box.
3524 (Edit) remove the call to EnsureTextBox.
3525 (EndEdit): call HideEditBox instead of ReleaseHostedControl.
3526 (EnterNullValue): no need to check textbox for null.
3527 (HideEditBox): no need to check textbox for null.
3528 (SetDataGridInColumn): add the textbox to the grid's controls.
3529 (EnsureTextBox): nuke.
3531 2006-06-13 Jackson Harper <jackson@ximian.com>
3533 * MdiWindowManager.cs: Hook up to the maximized menus paint event
3534 and redraw the buttons when needed. Unhook when the window is
3536 * MainMenu.cs: Add an internal Paint event, the mdi window manager
3537 needs this so that it can redraw its buttons when the menu is
3539 * InternalWindowManager.cs:
3540 * Form.cs: The method order has changed for DrawMaximizedButtons,
3541 so that it can be a PaintEventHandler.
3543 2006-06-13 Jackson Harper <jackson@ximian.com>
3545 * MdiClient.cs: When we close a maximized mdi window, the next mdi
3546 window is activated and maximized, even if it wasn't before.
3547 - When a new window is activated repaint the decorations of the
3548 old one, so that it no longer has the Active "look" (the blue
3550 * InternalWindowManager.cs: Open up CreateButtons to base classes
3551 so they can recreate the buttons on state changes.
3552 - If a window is maximized give it all three buttons
3553 * MdiWindowManager.cs: Create the titlebar buttons when the state
3554 is changed, this is needed because a toolwindow will not have all
3555 three buttons until it is maximized.
3557 2006-06-13 Atsushi Enomoto <atsushi@ximian.com>
3559 * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
3562 2006-06-12 Jackson Harper <jackson@ximian.com>
3564 * KeysConverter.cs: Make sure we handle the Ctrl special case
3565 if its the only key.
3567 2006-06-12 Jackson Harper <jackson@ximian.com>
3569 * Theme.cs: Add a method to get the size of a managed window
3571 * InternalWindowManager.cs: Remove the ButtonSize property, this
3572 should be retrieved from the theme.
3573 * MdiWindowManager.cs: Get the button size from the theme
3574 * ThemeWin32Classic.cs: Make the method to get the managed window
3575 titlebar button size public.
3576 - Handle the different button sizes of maximized toolwindows
3577 (should match any maximized window).
3578 - Get the titlebar height from the theme, not the WM (which gets
3581 2006-06-12 Jackson Harper <jackson@ximian.com>
3583 * InternalWindowManager.cs: Handle NC Double Clicks, passing the
3584 event down to the mdi window manager.
3585 - Expose some extra stuff to base classes
3586 - Make sure to end the Capture on an NC Mouse up, so that we can
3587 get double clicks properly, and the sizing doens't stick.
3588 - When doing PointToClient contain it in the workable desktop
3589 area, this prevents windows from changing size when the cursor is
3590 pulled outside of the working area while sizing.
3591 * MdiWindowManager.cs: When we get a double click maximize the
3593 - Reset the cursor after handling mode changes.
3595 2006-06-12 Peter Dennis Bartok <pbartok@novell.com>
3597 * XplatUIX11.cs (WorkingArea): Read the actual workarea for the
3598 current desktop, instead of just assuming a 0, 0 origin. This
3599 is needed for our internal window manager, to know the top
3600 margin of the desktop
3602 2006-06-12 Chris Toshok <toshok@ximian.com>
3604 * DataGrid.cs (set_CurrentCell): concede focus as we move around.
3605 we need this to get rid of the selected background in the bool
3607 (CancelEditing): move the ConcedeFocus call to above the Abort
3608 call. Also, set is_changing to false and invalidate the row
3609 header if we were changing before.
3610 (ProcessKeyPreviewInternal): remove, since noone outside this
3611 class calls it anymore. Roll the code into ProcessKeyPreview.
3612 (EndEdit): remove the internal version.
3613 (InvalidateCurrentRowHeader): make private.
3615 * DataGridBoolColumn.cs: simplify this class a bunch. remove the
3616 Keys.Escape handling (and with it the last call to
3617 DataGrid.EndEdit from outside the class.)
3620 2006-06-12 Chris Toshok <toshok@ximian.com>
3622 * DataGridTextBox.cs (.ctor): isedit defaults to false.
3623 (OnKeyPress): set isedit to true.
3624 (ProcessKeyMessage): remove Keys.Enter handling from here. it's
3625 already handled by the grid.
3627 * DataGrid.cs (set_CurrentCell): more work here. it's still not
3629 (set_DataSource): SetDataSource always returns true, so stop
3630 putting it in an if statement.
3631 (EndEdit): get rid of some {}'s
3632 (ProcessGridKey): return true in case Keys.Escape.
3633 (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
3634 (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
3635 PositionChanged, stopped connecting to CurrentChanged.
3636 (GetDataSource): simplify this a bunch.
3637 (SetDataSource): change return type from bool to void.
3638 (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
3639 to this, and make sure we don't set ListManager.Position inside
3641 (OnListManagerItemChanged): if we're passed an actual index,
3644 * CurrencyManager.cs (set_Position): don't call PullData here.
3646 2006-06-09 Jackson Harper <jackson@ximian.com>
3648 * TreeNode.cs: Recalculate the visible order before doing the
3649 Expand/Collapse Below calls, because those calls generate an
3651 - Reduce calls to the TreeView property, which is mildly expensive
3652 by using a local var.
3653 * Form.cs: Layout the MDI child windows when creating the parent
3655 - Don't use the internal constructor anymore
3656 * MdiClient.cs: use the parent form width/height (if available)
3657 when laying out the child windows, we do this because the
3658 mdiclient isn't docked yet when the initial layout is done.
3659 - Don't need an internal constructor anymore.
3661 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3663 * FileDialog.cs: handle access errors when trying to create a folder
3664 or changing to a directory. No need to initialize out parameters.
3666 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
3668 * FileDialog.cs: Append a number when creating a new folder if the
3669 folder already exists (use parenthesis instead of square brackets)
3671 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
3674 - Disabled registry support for windows and added better registry
3675 error checking for other systems (need to investigate why it
3676 works perfectly on my system)
3677 - If a folder already exist show an error MessageBox instead of
3678 trying to create an indexed name.
3679 - Fixed a non intentional typo.
3681 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3683 * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
3685 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
3687 * FileDialog.cs: When creating a new folder don't crash if the
3688 folder already exists.
3690 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
3692 * FileDialog.cs: Allmost a complete rewrite.
3693 - added a "virtual" file system that handles the differences
3694 between unix and windows file systems (especially the directory
3695 structure). Moved most of the directory and file handling code
3697 Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
3698 UnixFileSystem and FSEntry.
3699 - Recently used folder/directory, size, location and used file names
3700 (file name ComboBox) are now stored in the registry and get read
3701 before the dialog shows up (fixes part 6 of bug #78446).
3702 - Creation of new folders/directories is now possible (context menu
3703 or ToolBar). Added TextEntryDialog for this that fills in the gap
3704 until ListView.LabelEdit works.
3705 - Fixed cursor handling (bug #78527) and focus handling for
3707 - Various "Search in" ComboBox enhancements. The content of the
3708 dropdown listbox now almost matches ms.
3709 - Changed the behaviour when the user switches to SpecialFolder
3710 Recent to show the ListView in View.Details.
3711 - Beside using the ToolBar to change the View property of the
3712 file ListView it is now possible to use the context menu too.
3714 2006-06-08 Alexander Olk <alex.olk@googlemail.com>
3716 * ComboBox.cs: Don't create a new ObjectCollection when an item
3717 gets inserted. Just insert the item in the existing object_items
3720 2006-06-08 Jackson Harper <jackson@ximian.com>
3722 * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
3723 that the treeview and root node checks are done also, this fixes a
3724 regression i caused in the unit tests.
3726 2006-06-07 Wade Berrier <wberrier@novell.com>
3728 * RichTextBox.cs: More ISO8859-1 -> unicode
3730 2006-06-07 Mike Kestner <mkestner@novell.com>
3732 * ComboBox.cs : use items to hold highlight/selection so that
3733 collection insertions don't require synchronization.
3735 2006-06-07 Jackson Harper <jackson@ximian.com>
3737 * InternalWindowManager.cs: Simplify (and FIX) the window sizing
3738 routine. We now always keep the sized edge at the cursor instead
3739 of computing movement and adjusting rects. There is one buglet
3740 with this method though when the cursor is moved over area that
3741 the window can not expand too (such as the toolbars on the desktop).
3743 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3745 * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
3746 here. Fixes crash on startup in AlbumSurfer.
3748 2006-06-07 Peter Dennis Bartok <pbartok@novell.com>
3750 * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
3753 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3755 * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
3756 statement to avoid calling XNextEvent which will block if another thread
3757 took the event that we were expecting. Fixes bug #78605.
3759 2006-06-07 Mike Kestner <mkestner@novell.com>
3761 * ListView.cs : isolated checkbox clicking from the selection logic.
3762 Toggle check state on item doubleclicks. Really fixes #78454 part2.
3764 2006-06-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3766 * Form.cs: Check that the value passed to Form.DialogResult
3767 is a valid enum value.
3769 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3771 * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
3772 Computer'. Clicking it in the network view goes to 'My Computer'.
3773 Added CIFS filesystem type. Display the mount point of filesystems.
3774 Avoid duplicate mount points (happens for me with CIFS);
3776 2006-06-06 Jackson Harper <jackson@ximian.com>
3778 * InternalWindowManager.cs: Draw the maximized windows buttons
3781 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3783 * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
3784 all other dialogs. Fixes bug #78585.
3786 2006-06-06 Mike Kestner <mkestner@novell.com>
3788 * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
3789 Only invalidate checkbox on checkstate changes to avoid flicker.
3790 * ListBox.cs : avoid unselect/select when clicking selected item.
3791 avoid reselection flicker for already multiselected items.
3794 2006-06-06 Jackson Harper <jackson@ximian.com>
3796 * MdiWindowManager.cs: When the window is closed do an NCRecalc on
3797 the parent form so that the menu is removed if needed.
3799 2006-06-06 Mike Kestner <mkestner@novell.com>
3801 * ListBox.cs : add ScrollWindow call to UpdateTopItem. fix
3802 Prev/Next/PrevPage/NextPage/Home/End index calculation. Fixes #78559.
3804 2006-06-06 Mike Kestner <mkestner@novell.com>
3806 * CheckedListBox.cs : rebuild check collection on Add. Fixes #78426.
3809 2006-06-06 Jackson Harper <jackson@ximian.com>
3811 * Control.cs: Use the property (instead of the field) to get the
3812 default cursor so it is instantiated correctly.
3813 * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
3814 resizes so we need to manually repaint the window decorations here.
3815 - Set the titlebar button locations as soon as they are created,
3816 otherwise they are not set correctly on win32.
3818 2006-06-06 Chris Toshok <toshok@ximian.com>
3820 * CurrencyManager.cs (set_Position): call PullData before
3822 (AddNew): after calling IBindingList.AddNew, update our
3823 listposition, and call OnCurrentChanged/OnPositionChanged (without
3825 (OnCurrentChanged): remove the call to PullData from here.
3826 (OnItemChanged): remove the call to PushData from here.
3827 (OnPositionChanged): change the test from == null to != null to
3828 match the other methods.
3829 (ListChangedHandler): the grossest part of the patch. Implement
3830 this such that it passes the unit tests in CurrencyManagerTest and
3831 the output more or less matches that of MS's implementation.
3833 2006-06-06 Mike Kestner <mkestner@novell.com>
3835 * ListView.cs : only update check state on single click.
3836 * ThemeWin32Classic.cs : fix focus drawing for details view without
3837 fullrowselect. Fixes #78454.
3838 * XplatUIX11.cs : fix for double click emission.
3840 2006-06-05 Jonathan Chambers <jonathan.chambers@ansys.com>
3842 * PropertyGridView.cs : Applied Atsushi's patch to fix
3843 font dialog bug (#78197).
3845 2006-06-05 Jackson Harper <jackson@ximian.com>
3847 * TreeNode.cs: Compute the next node for expanding/collapsing
3848 correctly. We now factor in nodes without a NextNode
3849 correctly. (Fixes somes cases in nunit-gui).
3850 * InternalWindowManager.cs: Set the bounds when updating the
3851 virtual position of a tool window.
3853 2006-06-05 Chris Toshok <toshok@ximian.com>
3855 * DataGrid.cs: rename cached_currencymgr to list_manager.
3856 (set_CurrentCell): move SetCurrentCell code here, and clean it up
3858 (CurrentRow, CurrentColumn): single accessors so we can make the
3859 cursor movement code a lot easier to understand.
3860 (CurrentRowIndex): implement this in terms of CurrentRow.
3861 (BeginEdit): clean this up a bit.
3862 (CancelEditing): sort out the is_editing/is_changing/is_adding
3864 (EndEdit): minor changes.
3865 (OnKeyDown): add a comment about a (most likely) unnecessary
3867 (OnMouseDown): cancel editing when we click on a row header. And
3868 use the CurrentRow setter, not CurrentCell.
3869 (ProcessDialogKey): directly call ProcessGridKey.
3870 (UpdateSelectionAfterCursorMove): factor out this common block of
3871 code (it's used everywhere that we move the cursor by updating row
3873 (ProcessGridKey): pretty substantial overhaul. Use the
3874 CurrentRow/CurrentColumn properties to make the code a lot more
3875 readable. Only use the CurrentCell property when we have to
3876 modify both row and column at once. Tab behavior is still broken,
3877 and Delete is untested.
3878 (Select): if we have no selected rows, set selection_start to
3880 (EditCurrentCell): rename EditCell this. It was only ever invoked
3881 with CurrentCell as the arg, so drop the arg and rename it.
3883 * DataGridColumnStyle.cs: clean up the constructors a little, and
3884 drop CommonConstructor().
3886 * DataGridTextBox.cs (.ctor): set accepts_return to true so we
3887 actually get notified when the user hits it.
3888 (ProcessKeyMessage): *substantially* simplify this method.
3889 There's no reason (that I can see) for the textbox to be making
3890 calls into the datagrid at all. Remove all of them but the ones
3891 for Enter handling. those will take some more work.
3893 * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
3894 calling HideEditBox.
3895 (HideEditBox): if we have an active textbox, render it invisible
3896 without causing a re-layout of the datagrid.
3898 2006-06-05 Mike Kestner <mkestner@novell.com>
3900 * ListView.cs : fix NRE crasher when focuseditem is cleared by
3901 collection changes by resetting it to Items[0]. Fixes #78587.
3903 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3905 * MessageBox.cs: if the height of the text is larger than the icon_size,
3906 use that. Fixes bug #78575.
3908 2006-06-05 Jackson Harper <jackson@ximian.com>
3910 * TreeView.cs: Fix line drawing when scrolling. To do this each
3911 node is basically responsible for drawing its entire horizontal
3912 area. When drawing a node it draws its parent node lines if
3914 - Adjust the clip area to the viewport rectangle
3915 - Fix Left/Right key handling to match MS. (It expand/collapses
3916 and moves to parents/first child but does not move selection to
3918 - Fix SetTop to work with new bound calculation code
3919 - When scrollbars are no longer needed we need to reset scrolling
3920 vars and recalculate the visible order so the redraw is correct
3921 * TreeNode.cs: We can't expand/collapse nodes with no children.
3923 2006-06-03 John Luke <john.luke@gmail.com>
3925 * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
3926 so the colors work without dev packages
3928 2006-06-02 Peter Dennis Bartok <pbartok@novell.com>
3931 - Select: Implemented to just use activate. Seems to match MS
3932 behaviour closest. Documented to only do actual control walking
3933 based on it's parameters if in a container control so I moved
3935 - Removed selection check logic from our internal Select() method
3936 * ContainerControl.cs:
3937 - Select: Moved selection logic from Control here, since MS documents
3938 that containers obey the bool arguments. No longer calling base
3940 2006-06-02 Jackson Harper <jackson@ximian.com>
3942 * TreeView.cs: If the selected node isn't changed when we get
3943 focus update the previously selected node so that we see the
3946 2006-06-02 Mike Kestner <mkestner@novell.com>
3948 * ComboBox.cs: restructure grab and general mouse event handling.
3949 Make the composite control raise mouse events like it was a single
3950 control for leaves/enters/motion/up/down events. fix dropdown list
3951 coordinate mangling and refactor it into the scrollbar subclass to
3952 reduce code duplication. Fixes #78282 #78361 and #78457.
3954 2006-06-02 Mike Kestner <mkestner@novell.com>
3956 * ScrollBar.cs: remove Capture setting/clearing, as it happens
3957 automatically in the Control.WndProc.
3959 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3961 * FileDialog.cs: fix crash when running SharpChess, which sets the
3962 FilterIndex to 2 with only one Filter.
3964 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3966 * ToolBar.cs: add SizeSpecified property.
3967 * ToolBarButton.cs: when the ButtonSize is calculated by the container,
3968 try to figure out our real size, otherwise fallback to what the
3971 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
3973 * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
3974 * Control.cs (WndProc): MS always calls the DefWndProc to pass
3977 2006-06-01 Mike Kestner <mkestner@novell.com>
3979 * ListView.cs: revamp the focus management in ListView. It still
3980 causes churn of LostFocus/GotFocus emissions on clicks, but it's
3981 better than not handling focus at all. Will revisit when pdb feels
3982 the general focus handling is solid. Fixes #78526.
3984 2006-06-01 Jackson Harper <jackson@ximian.com>
3986 * TreeView.cs: Set the default border style in the constructor.
3987 - Move painting to use OnPaintInternal instead of capturing
3988 WM_PAINT, this is the correct way of doing things
3989 - UpdateBelow shouldn't invalidate the scrollbar area
3990 - Cap the top on update below in case the node was above the top
3991 of the viewport rectangle.
3992 - ExpandBelow and Collapse below need to obey Begin/End Update.
3993 * TreeNode.cs: Make is_expanded internal so the treenode
3994 collection can change it without firing the whole event chain.
3995 * TreeNodeCollection.cs: When clearing all the child nodes make
3996 sure to recalc the visible order.
3997 - Improve algo for remove the top node
3999 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
4001 * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
4002 SendMessage directly calling window procedures, which in turn might
4005 2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
4007 * Control.cs: Don't handle WM_SETFOCUS if the same window already
4008 has focus (works around X11 sending a FocusIn after our SetFocus)
4009 * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
4011 2006-06-01 Alexander Olk <alex.olk@googlemail.com>
4013 * Mime.cs: Fix for the NET_2_0 build.
4014 NameValueCollection needs StringComparer now.
4016 2006-05-31 Chris Toshok <toshok@ximian.com>
4018 * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
4019 return (via an out parameter) the starting X of the column.
4020 (UpdateVisibleColumn): track change to FromPixelToColumn.
4021 (HitTest): add a ColumnResize case here.
4022 (DrawResizeLine): new function, probably poorly named.
4024 * DataGrid.cs (.ctor): get rid of cached_currencymgr_events. We
4025 only need to keep one reference.
4026 (set_ListManager): same.
4027 (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
4028 Also, add support for HitTestType.ColumnResize.
4029 (OnMouseMove): add column resize behavior here, and change the
4030 cursor to the correct one as we move around the datagrid.
4031 (OnMouseUp): terminate the column resize if we're resizing.
4032 (ProcessGridKey): from the MS docs, Alt-0 enters the null value
4033 for the current cell.
4034 (ConnectListManagerEvents): use cached_currencymgr.
4035 (DisconnectListManagerEvents): fill this in, using
4037 (SetCurrentCell): remove cached_currencymgr_events handling.
4038 (SetDataMember): only call DisconnectListManagerEvents if
4039 cached_currencymgr is != null.
4040 (SetDataSource): same.
4041 (OnListManagerCurrentChanged): cached_currencymgr_events ->
4044 2006-05-31 Jackson Harper <jackson@ximian.com>
4046 * BindingManagerBase.cs: Remove somedebug code that creeped into
4048 * TreeNode.cs: We get the indent level dynamically right now, so
4049 don't track it as a member.
4050 * TreeNodeCollection.cs: Make sure all nodes added to the list
4051 have parents, treeviews/topnodes setup properly.
4052 - Don't attempt to track indent level.
4054 2006-05-30 Jackson Harper <jackson@ximian.com>
4056 * BindingContext.cs: Create the currency manager tables here.
4057 This allows us to more easily create null tables (when bad data
4058 members are used), and more easily create related currency
4060 * CurrencyManager.cs: All the table creation stuff is done by the
4061 binding context now.
4062 - Current should throw an exception if listposition is -1.
4063 - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
4066 2006-05-30 Mike Kestner <mkestner@novell.com>
4068 * ListView.cs: allow reexpansion of zero-width column headers.
4071 2006-05-28 Chris Toshok <toshok@ximian.com>
4073 * CurrencyManager.cs (get_Current): after the late binding
4074 listposition = -1 fix, we need to guard against it here and return
4075 null, otherwise we raise an exception (which is swallowed
4076 elsewhere, and breaks datagrid databinding.)
4078 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
4080 * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
4081 than WM_SYSKEY, don't throw if get something unexpected (#78507)
4083 2006-05-26 Jackson Harper <jackson@ximian.com>
4086 * ThemeWin32Classic.cs: For color comparisons just use the ARGB
4087 values, it's faster and it's all we care about (we don't care if
4088 the names aren't equal).
4089 * KeyboardLayouts.cs: Eliminate some dead code.
4091 * X11Keyboard.cs: Lazy init keyboard detection.
4092 - Cleanup access modifiers a little.
4094 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
4096 * XplatUIX11.cs: Once again, attempting to get layout just right.
4098 2006-05-26 Peter Dennis Bartok <pbartok@novell.com>
4100 * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
4101 the sizes of each link section, that will result in sizes that
4102 match DrawString's layout (Fixes #78391)
4104 2006-05-27 Alexander Olk <alex.olk@googlemail.com>
4106 * FileDialog.cs: If AddExtension property is true autocomplete the
4107 extensions in SaveFileDialog correctly. Fixes bug #78453.
4108 Set MyNetwork and MyComputer to "C:\" for windows. This should
4109 fix part 8 of bug #78446 for now.
4111 2006-05-26 Chris Toshok <toshok@ximian.com>
4113 * DataGrid.cs (ColumnStartedEditing): fill these in. for now just
4114 invalidate the current row header if we need to, but presumably
4115 we'll invalidate the row corrsponding to the bounds or
4117 (GridHScrolled): switch back to this method, as it's part of the
4119 (GridVScrolled): same.
4120 (OnMouseWheel): hack up something that more or less works. Call
4121 GridHScrolled/GridVScrolled directly, instead of duplicating much
4123 (EnsureCellVisibility): reinstate a bunch of this code, since we
4124 can't just set the scrollbar Value and expect to do all the work
4125 in the ValueChanged handler. Also, Call Update() after scrolling
4126 in one direction so the other XplatX11.ScrollWindow call has the
4127 proper stuff in the proper places.
4128 (EditCell): set is_editing to true before calling .Edit.
4130 * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
4131 don't bother comparing first.
4132 (OnKeyPress): call grid.ColumnStartedEditing before calling
4133 base.OnKeyPress. this will set is_changing and invalidate the row
4134 header if necessary.
4135 (ProcessKeyMessage): for WM_CHAR messages, call
4136 ProcessKeyEventArgs directly. swallow anything other than WM_CHAR
4139 * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
4140 it's done in the DataGrid.
4141 (NextState): call grid.ColumnStartedEditing, which takes care of
4142 invalidating the row header (and setting is_changing).
4144 * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
4145 here. it's done in the DataGrid.
4147 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4149 * Control.cs: allow changing the cursor when the mouse position is
4150 out of bounds but Capture is set.
4151 * LinkLabel.cs: handle the case when the mouse button is pressed on the
4152 linklabel but released somewhere else.
4154 2006-05-25 Jackson Harper <jackson@ximian.com>
4156 * TreeView.cs: When we get focus if there is no selected node make
4158 - Remove some uneeded setup code from Draw.
4159 * TreeNodeCollection.cs: If the tree doesn't have a top node when
4160 a new node is inserted make the new node the top.
4162 * Timer.cs: Use Utc time so that no local time zone stuff needs to
4163 be used (should be faster).
4165 2006-05-25 Chris Toshok <toshok@ximian.com>
4167 * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
4168 problem with the last commit.
4170 2006-05-25 Chris Toshok <toshok@ximian.com>
4172 * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
4173 need the invalidate call here, while scrolling right-to-left via
4174 the left arrow key (i.e. moving the editing cell while scrolling).
4176 * DataGrid.cs (.ctor): remove the initialization of
4177 ctrl_pressed/shift_pressed. We no longer track them using key
4178 up/down handlers, but by using Control.ModifierKeys. Also, switch
4179 to using ValueChanged handlers on the scrollbars instead of
4180 Scrolled event handlers. This simplifies a bunch of the scrolling
4182 (GridHValueChanged): rename from GridHScrolled, and change it to
4183 work with the new event args.
4184 (GridVValueChanged): same.
4185 (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
4186 (OnMouseWheel): actually scroll the datagrid. Don't change the
4188 (ProcessGridKey): correct all the keyboard navigation stuff I
4189 could find. Ctrl up/down/left/right/home/end work now.
4190 (EnsureCellVisibility): correct method name spelling. Also,
4191 simplify this a touch by not explicitly calling the
4192 ScrollToRow/ScrollToColumnInPixels methods. We just set the
4194 (OnKeyUpDG): no need for this method now.
4196 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4198 * LinkLabel.cs: display the OverrideCursor when hovering the label.
4201 2006-05-25 Chris Toshok <toshok@ximian.com>
4203 * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
4206 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
4208 * Application.cs: Moved setting of is_modal and closing to before
4209 we create the control, to allow the event handlers called as a
4210 result of creation affect closing. Also removed Gonzalo's previous
4211 change to setting DialogResult, the behaviour has been moved to
4214 - ShowDialog(): Removed explicit creation of the form, let RunLoop
4216 - ShowDialog(): If no dialog result is set, we need to return Cancel
4217 - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
4218 the close is cancelled
4220 2006-05-25 Jackson Harper <jackson@ximian.com>
4222 * StatusBar.cs: We only need to update the sizes of the other
4223 panels when we have auto size contents. Also we are only updating
4224 the contents of the panel, not the borders, so compensate for the
4225 border width (TODO: get this width from the theme somehow).
4226 * TreeView.cs: Scrollable is true by default
4227 - Use invalidate instead of refresh where needed
4228 - Factor the scrollable value into scrollbar updating
4229 - Update the scrollbars if the Scrollable property is altered
4230 - Update the selected node if its ImageIndex is changed
4231 - Handle null nodes in UpdateNode (mainly so we don't have to
4232 check if selected is null when updating it
4233 - Fix VisibleCount to use the ViewportRectangle so that scrollbars
4234 are factored into the visible count
4235 - Use VisibleCount for clarity in the code
4236 - When the font is changed we need to recurse through all the
4237 nodes and invalidate their sizes
4239 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4241 * Application.cs: set the DialogResult to fixed when the main form is
4242 hidden or destroyed while being modal.
4244 2006-05-25 Miguel de Icaza <miguel@novell.com>
4246 * Theme.cs: Use Tangoified messagebox icons.
4248 (GetSizedResourceImage): Also cope with width = 0 and do not
4249 trigger a warning in that case (0 means "give me your icon from
4250 the resouce, no special size needed).
4252 2006-05-25 Peter Dennis Bartok <pbartok@novell.com>
4254 * Application.cs: Leave runloop if the the main modal form is
4255 hidden (fixes #78484)
4257 2006-05-25 Atsushi Enomoto <atsushi@ximian.com>
4259 * BindingContext.cs : reject null datasource in Contains() and
4261 * CurrencyManager.cs : check data_member validity when data_source
4262 is dataset. When it is late binding, the initial position is -1.
4264 2006-05-24 Jackson Harper <jackson@ximian.com>
4266 * TreeNodeCollection.cs: Dont't recalculate the visible order on
4267 inserted nodes that aren't visible. This changes the
4268 max_visible_order which confuses scrollbar settings.
4269 - Use the enumerator to get the prev node instead of duplicating
4271 * TreeView.cs: Use new method for setting scrollbar values
4272 - Don't set the bounds every time the scrollbar is updated
4273 - When updating below the root node use an invalidate instead of a
4274 refresh to prevent the child controls (scrollbars) from being
4275 refreshed. (UpdateBelow still needs to be reworked anyways).
4276 - Reenable SetBottom now that visible orders are set correctly,
4277 added some debug code incase we ever get bad values there again.
4278 - Set the scrollbar max to 2 less then the max value, this
4279 compensates for the max value being one above the node count, and
4280 for scrollbars adding one extra "notch".
4281 - When drawing image nodes if there is an imagelist we draw the
4282 first image in the list if the supplied image index is out of the
4283 image list's bounds.
4285 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
4287 * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when
4288 we receive a size change from the WM (Fixes #78503)
4290 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
4292 * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip
4293 rectangle (Fixes #78501)
4295 2006-05-24 Peter Dennis Bartok <pbartok@novell.com>
4298 - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button
4300 - Fixed MouseMove to no longer switch pressed state unless the left
4301 mouse button is pressed. Atsushi provided the original patch (#78485)
4303 2006-05-24 Jackson Harper <jackson@ximian.com>
4305 * ScrollBar.cs: New internal methods that allow us to change a
4306 couple values on the scrollbar (the most common case is maximum
4307 and large change) without getting multiple invalidates.
4309 2006-05-24 Chris Toshok <toshok@ximian.com>
4311 * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
4312 (Edit): save off the original state in oldState, and set
4313 grid.is_editing to true.
4314 (OnKeyDown): abort editing if escape is pressed. also, call
4315 NextState if space is pressed.
4316 (OnMouseDown): call NextState.
4317 (NextState): factor out shared code from OnKeyDown and OnMouseDown
4318 here. Also, only invalidate the row header once (on the initial
4319 is_changing switch) to save on redraws.
4321 2006-05-24 Chris Toshok <toshok@ximian.com>
4323 * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
4324 if the value in the cell is different than it was before. This
4325 keeps us from triggering a layout when we move around a datarid
4326 with a highlighted cell.
4327 (Edit): suspend layout when creating/positining the text box, and
4328 resume passing false so we don't ever actually re-layout.
4329 (ReleaseHostedControl): same.
4330 (EnsureTextBox): reformat slightly, and set WordWrap to false.
4332 * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
4333 control-key sequences should go to the datagrid - remove that
4334 lock. Also, modify the conditions under which we move between
4335 cells when moving the cursor within a cell, and remove the "this"
4336 and "base" from field accesses. We weren't even consistent, given
4337 they all were in the base class.
4339 2006-05-24 Atsushi Enomoto <atsushi@ximian.com>
4341 * Binding.cs : (.ctor)
4342 An obvious NRE fix for BindingTest.CtorNullTest().
4344 2006-05-23 Chris Toshok <toshok@ximian.com>
4346 * TextBoxBase.cs (get_Text): don't add a trailing newline, add
4347 them between lines. This fixes some quirks editing cells in the
4350 2006-05-23 Jackson Harper <jackson@ximian.com>
4352 * TreeView.cs: Use begin/end update when doing expand/collapse all
4353 so that we don't get flicker on the scrollbar.
4355 2006-05-23 Jackson Harper <jackson@ximian.com>
4357 * TreeNode.cs: Bounds are computed 'on the fly' now. This allows
4358 treenode calculations to be independant of the painting code. To
4359 do this nodes track a visible order which is calculated by the
4361 - Call new methods for expanding/collapsing nodes. These methods
4362 use scrollwindow so we don't have to update everything below the
4364 * TreeView.cs: Refactored drawing and scrolling code. We don't
4365 need to update nodes when drawing anymore or calculate scrollbar
4367 - Added new methods for expanding/collapsing nodes. These methods
4368 use ScrollWindow so as to not have to redraw all the nodes below.
4369 * TreeNodeCollection.cs: Recalc visible order and scrollbars when
4370 we add/remove nodes or sort.
4371 - Handle removing the selected and the top node properly.
4373 2006-05-23 Chris Toshok <toshok@ximian.com>
4375 * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
4376 maybe this should actually happen in the datagrid code?
4377 (EndEdit): no need to invalidate anything, given that
4378 ReleaseHostedControl causes the datagrid to relayout, which
4379 invalidates everything anyway.
4381 * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
4383 (set_SelectionBackColor): call InvalidateSelection instead of
4385 (set_SelectionForeColor): same.
4386 (BeginEdit): Flesh this out a bit.
4387 (CancelEditing): only do any of this if we're editing/adding.
4389 (OnMouseDown): there's no need to cancel editing here, it's done
4391 (SetCurrentCell): only invalidate the current row header if it's a
4392 different row than the new one.
4393 (ShiftSelection): fix this to work like MS does.
4394 (ResetSelection): factor out the invalidation of selected_rows to
4395 InvalidateSelection.
4396 (SetDataSource): cancel any editing that's going on.
4398 * DataGridColumnStyle.cs
4399 (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
4400 call the non-interface version.
4402 * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
4403 header rectangle with the clip rectangle so we don't redraw the
4404 entire header for just a small area. Gets rid of the last flicker
4405 when horizontally scrolling.
4406 (DataGridPaintRow): same.
4408 2006-05-23 Mike Kestner <mkestner@novell.com>
4410 * ListViewItem.cs: remove size for line hack from LargeIcon layout.
4411 * ThemeWin32Classic.cs: don't draw line. it's really the top of a
4412 poorly placed checkbox on the MS control. Fixes Alex's unfiled
4413 Critical bug report.
4415 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
4417 * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
4418 and this fixes #78493
4420 2006-05-23 Miguel de Icaza <miguel@novell.com>
4422 * Theme.cs (GetSizedResourceImage): Scale images if the proper
4425 * FileDialog.cs: Do not change the background for the side bar as
4426 it wont work nicely with the theme, and also reduces the artifacts
4427 in rendering the icons (which I want to fix too).
4429 * MimeIcon.cs (ResourceImageLoader): Load images from assembly
4430 resources, not resgen resources.
4432 (PlatformDefaultHandler): Pull images using the new API.
4434 2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
4436 * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
4437 a reference to the hwnd and will not remove it unless there are
4438 no pending exposures (fixes #78341)
4439 * XplatUI.cs: Improved debug
4441 2006-05-23 Atsushi Enomoto <atsushi@ximian.com>
4443 * MenuAPI.cs : don't handle OnClick event when it was not the left
4444 button. Fixed bug #78487.
4446 2006-05-23 Mike Kestner <mkestner@novell.com>
4448 * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
4449 prefer submenus to the top menu for item lookup, to avoid popping down
4452 2006-05-23 Alexander Olk <alex.olk@googlemail.com>
4454 * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
4455 Graphics.FillRectangle as the visual results are really bad (even
4456 on win). We now draw perfect arrows (and perfect shadows when the
4457 scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
4458 Pen.DashPattern to draw the dots of each line.
4460 2006-05-22 Alexander Olk <alex.olk@googlemail.com>
4462 * FileDialog.cs: Update the filename combobox when navigating through
4463 the ListView with the cursor keys. Fixes part 7 of bug #78446.
4465 2006-05-22 Mike Kestner <mkestner@novell.com>
4467 * ListView.cs: raise SelectedIndexChanged on keyboard selection.
4470 2006-05-22 Mike Kestner <mkestner@novell.com>
4472 * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
4473 requests. Fix a misspelled parameter and a copy paste exception error
4476 2006-05-22 Peter Dennis Bartok <pbartok@novell.com>
4478 * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
4479 to get the same width/height (5/13) on X11 as the default font has on
4480 win32. This means that our DefaultFont emSize is smaller than the
4481 the MS SWF equivalent (even thought the width/height stays the same)
4483 2006-05-20 Jackson Harper <jackson@ximian.com>
4486 * MdiWindowManager.cs:
4487 * InternalWindowManager.cs: Make sure to use the border width from
4490 2006-05-20 Jordi Mas i Hernandez <jordimash@gmail.com>
4492 * PrintDialog.cs: Implements printer details
4494 2006-05-19 Alexander Olk <alex.olk@googlemail.com>
4496 * FileDialog.cs: Added focus handling for PopupButtonPanel.
4497 Fixes part 1 and 2 of bug #78446
4499 2006-05-19 Peter Dennis Bartok <pbartok@novell.com>
4501 * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
4502 instead of sticking to the first ever calculated value
4504 2006-05-19 Mike Kestner <mkestner@novell.com>
4506 * ComboBox.cs: fix mouse motion selection to use MousePosition and
4507 PointToClient, since Capture is set. Fixes #78344.
4509 2006-05-19 Mike Kestner <mkestner@novell.com>
4511 * ListView.cs: match MS behavior in Details view where items are not
4512 drawn if Columns.Count == 0.
4513 * ThemeWin32Classic.cs: only highlight ListView selection if focused.
4514 Use a separate pen to draw the check, since changing the width affects
4515 the box as well. Fixes #78454.
4517 2006-05-18 Miguel de Icaza <miguel@novell.com>
4519 * ListView.cs: ArgumentOutOfRangeException, single versions of the
4520 exception should throw the name of the invalid argument.
4522 * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
4523 there are no files listed.
4525 2006-05-18 Jackson Harper <jackson@ximian.com>
4527 * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
4530 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
4532 * Control.cs: Brought back our old UpdateZOrder method as a private
4533 function and switched our calls from UpdateZOrder to the new one.
4534 This fixes the Paint.Net canvas disappearing bug.
4536 2006-05-18 Jackson Harper <jackson@ximian.com>
4539 * ThemeWin32Classic.cs:
4540 * InternalWindowManager.cs: Move the drawing into the theme,
4541 expose everything the theme should need from the window manager.
4543 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
4545 * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value
4546 from the call to NativeWindow to avoid walking up the parent chain
4547 further than needed (speeds up setting cursors and avoids setting
4548 the wrong cursor if a parent has another cursor defined)
4549 * Cursor.cs: When loading an icon as cursor, MS uses the center of
4550 the icon as hotspot, not what's contained as hotspot in the icon
4551 file. This fixes the perceived drawing offset seen with Paint.Net
4553 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
4556 - Store the calculated rectangle in Hwnd object and use it when
4557 setting the client size
4558 - Force Toolwindows to always be type Dock, to ensure they're on top
4560 2006-05-18 Mike Kestner <mkestner@novell.com>
4562 * ComboBox.cs: first pass at ComboBox rework. Layout is more
4563 consistent with MS positioning. IntegralHeight, ItemHeight, Sizing.
4564 Correctly initialize textcontrol and ListBox on DropDownStyle changes.
4565 Substantial refactoring to remove confusing nested classes. Coding
4566 standard and Get+Set->property refactorings. Shift to index based
4567 highlighting in ComboListBox instead of constantly using IndexOf and
4568 Items[]. Add invalidations on resize for DropDownList to fix ugliness
4569 in FileDialog growth. Draw borders manually since Simple mode needs
4570 to look like two independent controls. Make listbox border
4571 conditional to DropDownStyle. Improved OwnerDraw support.
4573 2006-05-18 Sebastien Pouliot <sebastien@ximian.com>
4575 * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor.
4576 Don't set the disposed graphics to null, so we can throw the "right"
4577 exception if the graphics is reused later (added a flag to avoid
4578 double disposing). Some behaviours are different under 2.0 and are
4579 filled under bug #78448.
4581 2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
4583 * Control.cs: When double-buffering is enabled, we need to reset
4584 our graphics context between paint calls. Otherwise, any
4585 transformations and other alterations on the context will
4586 become cumulative (#77734)
4588 2006-05-18 Mike Kestner <mkestner@novell.com>
4590 * ListView.cs: do focused item selection like MS on clicks.
4591 Rework focus handling for ItemControl so LostFocus invalidates as
4593 * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
4594 the ListView ItemControl has focus.
4596 2006-05-17 Peter Dennis Bartok <pbartok@novell.com>
4598 * XplatUIX11.cs: If client_window ends up being width or height zero
4599 due to border settings, move it off window inside whole_window (#78433)
4601 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
4603 * Mime.cs: Shrink the mime file cache correctly.
4605 2006-05-17 Alexander Olk <alex.olk@googlemail.com>
4607 * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
4609 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
4611 * XplatUIX11.cs (AddExpose): More sanity checks
4613 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
4616 - AddExpose: Don't add expose ranges outside the size of our
4618 - Cast opacity values to Int32 to avoid crashes with certain
4620 - Added disabled code paths that protect against illegal cross-
4621 thread painting (Developers.exe)
4623 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
4625 * ProgressBar.cs: Invalidate the control when it's resized
4626 since block size is based on control size. (#78388)
4628 2006-05-16 Miguel de Icaza <miguel@novell.com>
4630 * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
4631 of setting the incoming argument to the "reset" value, we set the
4632 this.datamember to string.empty (before we were invalidating the
4637 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
4639 * Form.cs: Only apply transparency settings after the form
4640 is created. (Fixes #77800)
4642 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
4644 * ApplicationContext.cs: Grab the HandleDestroyed event so
4645 we know when to fire OnMainFormClosed
4647 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
4649 * Application.cs: Introduced sub-class to allow tracking of
4650 threads and centralized triggering of the event mess for
4651 ThreadExit, AppExit, etc.. (#76156)
4653 2006-05-16 Alexander Olk <alex.olk@googlemail.com>
4656 - Do not return a null icon index value for a mime subclass.
4657 Instead try the main mime type class too.
4658 - Seems that some newer distributions don't have a link to some
4659 gnome default icons anymore. So check the default gnome dir too.
4662 2006-05-16 Jackson Harper <jackson@ximian.com>
4664 * MdiClient.cs: Don't paint the parent background image if we have
4665 our own background image.
4667 2006-05-16 Peter Dennis Bartok <pbartok@novell.com>
4670 - PerformLayout: Do not shrink space filled by DockStyle.Fill
4671 controls, all filled controls are supposed to overlap (#78080)
4672 - UpdateZOrder is supposed to update the control's z-order in the
4673 parent's z-order chain. Fixed to behave like that
4674 - BringToFront: Removed obsolete code
4675 - SendToBack: Simplyfied
4676 - SetChildIndex: Trigger layout calculations when Z-order changes
4677 since layout is done by z-order
4679 2006-05-16 Chris Toshok <toshok@ximian.com>
4681 [ fixes bug #78410 ]
4682 * DataGrid.cs (set_AlternatingBackColor): use
4683 grid_drawing.InvalidateCells instead of Refresh().
4684 (set_BackColor): call grid_drawing.InvalidateCells.
4685 (set_BackgroundColor): use Invalidate instead of Refresh.
4687 * DataGridDrawingLogic.cs (InvalidateCells): new function, just
4688 invalidate the cell area.
4690 2006-05-15 Chris Toshok <toshok@ximian.com>
4692 [ fixes bug #78011 ]
4693 * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
4694 on to DataGridPaintRow.
4695 (DataGridPaintRow): take a clip argument, and only draw the cells
4696 which intersect it. same with the not_usedarea.
4698 * Theme.cs (DataGridPaintRow) add @clip parameter.
4700 * DataGrid.cs (ScrollToColumnInPixels): simplify, use
4701 XplatUI.ScrollWindow.
4702 (ScrollToRow): same.
4704 * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
4705 with last column which was causing a gray swath to appear with the
4706 XplatUI.ScrollWindow code.
4708 2006-05-15 Chris Toshok <toshok@ximian.com>
4710 * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
4711 use XplatUI.ScrollWindow.
4712 (VerticalScrollEvent): use XplatUI.ScrollWindow.
4714 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
4716 * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
4718 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
4720 * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
4721 file since there are no equivalent X11 cursors
4723 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
4725 * MonthCalendar.cs : DateTimePicker should reflect selected date
4726 on mouse*up*, not mouse*down*. Fixed originally reported part of
4729 2006-05-15 Atsushi Enomoto <atsushi@ximian.com>
4731 * TabControl.cs : When argument index is equal or more than tab
4732 count, just ignore. Fixed bug #78395.
4734 2006-05-15 Peter Dennis Bartok <pbartok@novell.com>
4736 * Control.cs: Dispose all child controls when control is diposed (#78394)
4738 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
4740 * ColorDialog.cs: Finally it is possible to select the color with
4743 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
4745 * PrintDialog.cs: Fix typo
4747 2006-05-14 Alexander Olk <alex.olk@googlemail.com>
4749 * PrintDialog.cs: PrintDialog is not resizable
4750 * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
4751 color. Made some ToolBar drawing methods protected virtual.
4753 2006-05-13 Jordi Mas i Hernandez <jordimash@gmail.com>
4755 * PrintDialog.cs: Implementation of the PrintDialog
4757 2006-05-12 Chris Toshok <toshok@ximian.com>
4759 * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
4760 thumb, instead use MoveThumb. This has the side effect of making
4761 most of the other thumb moving machinery use MoveThumb as well.
4762 (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
4763 need to actually invalidate the rectangle where the new thumb will
4765 (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
4766 We force an Update() after, so it's not as fast as it could be,
4767 but at least there's zero flicker and no droppings.
4768 (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
4769 (UpdateThumbPos): add another argument (dirty), which says whether
4770 or not to calculate/add dirty regions which we later invalidate.
4771 For cases where we know we're going to use MoveThumb, we pass
4772 false for this. Otherwise, pass true.
4774 2006-05-12 Jackson Harper <jackson@ximian.com>
4776 * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
4779 2006-05-12 Peter Dennis Bartok <pbartok@novell.com>
4781 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
4782 and GetClipRegion methods and UserClipWontExposeParent property.
4783 * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
4784 overriding UserClipWontExposeParent property, setting to false, since
4785 Win32 handles the required expose messages to draw our clipped parent
4787 * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
4788 PaintEventStart to set the user clip region if set.
4790 - Now internally tracking the Region for the control since we need to
4791 store it if the handle is not yet created and only set it when it
4792 becomes created. Before setting the region forced handle creation
4793 - Added code to draw the parents underneath a user-clipped region
4794 * Hwnd.cs: Added UserClip property
4796 2006-05-12 Chris Toshok <toshok@ximian.com>
4798 * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
4799 (set_Maximum): same.
4800 (set_Minimum): same.
4801 (set_SmallChange): same.
4802 (OnMouseUpSB): remove the call to refresh when releasing the
4803 thumb. We shouldn't need it.
4805 2006-05-12 Miguel de Icaza <miguel@novell.com>
4807 * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
4808 AutoSize set to None, we do not need to relayout everything, we
4809 just need to invalidate the current region.
4811 (Draw): Do not draw the entire ClientArea, just redraw the
4812 clip area being passed.
4814 * MdiClient.cs: Make MdiClient constructor with the Form argument
4817 2006-05-12 Jackson Harper <jackson@ximian.com>
4819 * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
4820 parents background image, but strangely not their own.
4821 - (DrawStatusBarPanel): Take into account horizontal alignment
4822 when drawing the strings and icons.
4824 2006-05-12 Mike Kestner <mkestner@novell.com>
4826 * ListBox.cs: avoid invalidations for focus when the collection is
4829 2006-05-12 Chris Toshok <toshok@ximian.com>
4831 * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
4832 invalidate the entire thumb area. Call InvalidateDirty which
4833 limits the redraw to the thumb itself and surrounding pixels.
4835 * XplatUIX11.cs (ScrollWindow): optimize copying.
4837 2006-05-12 Chris Toshok <toshok@ximian.com>
4839 * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
4840 Figure out the positioning/layout in a single pass instead of
4841 multiple recursive invocations. Speeds up the initial display of
4842 the data grid. Also, make many things private that were
4843 originally public but unused outside this class.
4845 2006-05-11 Jackson Harper <jackson@ximian.com>
4847 * MdiClient.cs: Improved layout code.
4849 2006-05-11 Jonathan Chambers <jonathan.chambers@ansys.com>
4851 * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
4854 2006-05-11 Chris Toshok <toshok@ximian.com>
4856 * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
4857 union of that will always be {0,0,width,height}.
4859 2006-05-11 Jackson Harper <jackson@ximian.com>
4861 * Form.cs: Match MS's DefaultSize for forms (they must have
4862 changed the size in sp2).
4864 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
4866 * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
4868 2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
4870 * TextControl.cs : Fixed bug #78109. This incorrect position
4871 comparison caused crash on automatic line split.
4872 * TextBoxBase.cs : reduce duplicate code.
4874 2006-05-10 Jackson Harper <jackson@ximian.com>
4876 * MdiClient.cs: Active form is only sent to the back when using
4877 the Next form functionality, when a form is clicked the current
4878 active shouldn't be sent to the back.
4879 - Layout the mdi windows when the container is first made visible.
4880 * Form.cs: Give the MdiClient a ref to the containing form when we
4883 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
4885 * LinkLabel.cs : link_font could be uninitialized, so populate one
4886 before actual use. Fixed bug #78340.
4888 2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
4890 * XplatUIX11.cs : clipboard format native value is IntPtr.
4893 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
4896 - Instead of showing context menus directly we send WM_CONTEXTMENU,
4897 which is passed up the parent chain by DefWndProc
4898 - We now handle WM_CONTEXTMENU to display any menu, or pass it
4899 to DefWndProc (#77956)
4900 * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
4902 2006-05-10 Jackson Harper <jackson@ximian.com>
4904 * MdiClient.cs: We need to remove the controls from the mdi
4905 collection, when we close the window.
4906 * MdiWindowManager.cs: Special handling of closing mdi windows.
4907 * InternalWindowManager.cs: Make the close method virtual so the
4908 mdi window manager can handle it specially.
4910 2006-05-10 Jordi Mas i Hernandez <jordimash@gmail.com>
4913 - Recalculate grid when the data source has changed
4914 - Matches styles provided by user from all data sources types
4915 * DataGridTableStyle.cs: For columns that provided by the user set the
4916 with the preferred value is there was unassigned.
4917 * CurrencyManager.cs: throw OnItemChanged event
4919 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
4921 * PictureBox.cs: Don't animate until handle is created. Start animation
4922 when handle is created.
4924 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
4926 * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
4928 * XEventQueue.cs: We don't need to provide the extra info
4930 2006-05-10 Jackson Harper <jackson@ximian.com>
4932 * MdiClient.cs: If the mdi clients parent form has a background
4933 image set, we draw that background image for the mdi area's
4936 2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
4938 * TextBoxBase.cs: Set IBeam cursor (#78347)
4940 2006-05-10 Mike Kestner <mkestner@novell.com>
4942 * ToolBar.cs: fix some text padding issues with ButtonSize
4943 calculation. Update the default size to match MS documentation.
4944 * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
4945 button size. Fixes #78296.
4947 2006-05-10 Mike Kestner <mkestner@novell.com>
4949 * ListBox.cs: use is_visible for scrollbar positioning in case the
4950 control isn't on screen yet. Fix off by one with Right vs Width
4951 usage. Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
4953 2006-05-10 Jackson Harper <jackson@ximian.com>
4955 * X11Dnd.cs: Drop to a control with another control on top of it.
4956 * ToolBar.cs: Work on a copy of the buttons list, so that it can
4957 be modified in click handlers. TODO: Look for similar problems in
4960 2006-05-09 Jackson Harper <jackson@ximian.com>
4962 * Form.cs: Window managers need the old window state when setting
4964 * InternalWindowManager.cs: Allow the base mdi window manager to
4965 handle more of the MDI only stuff (like maximize buttons).
4966 * MdiWindowManager.cs: Fix some snafus in changing the window
4967 state. Add all the menu functionality, for both popup and
4969 * MdiClient.cs: When a new form is selected the currently
4970 activated form is sent to the back, this matches MS.
4971 - Implement a new method to activate the next mdi child window.
4973 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
4976 - Added new InternalCapture method to allow controls to prevent
4977 the capture behaviour on the click handlers
4978 - Switched to use InternalCapture
4980 - Using InternalCapture to prevent mouse captures from being released
4981 on mouse button release (Fixes #78100)
4982 * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
4983 returns Form borders if a caption is present. (Fixes #78310)
4985 2006-05-08 Peter Dennis Bartok <pbartok@novell.com>
4987 * TreeNode.cs: Changed serialization .ctor to not require every field
4988 to be present. (#78265)
4989 * OwnerDrawPropertyBag.cs: Added serialization .ctor
4991 2006-05-05 Alexander Olk <alex.olk@googlemail.com>
4993 * MimeIcon.cs: for is faster than foreach for strings.
4995 2006-05-05 Mike Kestner <mkestner@novell.com>
4997 * CheckedListBox.cs: update check handling code to not use selected.
4998 * ListBox.cs: rewrite of mouse selection handling to correspond to MS
4999 behavior for visual feedback, motion response, shift/ctrl handling,
5000 and properly deal with all 4 selection modes. Updates to bounds
5001 handling logic. Add scroll wheel support. [Fixes #77842]
5003 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
5006 - Moved adding of Implicit controls into .ctor. That way, subsequent
5007 creation of the controls will not cause them to think they are
5008 toplevel windows (fixes #78200 header problem)
5009 - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
5010 - Switched visibility setting of header control to use internal field
5011 to avoid triggering handle creation
5012 - Now checking if handle is created before causing a refresh when items
5013 are added (This makes us now match handle creation time with MS)
5014 * Splitter.cs: Removed loading of private splitter cursor, switched to
5015 Cursors version now that that is loading the right ones
5016 * Cursors.cs: Load proper splitter cursors from resources
5017 * Cursor.cs: Added second method of loading resource cursors for the
5018 VS.Net users amongst us
5020 2006-05-05 Mike Kestner <mkestner@novell.com>
5022 * ListView.cs: give header_control a minimum size based on the
5025 2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
5027 * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
5028 window seems to do that with metacity, so set that type. (#78120)
5030 2006-05-05 Mike Kestner <mkestner@novell.com>
5032 * ListViewItem.cs: fix Details mode checkbox layout bug.
5033 * ThemeWin32Classic.cs: draw a ListView column header for unused space
5034 at the end of the header, if it exists. [Fixes for #78200]
5036 2006-05-04 Jackson Harper <jackson@ximian.com>
5038 * MdiClient.cs: Add a helper property to get the container form.
5039 * MdiWindowManager.cs: We have to make sure to use the menu origin
5040 when drawing the icons and buttons, this fixes maximized window
5041 icons/buttons on win32.
5042 * InternalWindowManager.cs: Reset the restore captions when a
5043 window goes from Maximized to Minimized and vice versa. Move the
5044 DrawMaximizedButtons into the MdiWindowManager source, tool
5045 windows can't be maximized. NOTE: This could use a little
5046 refactoring if time ever permits.
5048 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
5050 * TextBox.cs: Add MWFCategoryAttributes
5051 * TextBoxBase.cs: Add MWFCategoryAttributes
5052 * Form.cs: Add MWFCategoryAttributes
5054 2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
5056 * Control.cs: Add MWFCategoryAttributes
5057 * ScrollableControl.cs: Add MWFCategoryAttributes
5059 2006-05-03 Alexander Olk <alex.olk@googlemail.com>
5061 * ThemeWin32Classic.cs: Draw the ToolBar top border only if
5062 Divider is true. Fix a little glitch in PropertyToolBar
5065 2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
5068 - Dispose: Call base.Dispose, this causes the disposed event
5069 to be fired (and probably other, more important stuff)
5070 - SetVisibleCore: Set is_visible to true after creating the
5071 window so that the window still gets created invisible (if
5072 WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
5073 to generate a WM_ACTIVE message
5074 * Form.cs: Call Dispose when we want to destroy the window, instead of
5075 just destroying the handle (Dispose will do that for us)
5077 - RootWindow also needs a queue, so we can properly process the
5078 property change events from RootWindow (like Activate)
5079 - Generatic synthetic WM_ACTIVE message when the active window is
5082 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
5084 * LinkLabel.cs: Trigger a recalc of our label dimensions when
5087 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
5089 * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
5090 for determining width and height (image might not be assigned if
5091 we're drawing an imagelist)
5093 2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
5095 * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
5096 * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
5098 * Theme.cs: No longer returns hardcoded menu height, instead calls
5100 * Form.cs (OnLoad): Scaling happens before triggering Load events
5103 2006-05-01 Mike Kestner <mkestner@novell.com>
5105 * MenuItem.cs: fix NRE for text == null. Fixes #78250.
5107 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
5109 * TextBoxBase.cs: Removed Fixme
5110 * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
5112 2006-04-30 Peter Dennis Bartok <pbartok@novell.com>
5115 - ScrollWindow: We were passing hwnd.ClientRectangle which returns
5116 the rectangle relative to the parent, considering borders. We
5117 don't really want that.
5118 - ScrollWindow: Fixed warning to be more understandable
5119 * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
5120 scrollbars and scroll only the visible area
5121 * RichTextBox.cs: Removed debug output
5123 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
5125 * NumericUpDown.cs (Text): Just use base
5126 * UpDownBase.cs: Ensure txtView is created before using it
5128 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
5130 * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
5131 casting to IntPtr to avoid 64bit overflow errors
5133 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
5136 - AllowDrop: Don't force handle creation.
5137 - CreateHandle: Added call to tell driver if we're allowed to drop
5139 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
5141 * FileDialog.cs: Remember the last directory not only for the
5142 current instance but also for new FileDialog instances.
5144 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
5146 * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
5147 broke sending async messages
5149 2006-04-29 Peter Dennis Bartok <pbartok@novell.com>
5152 - ScrollWindow: Fixed method. We finally generate expose events again
5153 for scrolled areas. This was causing 'garbage' when scrolling
5154 textbox and other controls that used ScrollWindow
5155 - Switched from using the regular queue for paint events to the MS
5156 model of 'generating' paint events when the queue is empty.
5157 We use the new XQueueEvent.Paint subclass to store which windows
5159 - AddExpose now takes the x/y/width/height of the exposed area
5160 and inserts the window into the paint queue if not already there
5161 - InvalidateWholeWindow: Switched to use new AddExpose method
5162 - UpdateMessageQueue: Added which queue to monitor for paint events
5163 - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
5164 the unlikely case nothing above handles it. We reset the expose
5165 pending states to get them off the queue.
5166 - GetMessage: Now pulls a paint event if no other events are in the
5168 - Invalidate: Switched to new AddExpose method
5169 - PeekMessage: Updated to understand pending paint events
5170 - UpdateWindow: Fixed logic bug. We were only updating if the window
5171 didn't need updating. Also switched to sending WM_PAINT directly,
5173 * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
5174 and random access Remove(). The random access is needed to handle
5175 UpdateWindow() where a WM_PAINT is sent directly without accessing
5177 * ScrollBar.cs: Added Update() calls to cause immediate updates to
5178 allow for better feedback when scrolling. Scrollbars are small and
5179 the immediate update should make it 'feel' more responsive without
5180 slowing things down. ScrollBar still needs it's invaliate logic
5181 updated to not always invalidate the whole bar on certain changes.
5183 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5186 (BackColor): if the control does not support a transparent background,
5187 return the default backcolor when the parent backcolor is transparent.
5189 2006-04-28 Peter Dennis Bartok <pbartok@novell.com>
5191 * Application.cs: Updated to new StartLoop/GetMessage API
5192 * RichTextBox.cs: Provide some output on RTF parsing errors
5193 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
5194 new queue_id argument to GetMessage and PeekMessage to allow faster
5195 handling of per-thread queues in drivers.
5196 * Hwnd.cs: Added Queue tracking and property
5197 * MenuAPI.cs: Updated to new StartLoop/GetMessage API
5198 * XEventQueue.cs: Added thread trackingA
5199 * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
5201 - Implemented new per-thread queue
5202 - GetMessage: Fixed return/break behaviour on several cases. We were
5203 returning stale messages in some cases, instead of just processing
5206 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
5208 * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
5210 2006-04-27 Peter Dennis Bartok <pbartok@novell.com>
5212 * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
5213 fixed off-by-one comparisons between Width/Height and Right/Bottom.
5215 2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
5217 * PropertyGridView.cs: Fix drop down width.
5219 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
5221 * ThemeWin32Classic.cs: Peter thinks that three additional lines are
5222 a mess in DrawToolBar, so I removed one of them.
5224 2006-04-27 Alexander Olk <alex.olk@googlemail.com>
5226 * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
5227 needed (clip). Otherwise we get artifacts.
5229 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
5231 * FixedSizeTextBox.cs: Added constructor to allow specifying which
5233 * UpDownBase.cs: Set the spinner control to be fixed height vertical,
5234 and switched FixedSizeTextBox to only be fixed vertical (#78116)
5235 * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
5236 if it matches the scale base font (avoids unneeded scaling)
5238 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
5240 * X11DesktopColors.cs: One gtk_init_check should be enough
5242 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
5244 * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
5247 2006-04-26 Peter Dennis Bartok <pbartok@novell.com>
5250 - Generate OnTextChanged for Backspace even if we're only deleting
5251 the current selection
5252 - When setting the Text property, only select all text if the
5253 control does not have focus when it is being set. Otherwise
5254 just place the cursor at the beginning of the control
5256 2006-04-26 Alexander Olk <alex.olk@googlemail.com>
5258 * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
5259 Added a little helper to draw PropertyGrid ToolBar with a different
5260 border and a different BackColor.
5261 * PropertyGrid.cs: Some background parts didn't get painted with the
5262 correct background color. Added a class that helps us to draw the
5263 correct border for PropertyGridView and a class that helps us to
5264 draw ToolBars with a different backcolor
5265 * PropertyGridView.cs: Draw PlusMinus with the correct colors.
5267 2006-04-25 Jonathan Chambers <jonathan.chambers@ansys.com>
5269 * PropertyGrid.cs: Bug 78196, font size, and splitter location.
5270 * PropertyGridView.cs: Bug 78196, font size, and splitter location.
5272 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
5274 * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
5275 into the palette entries. Also, since we're working on a copy
5276 we needed to copy the palette back onto the bitmap.
5277 * Cursor.cs: Same fix as XplatUIWin32.cs.
5279 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
5281 * ImageListStreamer.cs: Need to read the var (or we're off)
5283 2006-04-25 Peter Dennis Bartok <pbartok@novell.com>
5285 * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs,
5286 XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
5287 TextBoxBase.cs: Unused var fixes
5288 * AxHost.cs: Small 2.0 fix
5289 * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms
5290 as it seems that is what at least Metacity expects. This will make
5291 icons show up on 64bit platforms. We still have some 64bit size
5292 issues, though, since the startup app window size still won't match.
5294 2006-04-25 Mike Kestner <mkestner@novell.com>
5296 * *.cs: cleanup newly reported exception var unused warnings.
5298 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
5300 * ThemeWin32Classic.cs: Button image alignment now matches exactly
5303 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
5305 * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
5306 image. The image position is always the same, no matter if the
5307 button is pressed or not.
5309 2006-04-25 Alexander Olk <alex.olk@googlemail.com>
5311 * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
5312 selection and set the correct filename for SaveFileDialog.
5313 Patch by Emery Conrad.
5315 2006-04-24 Mike Kestner <mkestner@novell.com>
5317 * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
5318 check for item.X outside the ClientRect instead of item.Y. Fixes
5321 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5323 * ImageListStreamer.cs: some images store a wrong grow factor, so don't
5324 trust that value blindly and do some sanity check. Fixes bug #77814.
5326 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5328 * ImageListStreamer.cs: save the mask as a 1bpp image.
5330 2006-04-21 Mike Kestner <mkestner@novell.com>
5332 * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
5333 pass Checked and Indeterminate to the Theme Engine. Improve
5334 encapsulation with ListBox.
5335 * ListBox.cs: Keep a StringFormat instead of calculating it every item
5336 draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
5337 nested types. Move all CheckState functionality to CheckedListBox.
5338 Make IntegralHeight work like MS. Rewrite of Layout engine. Fix
5339 OwnerDrawVariable layout/rendering. Fix multicolumn rendering. Fix
5340 ScrollAlwaysVisible handling. Refactor "selected" collections to use a
5341 single base list. Fix scrollbar sizing and placement to mirror MS.
5342 * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
5344 * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
5345 for CheckedListBox by using new DrawItemState info. Center the
5346 checkboxes on the items. Use new StringFormat property.
5348 2006-04-18 Jackson Harper <jackson@ximian.com>
5350 * Form.cs: MdiChildren don't do default locations the same way as
5351 regular forms. This prevents a crash when trying to position the
5354 2006-04-17 Jonathan Chambers <jonathan.chambers@ansys.com>
5356 * PropertyGridTextBox.cs: Formatting, copyright
5357 * PropertiesTab.cs: Formatting
5358 * PropertyGrid.cs: Formatting
5359 * PropertyGridView.cs: Formatting, fix drop down, enabled double
5360 click toggling of values
5362 2006-04-17 Peter Dennis Bartok <pbartok@novell.com>
5364 * KeyPressEventArgs: Added 2.0 only setter for KeyChar
5365 * Control.cs (.ctor): verify_thread_handle is static, don't reset
5366 every time a control is created
5367 * Application.cs: Removed obsolete EnableRTLMirroring method
5369 2006-04-18 Gert Driesen <drieseng@users.sourceforge.net>
5371 * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
5372 SelectedIndex to -1. Fixes bug #78121.
5374 2006-04-17 Jackson Harper <jackson@ximian.com>
5376 * Binding.cs: Handle null values for Current and BindingContext.
5377 This occurs when binding is a little delayed.
5378 * CurrencyManager.cs: return null for Current when there are no
5380 - Hookup to the listchanged event on the DataView and update
5381 bindings when the list is changed. This fixes late binding of
5384 2006-04-17 Jackson Harper <jackson@ximian.com>
5387 * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
5390 2006-04-15 Alexander Olk <alex.olk@googlemail.com>
5392 * ThemeWin32Classic.cs: Draw disabled combo button in the correct
5394 * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
5395 with the correct ButtonState
5397 2006-04-14 Peter Dennis Bartok <pbartok@novell.com>
5399 * XplatUIX11.cs: Improved distinguishing between window types to
5400 tell the WM a type closer to what the app wants (Fixes #78107)
5402 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
5404 * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
5407 2006-04-14 Alexander Olk <alex.olk@googlemail.com>
5409 * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
5410 drawing code to reflect the size grip changes
5412 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5414 * ImageListStreamer.cs: fix handling of the mask that follows the main
5415 bitmap when deserializing and serialize it properly. The generated mask
5416 should better be a 1bpp image, but I'll do that later.
5418 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
5420 * FileDialog.cs: Show something in the DirComboBox on *nix if the
5421 path doesn't fit into some of our Current.Places
5423 2006-04-13 Jackson Harper <jackson@ximian.com>
5425 * ComboBox.cs: Use borders instead of drawing our own decorations,
5426 try to obey correct rules for heights.
5429 * ThemeClearLooks.cs:
5430 * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
5431 this is now handled by borders.
5432 - Remove unused DrawListBoxDecorationSize method.
5434 2006-04-13 Mike Kestner <mkestner@novell.com>
5436 * MenuAPI.cs: null guarding for the disbled click check fixes crash
5439 2006-04-13 Alexander Olk <alex.olk@googlemail.com>
5441 * ThemeWin32Classic.cs:
5442 - Fixed CPDrawStringDisabled
5443 - Corrected drawing of disabled menu items
5444 - Fixed drawing of disabled radio buttons (bug #78095)
5445 - Draw check in a disabled CheckBox with color ControlDark
5447 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
5449 * Form.cs: Use the provided width when calculating the menu size;
5450 when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
5451 and ClientSize.Width won't be updated yet
5452 * Application.cs: Use Visible instead of Show() to make form visible,
5453 this way we create the handle later and menusize is considered
5455 2006-04-12 Mike Kestner <mkestner@novell.com>
5457 * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
5460 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
5462 * TextBox.cs: Implemented context menu
5464 2006-04-12 Mike Kestner <mkestner@novell.com>
5466 * ListView.cs: implement box selection. fixes #77838.
5467 * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
5469 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
5471 * XplatUIX11.cs: Added setting of window type when transient window
5472 is created (metacity would move it otherwise)
5473 * X11Structs.cs: Added WINDOW_TYPE atoms
5474 * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
5475 background (the control is Opaque but still wants transparent
5478 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
5480 * Control.cs: Added OnPaintBackgroundInternal to allow controls
5481 that set Opaque but don't mean it (like all ButtonBase-derived
5482 controls) to still draw their background
5483 * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
5486 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
5488 * Control.cs (PaintControlBackground): Set the graphics object
5489 on our PaintEvent to null to prevent it from being disposed
5490 when the PaintEvent gets disposed
5492 2006-04-12 Alexander Olk <alex.olk@googlemail.com>
5494 * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
5495 * ThemeNice.cs, ThemeClearlooks.cs: fix typo
5497 2006-04-12 Peter Dennis Bartok <pbartok@novell.com>
5500 - Added transparency check to BackColor property. Transparent
5501 backgrounds are only allowed if the control styles permit it
5502 - Added recursive painting of parent control background and
5503 foreground if a control with a transparent backcolor is drawn
5504 (Thanks to Tim Ringenback for providing his 'hack' as a base
5505 for this patch) Fixes #77985 and #78026.
5506 - Added Opaque style check before calling OnPaintBackground, no
5507 need to draw the background if the control is opaque
5508 - Removed ControlAccessibleObject owner variable (inherited from
5509 base, no need to define again)
5510 - Added some documentation links explaining the drawing events
5513 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
5515 * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
5516 that the affected control is the located at the left border of our
5517 parent (Fixes #77936)
5519 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
5521 * TextBoxBase.cs: When rendering disabled or readonly controls,
5522 draw the background with 'Control' instead of 'Window' color as
5523 long as the user hasn't specifically set a color
5525 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
5527 * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
5528 since that won't be updated if the user types text (only if it's
5529 programatically set)
5531 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
5533 * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
5534 layout changes do to app-triggered resizes will have the proper
5535 display rectangle for layout
5537 2006-04-11 Alexander Olk <alex.olk@googlemail.com>
5539 * ThemeWin32Classic.cs:
5540 - Make use of the SystemBrushes and SystemPens wherever possible
5541 - Corrected some highlight colors
5542 - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
5544 * Theme.cs: Added Empty field to CPColor struct
5546 2006-04-11 Peter Dennis Bartok <pbartok@novell.com>
5548 * ScrollabeControl.cs: We need to consider whether or not a scrollbar
5549 is displayed when calculating the display rectangle. Thanks to Mike
5550 for teaching me the err of my ways.
5552 2006-04-10 Peter Dennis Bartok <pbartok@novell.com>
5554 * ScrollableControl.cs:
5555 - Rewrote DisplayRectangle code, now returning the proper x/y coords
5556 (instead of 0,0) and we now return the real width/height instead of
5557 just the clientrectangle, adjusted for padding. The rectangle is
5558 now cached and created by the new CalculateDisplayRectangle method.
5559 - Created new CalculateDisplayRectange method, which basically does
5560 what get_DisplayRectangle() did originally, but now using the
5561 right edge instead of DisplayRectangle to determine the size of
5563 - get_Canvas(): Fixed it to properly calculate canvas for
5564 right/bottom controls which seem to be placed to the right/bottom
5565 of any controls that have a fixed location
5566 - Removed TODO that's taken care of
5567 - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
5568 and SetDisplayRectLocation according to new MSDN2 docs
5569 - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
5570 event when that is called, this is added for compatibility
5571 - ScrollControlIntoView(): Implemented.
5572 - Switched scrollbars to be implicit, they shouldn't be selectable
5573 * ContainerControl: Now that ScrollControlIntoView is implemented, we
5574 call it when the active control is set/changed
5575 * ScrollBar.cs: Added support for generating Win32 scrollbar messages
5576 * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
5577 implicit_control variable (used for native Win32 message generation)
5578 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new
5579 HorizontalScrollBarHeight and VerticalScrollBarWidth properties
5580 * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
5581 * XplatUIStructs.cs: Added ScrollBarCommands enum
5583 2006-04-10 Jackson Harper <jackson@ximian.com>
5586 * CheckedListBox.cs:
5593 * PrintPreviewControl.cs:
5599 * UpDownBase.cs: Fixup base event overrides.
5601 2006-04-06 Mike Kestner <mkestner@novell.com>
5603 * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
5604 all user-initiated value changes to min <= value <= max-thumbsz+1.
5605 (set_Value): check for vert/horiz when calculating new thumb position.
5606 (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
5608 (OnMouseMoveSB): refactor the thumb dragging code and refine
5609 invalidation logic to reduce flicker.
5610 (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
5611 (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
5612 (UpdateThumbPosition): small code readability cleanup
5614 2006-04-10 Alexander Olk <alex.olk@googlemail.com>
5616 * ThemeNice.cs: Small UI polishing. Draw borders a little bit
5619 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
5621 * ThemeNice.cs: Use a better graphics effect when a button is pressed
5623 2006-04-08 Alexander Olk <alex.olk@googlemail.com>
5625 * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
5626 * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
5627 This dramatically reduces the number of Pen.Dispose calls.
5628 Where possible call ResPool methods only once instead of calling it
5629 over and over again (for example for the same color).
5631 2006-04-06 Mike Kestner <mkestner@novell.com>
5633 * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
5634 Also remove an unused private field on the collection. Fixes #77972.
5636 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
5638 * ThemeNice.cs: Added ToolBar drawing code
5640 2006-04-06 Mike Kestner <mkestner@novell.com>
5642 * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
5643 I'm assuming that means we need to look up the toplevel for the
5644 provided control. Fixes the crash trace in #77911 but exposes another
5645 crash in some strange reflection usage in NDocGui.
5647 2006-04-06 Alexander Olk <alex.olk@googlemail.com>
5649 * ThemeNice.cs: Gave it a little silver touch and added Images
5651 * FontDialog.cs: FontDialog is not resizable
5652 * FileDialg.cs: Added SizeGripStyle.Show
5654 2006-04-05 Jackson Harper <jackson@ximian.com>
5656 * KeyboardLayouts.cs: Remove warning.
5658 2006-04-05 Jackson Harper <jackson@ximian.com>
5660 * Control.cs: Enable OnPaintInternal so we can use it for drawing
5661 all of our controls instead of Paint +=.
5676 * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
5677 use OnPaintInternal. Remove Width/Height and Visible checks in
5678 paint handler, this is done at a higher level now.
5679 * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
5680 * PaintEventArgs.cs: Add a handled flag so controls that don't
5681 want anymore painting after OnPaintInternal can make sure OnPaint
5684 2006-04-05 Mike Kestner <mkestner@novell.com>
5686 * Form.cs: fix the menu WndProc hacks to respect the native enabled
5687 state of the form, so that we don't process events when Modal dialogs
5688 are up. Fixes #77922.
5690 2006-04-05 Alexander Olk <alex.olk@googlemail.com>
5692 * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
5695 2006-04-05 Mike Kestner <mkestner@novell.com>
5697 * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
5699 2006-04-05 Mike Kestner <mkestner@novell.com>
5701 * ListView.cs (HeaderMouseMove): null guarding for the over column
5702 when setting up the drag_to_index. Fixes #78015.
5704 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
5706 * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
5707 in the taskbar. Transient windows seem to accomplish that.
5709 2006-04-04 Peter Dennis Bartok <pbartok@novell.com>
5712 - Re-enabled CreateParams.X/Y code for FormStartPosition
5713 - Added code for manual placement when creating the Control
5714 - Incomplete patch to treat MDI forms differently when
5715 setting the ClientSizeCore. (Still need to figure out handling
5718 - When we're explicitly setting the X/Y position of a non-Child
5719 window, let the WM know. Metacity really wants this.
5721 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
5723 * ThemeNice.cs: Added CPDrawButton
5725 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
5727 * ThemeNice.cs: Changed the color for focused buttons and activated
5728 the arrows for small scroll buttons.
5730 2006-04-04 Alexander Olk <alex.olk@googlemail.com>
5732 * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
5733 anymore. Changed some method modifiers to protected (virtual)
5734 * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
5736 * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
5737 Updated drawing of menus, buttons and progressbars; added
5740 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5742 * ImageListStreamer.cs: implemented serialization/deserialization
5745 2006-04-03 Alexander Olk <alex.olk@googlemail.com>
5747 * ThemeWin32Classic.cs:
5748 - Removed all the DrawFrameControl stuff; CPDrawButton,
5749 CPDrawCheckBox and CPDrawRadioButton are now handled directly
5751 - Updated and corrected the drawing code of CPDrawButton,
5752 CPDrawCheckBox and CPDrawRadioButton to better match ms
5753 - Updated theme checkbox and radiobutton code to use the CP*
5756 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
5758 * XplatUIX11.cs: Enable clipping again now that the libgdiplus
5761 2006-03-31 Jackson Harper <jackson@ximian.com>
5763 * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
5765 * UpDownBase.cs: Don't CreateGraphics manually, use a
5766 Refresh. Ideally we would invalidate the correct areas here.
5768 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
5771 - We now track the mapping state of windows. If a window (or
5772 one of it's parents) is not mapped we no longer permit
5773 WM_PAINT messages to be generated since we'd otherwise get
5774 lots of BadMatch X errors. Jackson did all the work figuring
5776 - Destroying the caret if the window it's contained in is
5777 destroyed. Can't use regular DestroyCaret method since it
5778 might fall into a drawing function (trying to remove the
5779 caret) and with that generate new BadMatch errors. Again,
5780 Jackson tracked this down.
5781 - Changed DestroyChildWindows to SendWMDestroyMessages, we now
5782 make sure we send the messages to all windows. (The old code
5783 would send the WM_DESTROY to the window, and then all child
5784 windows would be 'gone' because the WM_DESTROY handle lookup
5785 would no longer find the destroyed window)
5786 * Hwnd.cs: Added Mapping property to track mapping state of hwnd
5787 * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
5789 2006-03-31 Jackson Harper <jackson@ximian.com>
5791 * ScrollableControl.cs: Dont recalc if we are not visible.
5793 2006-03-31 Mike Kestner <mkestner@novell.com>
5795 * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
5796 the visibility branch.
5798 2006-03-31 Jackson Harper <jackson@ximian.com>
5800 * ScrollBar.cs: Cap values when incrementing/decrementing.
5802 2006-03-31 Mike Kestner <mkestner@novell.com>
5804 * MenuAPI.cs: setup menu.tracker for popup/context menus.
5805 * ToolTip.cs: guard against timer expirations with no active control.
5806 Not sure why it happened.
5808 2006-03-31 Mike Kestner <mkestner@novell.com>
5810 * ThemeWin32Classic.cs: add some horizontal padding space for the tip
5812 * ToolTip.cs: Position the tooltip based on where the cursor is at
5813 popup time, not at MouseEnter time. Add a Down state so that we don't
5814 redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
5815 positioning offset. Lookup DisplaySize at positioning time, since it
5816 can theoretically change during invocation.
5817 * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
5818 * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
5820 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
5822 * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
5823 Fixes behaviour when the Text property of the box is String.Empty
5825 2006-03-31 Peter Dennis Bartok <pbartok@novell.com>
5827 * XplatUIX11.cs: Only send mouseleave for our client windows, not
5828 for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
5831 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
5833 * FileDialog.cs: Visual enhancement for the popup buttons in
5836 2006-03-31 Alexander Olk <alex.olk@googlemail.com>
5838 * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
5841 2006-03-30 Alexander Olk <alex.olk@googlemail.com>
5843 * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
5844 highlighted menu items to match ms
5846 2006-03-30 Peter Dennis Bartok <pbartok@novell.com>
5848 * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
5850 2006-03-30 Mike Kestner <mkestner@novell.com>
5852 * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
5853 * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
5854 go active to account for HotLight to Selected transition.
5855 * MenuItem.cs: add internal Selected prop. Fill out the Status
5856 property by calculating it from item info. Add HotLight,
5857 NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
5859 2006-03-30 Mike Kestner <mkestner@novell.com>
5861 * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
5863 2006-03-29 Jackson Harper <jackson@ximian.com>
5865 * Form.cs: Implement TODO.
5867 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
5869 * PrintPreviewDialog.cs: Implemented missing methods and events; still
5870 missing proper dialog setup in the constructor
5872 2006-03-29 Peter Dennis Bartok <pbartok@novell.com>
5874 * ProgressBar.cs: Added 2.0 Style property that apps seem to use
5876 - Implemented CheckForIllegalCrossThreadCalls, removed TODO
5877 - Fixed ResetBindings and removed TODO
5878 - Added check for cross-thread calls to get_Handle()
5879 - Added Marshaller attribute for set_Font to satisfy class status
5880 * FontDialog.cs: Removed TODOs that seemed implemented
5881 * UpDownBase.cs: Removed unneeded TODO and Fixme
5882 * MessageBox.cs: Implemented support for Default button and removed TODO
5883 * FileDialog.cs: Removed obsolete TODO
5884 * DomainUpDown.cs: Removed obsolete TODO
5885 * ButtonBase.cs: Removed obsolete TODO
5886 * XplatUIWin32.cs: Removed obsolete TODO
5888 - Removed obsolete TODO
5889 - Calling CheckAcceptButton when the acceptbutton is changed to allow
5890 internal status updates
5891 - Making sure the active control is selected when the control is created
5892 * CurrencyManager.cs: Removed obsolete TODO
5894 2006-03-29 Mike Kestner <mkestner@novell.com>
5896 * *.cs: fix remaining corcompare issues for 1.1 API with the exception
5897 of PrintPreviewDialog and RichTextBox.
5899 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
5901 * Theme.cs: Added a little helper to SystemResPool to get the Dark,
5902 DarkDark, Light and LightLight colors for a specific color
5903 * ThemeWin32Classic.cs:
5904 - Use Button drawing code to draw RadioButtons and CheckBoxes with
5906 - Make use of the new ResPool helper CPColor
5907 - Draw ProgressBar and StatusBar with correct 3D borders
5909 2006-03-29 Alexander Olk <alex.olk@googlemail.com>
5911 * ColorDialog.cs: Return selected color. Fixes bug #77940.
5913 2006-03-28 Mike Kestner <mkestner@novell.com>
5915 * ListView.cs: fix Icon layout to plan for scrollbar widths when
5916 calculating col/row counts.
5918 2006-03-28 Mike Kestner <mkestner@novell.com>
5924 switch to explicit interface method implementation for some methods
5925 corcompare identifies as inconsistent with MS.
5927 2006-03-28 Mike Kestner <mkestner@novell.com>
5931 add a few missing methods from the class status output.
5933 2006-03-28 Alexander Olk <alex.olk@googlemail.com>
5935 * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
5938 2006-03-28 Mike Kestner <mkestner@novell.com>
5940 * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
5942 2006-03-27 Mike Kestner <mkestner@novell.com>
5944 * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
5945 the Hilight state to adapt to Alex's CPDrawBorder3D changes.
5947 2006-03-27 Alexander Olk <alex.olk@googlemail.com>
5949 * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
5951 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
5953 * ThemeWin32Classic.cs:
5954 - GroupBox: Inserted a little gap between the text and the lines
5956 - Made the code in CPDrawBorder3D more readable
5957 - Corrected the drawing location of the up and down arrows in
5960 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
5962 * ControlPaint.cs: Corrected line widths in DrawBorder for
5963 ButtonBorderStyle Inset and Outset
5965 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
5967 * ThemeWin32Classic.cs:
5968 - Rewrote the totally broken CPDrawBorder3D method. That was
5969 one of the main problems for the terrific ThemeWin32Classic
5971 - Updated and corrected Button drawing
5972 - Correct the dimensions of the SizeGrip to match ms ones
5973 - Removed a small drawing glitch in DrawComboBoxEditDecorations
5974 * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
5975 Border3DStyle.Sunken to match ms.
5977 2006-03-25 Alexander Olk <alex.olk@googlemail.com>
5979 * ThemeWin32Classic.cs: First small part of the "de-uglify
5980 ThemeWin32Classic" effort, SizeGrip
5982 2006-03-24 Jackson Harper <jackson@ximian.com>
5984 * XplatUIX11.cs: Give a max idle time of one second, this matches
5985 MS and forces an Idle event every second when there are no other
5986 events in the queue.
5988 2006-03-24 Mike Kestner <mkestner@novell.com>
5990 * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
5991 * ListView.Item.cs: fix layout issues with null image lists and images
5992 smaller than checkbox size.
5993 * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
5994 mode like MS does. It's weird, but consistent. ;-)
5997 2006-03-24 Mike Kestner <mkestner@novell.com>
5999 * ListView.cs: Scroll wheel support for the item control. Fixes
6002 2006-03-23 Jackson Harper <jackson@ximian.com>
6004 * ScrollableControl.cs: Special case negative sized areas, not
6006 * MonthCalendar.cs: Save the rect of the clicked date so we can
6007 use it for invalidation.
6008 - Try to cut down on the number of invalidates
6009 - Invalidate the rect the mouse is over and was over when moving
6010 the mouse, so we get the focus box following the cursor.
6012 2006-03-23 Mike Kestner <mkestner@novell.com>
6014 * ThemeWin32Classic.cs: fix FullRowSelect selection background and
6015 focus rectangle drawing. Fixes #77835.
6017 2006-03-23 Mike Kestner <mkestner@novell.com>
6019 * XplatUIX11.cs: rework the fix for #77828 by changing the order of
6020 the if and else if and reverting back to the original == check on the
6023 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
6025 * FontDialog.cs: Update the example panel if the selected index of
6026 the fontListBox changes.
6028 2006-03-23 Alexander Olk <alex.olk@googlemail.com>
6030 * FileDialog.cs: Make FileDialog remember which directory it was in
6031 last in the same execution.
6033 2006-03-22 Mike Kestner <mkestner@novell.com>
6035 * FileDialog.cs: make the DropDownMenu on the toolbar display
6036 RadioChecks since they are mutually exclusive and that's what MS does.
6038 2006-03-22 Mike Kestner <mkestner@novell.com>
6040 * Theme.cs: add Color param to CPDrawMenuGlyph.
6041 * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
6042 checks and radio marks and arrows are visible on highlighted items.
6043 * ControlPaint.cs: update to use new Theme signature.
6045 2006-03-22 Mike Kestner <mkestner@novell.com>
6047 * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
6048 is active. Fixes #77870.
6050 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
6052 * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
6053 to be focused/selected after startup
6055 2006-03-22 Alexander Olk <alex.olk@googlemail.com>
6058 - Corrected behaviour of Color, AllowFullOpen, FullOpen,
6059 CustomColors and ShowHelp properties
6060 - Some internal rewrites to get better results when using the
6063 2006-03-22 Mike Kestner <mkestner@novell.com>
6065 * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
6066 HoverSelection. Fixes #77836.
6068 2006-03-22 Mike Kestner <mkestner@novell.com>
6070 * FileDialog.cs: bugfixes for the toolbar. Use PushButtons instead of
6071 ToggleButtons. (De)Sensitize the Back button around a stack count of
6072 1, not 0. Update ButtonSize based on a pixel count of the win32
6073 control. Adjust the toolbar size/location for new button size.
6075 2006-03-22 Jackson Harper <jackson@ximian.com>
6077 * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
6079 * ScrollBar.cs: When doing increments and decrements we need to
6080 set the Value property so that ValueChanged gets raised. A
6081 possible optimization here would be to make an internal SetValue
6082 that doesn't invalidate immediately.
6083 * ToolTip.cs: Tooltips get added to their container (when
6084 supplied) so they get disposed when the container is disposed.
6085 - Don't create tooltips for String.Empty. This prevents all these
6086 little 2-3 pixel windows from showing up when running nunit-gui
6088 * Form.cs: Don't set topmost when setting the owner if the handles
6089 haven't been created yet. The topmost set will happen when the
6090 handles are created.
6092 2006-03-22 Peter Dennis Bartok <pbartok@novell.com>
6095 - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
6096 - SetVisible: Sending WINDOWPOSCHANGED for all controls when made
6097 visible (to allow them to recalculate their sizes)
6099 2006-03-21 Mike Kestner <mkestner@novell.com>
6101 * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
6102 methods. Removed a ton of redundant code. Still not really happy with
6103 the border rendering, but I think that's mainly because of the
6104 ControlDarkDark being black instead of a dark grey. Depending on how
6105 close we want to be, we might want to revisit those color choices.
6106 Among the new features added during the refactor were DropDownArrow
6107 pressed rendering, Disabled image rendering. Proper flat appearance
6108 boundary rendering. Removed the Divider and Wrapping dividers since I
6109 can't figure out any combination of themes and conditions to make the
6110 MS control draw a horizontal line on a toolbar despite what the
6111 Divider property docs indicate.
6112 * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
6113 conditions and incorrect layout. Updated to coding standard.
6114 * ToolBarButton.cs: refactored layout and positioning code from
6115 ToolBar to here. Invalidate wherever possible instead of forcing
6116 redraws of the whole toolbar.
6117 (Known remaining issues: explicit ButtonSize smaller than provided
6120 2006-03-21 Mike Kestner <mkestner@novell.com>
6122 * ContextMenu.cs (Show): use the position parameter instead of just
6123 showing at the MousePosition.
6125 2006-03-21 Jackson Harper <jackson@ximian.com>
6127 * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
6128 control handle this.
6129 * TreeNodeCollection.cs: If we are clearing the root node we need
6130 to reset top_node so calcs can still happen.
6131 * ThemeWin32Classic.cs: This is a Flags so we need to check
6134 2006-03-21 Jackson Harper <jackson@ximian.com>
6136 * DataGrid.cs: Create columns when the binding context has been
6138 * X11Structs.cs: Keysyms are uints.
6139 - Add size to fix build.
6141 2006-03-21 Peter Dennis Bartok <pbartok@novell.com>
6143 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
6145 - Added ResetMouseHover method to allow controls to retrigger
6146 hovering if they need it more than once
6147 - Implemented MouseHoverTime and MouseHoverSize properties
6148 * Timer.cs: Start() must reset the interval
6149 * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
6152 2006-03-21 Jackson Harper <jackson@ximian.com>
6154 * X11Keyboard.cs: improved layout detection. Move the nonchar
6155 tables into this file.
6156 * KeyboardLayouts.cs: Move the tables into resource files.
6158 2006-03-21 Mike Kestner <mkestner@novell.com>
6160 * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
6162 2006-03-21 Alexander Olk <alex.olk@googlemail.com>
6164 * Mime.cs: Various speed optimizations. Looking up mime types
6165 is now 2 times faster than before
6167 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
6169 * CreateParams.cs: Added internal menu field
6171 - Switched call order for UpdateBounds; now we always call
6172 the one that also takes ClientSize, and we're calculating the
6173 client size via driver method in the others. The previous
6174 method of tracking client size by difference wasn't working
6175 for forms where even the starting client size wouldn't match
6176 the overall form size (due to borders) (Part of fix for #77729)
6177 - CreateParams(): Do not use parent.Handle unless the handle is
6178 already created. Causes havoc with Nexxia and throws off our
6179 creation of controls
6181 - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
6182 - Switched handling of ConfigureNotify over to new PerformNCCalc
6183 method (consolidates code)
6184 - Changed RequestNCRecalc to use new PerformNCCalc method
6185 - Added calls to RequestNCRecalc when menus and borders are changed
6186 to allow app to set NC size. (Part of fix for #77729) This matches
6187 when MS send a WM_NCRECALC on Win32 windows.
6188 - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
6189 (Part of fix for #77729). This matches what MS does, they also
6190 send that message when the form is made visible.
6191 - XException.GetMessage: Improved usability of X errors by including
6192 a translation of the window into Hwnd and Control class
6193 - Improved debug info for window creation, reparenting and destruction
6194 - Created helper method WindowIsMapped() [Currently not used]
6195 * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
6197 - CreateParams: Now setting our menu on the new internal menu field
6198 - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
6199 avoid calculating the same property twice
6201 - Improved usability of ToString() for debugging purposes
6202 - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
6203 determine the height of the menu, instead of just the font. This
6204 required to also create a graphics context and to keep a bmp
6205 around (for performance reasons)
6207 2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
6209 * MenuAPI.cs: Added OnMouseUp method
6211 - Now remembering the requested client size, avoids size errors
6212 - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
6213 instead of base if the menu is active. This is required due to
6214 control now capturing and releasing on down/up and it would
6215 prematurely release our menu capture
6217 2006-03-17 Jackson Harper <jackson@ximian.com>
6219 * KeyboardLayouts.cs: Add the czech layouts.
6221 2006-03-16 Jackson Harper <jackson@ximian.com>
6223 * Control.cs: Use the viewport space when sizing not the controls
6224 client size, so things like ScrollableControl that effect the
6225 viewport size (when scrollbars are added) are computed correctly.
6226 * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
6228 - Handle creating BindingManagers for null data sources.
6229 * DataGrid.cs: Bind the cached_currencymgr_events to the real data
6230 source, otherwise when rows are added they are added to the 'fake'
6231 datasource and we will crash when trying to set the position in
6233 - Use Implicit scrollbars on the datagrid so they arent
6236 2006-03-16 Jackson Harper <jackson@ximian.com>
6239 * InternalWindowManager.cs:
6240 * MdiWindowManager.cs:
6241 * X11Keyboard.cs: I really want Mike to love me again (fix
6244 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
6247 - OnMouseDown: Switch to editing mode when clicking on the cell
6248 even if we're clicking on the cell that's currently
6250 - ProcessGridKey: Left/Right now wrap like MS.Net does
6251 - ProcessGridKey: Tab now knows to add a new row when tab is
6252 pressed in the cell of the last column of the
6254 - ProcessGridKey: Enter now adds another row if pressed in the last
6255 row and selectes the new row, same column cell
6256 - ProcessGridKey: Home/End navigate columns, not rows, like
6257 originally implemented
6258 - Broke ProcessKeyPreview code out into an extra Internal method
6259 so it can be called from the edit code
6260 * DataGridTextBox.cs (ProcessKeyMessage):
6261 - Switched to accept Tab keypresses
6262 - Added F2 handling to allow jumping to the end of the edited cell
6263 - Added logic to allow moving caret left/right inside edited cell
6264 and making the edited cell jump when the caret hits cell borders
6265 - Tab and Enter are now passed to the datagrid after being handled
6267 - Removed capture code now that Control handles it
6268 - set_SelectionStart now ensures caret is visible
6270 2006-03-16 Jackson Harper <jackson@ximian.com>
6272 * TrackBar.cs: Debackwards the increment/decrement for handling
6273 mouse clicks on the bar with vertical trackbars.
6274 * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
6277 2006-03-16 Mike Kestner <mkestner@novell.com>
6279 * ListView.cs: make shift/ctrl keyboard and mouse selection
6280 consistent with the MS control. Fix a bug in
6281 SelectedListViewItemCollection.Clear that was pissing me off for the
6282 better part of a day because the collection was being altered
6283 underneath us as we walked the list.
6285 2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
6287 * Control.cs: Not sure how we could miss this so long, but it seems
6288 that MS.Net has Capture set all the way from before calling
6289 OnMouseDown through sending the mouse events until after
6290 OnMouseUp. This will fix DataGrid's selection being set to end
6291 at the location of the MouseUp.
6293 2006-03-15 Jackson Harper <jackson@ximian.com>
6295 * BindingContext.cs: Check the binding after its added so that it
6296 can initialize the binding managers and hookup to events.
6297 * Binding.cs: Data members seem to sometimes include rows/cols in
6298 the format Row.Column we now take this into account.
6299 - Hookup to the position changed event so we can update the
6300 control when the position has changed in the data set.
6301 * CurrencyManager.cs: Take into account the row/col naming
6302 convention when creating dataset tables.
6303 * BindingContext.cs: Using a newer better way of storing
6304 datasource/datamember pairs. Hopefully this better matches MS for
6305 looking up binding managers.
6308 2006-03-15 Jackson Harper <jackson@ximian.com>
6310 * BindingContext.cs: The currency manager needs the data member
6311 name, if the member is a data set we use the name to find the
6313 * CurrencyManager.cs: When creating the list prefer an IList over
6315 - Attempt to create a DataTable from a DataSet (TODO: might need
6316 some better error checking here, although MS doesn't seem to have much)
6317 - If we have a DataTable create a view and use it as our list.
6319 2006-03-15 Mike Kestner <mkestner@novell.com>
6321 * ListView.cs: keep a matrix of the icon mode layout to facilitate
6322 keyboard navigation. Support Up/Down/Left/Right selection correctly
6323 for all 4 View modes.
6324 * ListViewItem.cs: add internal row/col fields for icon layouts.
6326 2006-03-15 Jackson Harper <jackson@ximian.com>
6328 * TabControl.cs: Redraw the tabs when we resize so their newly
6329 calculated sizes are drawn on screen.
6330 * X11Keyboard.cs: Begginnings of XIM support. We also now support
6331 composite characters.
6332 * XplatUIX11.cs: Keyboard driver needs to know about focus changes
6333 - filter events so that composite characters can be created
6335 * X11Structs.cs: Add XIMProperties enum.
6337 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
6339 * Control.cs (BringToFront, SendToBack): Don't use window or handle
6342 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
6344 * Control.cs (PerformLayout): We don't need to consider visiblity
6345 for anchoring, only for docking. This fixes 'whacky' alignment
6346 in listbox and other controls that use implicit scrollbars after
6347 the previous PerformLayout patch
6348 * ListBox.cs: Switched to use implicit scrollbars
6350 2006-03-14 Mike Kestner <mkestner@novell.com>
6354 - chain up the "new event" overrides to base and use
6355 OnEvent to raise them. Part of fix for bug #76509.
6357 2006-03-14 Alexander Olk <alex.olk@googlemail.com>
6359 * FileDialog.cs: Do not select an item in the parent directory
6362 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
6364 * Control.cs (PerformLayout): It would seem that we considered
6365 invisible windows for our layout. Not quite the right thing
6366 to do. Now we don't any longer, thereby fixing bug #76889.
6368 2006-03-14 Peter Dennis Bartok <pbartok@novell.com>
6370 * Control.cs (CanFocus): I goofed. A control can have focus
6371 even though it's not selectable. Made it match MS docs.
6373 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
6375 * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
6376 center by default (fixes #76895)
6377 * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced
6378 all uses of Border3DSides.All with the explicit ORd together
6379 Left|Right|Top|Bottom because I assume that nobody was aware
6380 that All also implies a center fill. Most places I checked had
6382 * ProgressBarStyle.cs: Added
6384 2006-03-13 Mike Kestner <mkestner@novell.com>
6386 * ListView.cs: fix breakage in drag shadow header positioning
6387 from Peter's csc compilation fix.
6389 2006-03-13 Mike Kestner <mkestner@novell.com>
6391 * ListView.cs: fix NRE produced by backspacing twice in a focused
6394 2006-03-13 Mike Kestner <mkestner@novell.com>
6396 * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
6398 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
6400 * Hwnd.cs: Added fixed_size field to track windows whose size cannot
6402 * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
6403 the allowed size before making programmatic size changes
6405 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
6407 * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are
6408 set, metacity is broken and will still use the emty sizes in
6409 the struct. (Fix for #77089)
6411 2006-03-13 Peter Dennis Bartok <pbartok@novell.com>
6413 * XplatUIStructs.cs: Split WindowStyles into WindowStyles and
6414 WindowExStyles and marked both enums as Flags
6415 * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
6416 NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
6417 to match WindowStyles split
6419 - SetWMStyles: Added cehck to not apply WM attributes to Child windows
6420 - Updated to match WindowStyles split
6422 - Fixed FosterParent creation, was using ExStyle on the Style field
6423 (This should help with Popup focus issues)
6424 - Updated to match WindowStyles split
6426 2006-03-13 Jackson Harper <jackson@ximian.com>
6428 * MdiWindowManager.cs: Use the system menu height. Fixes some
6429 strange sizing issues.
6431 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
6433 * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
6435 - Scroll to caret after inserting text (#77672)
6436 - Make scroll range one pixel higher, fixes off-by-one error (and
6437 makes underlines visible on the last line)
6439 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
6441 * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
6442 the keyboard state from being stuck with keys in 'pressed' state when
6443 focus is switched away via keyboard
6444 * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
6445 reset the keyboard if no X11 KeyUp events are expected to come
6446 * X11Structs.cs: Switched type of Visible to bool to match driver
6448 2006-03-12 Peter Dennis Bartok <pbartok@novell.com>
6451 - Switched caret to be just 1 pixel wide, matches MS and looks less
6453 - Moved caret display 1 pixel down from the top of the control
6455 - InsertCharAtCharet: Update the selection start if moving the caret
6456 (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
6457 - No longer always creating the caret when the caret methods are
6458 called. Only the actual ShowCaret/HideCaret will do that now
6459 - Only setting caret visible if the owner control has focus
6460 - UpdateView: Added invalidation-shortcut logic for center and right
6461 aligned text. Previously we'd update all according to the left
6462 logic which caused drawing errors. Also fixed height of invalidated
6463 areas, now properly invalidating the whole area (was off-by-one)
6464 - owner_HandleCreated: Always generate the document when the
6465 handle is created; this ensures that
6467 - Fixed situation where caret would disappear under the right
6468 window border, also improved scrolling behaviour on left-
6470 - Fixed right-aligned textboxes to have a border to the
6471 right instead of the caret being under the right border
6473 - Switched from 'nested' to simple visible/not visible tracking
6474 for caret (part of fix for #77671)
6475 - No longer passing through translated FocusIn/FocusOut messages
6476 since we were notifying too often and the wrong windows. Instead
6477 we just notify our focussed window of receiving or loosing focus
6478 * XplatUIWin32.cs: Switched from 'nested' show/hide
6479 counting for caret to simple visible yes/no behaviour (part of
6482 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
6484 * Mime.cs: Remove debug code...
6486 2006-03-11 Alexander Olk <alex.olk@googlemail.com>
6488 * MimeGenerated.cs: Removed
6489 * Mime.cs: Mime now reads the mime data (magic, globs, aliases
6490 and subclasses) from /usr/(local/)share/mime and
6491 $HOME/.local/share/mime.
6493 2006-03-10 Jackson Harper <jackson@ximian.com>
6495 * MdiWindowManager.cs: Recalc the NC area when a window is
6496 maximized/restored so that the menu area is drawn on forms that
6499 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
6501 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
6502 XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
6503 us to force a WM_NCCALCRESIZE message being sent. This is needed
6506 2006-03-10 Jackson Harper <jackson@ximian.com>
6508 * Form.cs: We need to use the ActiveMenu when calculating menu
6510 - Fix nullref when the window manager hasn't been created yet.
6511 * Control.cs: Fix nullref when we try to bring a control to the
6512 front that has no parent.
6513 * MdiWindowManager.cs: Use the MaximizedMenu for calculating
6515 - Add a dummy item to the maximized menu so it always has the
6516 correct height. Otherwise when there are no menus we don't get our
6520 2006-03-10 Jackson Harper <jackson@ximian.com>
6522 * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
6524 * Form.cs: Make the window_state internal so the window managers
6526 - When an MDI child is maximized let its window manager create the
6527 main menu (so it can add its icon).
6528 - Notify the window managers of state changes
6529 - Let the window manager paint its buttons and handle button
6530 clicks on the menu when it is maximized.
6531 * InternalWindowManager.cs: Move the prev_bounds into the mdi
6532 window manager, since tool windows don't use it, only mdi windows.
6533 - Tell the main form that we don't want it to handle NCPAINT
6534 itself to avoid extra painting.
6535 - Handle clicks on a maximized windows menu.
6536 - Handle window state changes
6537 - Handle minimize/maximize clicks correctly by setting the window state.
6538 * MdiWindowManager.cs: Add an icon menu that (the menu you get
6539 when clicking on the forms icon).
6540 - New method to create a forms maximized menu. This is its normal
6542 - Handle window state changes.
6543 - Handle sizing of maximized windows. Maximized windows are just
6544 drawn bigger then the parent visible area. All controls are still
6545 there, they are just outside the visible area (this matches windows).
6546 * MdiClient.cs: No scrollbars when a child window is maximized.
6547 - Let the children windows figure out how big they should be when
6548 sizing maximized windows.
6549 - Implement a version of ArrangeIconicWindows somewhat similar to
6550 Windows version. There are some little differences, but I don't
6551 think any app will rely on the layout of minimized mdi windows.
6553 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
6555 * Padding.cs: Several fixes to allow compiling with csc 2.0
6557 2006-03-09 Jackson Harper <jackson@ximian.com>
6560 * MenuItem.cs: Cheap hack so we can add items to the list without
6561 the events being raised. This allows adding mdi items during
6562 drawing. TODO: Should probably find a better time to add the items.
6564 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
6566 * ThemeWin32Classic.cs:
6567 - CheckBox_DrawText: Added logic to not wrap if not enough space
6568 is available (Fix for bug #77727)
6569 - RadioButton_DrawText: Added logic not to wrap if not enough
6570 space is available (Fix for bug #77727). Also removed some
6571 duplicate code, DrawString always drawing the regular text
6572 before hitting the if statement.
6574 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
6576 * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
6578 2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
6580 * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
6581 * ContainerControl.cs: Partial implementation of some 2.0 scaling
6582 methods. Moved the new 2.0 properties into alphabetical order with
6583 other properties and added MonoTODO tags
6585 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
6587 * AutoScaleMode.cs: Added. Fix build.
6589 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
6591 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
6592 XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
6593 and was requiring premature handle creation for calls from above
6594 * Form.cs, Control.cs: Removed handle arguments from calls to
6595 CalculateClientRect()
6597 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
6599 * ListView.cs (HeaderMouseMove): Fix csc compilation.
6600 drag_column.column_rect is MarshalByRef and can't be used that way
6602 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
6604 * AxHost.cs: Added deserialization constructor for
6605 AxHost+State (fixes 77743)
6607 2006-03-09 Mike Kestner <mkestner@novell.com>
6610 - Added column drag reordering for details view.
6611 - fixed behavior when mouse is dragged off column and
6612 AllowColumnReorder is false.
6613 * ColumnHeader.cs: clone the format too in Clone.
6614 * Theme.cs: add DrawListViewHeaderDragDetails method.
6615 * ThemeWin32Classic.cs:
6616 - impl new method for drawing drag column shadows and targets.
6617 - support column offset for details mode in DrawListViewItem.
6619 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
6621 * TextControl.cs: Reset the char_count when the document is cleared
6622 (Fixes bug reported on mono-winforms mailing list)
6624 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
6626 * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
6627 of calling base we simply process the key ourselves, since both
6628 DefWindowProc and the handled method would set m.Result.
6631 2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
6633 * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
6634 method also moves the window; instead implemented a copy of
6635 Control.ScaleCore (Part of fix for #77456)
6637 - Created new CreateGraphicsInternal method to allow providing
6638 a graphics context when no handle is created without triggering
6639 handle creation. (Part of fix for #77456)
6640 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
6642 - Switched Constructor to require TextBoxBase instead of Control (to
6643 allow uncast access to CreateGraphicsInternal)
6644 - Safeguarded use of owner.Handle property. No longer accessing it
6645 unless the handle is already created.
6646 - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
6647 - Now triggering a recalc when owning control becomes visible
6648 * TextBox.cs, RichTextBox.cs: Switched to use new internal
6649 TextBoxBase.CreateGraphicsInternal() method to avoid triggering
6650 premature handle creation (Part of fix for #77456)
6652 - We now only destroy our double-buffering buffers when the
6653 control is resized or disposed, but not when visibility
6654 changes. (The code even re-created them twice every time)
6655 - Now requiring a redraw of the buffer on visibility changes
6656 (fixes bug 77654 part 2)
6657 - Not passing OnParentVisibleChanged up unless the control
6659 - CanFocus: Fixed to match MS documentation
6660 - Focus: Fixed to return actual focus state and to check if
6661 setting focus is legal before setting it
6663 2006-03-08 Peter Dennis Bartok <pbartok@novell.com>
6665 * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
6666 when to draw focus rectangle by looking at parent focus and
6667 selected state instead. This fixes TabPages on Linux sometimes
6668 having none or multiple focus rectangles.
6669 * XplatUIX11.cs (SetFocus):
6670 - Don't set the focus if the same window already has focus
6671 - Use SendMessage instead of PostMessage (like it's Win32
6672 equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
6673 to match MS behaviour
6674 * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
6677 2006-03-07 Jackson Harper <jackson@ximian.com>
6679 * PictureBox.cs: Revert line I accidently committed last week.
6681 2006-03-07 Peter Dennis Bartok <pbartok@novell.com>
6684 - Added new IsRecreating and ParentIsRecreating properties to
6685 allow testing if RecreateHandle has been called on ourselves
6686 or one of our parents
6687 - WndProc(WM_DESTROY): If our control handle is being recreated
6688 we immediately need to create the handle when receiving the
6689 destroy, that way our child windows find a valid parent handle
6690 when they themselves are being recreated upon WM_DESTROY receipt
6691 (fix for bug #77654 part 1)
6693 - DestroyWindow: WM_DESTROY must be sent to our own window before
6694 notifying any child windows. MS documents that child windows
6695 are still valid when WM_DESTROY is received. (Control now relies on
6697 - Added some fine-grain debug options
6699 2006-03-06 Jackson Harper <jackson@ximian.com>
6701 * MdiClient.cs: Redid scrolling logic a bit to create a virtual
6702 box and base calculations off this.
6703 * MdiChildContext.cs:
6704 * MdiWindowManager.cs: Don't need to ensure scrollbars here
6707 2006-03-06 Peter Dennis Bartok <pbartok@novell.com>
6709 * Splitter.cs: In situations where the affected control is added
6710 to the parent's control list after the splitter, we would not
6711 populate affected. Now we try populating it on mousedown, if
6712 it's not already set, and force it to be re-set whenever our
6715 2006-03-03 Matt Hargett <matt@use.net>
6717 * Control.cs: implement Control.Padding
6718 * Padding.cs: -Padding.All returns -1 when constructing with the
6719 implicit default ctor
6720 -Padding.ToString() matches MS.NET
6721 * ContainerControl.cs: implement
6722 ContainerControl.AutoScaleDimensions
6723 * ListControl.cs: implement ListControl.FormattingEnabled
6724 * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
6726 * TabPage.cs: Implement UseVisualStyleBackColor.
6727 * PictureBox.cs: Implement PictureBox.InitialImage.
6729 2006-03-03 Mike Kestner <mkestner@novell.com>
6731 * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
6732 event declarations to proxy to base event.
6733 * ListViewItem.cs: update to use ItemControl.
6734 * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
6735 * ThemeWin32Classic.cs: update to new ListView theme API and fix
6736 column header label rendering for 0 width columns.
6738 2006-03-03 Peter Dennis Bartok <pbartok@novell.com>
6740 * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
6741 that causes the control to be created. Fixes #77476.
6743 2006-03-02 Jackson Harper <jackson@ximian.com>
6745 * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
6748 2006-03-02 Peter Dennis Bartok <pbartok@novell.com>
6750 * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
6751 passed in for the EventArgs (fixes #77690)
6753 2006-03-01 Jackson Harper <jackson@ximian.com>
6755 * ScrollBar.cs: Refresh afterbeing resized.
6757 2006-02-28 Mike Kestner <mkestner@novell.com>
6759 * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
6760 Clean up a tracker compile warning.
6761 * MenuItem.cs: add internal PerformPopup method.
6764 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
6766 * TextBoxBase.cs (set_Text): Recalculate the document (causing an
6767 implicit expose) when the text is set to null
6769 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
6771 * RichTextBox.cs (FlushText): When newline is true, we always
6772 need to split the line, even if no text is on it and we may
6773 never eat newlines. (Fixes #77669)
6775 2006-02-28 Mike Kestner <mkestner@novell.com>
6777 * ListView.cs: Add UpdateSelection internal method. Remove SelectItem
6778 and set Selected instead.
6779 * ListViewItem.cs: Call owner.UpdateSelection to manipulate the
6782 2006-02-28 Peter Dennis Bartok <pbartok@novell.com>
6784 * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
6786 2006-02-28 Alexander Olk <alex.olk@googlemail.com>
6789 - Got rid of the panel. All controls are now directly added to
6791 - It is now possible to set a font with the Font property
6792 - MinSize and MaxSize property do now what they should
6793 - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
6794 - Searching and selecting a font with the font textbox works now,
6795 the same applies to the style and size textbox
6796 - Draw the correct 3D border in the example panel
6797 - Fixed a little mem leak (unused fonts didn't get disposed)
6798 - Many other internal updates/rewrites...
6801 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
6804 - InsertRTFFromStream: Added 'number of characters inserted' argument
6805 - set_SelectedRTF: Now using the number of characters to calculate
6806 the new location for the selection and cursor (x/y cannot be used
6807 due to potentially already wrapped text)
6809 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
6811 * TextControl.cs: Added property and implemented means to allow
6812 disabling recalculation of a document (can be used to speed up
6813 multiple inserts and is needed to make RTF inserts predictable, see
6815 * RichTextBox.cs: Using the new NoRecalc property of Document to
6816 keep x/y insert locations predictable. Also makes it faster inserting
6819 2006-02-27 Peter Dennis Bartok <pbartok@novell.com>
6821 * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
6822 it's easier for a child control to handle the other messages without
6823 having to duplicate the special functionality
6825 - WndProc: Removed calling base handler for WM_KEYDOWN and added
6826 code to handle processing the key ourselves, in order to get
6827 access to the result of KeyEventArgs.Handled. We now only call
6828 ProcessKey if they key hasn't been handled already. Fixes #77526.
6829 - set_Text: If null or empty string is given, just clear the
6830 document. Fixes part of #77526
6832 2006-02-27 Jackson Harper <jackson@ximian.com>
6834 * SizeGrip.cs: Paint the background color before painting the grip
6835 so things look right.
6836 * MdiClient.cs: Add the sizegrip when both scrollbars are used.
6838 2006-02-27 Mike Kestner <mkestner@novell.com>
6841 - Restructure layout and invalidation model to remove a ton of
6842 flicker from the control and speed up performance in general.
6843 - Add manual column resize, flickers like crazy, but I already have
6844 some ideas on how I'll fix that. (#76822)
6845 - Merge the three Icon-based views into a single layout method.
6846 - Move item selection interaction logic from the item since
6847 interaction with the collections is more appropriate to the view.
6848 - Deselection on non-item clicks.
6850 - Encapsulate most of the layout. Add some internal props to trigger
6851 layout. Move to a model where Items invalidate themselves instead
6852 of just invalidating the whole control every time something changes.
6853 - Invalidate on Text/Caption changes.
6854 - switch to an offset based layout model to avoid having to absolute
6855 position every element on item moves.
6856 - correct checkbox layout to conform to MS layout.
6857 * ThemeWin32Classic.cs:
6858 - refactor some column header drawing code.
6859 - fix string justification for column headers (#76821)
6860 - make SmallIcon labels top justified for compat with MS impl.
6861 * ThemeClearlooks.cs:
6862 - adjust to new ListViewItem internal checkbox bounds api.
6864 2006-02-27 Jackson Harper <jackson@ximian.com>
6866 * Control.cs: Change where implicit controls fall in the zorder.
6867 They are now on top of all children.
6868 - Synced AddImplicit code with Add
6869 - Removed unused enumerator.
6870 * SizeGrip.cs: Remove the TODO as its been TODONE.
6872 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
6874 * TextControl.cs(Insert): Combine the last lines unless the insertion
6875 string ends with \n\n, otherwise we leave one line too many (Fixes
6876 something I noticed with the testapp for #77526; the bug itself was
6877 already fixed in the previous checkin)
6879 2006-02-26 Peter Dennis Bartok <pbartok@novell.com>
6882 - SelectionColor and SelectionFont methods no longer set absolute
6883 styles. Instead, the keep font or color respectively (This
6884 resolves a long-standing FIXME in the code)
6885 - When flushing RTF text, the insert code now considers text trailing
6886 behind the insertion point (Fixes the bug where when replacing
6887 the selected text via SelectedRTF the remainder of the line behind
6888 the selection would stay on the first insertion line)
6890 - AppendText now updates the selection points after inserting text
6891 - AppendText now ensures that the last tag (sometimes 0-length) of
6892 the document is used for the style information (Fixes part of
6895 - Created new FontDefiniton class to allow describing partial style
6897 - StreamLine() now takes a lines argument, to allow it to decide
6898 whether an encountered zero-length tag is the last in the document
6899 (which must be kept to not loose the font/color contained in it,
6901 - Created Combine() and Split() methods for Marker structs, to
6902 support marker updates due to reformatted documents (soft line
6904 - Implemented Document.CaretTag setter
6905 - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
6906 of the last line (Not the cause, but also exposed by bug #77220)
6907 - Added LineTag argument to InsertString method, to allow callers
6908 to force a certain tag to be used (required to force use of the
6909 trailing zero-length tag of a document)
6910 - Now updating markers in Combine(), to avoid stale tag markers
6911 - Added some method descriptions to aid maintenance
6912 - Implemented new FormatText concept, allowing additive/subtractive
6913 formatting by only specifying the components that are to be
6914 changed. This was needed for resolving the RTB.SelectedColor/
6915 RTB.SelectedFont fixmes
6916 - Added Break() support method to allow breaking up linetags (used
6917 for partial formatting)
6918 - Added GenerateTextFormat() method. It is used for partial
6919 formatting and allows to generate a full font/color from given
6920 attributes and an existing tag.
6922 2006-02-26 Jackson Harper <jackson@ximian.com>
6924 * XplatUIX11.cs: Use the correct caption height.
6925 - Translate hittest coordinates to screen coords to match MS.
6926 * XplatUIWin32.cs: When we create MDI windows we need to reset
6927 some of the style flags, so we get a nice blank window, and can
6928 draw all the decorations ourselves.
6929 - Set a clipping rectangle on the non client paint event, the
6930 window manager drawing code needs one.
6931 * Form.cs: The window manager needs to know when the window state
6933 * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
6934 don't need to factor in border and title sizes in these
6935 methods. TODO: Remove the args and fix the call points.
6936 * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
6938 - Let the driver set the cursors.
6939 - Improve active window handling
6940 - Correct sizes for title bars and buttons.
6941 - Match MS drawing better
6942 * MdiWindowManager.cs: We don't need to handle border style
6943 updates specially anymore.
6944 - Check for scrollbars when windows are done moving
6945 - Handle Active properly.
6946 * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
6947 correctly. I am spewing the exception though, so we don't hide the
6950 2006-02-26 Pedro Martinez Julia <pedromj@gmail.com>
6952 * DataGridViewRowPostPaintEventArgs.cs,
6953 DataGridViewCellPaintingEventArgs.cs,
6954 DataGridViewRowCollection.cs,
6955 DataGridViewRowPrePaintEventArgs.cs,
6956 DataGridViewCell.cs: Clear a few warnings and implement a few
6957 exceptions that should be thrown.
6959 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
6961 * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
6962 'inheriting' our parent's (non-default) cursor. (Part of
6965 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
6967 * XplatUIX11.cs: Fixed cast to make csc happy
6969 2006-02-22 Peter Dennis Bartok <pbartok@novell.com>
6971 * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
6972 it's for the client area (part of fix for #77479 and needed
6973 for MDI window cursor handling)
6975 - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
6976 the appropriate default cursors and also passing the message
6978 - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
6979 for non-client areas
6981 2006-02-15 Jackson Harper <jackson@ximian.com>
6983 * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
6984 is a real MDI window
6986 2006-02-14 Alexander Olk <alex.olk@googlemail.com>
6988 * X11DesktopColors.cs: Instead of checking the desktop session
6989 string for "KDE" check if it starts with "KDE"
6991 2006-02-10 Jackson Harper <jackson@ximian.com>
6993 * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
6996 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
6998 * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
7001 - Got rid of the panel. All controls are now directly added to
7003 - Changed to mono coding style
7005 2006-02-10 Jackson Harper <jackson@ximian.com>
7007 * InternalWindowManager.cs: We don't need the set visibility to
7008 false hack anymore now that peter has written beautiful shutdown
7011 2006-02-10 Peter Dennis Bartok <pbartok@novell.com>
7013 * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
7014 where already explicitly destroyed
7016 2006-02-10 Jackson Harper <jackson@ximian.com>
7018 * MdiClient.cs: Handle the case where windows are too high or to
7019 the left and we need scrollbars.
7021 2006-02-10 Alexander Olk <alex.olk@googlemail.com>
7023 * MimeIcon.cs: Added some icons
7026 - Got rid of the panel. All controls are now directly added to
7028 - Changed to mono coding style
7029 - On Linux "My Computer" and "My Network" will now show some
7030 more usefull information. A new class, MasterMount, gathers
7031 this information from /proc/mount. Updated MWFFileView to make
7032 use of this information
7033 - Fixed a bug that caused FileDialog to crash when
7034 ".recently_used" file had a zero size
7035 - FilterIndex does now what it should
7037 * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
7040 2006-02-09 Jackson Harper <jackson@ximian.com>
7042 * ComboBox.cs: Don't touch if null.
7044 2006-02-09 Peter Dennis Bartok <pbartok@novell.com>
7046 * Cursor.cs: 64bit safeness fix
7047 * XplatUIX11.cs: Removed several unneeded and one moronic cast.
7049 2006-02-09 Jackson Harper <jackson@ximian.com>
7051 * Form.cs: If a form is made into an MDI form update the styles so
7052 all the props can get set correctly.
7053 - Kill the mdi_container when we dont need it anymore.
7054 * InternalWindowManager.cs: Add missing NOT
7056 2006-02-08 Jackson Harper <jackson@ximian.com>
7058 * InternalWindowManager.cs: Respek clipping when drawing MDi
7061 2006-02-08 Jackson Harper <jackson@ximian.com>
7063 * Hwnd.cs: Add bits to track non client expose events.
7064 * XplatUIX11.cs: Track non client expose events on the hwnd. This
7065 gives us a proper invalid rect and will allow for some nice
7066 optimizations with NC client drawing
7067 - MDI windows are children windows, so move their style handling
7068 into the child window block.
7069 * InternalWindowManager.cs: Remove a state reset that was
7070 getting invoked at the wrong time. Fixes managed windows getting
7071 into a 'stuck' captured state.
7073 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
7075 * TextControl.cs (Document.ctor): Now initializing
7076 selection_anchor. Fixes #77493
7078 2006-02-07 Jackson Harper <jackson@ximian.com>
7080 * TrackBar.cs: The increment/decrements were backwards.
7082 2006-02-07 Mike Kestner <mkestner@novell.com>
7084 * Theme*.cs : remove ThemeEngine.Current usage as it just points back
7085 to the instance itself.
7087 2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
7089 * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
7090 on ulongs and pointers, the size differs between 32bit and 64bit
7093 2006-02-07 Mike Kestner <mkestner@novell.com>
7095 * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
7096 for 64 bit platforms to work around a metacity bug.
7098 2006-02-07 Jackson Harper <jackson@ximian.com>
7100 * TrackBar.cs: Process the input keys we need, and hookup to
7101 KeyDown instead of using WndProc, so we get key messages.
7103 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
7105 * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
7107 * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
7108 we need to translate the XdndVersion atoms array before sending it
7110 2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
7113 - The preceeding 64bit fixes had a bug: ChangeProperty expects the
7114 number of bits for the property, not the number of bytes. The
7115 change to provide IntPtr.Size broke 32bit. (64bit was also wrong
7116 but would not crash since it specified 8 bits instead of 4 bits)
7117 - More 64bit fixes: Switched all atoms from int to IntPtr (they are
7118 defined as XID -> long in the C headers)
7119 - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms
7120 references since those are now IntPtr to begin with
7121 - Switched all Atom.XXX 'int' casts to IntPtr casts
7122 - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
7123 - Fixed XInternAtom signature for 64bit, now returns an IntPtr
7124 - Added XChangeActivePointerGrab DllImport (for X11DnD)
7126 - Changed 'int' type for Atoms in XEvent structures to IntPtr
7127 - Changed atom in HoverStruct to be IntPtr
7129 - Removed local DllImports, switched code to use those from XplatUIX11
7130 - Removed/fixed casts related to the switch of Atom to be a IntPtr
7132 2006-02-06 Mike Kestner <mkestner@novell.com>
7134 * XplatUIX11.cs : many more 64 bit pinvoke changes. I've audited all the
7135 method signatures in the import region. There may still be some
7136 lingering struct marshaling issues, as I didn't drill down into those.
7139 2006-02-06 Jackson Harper <jackson@ximian.com>
7141 * ComboBox.cs: Dont manually set the top_item, this is computed
7142 when the scrollbar position is set.
7144 2006-02-06 Mike Kestner <mkestner@novell.com>
7146 * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
7147 startup crashes on amd64. There's other fixes needed. All pinvoke
7148 usage of Atom needs to be mapped to IntPtr for example. And there are
7149 likely other int/long issues to be addressed.
7151 2006-02-04 Alexander Olk <alex.olk@googlemail.com>
7153 * FileDialog.cs: One more...
7155 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
7157 * FileDialog.cs: Next try
7159 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
7161 * FileDialog.cs: First part of fix for #77464
7163 2006-02-03 Alexander Olk <alex.olk@googlemail.com>
7165 * ButtonBase.cs, ContainerControl.cs, Forms.cs,
7166 ThemeWin32Classic.cs: Fix for #77458. Correct handling of
7167 AcceptButton border drawing.
7169 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
7171 * Form.cs: Moved positioning of form after auto scaling is applied,
7172 otherwise it would possibly use wrong form size.
7174 2006-02-03 Peter Dennis Bartok <pbartok@novell.com>
7176 * Control.cs (RecreateHandle): No need to re-create any child
7177 controls, the child windows will get destroyed automatically by
7178 the windowing system or driver, and re-created when the handle
7179 is being accessed the first time. Fixes #77456
7180 * Form.cs: No longer setting the form to closing if the handle is
7181 being recreated. This seems like the right thing to do, don't
7182 have a bug or testcase for this, though.
7184 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
7186 * FileDialog.cs: Suspend/Resume layouting when changing sizes of
7187 controls to avoid unwanted side effects
7189 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
7192 - ScaleCore needs to scale the bounds, not the ClientSize of the
7193 control. Fixes #77416.
7194 - DefaultSize is 0,0 for control
7196 - DefaultSize is 100, 20
7197 - SetBoundsCore: Now enforcing the height, no matter if the provided
7198 height is more or less than the preferred one, as long as AutoSize
7200 * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
7202 2006-02-02 Peter Dennis Bartok <pbartok@novell.com>
7205 - ResumeLayout: Fixed logic when to call PerformLayout, we may not
7206 call unless both performLayout is true *and* we have a pending
7208 - ResumeLayout: MS does not completely nest Suspend and Resume,
7209 they bottom out at 0, fixed our code to match that.
7210 - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
7211 SetBoundsCore, we were updating even when we shouldn't. This fixes
7212 swf-anchors mis-anchoring when resizing the app fast and lots.
7213 - UpdateDistances: Now only setting the left and top distance if
7214 we have a parent and are not suspended, this is based on
7215 a suggestion by Don Edvaldson in bug #77355.
7216 - OnVisibleChanged: Fixed logic when to create the control. We may
7217 not create the control if we have no parent or if it's not visible;
7218 switched to using Visible property instead of is_visible field
7219 since the property also considers parent states. This fixes a bug
7220 when starting Paint.Net
7222 2006-02-02 Jackson Harper <jackson@ximian.com>
7224 * Form.cs: If the forms handle hasn't been created yet don't call
7225 into xplatui to make it top most, just set the topmost flag on the
7226 form in CreateParams
7227 * XplatUIX11.cs: Handle WS_EX_TOPMOST.
7229 2006-02-01 Jackson Harper <jackson@ximian.com>
7231 * ScrollableControl.cs: Refactored the Recalculate method a
7232 little, this wasn't handling all the variants of bottom and right
7233 bars needed to be added and added/removed based on their
7234 counterparts being added/removed (which changes the drawable
7235 size). Also we special case client widths and heights of 0 and
7236 don't add the scrollbar for those.
7238 2006-02-01 Peter Dennis Bartok <pbartok@novell.com>
7241 - Added method to get AbsoluteGeometry(); currently unused, but might
7242 be used in the future, if we try again to figure out toplevel
7243 coordinates with some more crappy window managers
7244 - Added FrameExtents() method to retrieve the WM set decoration size
7245 - Tried to fix up AddConfigureNotify and handling of ReparentNotify
7246 to deal with at least KDE, FVWM and metacity (Fixes #77092)
7248 - Added whacky_wm tracking var for metacity
7249 - Added logic to have default menu height if the actual menu height
7250 has not yet been calculated (part of fix for #77426)
7251 * Form.cs: Keep track whether client size has been set and re-set
7252 it if a menu is added/removed afterwards (Fixes #77426)
7254 2006-01-31 Jackson Harper <jackson@ximian.com>
7256 * Control.cs: When a new Site is set on the component attempt to
7257 pull the AmbientProperties from it.
7259 2006-01-31 Peter Dennis Bartok <pbartok@novell.com>
7261 * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
7262 in the background of the owning form. Fixes #77332
7264 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
7266 * MimeIcon.cs: Fix for #77409
7268 2006-01-31 Alexander Olk <alex.olk@googlemail.com>
7270 * XplatUIX11GTK.cs: Initial import
7272 2006-01-31 Jordi Mas i Hernandez <jordimash@gmail.com>
7274 * FixedSizeTextBox: fixes class signature
7276 2006-01-30 Jackson Harper <jackson@ximian.com>
7278 * FixedSizeTextBox.cs: New internal class that represents a
7279 textBox that will not be scaled.
7282 * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
7285 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
7287 * XplatUIX11.cs: Retrieve default screen number instead of
7288 assuming 0. Attempted fix for #77318
7290 2006-01-30 Peter Dennis Bartok <pbartok@novell.com>
7293 - GetWindowPos: When a window is parented by FosterParent, use
7294 the desktop instead of FosterParent as the base to get coordinates
7295 - CreateWindow: Don't make FosterParent the parent window for Popups
7296 if we don't want a taskbar entry, Popups automatically don't get one
7297 * Hwnd.cs: Need to call remove to actually remove the key from the
7300 2006-01-30 Mike Kestner <mkestner@novell.com>
7302 * MenuAPI.cs: adjust MainMenu item popup location to y=0.
7304 2006-01-30 Jackson Harper <jackson@ximian.com>
7307 * TreeNode.cs: Raise events no matter how the treenode is
7308 checked. Patch by Don Edvalson.
7310 2006-01-30 Jackson Harper <jackson@ximian.com>
7312 * TreeNode.cs: Signature fix.
7314 2006-01-29 Alexander Olk <alex.olk@googlemail.com>
7316 * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
7318 2006-01-20 Mike Kestner <mkestner@novell.com>
7320 * Form.cs: Add ActiveTracker property to do Captures and perform mouse
7321 event forwarding when menus are active.
7322 * MenuAPI.cs: kill the GrabControl hack. Use Form.ActiveTracker.
7323 Most of the patch is pdb's with a little rework.
7325 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
7327 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs:
7328 Removed GetMenuDC and ReleaseMenuDC methods; replaced
7329 by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
7330 * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
7331 * InternalWindowManager.cs: Added use of PaintEventStart/End to
7332 handling of WM_NCPAINT message, now passing the PaintEventArgs to
7333 the PaintWindowDecorations method
7334 * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
7335 * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
7336 * MenuAPI.cs: Made tracker window invisible
7338 - Removed GetMenuDC and ReleaseMenuDC methods
7339 - Implemented the client=false path for PaintEventStart and
7342 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
7344 * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
7345 * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
7348 - MaximizeBox, MinimizeBox: Recreate the handle when setting
7350 - CreateParams: Reworked the styles to match MS look'n'feel,
7351 removed automatic setting of MinimizeBox, MaximizeBox, etc. via
7352 the WS_OVERLAPPEDWINDOW style. This fixes #76823.
7354 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
7356 * XplatUIX11.cs(GetWindowState): Now throwing an exception when the
7357 window is not mapped, since otherwise every form that's being
7358 created is considered minimized, which is wrong.
7359 * Form.cs: Catching the exception and returning our internal value
7362 2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
7364 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
7365 SetWindowMinMax() to have means to tell the driver about the minimum,
7366 maximum and maximized state window sizes. (Part of the fix for #76485)
7368 - Implemented tracking of minimum and maximum window size, now calling
7369 new SetWindowMinMax() driver method to tell the driver (Part of the
7371 - Finished handling of WM_GETMINMAXINFO method, now setting all values
7372 (Completes fix for #76485)
7373 - Calling new SetWindowMinMax driver method when the handle for a
7374 form is created, to make sure the driver knows about it even if
7375 the values have been set before the window was created
7376 - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
7377 to avoid messing up our anchoring calculations (partial fix
7379 * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
7381 - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
7382 - Improved GetWindowState() to detect 'Minimized' state on Metacity
7383 (and presumably other freedesktop.org compliant WMs). Left the
7384 assumption unmapped=minimized, needed for SetVisible to work.
7385 - Now setting the window state when creating windows
7386 - Fixed SetVisible to consider/set the window state when mapping
7387 a Form. We cannot set the state before it's mapped, and we cannot
7388 use Form.WindowState once it's mapped (since it would ask the
7389 driver and get 'normal'. Therefore, we grab the state before
7390 mapping, map, and then set state.
7391 - Implmemented SetWindowMinMax method; Metacity does not seem to
7392 honor the ZoomHints, though.
7394 - Removed MINMAXINFO (moved to XplatUIStructs)
7395 - Added SetWindowMinMax stub (on Win32 the only way to set that
7396 information is in response to the WM_GETMINMAXINFO message, which
7397 is handled in Form.cs)
7398 - Added logic to SetVisible to set the proper window state when a
7399 form is made visible (fixes #75720)
7401 2006-01-26 Jackson Harper <jackson@ximian.com>
7403 * Control.cs (BeginInvoke): Automagically handle EventHandlers the
7404 same way we handle them with Invoke.
7406 2006-01-25 Peter Dennis Bartok <pbartok@novell.com>
7409 - Added tracking of window state so CreateParams can return
7410 the appropriate style
7411 - Moved setting of WS_CAPTION style in CreateParams to allow
7412 styles without caption
7413 * DataGridTextBoxColumn.cs: We are now also creating the TextBox
7414 control if the TextBox property is accessed. Fixes #77345
7416 - get_Created: now uses is_disposed and is_created to determine
7417 return value (suggested by Jackson)
7418 - CreateHandle: No longer exits if the handle is being recreated
7419 - RecreateHandle: If the handle is not yet created call the
7420 appropriate method to create either control or handle. If the
7421 control is already created CreateHandle will simply exit instead
7422 of just creating the handle
7423 * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
7424 now SendMessage WM_DESTROY directly to the control when DestroyWindow
7427 - When DestroyWindow is called, instead of waiting for the
7428 DestroyNotification from X11, we directly post it to the WndProc
7429 and immediately dispose the hwnd object.
7430 Same applies to DestroyChildWindows, and this obsoletes the
7431 expose_pending tracking. Contrary to Win32 behaviour we destroy our
7432 child windows before our own, to avoid X11 errors.
7433 - Removed the direct sending of WM_PAINT on UpdateWindow
7435 - Reworked DoEvents and GetMessage to allow access to internal queue
7436 even when trying non-blocking access to the queue. Fixes #77335.
7437 Based on a patch suggestion by Don Edvalson. The new private
7438 GetMessage can now also be used as a backend for a PeekMessage
7440 * XplatUI.cs: Improved debug output for CreateWindow
7442 2006-01-25 Jackson Harper <jackson@ximian.com>
7444 * Help.cs: Allow param to be null. Patch by Don Edvalson.
7446 2006-01-24 Jackson Harper <jackson@ximian.com>
7448 * ComboBox.cs: Clamp the max value set for the vertical scrollbar
7449 when we have a MaxDropItems lower then the selected index.
7451 2006-01-24 Jackson Harper <jackson@ximian.com>
7453 * Control.cs: Don't allow selection of non visible controls, allow
7454 selection of controls without parents.
7456 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
7458 * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
7459 * DataGridDrawingLogic.cs: Add editing row only when is necessary
7461 2006-01-23 Jackson Harper <jackson@ximian.com>
7463 * UpDownBase.cs: Make the textbox handle all the selection and
7464 tabbing. This fixes tabing to updown controls.
7466 2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
7468 * TextBoxBase.cs: fixes exception thown the object was null
7470 2006-01-23 Jackson Harper <jackson@ximian.com>
7472 * ButtonBase.cs: Just use the base CreateParams. They set
7473 visibility and enabled correctly.
7476 * MonthCalendar.cs: Lets let the base set as much of the
7477 createparams as possible so we don't have duplicate code all over
7480 2006-01-22 Alexander Olk <alex.olk@googlemail.com>
7482 * ThemeGtk.cs: Added TrackBar and some experimental code to
7483 get double buffering back
7485 2006-01-21 Jordi Mas i Hernandez <jordimash@gmail.com>
7487 * DataGrid.cs: Allows row number set internally higher than the last
7488 when creating a new row. Restores the editing functionality.
7490 2006-01-20 Mike Kestner <mkestner@novell.com>
7492 * MimeIcon.cs: delay Image creation until the icons are accessed
7493 instead of creating 190 scaled images on GnomeHandler startup.
7495 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
7497 * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
7498 first call base before processing the event. Fixes #77279
7500 2006-01-19 Peter Dennis Bartok <pbartok@novell.com>
7502 * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
7503 that the stride for the GDI bitmap would match the stride of
7506 2006-01-19 Alexander Olk <alex.olk@googlemail.com>
7508 * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
7510 2006-01-19 Jackson Harper <jackson@ximian.com>
7512 * ComboBox.cs: Hookup the text controls keydown event so we get
7513 those when the text control has the focus.
7515 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
7517 * Label.cs: Now using the base events instead of defining new ones;
7518 this allows us to just call the base properties without having to
7519 duplicate all base property logic
7521 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
7523 * Label.cs: A label by default is not a tabstop (Fixes one of our
7524 failing nunit tests)
7526 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
7528 * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
7529 * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
7531 2006-01-18 Peter Dennis Bartok <pbartok@novell.com>
7533 * Cursor.cs: Reimplemented creating cursor bitmaps without using
7534 the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
7537 - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream)
7538 constructor creates images that can't be saved. Part of the fix
7540 - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
7541 - SetWindowState: Switched ShowWindow flags (part of an upcoming
7542 bug fix for handling window state in forms properly)
7544 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
7546 * ThemeGtk.cs: Simplify ScrollBar drawing
7548 2006-01-18 Jackson Harper <jackson@ximian.com>
7550 * Splitter.cs: Set the default dock style for the splitter control
7553 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
7555 * ThemeGtk.cs: Corrected StateType and ShadowType for
7558 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
7560 * Control.cs: Make use of Theme.DoubleBufferingSupported
7562 - Added drawing for flat style buttons
7563 - Added ScrollBar drawing
7565 2006-01-18 Alexander Olk <alex.olk@googlemail.com>
7567 * ThemeClearlooks.cs: Removed some unneeded code.
7568 * ThemeGtk.cs: First part of ThemeGtk enhancements.
7570 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
7572 * LinkLabel.cs: We need to update the hover drawing when
7573 leaving the control as well.
7575 2006-01-18 Jordi Mas i Hernandez <jordimash@gmail.com>
7577 * DataGrid.cs: Clicking on non empty areas in the columns
7578 area was giving an exception
7580 2006-01-17 Jackson Harper <jackson@ximian.com>
7582 * ThemeWin32Classic.cs:
7583 * ListView.cs: Do not draw/clip the headers when the header style
7586 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
7588 * DataGrid.cs: Fixes 77260
7590 2006-01-17 Jordi Mas i Hernandez <jordimash@gmail.com>
7592 * DataGrid.cs: Clicking on a column on a empty grid was giving
7595 2006-01-17 Peter Dennis Bartok <pbartok@novell.com>
7597 * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
7598 or any keypress will crash the grid.
7600 2006-01-17 Mike Kestner <mkestner@novell.com>
7602 * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
7603 * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for
7604 invisible/previously-visible items.
7607 2006-01-17 Alexander Olk <alex.olk@googlemail.com>
7609 * ThemeClearlooks.cs:
7610 - Added CL_Draw_Button method; now other theme controls that are
7611 not derived from button or do not have a button can draw buttons
7613 - Updated ComboBox drawing
7614 - Beautified RadioButton drawing
7615 - Corrected drawing of bottom and left tabs
7616 - Beautified DateTimePicker and MonthCalendar
7617 - Added CPDrawButton and CPDrawRadioButton
7619 2006-01-16 Jackson Harper <jackson@ximian.com>
7621 * ComboBox.cs: Set the initial value of the scrollbar to the
7622 current index. Reduce the numbers of refreshs and IndexOfs called.
7624 2006-01-14 Alexander Olk <alex.olk@googlemail.com>
7626 * FileDialog.cs: When the file listview is focused hitting the
7627 backspace key moves the fileview to the parent directory
7629 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
7632 - Added RecreateHandle call when changing taskbar visibility to
7633 trigger reparenting in Win32 driver (Fixes #75719)
7634 - If a window has minimize or maximize buttons, it cannot have
7637 - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
7638 the toplevel form with FosterParent (A toolwindow not on the
7639 taskbar) (Fixes #75719)
7640 - Made FosterParent a toolwindow
7642 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
7644 * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
7646 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
7648 * ToolTip.cs: If SetToolTip is called from a control and the mouse
7649 is currently over that control, make sure that tooltip_window.Text
7652 2006-01-13 Mike Kestner <mkestner@novell.com>
7654 * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
7656 2006-01-13 Jackson Harper <jackson@ximian.com>
7658 * TreeView.cs: On MS GetNodeAt never actually factors in the X
7659 value passed. Also redraw the selected node when we recieve
7660 focus, so tabbing between trees works correctly.
7662 2006-01-13 Alexander Olk <alex.olk@googlemail.com>
7664 * MimeIcon.cs: GnomeHandler: older gnome versions don't have
7665 ~/.gconf/%gconf-tree.xml, so use
7666 .gconf/desktop/gnome/interface/%gconf.xml
7668 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
7670 * TextControl.cs: Draw text in gray if control is disabled
7672 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
7674 * TreeView.cs: Draw the focus rectangle outside the highlight, to
7675 make sure it's always visible. Fixes #76680.
7677 2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
7679 * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
7681 2006-01-13 Jonathan Chambers <jonathan.chambers@ansys.com>
7683 * PageSetupDialog.cs: Added.
7684 * PrintDialog.cs: Attributes.
7685 * PrintPreviewControl.cs: Updates.
7686 * PrintPreviewDialog.cs: Updates.
7688 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
7690 * Control.cs: Undid my selection check fix, since it's not needed
7692 - Now considering the presence of hscroll/vscroll when sizing
7693 vscroll/hscroll respectively. Fixed bug #77077
7694 - Added Left/Up/Down/Right to IsInputKey list to prevent
7695 ContainerControl from stealing them. This fixes what I broke
7696 with my last checkin.
7698 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
7700 * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
7701 I finally understand how the property can be set without a setter :-)
7703 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
7706 - Switched RunLoop to use static Message.Create to create a
7708 - Added PreProcessMessage call in runloop for keyboard events; this
7709 is part of the fix for #77219, I overlooked this originally in the
7710 MSDN doc for PreProcessMessage
7712 - Removed call to PreProcessMessage from handling of keyboard
7713 messages; it's supposed to be done in the message pump
7714 - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
7715 per MSDN documentation.
7716 - IsInputChar: All chars are input chars by default; removed the
7717 parent calling chain, MS does not document that
7718 - PreProcessMessage: If IsInputChar is true, we want to return false
7719 to allow dispatching of the message
7720 - When selecting the next control, now also check that we're not
7721 selecting ourselves again and therefore return a false positive.
7723 - Tried to match return values for IsInputKey and ProcessDialogKey
7724 to what MS returns; moved processing of our special keys outside
7725 ProcessDialogKey since MS does not seem to return true on those.
7726 - Moved code that previously was in ProcessDialogKey into new private
7727 ProcessKey method, which gets called upon receipt of WM_KEYDOWN
7728 - Reworked handling of WM_CHAR to not have to duplicate code from
7729 Control.cs anymore, instead we simply call down to base.
7731 2006-01-12 Jackson Harper <jackson@ximian.com>
7733 * ComboBox.cs: We always need to refresh the text area when
7734 EndUpdate is called. Fixes the combobox in the file dialog.
7735 * Control.cs: Don't create the creator_thread until the controls
7736 handle is created. Also in InvokeRequired we check if the
7737 creator_thread is null. This gives the effect of InvokeRequired
7738 returning true if the controls handle is not created yet, and
7741 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
7744 - Added StartLoop() driver method. This is used to allow drivers to
7745 prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
7746 loop for a particular thread
7747 - Added EndLoop() driver method. This is called once the message
7748 pump for the thread is shut down
7749 - Added SupportsTransparency method to allow the driver to indicate
7750 opacity support for windows
7752 - Removed TODO attribute, completed AllowTransparency property
7753 - Added documented logic to Opacity
7754 * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
7755 ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
7756 versions of CompatibleTextRendering
7757 * X11Structs.cs: Added opacity atom to our atom enumeration
7758 * Hwnd.cs: Added opacity tracking (we need to track since the opacity
7759 of a form might be set before it's reparented by the WM, and we need
7760 the opacity value without calling up to Form)
7761 * XplatUIDriver.cs: Added StartLoop(), EndLoop() and
7762 SupportsTransparency() driver methods
7763 * Application.cs: Now calling StartLoop and EndLoop driver methods
7765 - Added opacity atom registration
7766 - Added StartLoop()/EndLoop() methods. They're empty right now but
7767 will need to get implemented when we switch to a per-thread queue
7768 - Implemented SupportsTransparency() method
7769 - Implemented SetWindowTransparency() method
7770 - Added support for setting the opacity value when a window is
7771 reparented (since the opacity needs to be set on the WM frame)
7772 * XplatUIOSX.cs, XplatUIWin32.cs:
7773 - Added SupportsTransparency(), StartLoop() and EndLoop() methods
7775 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
7777 * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
7779 2006-01-12 Alexander Olk <alex.olk@googlemail.com>
7781 * FileDialog.cs: Added ToolTip for MWFFileView
7782 * MimeIcon.cs: Rewrote GnomeHandler.
7783 - Get currently used gnome icon theme from
7784 ($HOME)/.gconf/%gconf-tree.xml
7785 - Make use of inherited icon themes
7786 - Support SVG icon themes like Tango via librsvg
7788 2006-01-12 Miguel de Icaza <miguel@novell.com>
7790 Revert's Jackson's revert which broke 2.0 builds. Fix both
7793 * Application.cs: Move the use_compatible_text_rendering outside
7794 the NET_2_0 define. If we ever need to use the
7795 use_compatible_text_rendering on the individual controls they will
7796 access the variable from the common shared code paths.
7798 2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
7801 - Added more granular debug options
7802 - Added method to print both window text and id
7803 - Switched debug output to use new Window() debug method
7804 - Added IsEnabled() driver method
7805 - Added EnableWindow() driver method
7807 - Removed end_modal; no longer needed, new loop handles termination
7808 via 'closing' variable
7809 - If form is modal, setting DialogResult will now initiate loop
7810 termination via 'closing' variable
7811 - Added support for is_enabled/WS_DISABLED to CreateParams
7812 - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
7814 - Removed code that's now in RunLoop from ShowDialog()
7815 - Added various documented sanity checks to ShowDialog()
7816 - Added handling of WM_DESTROY message; we set 'closing' on getting
7817 the message to indicate the message pump to terminate
7818 - Added handling of new internal WM_CLOSE_INTERNAL message - it's
7819 send by the Application.ExitThread method. (We send the message
7820 to destroy the window after all other events have been
7821 processed through the queue, instead of destroying the handle
7823 - Moved code from Close() method to WM_CLOSE handler; added logic
7824 to only send close-related events if the form is not displayed
7826 * Splitter.cs (..ctor): Fixed typo in resource name
7828 - DrawBackgroundImage: Explicitly selecting the wrap mode for the
7830 - set_Cursor: Now only setting calling into XplatUI if the handle for
7831 the control is already created; this avoids implict handle creation
7832 or crashes if it's not created
7833 - set_Enabled: Now setting the enabled state via the new driver method
7834 instead of just tracking it
7835 - CreateParams: Added logic to set WS_DISABLED based on enabled state
7836 - CreateControl: Reordered event firing and method calls to more
7837 closely fire events in the order MS does. Now setting the
7838 enabled state in the driver when creating the control.
7839 - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
7841 * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
7842 MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED
7843 * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
7845 - Added tracking of window enabled state (get_Enabled/set_Enabled)
7846 - Added EnabledHwnd property to easily allow a driver to find the
7847 handle of the first enabled window in the parent chain (this is
7848 used by drivers to pass up input events of disabled windows)
7849 * XplatUIDriver.cs: Added IsEnabled() method
7851 - Removed crude and obsolete exiting tracking variable
7852 - Removed internal ModalRun(); replaced by RunLoop()
7853 - Implemented private CloseForms() method to allow closing all
7854 windows owned by a particular (or all) threads
7855 - Exit() now properly closes all windows without forcing the message
7857 - Removed obsolete InternalExit() method
7858 - Changed Run() methods to use new RunLoop() message pump
7859 - Implemented new RunLoop() method for both modal and non-modal forms
7861 - get_CreateParams: Added setting of WS_DISABLED
7862 - Simplified ShowDialog(); now all the work is done in RunLoop(),
7863 invoked via Form.ShowDialog()
7864 * NativeWindow.cs: We don't remove the window from the collection when
7865 the handle is destroyed; there might still be messages for it in the
7866 queue (mainly the resulting WM_DESTROY); instead it will be removed
7867 when Control calls InvalidateHandle in the WM_DESTROY handler
7869 - CreateWindow: Added logic to handle the WS_DISABLED window style
7870 - EnableWindow: Implemented based on Hwnd.Enabled
7871 - GetMessage: Reset PostQuitState so the method can be called again
7872 - Implemented support for disabled windows (passing messages to the
7873 first enabled parent) in handling all input messages
7874 - Added optimizations for handling Expose events
7875 - Implemeted new driver method IsEnabled()
7876 - Now always resetting paint pending tracking vars when we start paint
7877 - Re-implemented UpdateWindow via just sending a WM_PAINT message
7878 * XplatUIOSX.cs: Added IsEnabled method stub
7879 * XplatUIWin32.cs: Implemented new IsEnabled() method
7881 2006-01-11 Jackson Harper <jackson@ximian.com>
7883 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
7884 LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
7886 * ColorDialog.cs: Clear out the old form before adding the new
7889 2006-01-11 Jackson Harper <jackson@ximian.com>
7891 * X11Dnd.cs: Make sure to add all the text formats when adding
7892 strings to the data object.
7893 * TreeNodeCollection.cs: When adding to a sorted tree we need to
7894 do some redrawing too. Also change the UpdateNode to an
7895 UpdateBelow so the newly added node gets painted.
7897 2006-01-11 Miguel de Icaza <miguel@novell.com>
7899 * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
7900 LinkLabel.cs, PropertyGrid.cs: Implement the
7901 UseCompatibleTextRendering property for 2.x
7903 * Application.cs (SetCompatibleTextRenderingDefault): Add.
7905 2006-01-11 Jackson Harper <jackson@ximian.com>
7907 * TreeView.cs: Use the property for setting the selected node so
7908 the correct events get raised.
7909 * TreeNode.cs: Update the tree when the fore/back colours of a
7912 2006-01-10 Jackson Harper <jackson@ximian.com>
7914 * TreeView.cs: Allow setting SelectedNode to null.
7916 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
7918 * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
7920 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
7922 * PrintControllerWithStatusDialog.cs: Update page number in dialog.
7924 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
7926 * PrintDialog.cs: Added attributes and set default property values.
7928 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
7930 * PrintControllerWithStatusDialog.cs:
7931 Added PrintControllerWithStatusDialog.
7933 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
7935 * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
7936 XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
7938 2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
7940 * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
7942 2006-01-09 Jonathan Chambers <jonathan.chambers@ansys.com>
7944 * ComboBox.cs: Added KeyDown event handler for processing arrow keys
7945 and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
7947 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
7949 * MimeIcon.cs: Added internal class SVGUtil.
7951 2006-01-08 Alexander Olk <alex.olk@googlemail.com>
7953 * FileDialog.cs: Don't crash if there are two files with the
7954 same name but different locations.
7956 2006-01-08 John BouAntoun <jba-mono@optusnet.com.au>
7958 * MonthCalendar.cs: Fixed annoying rendering bug when selecting
7959 dates across multiple month grids. Used to not highlight entire
7960 month, but does now.
7962 2006-01-06 Jackson Harper <jackson@ximian.com>
7964 * MonthCalendar.cs: Removed DoEvents call to prevent a running
7965 message loop. Change timer intervals to numbers that seem more
7968 2006-01-06 John BouAntoun <jba-mono@optusnet.com.au>
7970 * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
7971 object for location info since screen object is now implemented.
7973 2006-01-05 Jackson Harper <jackson@ximian.com>
7975 * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
7976 * AsyncMethodResult.cs: We no longer use a WeakReference for the
7977 AsyncMethodResult, this is because we ALWAYS want the
7978 ManualResetEvent to get set.
7979 * Control.cs: When disposing use an async invoke to call shutdown
7980 code, so that thigns don't block on the finalizer thread. Also
7981 check if we even have a message loop before trying to send
7982 messages, if we don't then don't bother sending messages.
7983 - No more weak references for async methods
7984 * XplatUIDriver.cs: No more weak references for async methods.
7986 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
7988 * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
7989 returns two FontFamily with the same name
7991 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
7993 * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of
7994 drawing disabled text. Instead using the ColorGrayText color
7996 2006-01-04 Jackson Harper <jackson@ximian.com>
7998 * TreeNode.cs: redraw the node when its image index is changed.
8000 2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
8002 * RichTextBox.cs: Same fix as last, just for SelectionColor. This
8003 time I checked there are no others like it.
8005 2006-01-04 Jackson Harper <jackson@ximian.com>
8007 * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
8008 this gives the behavoir I was looking for.
8009 * Control.cs: Special case Invoking EventHandlers, this matches MS
8010 and fixes part of bug #76326.
8012 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
8014 * ThemeClearlooks.cs, FileDialog.cs:
8015 - Reflect the latest Theme class changes
8016 - Remove Mono.Unix.Syscall.time in FileDialg and replace it
8019 2006-01-04 Alexander Olk <alex.olk@googlemail.com>
8021 * Theme.cs: Cache UI resource images and resize them if needed
8023 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
8025 * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
8026 is called. This fixes the crash in Nexxia when setting the font
8027 attributes in the chat. [However, RTF needs a look-over to make sure
8028 that all SelectionXXX methods handle the special case that selection
8029 is empty and therefore the change must be applied to all text starting
8030 at the cursor/selection start]
8032 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
8034 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
8035 XplatUIOSX.cs: Added SendMessage and PostMessage methods
8036 * X11Keyboard.cs: Switched to new way of calling PostMessage
8038 2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
8040 * Theme.cs: Added theme interface for images to allow the theme to
8041 control what images are used for things like FileDialog, MessageBox
8043 * MessageBox.cs: Now uses the new Theme icon/image interfaces
8045 2006-01-03 Alexander Olk <alex.olk@googlemail.com>
8048 - Removed some dead code
8049 - Opening a recently used file does work now
8050 - Small UI enhancements
8053 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
8055 * FileDialog.cs: Forgot too add __MonoCS__
8057 2006-01-02 Alexander Olk <alex.olk@googlemail.com>
8059 * FileDialog.cs: We are able to read recently used files now let's
8060 go on and write them.
8062 2006-01-01 Alexander Olk <alex.olk@googlemail.com>
8064 * FileDialog.cs: Breathe some life into "last open"/"recently used"
8066 * MimeIcon.cs: Do a check for the top level media type also
8068 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
8070 * ThemeClearlooks.cs:
8071 - Added CPDrawStringDisabled
8072 - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
8073 some chars if the text doesn't fit into text_rect
8074 - DrawListViewItem: If View = View.LargeIcon center the image;
8075 rewrote the drawing of ListViewItem.Text if View =
8078 2005-12-31 Alexander Olk <alex.olk@googlemail.com>
8080 * MimeIcon.cs: Use default KDE icon theme if there is no
8081 "48x48" directory for the current icon theme, fixes #77114
8082 * Mime.cs: Disable not working and actually not used code.
8083 * ThemeWin32Classic.cs:
8084 - Replace "new SolidBrush" in GetControlBackBrush and
8085 GetControlForeBrush with ResPool.GetSolidBrush
8086 - Changed DrawListViewItem from private to protected virtual
8088 - Added form.MaximizeBox = true
8089 - Don't throw an exception if there is a broken symbolic link
8091 2005-12-23 Jackson Harper <jackson@ximian.com>
8093 * TabControl.cs: Give the panels focus, keyboard navigation is
8094 fixed so this works correctly now.
8095 - We need these key events also.
8096 * ToolBar.cs: Remove some of the poor mans double buffering.
8098 2005-12-24 Alexander Olk <alex.olk@googlemail.com>
8100 * ComboBox.cs: The internal TextBox now returns the focus.
8102 2005-12-23 Jackson Harper <jackson@ximian.com>
8104 * ThemeWin32Classic.cs: Draw the text for all tab appearances.
8106 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
8108 * Control.cs: Removed debug code
8109 * XplatUIX11.cs: Changed DestroyChildWindows to also consider
8112 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
8114 * Control.cs: When creating the control, update the Z-order after
8115 all it's children are created, too. (Fixes nexxia not showing
8118 2005-12-23 Peter Dennis Bartok <pbartok@novell.com>
8120 * Control.cs: Do not update the anchoring distances if layout is
8121 suspended, instead do it once layout is resumed
8123 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
8126 - After many hours of debugging, for both Jackson and
8127 myself, it turns out that it helps to set the parent of a control
8128 if you want to actually see it onscreen. In the spirit of that
8129 discovery, we're now setting the parent of the control and
8130 it's children when the control's handle is created. This fix
8131 will make Lutz Roeder's Reflector run happily.
8132 - now just creating the handle instead of the whole control when
8133 getting a graphics context for the control.
8135 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
8137 * ScrollableControl.cs: When calculating the canvas, don't consider
8138 the scrollbar widths. Instead, predict if horizontal scrollbar
8139 will affect canvas when deciding on vertical display and vice versa.
8141 2005-12-22 Peter Dennis Bartok <pbartok@novell.com>
8143 * RichTextBox.cs: Set default RTF font for documents that don't
8144 have a font table (Fixes #77076)
8146 2005-12-22 Jackson Harper <jackson@ximian.com>
8148 * TextBoxBase.cs: It's difficult to do, but you can have an empty
8149 clipboard. This prevents a NullRef in that case.
8150 * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
8151 clipboard. PRIMARY is for the currently selected text only. (We
8152 should implement PRIMARY at some point.
8154 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
8156 * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
8157 a Unicode function with a structure that was defined in Ansi way.
8160 2005-12-21 Jackson Harper <jackson@ximian.com>
8162 * StatusBar.cs: Statusbar handles its fore/back colours on it's
8163 on. Because thats how it rolls. (and this avoids it using ambient
8165 * ThemeWin32Classic.cs: Use the proper back color for filling.
8166 * Menu.cs: Use the system menu bar color for drawing menu
8167 bars. Using the window back color will bring ambient colours into
8170 2005-12-21 Alexander Olk <alex.olk@googlemail.com>
8172 * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
8173 Bitmaps were created and not disposed.
8175 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
8177 * Control.cs (CreateControl): Don't do anything if the control is
8178 already created, otherwise we'd fire the OnCreated event more than
8181 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
8183 * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
8184 will always match. Instead return -1. Fixes #76464.
8186 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
8188 * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
8189 neither the beginning nor the end of the line (Fixes bug #76479)
8191 2005-12-21 Peter Dennis Bartok <pbartok@novell.com>
8194 - ControlNativeWindow.ControlFromHandle(): Now handling situation
8195 where handle is invalid
8196 - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
8197 instead of slower linear search
8198 * NativeWindow.cs: Don't remove the window from the hashtable until
8199 after the driver has destroyed it (since the driver might use
8200 Control.FromHandle to lookup the control object
8201 * Hwnd.cs: Added DestroyPending property to track if a window is
8202 already destroyed as far as the driver is concerned and only hasn't
8203 yet notified the control
8205 - Activate(): Check if the window is still valid before using the
8207 - Implemented DestroyChildWindow() method to mark child windows as
8208 destroyed when a window is destroyed. This prevents situations
8209 where we might call an X method based on queued events for a
8210 window that already has been destroyed but we haven't yet pulled
8211 the destroy method from the queue.
8212 - Added a call to the new DestroyChildWindow() method to the drivers
8213 DestroyWindow code. Also now marking the destroyed window itself
8216 2005-12-20 Jackson Harper <jackson@ximian.com>
8219 * StatusBarPanel.cs: Don't calculate panel sizes on draw
8220 anymore. Just do them when needed, also track the rects of panels
8221 so that we can optimize refreshing more in the future.
8223 2005-12-20 Alexander Olk <alex.olk@googlemail.com>
8225 * ColorDialog.cs: Fixed focus drawing in small color controls
8227 2005-12-19 Jackson Harper <jackson@ximian.com>
8229 * InternalWindowManager.cs:
8230 * MdiWindowManager.cs: Cleanup some coordinate system changes so
8231 moving windows works properly.
8233 2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
8236 - Removed call to InitLayout() from SetBoundsCore(); doc says
8237 it's only called when a control is added to a container
8238 - Split InitLayout logic, moved to separate UpdateDistances() method
8239 since we need to perform those calculations more often than just
8240 when adding the control to a container. (Needed to fix #77022)
8241 - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
8242 - Reduced the OnBindingContextChanged events count, don't send them
8243 unless the control is created, we still aren't totally matching
8244 MS, but I can't quite figure out some of their rules
8246 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
8248 * ThemeClearlooks.cs: Corrected distance between ProgressBar
8251 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
8253 * ThemeClearlooks.cs:
8254 - Updated ProgressBar drawing
8255 - Corrected drawing of ScrollBars and scroll buttons
8256 - Some temporary fixes for minor pixel artefacts
8258 2005-12-18 Peter Dennis Bartok <pbartok@novell.com>
8261 - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
8262 cause events to be sent in the same order as MS does.
8263 - Added ChangeParent() method to trigger various OnXXXChanged events
8264 that need to be fired when a parent changes (This is a reworking
8265 of the patch from r54254, with the X11 errors fixed)
8266 - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
8267 since on MS we get OnLayoutChanged events when calling Clear()
8268 - Changed Enabled property to consider parent state as well, if a
8269 parent is not enabled, the control will not be either
8270 - Changed Parent property to simply call Controls.Add() since that
8271 now does all the work required, this way we avoid code duplication
8272 - Threw in a few OnBindingsContextChanged calls to try and match
8273 when MS sends them. We seem to send a few too many, though.
8274 - Added call to CreateControl when adding the control to a parent.
8275 We were never calling CreateControl. Still needs some work, in
8276 some places we treat HandleCreated and ControlCreated as equal,
8278 - Removed obsolete commented out code from UpdateZOrder()
8280 2005-12-18 Alexander Olk <alex.olk@googlemail.com>
8282 * ThemeClearlooks.cs: Updated TrackBar drawing.
8284 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
8286 * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
8288 2005-12-17 Alexander Olk <alex.olk@googlemail.com>
8290 * FileDialog.cs: Add the Help button and the open readonly
8291 checkbox only if needed
8293 2005-12-16 Jackson Harper <jackson@ximian.com>
8295 * Control.cs: Make sure we have an active menu before trying to
8296 process commands on it. Prevents menu-less forms from crashing
8297 when Alt is pressed.
8298 * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
8300 * RichTextBox.cs: Expand statement to help out gmcs and fix the
8303 2005-12-16 Jackson Harper <jackson@ximian.com>
8305 * InternalWindowManager.cs: Don't translate tool windows screen
8306 coordinates. This fixes windows 'bouncing' around when being moved.
8308 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
8311 - MaxLength now treats 2^31-1 equal to unlimited length (this is
8312 not quite MS compatible, MS uses that number only for single line
8313 and 2^32-1 for multi-line, but I figure it won't hurt keeping
8315 - Now enforcing the MaxLength limit when entering characters
8316 - Added argument to internal Paste() method to track if it's called
8317 from programatically or via keyboard, since keyboard driven pastes
8318 need to enforce max-length
8319 - Added logic to Paste to only paste as many chars as MaxLength
8321 * RichTextBox.cs: Updated to use new obey argument for internal Paste()
8323 - Added Length property to return number of characters in document
8324 - Added private CharCount property which only tracks actual chars
8325 in the document (no linefeeds) and fires event when CharCount
8327 - Added tracking of character count to all methods that alter it
8328 - Added LengthChanged event to allow applications to subscribe
8329 to any changes to the document
8331 2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
8334 - Removed local password_char field (moved to TextBoxBase)
8335 - Now setting the document's password var when password is
8338 - Added password_char field (needed here so MultiLine can
8340 - Added logic to MultiLine property setter to set the document's
8341 variable when password display is allowed
8342 - Removed debug code and made some debug code conditional
8344 - Added RecalculatePasswordLine() method to handle special password
8346 - Added PasswordChar property, also added related tracking vars
8347 - Draw() method now uses local text var for grabbing text to draw,
8348 this var is set to line.text unless we're doing password display,
8349 then it is set to the pre-generated all-password-chars line
8350 - Added calling RecalculatePasswordLine() method for password lines
8352 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
8355 - Added Reparented property to allow tracking of Window Manager
8356 reparenting actions (which affect X/Y calculations of toplevel
8358 - Made ToString() print window handles in hex
8360 - AddConfigureNotify(): Now uses reparented state off Hwnd to
8361 determine if X/Y needs offsetting
8362 - AddConfigureNotify(): Fixed offset calculations
8363 - Now adds ReparentNotify messages into the queue
8364 - Now processes ReparentNotify messages and causes a
8365 WM_WINDOWPOSCHANGED message to be sent upstream if a window
8366 is reparented (as most likely it's X/Y coordinates are changed
8369 2005-12-14 Jackson Harper <jackson@ximian.com>
8371 * XplatUIX11.cs: Tool windows still need to respek focus.
8373 2005-12-14 Peter Dennis Bartok <pbartok@novell.com>
8375 * Control.cs: Undid 54254 (causing XConfigure errors) so we can
8376 have a working release
8378 2005-12-13 Jackson Harper <jackson@ximian.com>
8380 * Form.cs: Update styles after setting the border style regardless
8381 of whether or not the window is using a window manager.
8383 2005-12-13 Jackson Harper <jackson@ximian.com>
8385 * Form.cs: We now hook into an internal window manager instead of just an
8386 MDI subsystem, this is so we can have properly behaving tool windows.
8387 * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
8388 * InternalWindowManager.cs: New internal class that acts as a
8389 window manager for tool windows and as a base for mdi windows.
8390 * MdiWindowManager.cs: New class that acts as a window manager for
8393 2005-12-12 Jackson Harper <jackson@ximian.com>
8395 * Control.cs: Updates so we match behavoir for for implicit
8396 controls. Fixes explosions in MDI.
8398 2005-12-12 Jackson Harper <jackson@ximian.com>
8400 * Control.cs: Implement Invalidate (Region).
8402 2005-12-12 Peter Dennis Bartok <pbartok@novell.com>
8405 - Changed handling of Controls.Add/Controls.Remove to fire (almost)
8406 the same events as MS does. MS fires events for each property
8407 except, for unknown reasons, Cursor, when the control is reparented.
8408 I can't seem to totally match add/remove since MS also fires some
8409 VisibleChanged events, which makes no sense. Consolidated the
8410 parenting code into a separate method so it can be called from
8411 both Add and Remove. set_Parent no longer needs any special logic
8412 as it calls the parent's add method which implicitly fires
8414 - Removed some obsolete code and debug output
8415 - Enabled state is inherited from parents, if this is enabled
8417 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
8419 * Form.cs: Removed commented out code
8421 2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
8424 - Added internal version of Invoke, with additional argument
8425 indicating if we're calling it from a Dispose() handler. That
8426 way we can avoid BeginInvoke throwing an exception if we're
8427 calling for an already destroyed window.
8428 - Added a dispose argument to BeginInvokeInternal, and made the
8429 check if a valid window handle chain exists conditional on
8430 it not being a dispose call
8431 - Removed code in DestroyHandle to destroy our children. Since we
8432 now handle the WM_DESTROY message we will catch all our children
8434 - Now calling OnHandleDestroyed from our new WM_DESTROY handler
8436 - Added a field to track the application context of the form.
8437 - No need to set closing variable as response to WM_CLOSE, instead
8438 we destroy the window. We also call PostQuitMessage if the form
8439 has an application context (which makes it the main app form,
8440 which, when closed terminates the app)
8442 - Dropped Exit() method, it's naming was confusing
8443 - Added PostQuitMessage() which causes GetMessage to return false
8444 once the message queue is empty
8445 * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added
8447 * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
8448 no longer a valid XplatUI method, but left it in since it's used
8449 internally. Added empty PostQuitMessage() method.
8450 * MenuAPI.cs: Replaced call to Exit() with call to
8451 PostQuitMessage, even though this is probably no longer needed.
8452 * Hwnd.cs: Added 'pretty' ToString() to support debugging.
8453 * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
8455 - Replaced call to XplatUI.Exit() with PostQuitMessage()
8456 - Removed old debug code that would call XplatUI for exception
8457 display, enabled standard exception handling (Still not enabled
8458 though, until NativeWindow's ExternalExceptionHandler define
8461 - Added internal method to allow control to update NativeWindow
8462 after a window has been destroyed
8463 - Added handling of already destroyed windows when calling i
8465 - Added removal of handle from list on ReleaseHandle
8467 - Dropped GetMessageResult var and related code
8468 - Added PostQuitState to field to track if PostQuitMessage has been
8470 - Dropped Exit() method
8471 - Added PostQuitMessage() method
8472 - GetMessage now will return false if PostQuitState is set and no
8473 more messages are in the queue.
8474 - Expose handler will no longer generate WM_PAINT messages if we are
8475 in PostQuitState since it's very likely any windows have already
8476 been destroyed, and since Hwnd won't get updated until we have
8477 processed the DestroyNotify we'd be causing X errors.
8479 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
8481 * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
8482 Thanks to Mike for pointing out the err of my ways.
8484 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
8486 * Control.cs(PreProcessMessage): Moved menu handling back, but
8487 after all other key handling, to match MS (who handles Menu in
8489 * Menu.cs (WndProc): Removed my brainfart
8491 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
8493 * Control.cs(PreProcessMessage): Removed special menu handling
8494 * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
8496 2005-12-07 Mike Kestner <mkestner@novell.com>
8498 * Control.cs : special case SYSKEYUP so that we can adjust keynav
8499 state according in tracker.
8500 * Menu.cs : promote tracker field to base class and provide a tracker
8501 lookup capability. Add/Remove shortcuts dynamically if the top menu
8502 has a tracker. Unparent items that are removed from the collection.
8503 * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
8504 * Theme*.cs: add always_show_hotkeys field to support configurability
8505 of mnemonic display. win32 doesn't show mnemonics until Alt is
8508 2005-12-07 Jackson Harper <jackson@ximian.com>
8510 * MdiChildContext.cs: Use Control.ResetCursor.
8511 * Control.cs: ResetCursor needs to set the property so that the
8512 correct XplatUI call gets made.
8514 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
8516 * Control.cs: More fixes to make our key events match MS. We
8517 were not setting the modifier state on KeyData, and we were
8518 not generating any events when Alt was pressed with a key
8519 since handling of WM_SYSxxx was missing for the OnKey methods.
8521 2005-12-07 Jackson Harper <jackson@ximian.com>
8523 * MdiChildContext.cs: reenable the sizing code.
8524 - When the mouse leaves a window reset its cursor.
8526 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
8528 * ThemeClearlooks.cs: Reflect latest Hwnd changes
8530 2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
8532 * Hwnd.cs: Now using the theme 3d bordersize to calculate
8533 widths of Fixed3D borders
8535 2005-12-07 Jackson Harper <jackson@ximian.com>
8537 * MdiClient.cs: Fix warnings. Earn Mike's love.
8539 2005-12-07 Alexander Olk <alex.olk@googlemail.com>
8541 * ThemeClearlooks.cs:
8542 - Adjusted mouse over button color
8543 - Added first parts of CheckBox drawing
8544 - Added correct color for selected text background
8545 - Fixed ComboBox drawing
8546 - Added CPDrawBorder3D and CPDrawBorder
8548 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
8550 * XplatUIX11.cs: Added call to XBell for AudibleAlert
8552 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
8554 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
8555 XplatUIOSX.cs: Added AudibleAlert() method to have a means to
8556 alert users via sound. We could add an enum arg with different
8557 types of alerts in the future
8559 2005-12-06 Peter Dennis Bartok <pbartok@novell.com>
8561 * Control.cs: Fix behaviour problems pointed out by Mike
8563 2005-12-05 Mike Kestner <mkestner@novell.com>
8565 * StatusBarPanel.cs: add Invalidate method and hook it into all the
8566 prop setters. Calls parent.Refresh for now, but could be maybe be
8567 optimized with an internal method on StatusBar at some point.
8570 2005-12-05 Peter Dennis Bartok <pbartok@novell.com>
8572 * RichTextBox.cs: Implemented get_SelectionColor
8574 2005-12-05 Alexander Olk <alex.olk@googlemail.com>
8576 * ThemeClearlooks.cs:
8578 - Draw black button border only if button is Form.AcceptButton
8579 - Draw correct button color for pressed RadioButton if the mouse
8580 has entered the button
8581 - Updated ProgressBar drawing!
8582 - Updated CPDrawSizeGrip drawing
8583 - Updated StatusBarPanel drawing
8585 2005-12-05 Mike Kestner <mkestner@novell.com>
8587 * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
8588 * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
8590 2005-12-04 Alexander Olk <alex.olk@googlemail.com>
8592 * ThemeClearlooks.cs: Initial check-in, activate with
8593 export MONO_THEME=clearlooks
8594 * ThemeEngine.cs: Added ThemeClearlooks
8596 2005-12-03 Mike Kestner <mkestner@novell.com>
8598 * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
8601 2005-12-02 Jackson Harper <jackson@ximian.com>
8603 * Form.cs: If the child form has no menu the default main menu is
8604 used as the active menu.
8606 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
8608 * ListBox.cs: Check if any items exist before trying to resolve
8609 coordinates into items
8611 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
8613 * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
8614 as the second color for the background hatch
8616 2005-12-02 Peter Dennis Bartok <pbartok@novell.com>
8618 * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
8619 * RichTextBox.cs: FormatText position arguments are 1-based, now making
8620 sure that what we pass to FormatText is always 1-based. Fixes #76885
8622 2005-11-29 Miguel de Icaza <miguel@novell.com>
8624 * NumericUpDown.cs (EndInit): When we are done initializing,
8625 reflect any updates on the UI.
8627 2005-12-02 Jackson Harper <jackson@ximian.com>
8629 * ImplicitHScrollBar.cs:
8630 * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
8631 their container controls.
8632 * TreeView.cs: Use the new implicit scrollbars.
8634 2005-12-02 Jackson Harper <jackson@ximian.com>
8636 * TreeView.cs: Make top_node internal so the TreeNodeCollections
8638 * TreeNodeCollection.cs: If we remove the topnode we need to
8639 update topnode to the next node in line.
8640 - When clearing nodes go through the same process as removing
8641 them, so they get depareneted and checked if they are top node.
8643 2005-12-01 Jackson Harper <jackson@ximian.com>
8645 * TreeView.cs: When imagelists are used the image area is
8646 selectable as well as the text.
8647 - If there are no selected nodes select the first one.
8648 * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
8649 so don't do it more then we need to.
8651 2005-12-01 Jackson Harper <jackson@ximian.com>
8653 * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
8654 that arrows can be scaled.
8656 2005-12-01 Jackson Harper <jackson@ximian.com>
8658 * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
8659 fail. Patch by Dieter Bremes
8661 2005-11-30 Jackson Harper <jackson@ximian.com>
8663 * Form.cs: Property is 2.0 only
8664 * PrintDialog.cs: Signature fix.
8666 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
8669 - No longer artificially moves text 2 pixels down (now that we have
8670 borders this is no longer needed)
8671 - Added calcs for left, hanging and right indent
8673 2005-11-23 Mike Kestner <mkestner@novell.com>
8675 * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
8677 2005-11-30 Jackson Harper <jackson@ximian.com>
8679 * MdiChildContext.cs: Set the cloned menus forms, as these don't
8680 get cloned as part of CloneMenu ().
8681 * Menu.cs: Make sure the parent of the items get set correctly
8682 when they are added. And the owners are notified of the changes.
8683 * Form.cs: Create an ActiveMenu property, so that when MDI is used
8684 we can change the menu being displayed/handled by the form without
8685 changing the menu assosciated with the form.
8686 - Don't let Mdi children draw/handle menus.
8688 2005-11-30 Jackson Harper <jackson@ximian.com>
8690 * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
8691 a MenuChanged event. Just to make the API a little more
8694 * MenuItem.cs: Use the new OnMenuChanged
8695 * MdiChildContext.cs: Handle menu merging.
8696 * Form.cs: Implement MergedMenu.
8698 2005-11-30 Jackson Harper <jackson@ximian.com>
8700 * Menu.cs: We were misusing Add. Add goes behind the specified
8701 index according to the docs, and does not replace the specified
8702 index. So I added an Insert method.
8704 2005-11-30 Peter Dennis Bartok <pbartok@novell.com>
8706 * TextBoxBase.cs: Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
8707 Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
8709 * RichTextBox.cs: Added calls to base for DnD events
8711 2005-11-28 Peter Dennis Bartok <pbartok@novell.com>
8714 - Fixed drag-selection related crash; style fixes
8715 - Implemented undo class
8716 o Implemented method to capture document state for specified
8717 range in document tree
8718 o Implemented method to restore captured document state
8719 o Implemented cursor tracking
8720 o Implemented basic undo stack
8721 - Added undo cursor tracking to methods altering cursor location
8722 - Added undo tracking to selection deletion (still missing
8723 other text-altering hookups)
8725 - Added SelectionLength property
8726 - Implemented CanPaste()
8727 - Implemented Paste()
8728 - Added missing protected methods
8729 - Fixed RTF->Document conversion; now uses font index 0 and color
8730 index 0 as the default font for the parsed text
8731 - Fixed RTF<->Document font size translation
8732 - Fixed RTF generation, now properly handles cross-tag boundaries
8733 for single line selection
8734 - No longer always appends blank line to generated RTF
8736 - Added missing attributes
8737 - Hooked up undo-related methods
8739 - Implemented Copy()
8740 - Implemented Paste()
8742 - Fixed caret mis-behaviour on backspace across line-boundaries
8744 2005-11-29 Jackson Harper <jackson@ximian.com>
8746 * MdiClient.cs: Add a method for activating mdi children. Very
8747 basic right now. I imagine someday it might need more girth.
8748 * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
8749 children windows names are added to the menu item.
8750 * ThemeWin32Classic.cs: Draw the arrow if the item is an
8751 mdilist. This happens regardless of whether or not there are any
8752 mdi windows to see in the list, and according to my tests happens
8753 before the items are even added. Also happens if there isn't even
8754 an mdi client to get windows from.
8756 2005-11-29 Alexander Olk <alex.olk@googlemail.com>
8758 * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
8759 * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
8761 2005-11-29 Jordi Mas i Hernandez <jordimash@gmail.com>
8763 * DataGridTableStyle.cs:
8764 - Create always the styles for the missing columns even if they are
8765 provided by the user (not default table style)
8768 - Fixes SetDataBinding (always re-attach source)
8769 - Fixes SetNewDataSource (only clear styles if they are not for
8771 - Expands OnTableStylesCollectionChanged to handle style refresh
8774 2005-11-29 Jackson Harper <jackson@ximian.com>
8776 * FileDialog.cs: Implement missing bits, remove some dead
8778 * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
8779 creation of the panel so that the options set on the dialog are
8780 seen when the panel is created.
8781 * TreeView.cs: raise a click when items are clicked.
8783 2005-11-29 Jackson Harper <jackson@ximian.com>
8785 * MdiClient.cs: Pass some signature methods through to base.
8787 2005-11-28 Jackson Harper <jackson@ximian.com>
8789 * ListView.cs: Raise the click event when items are clicked.
8791 2005-11-28 Jackson Harper <jackson@ximian.com>
8793 * MdiClient.cs: Make this algorithm even more beautiful. And fix
8796 2005-11-27 Alexander Olk <alex.olk@googlemail.com>
8798 * ThemeNice.cs: - Removed 1 pixel bitmaps
8799 - Use SmoothingMode.AntiAlias where it makes sense
8800 (ScrollButton arrow for example)
8801 - Enhanced Button focus drawing
8802 - Fixed ComboBox drawing (no artefacts anymore, focus
8803 rectangle is back again, reduced size of ComboButton, etc.)
8804 - Fixed RadioButton focus drawing for Appearence.Button
8805 - Slight ScrollButton redesign
8806 - Some LinearGradientBrush size fixes
8807 - GroupBoxes have now rounded edges
8808 - Fixed StatusBar drawing
8810 2005-11-25 Alexander Olk <alex.olk@googlemail.com>
8812 * ThemeNice.cs: - Remove dead code
8813 - use correct background colors for menus, etc.
8814 - Fake pixel drawing with 1 pixel bitmaps
8816 2005-11-24 Jackson Harper <jackson@ximian.com>
8818 * MdiClient.cs: Size the scrollbars when resizing the window.
8819 - Resize the maximized windows when the client is resized
8820 * Form.cs: Make the child context available
8822 2005-11-23 Jackson Harper <jackson@ximian.com>
8824 * MdiChildContext.cs: Don't size windows if they are maximized.
8826 2005-11-23 Mike Kestner <mkestner@novell.com>
8828 * ContextMenu.cs: use MenuTracker.
8829 * Control.cs: remove menu handle usage.
8830 * Form.cs: remove menu handle usage.
8831 * Hwnd.cs: remove menu handle usage.
8832 * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
8833 motion and clicks to the new Tracker handlers.
8834 * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
8836 * MenuAPI.cs: refactored to combine popup and menubar event handling.
8837 Killed the MENU and MENUITEM data types and associated collections
8838 since we now keep the info on Menu and MenuItem. Expanded TRACKER into
8839 MenuTracker class that exposes the leftovers from the old MenuAPI
8840 static methods. Restructured Capture handling so that only one grab is
8841 done for the entire menu hierarchy instead of handing off grabs to
8842 submenus. Tracker now has an invisible control to Capture when active.
8843 * MenuItem.cs: add sizing accessors, kill Create
8845 * Theme.cs: remove menu handle and MENU(ITEM) usage.
8846 * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
8847 MENU(ITEM). remove menu handle usage, use Menu directly.
8848 * XplatUIDriver.cs: remove menu handle usage.
8849 * XplatUIOSX.cs: remove menu handle usage.
8850 * XplatUIWin32.cs: remove menu handle usage.
8851 * XplatUIX11.cs: remove menu handle usage.
8853 2005-11-22 Jackson Harper <jackson@ximian.com>
8855 * Hwnd.cs: Don't compute the menu size for
8856 DefaultClientRectangle.
8857 - Reenable menu sizes being computed for GetClienRectangle.
8858 * Form.cs: Remove comment of trechery
8860 2005-11-22 Jackson Harper <jackson@ximian.com>
8862 * Hwnd.cs: The adjustments for the menu bar are made when it is
8863 attached to the form.
8865 2005-11-19 Jackson Harper <jackson@ximian.com>
8867 * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
8868 (just like on windows).
8870 2005-11-19 Jackson Harper <jackson@ximian.com>
8872 * MdiChildContext.cs: Handle all the buttons ourselves. We can't
8873 use real buttons anymore because they are in non client area. The
8874 one TODO here is that I need to somehow invalidate a section of
8875 the non client area.
8877 2005-11-18 Jackson Harper <jackson@ximian.com>
8879 * Control.cs: Put the enum check back in now that MDI doesnt have
8880 to use this to set border styles.
8881 * Form.cs: Only set mdi child windows borders if the handle has
8883 * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
8884 this directly on to the driver.
8885 - Get the move start position before adjusting for the titlebar
8886 height, this fixes the windows "skipping" when they are first
8889 2005-11-18 Jackson Harper <jackson@ximian.com>
8891 * XplatUIX11.cs: Just compute the mdi borders separately as they
8892 don't totally match up with normal form borders.
8894 2005-11-18 Jackson Harper <jackson@ximian.com>
8896 * Control.cs: Set WS_ styles for borders, so that the driver does
8897 not have to retrieve the control instance to figure out what kind
8898 of borders it should have.
8899 * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
8900 driver can know its an mdi child easily.
8901 * XplatUIX11.cs: Get the border styles and whether the window is
8902 MDI from the Styles and ExStyles params instead of having to get a
8903 control. This prevents a chicken and egg problem.
8905 2005-11-18 Jackson Harper <jackson@ximian.com>
8907 * MdiClient.cs: Fix typo so scrollbars show up correctly.
8909 2005-11-18 Jackson Harper <jackson@ximian.com>
8911 * MdiClient.cs: Calculate when to add and remove scrollbars
8913 * MdiChildContext.cs: Adjust the y position to take the titlebar
8915 - No height for FormBorderStyle.None
8917 2005-11-18 Jackson Harper <jackson@ximian.com>
8919 * Control.cs: Allow non enum values to be used for
8920 InternalBorderStyle. MDI does this to set a special border style.
8921 - New utility methods for converting points to/from client coords
8922 - Add the newly created control to the Controls collection before
8923 updating its style. This way UpdateStyle can walk the control
8924 heirarchy to find the control if needed.
8925 so I don't need to create a new Point object all the time.
8926 * Form.cs: Let MDI windows handle their border styles.
8927 - Set styles on MDI windows so the correct title style is derived.
8928 * MdiChildContext.cs: Move all the painting and window handling
8929 into the non client area.
8930 - Use correct sizing and put correct buttons on frames based on
8931 the FormBorderStyle.
8932 - Notify the mdi client about scrolling
8933 - Need to handle the buttons ourselves now, because they are all
8934 in non client areas and we can't add controls there.
8935 * MdiClient.cs: Halfway to scrolling, this implementation is
8936 somewhat broken though, we need to check to make sure other
8937 windows aren't causing scrolling before removing the bars. Also
8938 the bars need to be drawn on top, maybe I can switch implicit
8939 controls to be on top.
8940 * Hwnd.cs: caption_height and tool_caption_height are now
8941 properties of an hwnd, this way they can be set by the driver
8942 based on the type of window they are. In X11 the window manager
8943 handles the decorations so caption_height is zero unless its an
8945 - Add 3 pixel borders for MDI windows (0xFFFF).
8946 - Get rid of some code duplication, have DefaultClientRectanle
8947 just call GetClientRectangle.
8948 * XplatUIX11.cs: Pass caption_height and tool_caption_height to
8950 - Set border styles differently for mdi windows.
8951 * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
8954 2005-11-15 Mike Kestner <mkestner@novell.com>
8956 * Menu.cs: when adding an item to the collection, if item is already
8957 parented, remove it from the parent.
8959 2005-11-13 Alexander Olk <alex.olk@googlemail.com>
8961 * X11DesktopColors.cs: Added KDE support
8963 2005-11-11 Peter Dennis Bartok <pbartok@novell.com>
8966 - Clipboard methods now can translate Rtf format
8967 - No longer removes clipboard contents whenever a new format is added
8968 to allow placing multiple formats on the clipboard
8969 * Clipboard.cs: Clipboard now supports getting a IDataObject and
8970 will place all formats contained in it onto the clipboard. Also
8971 now cleans the clipboard before placing a new object onto it
8973 - Implemented set_Rtf
8974 - Implemented set_SelectedRtf
8975 - Created InsertRTFFromStream() method to allow single code base
8976 for all properties and methods that insert RTF into document
8977 - Removed debug output
8979 - Fixed Delete(int) to fix up line numbers
8980 - Fixed ReplaceSelection to combine start and end line
8981 - Fixed serious DeleteChars bug that would leave the document tree
8983 - Improved DumpTree with several logic checks to detect broken
8985 - Removed debug lines
8986 - Fixed Caret.WordForward/WordBack moving code, now always also
8987 updates caret.tag (fixes crash when word-selecting across tag
8988 boundaries via keyboard)
8989 - Added Insert() method for inserting multiline text into documents
8990 - Fixed DeleteChars() calculation errors that would cause a broken
8991 tag chain with multiple tag lines
8992 - DeleteChars() no longer crashes on multi-tag lines if not all tags
8993 - Split() no longer moves caret if split is at caret location
8994 - ReplaceSelection() now updates the cursor and re-displays it
8995 - ReplaceSelection() now uses new Insert() method to avoid code
8997 - FormatText() can now handle formatting partial lines
8999 - Append now uses new TextControl.Insert() method (this avoids
9001 - Implemented Ctrl-X (Cut) (
9002 - Implemented Ctrl-C (Copy)
9003 - Implemented Ctrl-V (Paste) (Still some bugs related to screen
9004 regeneration when pasting text; roundtripping Copy&Paste within
9005 edit control still fails due to some calculation bugs in GenerateRTF)
9006 - The Delete key will now remove the current selection if it is visible
9007 * TextBox.cs: Removed debug lines
9008 * XplatUI.cs: Trigger initialization of DataFormats (which requires the
9009 driver to be initialized and can't therefore be done via a static ctor)
9011 2005-11-10 Peter Dennis Bartok <pbartok@novell.com>
9013 * TextControl.cs: Added backend code for finding char arrays and strings
9015 - Added mouse wheel scroll support
9016 - Added support for VScroll and HScroll events
9018 - Implemented all seven Find() variants
9019 - Implemented GetCharFromPosition()
9020 - Implemented GetCharIndexFromPosition()
9021 - Implemented GetLineFromIndex()
9022 - Implemented GetPositionFromCharIndex();
9023 - Implemented SaveFile for PlainText and UnicodeText
9024 - Fixed set_Font, now setting a new font applies that font to
9026 - Implemented generic Document to RTF converter
9027 - Implemented SaveFile for RichText format (still missing unicode
9028 conversion for non-ansi chars)
9029 - Implemented get_Rtf
9030 - Implemented get_SelectedRtf
9032 2005-11-09 Peter Dennis Bartok <pbartok@novell.com>
9034 * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
9035 to allow any captures to be released before triggering OnClick. This
9036 way a click handler may capture the mouse without interference.
9037 * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
9038 This way we send them even though X may not allow a grab (if the window
9039 isn't visible, for example)
9041 2005-11-08 Pedro Martinez Julia <pedromj@gmail.com>
9043 * DataGridViewRowEventArgs.cs: DataGridView implementation
9044 * DataGridViewElement.cs: DataGridView implementation
9045 * DataGridViewComboBoxCell.cs: DataGridView implementation
9046 * DataGridViewDataErrorContexts.cs: DataGridView implementation
9047 * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
9048 * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
9049 * ImageLayout.cs: DataGridView implementation
9050 * DataGridViewComboBoxColumn.cs: DataGridView implementation
9051 * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
9052 * DataGridViewSelectionMode.cs: DataGridView implementation
9053 * IDataGridViewEditingControl.cs: DataGridView implementation
9054 * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
9055 * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
9056 * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
9057 * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
9058 * DataGridViewColumnSortMode.cs: DataGridView implementation
9059 * DataGridView.cs: DataGridView implementation
9060 * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
9061 * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
9062 * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
9063 * Padding.cs: DataGridView implementation
9064 * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
9065 * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
9066 * DataGridViewRowEventHandler.cs: DataGridView implementation
9067 * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
9068 * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
9069 * DataGridViewButtonCell.cs: DataGridView implementation
9070 * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
9071 * DataGridViewEditMode.cs: DataGridView implementation
9072 * DataGridViewCellValueEventArgs.cs: DataGridView implementation
9073 * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
9074 * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
9075 * DataGridViewCheckBoxColumn.cs: DataGridView implementation
9076 * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
9077 * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
9078 * DataGridViewCellEventHandler.cs: DataGridView implementation
9079 * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
9080 * DataGridViewCellStyleConverter.cs: DataGridView implementation
9081 * DataGridViewSelectedRowCollection.cs: DataGridView implementation
9082 * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
9083 * DataGridViewColumnEventArgs.cs: DataGridView implementation
9084 * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
9085 * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
9086 * QuestionEventArgs.cs: DataGridView implementation
9087 * IDataGridViewEditingCell.cs: DataGridView implementation
9088 * DataGridViewTriState.cs: DataGridView implementation
9089 * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
9090 * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
9091 * DataGridViewColumnCollection.cs: DataGridView implementation
9092 * DataGridViewCellValueEventHandler.cs: DataGridView implementation
9093 * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
9094 * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
9095 * DataGridViewColumn.cs: DataGridView implementation
9096 * DataGridViewCellBorderStyle.cs: DataGridView implementation
9097 * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
9098 * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
9099 * DataGridViewRow.cs: DataGridView implementation
9100 * DataGridViewImageCellLayout.cs: DataGridView implementation
9101 * DataGridViewImageCell.cs: DataGridView implementation
9102 * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
9103 * DataGridViewCheckBoxCell.cs: DataGridView implementation
9104 * DataGridViewHeaderCell.cs: DataGridView implementation
9105 * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
9106 * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
9107 * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
9108 * DataGridViewTextBoxColumn.cs: DataGridView implementation
9109 * QuestionEventHandler.cs: DataGridView implementation
9110 * DataGridViewCellStyleScopes.cs: DataGridView implementation
9111 * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
9112 * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
9113 * DataGridViewCell.cs: DataGridView implementation
9114 * DataGridViewCellEventArgs.cs: DataGridView implementation
9115 * DataGridViewClipboardCopyMode.cs: DataGridView implementation
9116 * DataGridViewCellStyle.cs: DataGridView implementation
9117 * DataGridViewColumnHeaderCell.cs: DataGridView implementation
9118 * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
9119 * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
9120 * TextFormatFlags.cs: DataGridView implementation
9121 * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
9122 * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
9123 * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
9124 * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
9125 * DataGridViewButtonColumn.cs: DataGridView implementation
9126 * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
9127 * HandledMouseEventArgs.cs: DataGridView implementation
9128 * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
9129 * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
9130 * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
9131 * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
9132 * DataGridViewRowCollection.cs: DataGridView implementation
9133 * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
9134 * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
9135 * DataGridViewHitTestType.cs: DataGridView implementation
9136 * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
9137 * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
9138 * DataGridViewColumnEventHandler.cs: DataGridView implementation
9139 * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
9140 * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
9141 * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
9142 * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
9143 * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
9144 * DataGridViewContentAlignment.cs: DataGridView implementation
9145 * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
9146 * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
9147 * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
9148 * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
9149 * DataGridViewPaintParts.cs: DataGridView implementation
9150 * DataGridViewCellCollection.cs: DataGridView implementation
9151 * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
9152 * DataGridViewImageColumn.cs: DataGridView implementation
9153 * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
9154 * DataGridViewElementStates.cs: DataGridView implementation
9155 * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
9156 * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
9157 * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
9158 * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
9159 * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
9160 * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
9161 * DataGridViewRowHeaderCell.cs: DataGridView implementation
9162 * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
9163 * DataGridViewTextBoxCell.cs: DataGridView implementation
9164 * DataGridViewBand.cs: DataGridView implementation
9165 * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
9166 * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
9167 * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
9168 * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
9169 * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
9170 * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
9171 * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
9172 * DataGridViewSelectedCellCollection.cs: DataGridView implementation
9173 * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
9174 * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
9175 * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
9177 2005-11-08 Peter Dennis Bartok <pbartok@novell.com>
9179 * ThemeWin32Classic.cs:
9180 - Draw the outside focus rectangle around buttons
9181 - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
9182 doesn't use end caps for every dash of a line anymore. This
9183 workaround ignores the forecolor.
9185 2005-11-08 Kornél Pál <kornelpal@hotmail.com>
9187 * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
9190 2005-11-07 Jackson Harper <jackson@ximian.com>
9192 * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
9194 2005-11-07 Jackson Harper <jackson@ximian.com>
9196 * ScrollableControl.cs: Calculate the maximum and change vars
9197 (more) correctly so that scrollbars appear as a sensible size.
9199 2005-11-04 Jackson Harper <jackson@ximian.com>
9201 * TreeNodeCollection.cs: Refresh when nodes are cleared from the
9203 * TreeView.cs: When the tree is sorted null out the top_node so
9204 that it is recalculated.
9205 - Use dotted lines instead of dashed lines to match MS better.
9207 2005-11-04 Jordi Mas i Hernandez <jordimash@gmail.com>
9210 - Implements key search for items. Useful when browsing files with FileDialog
9211 - When changing view mode or when clear the items reset scrollbar positions
9213 2005-11-04 Jackson Harper <jackson@ximian.com>
9215 * CurrencyManager.cs: Implement the MetaDataChanged event, the
9216 Reset method, and the CheckEmpty. CheckEmpty is just a total guess
9217 as to what the method may do as there is no real way of creating a
9218 derived CurrencyManager and calling the method.
9220 2005-11-03 Jackson Harper <jackson@ximian.com>
9222 * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
9223 * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
9224 method which seems to just be used internally to refresh the tabs.
9226 2005-11-03 Jackson Harper <jackson@ximian.com>
9228 * TabControl.cs: Implement the remove method. Fix some broken
9231 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
9233 * DateTimePicker.cs:
9234 - Added missing DateTimePickerAccessibleObject class
9235 - Added missing events
9236 - Added OnFontChanged method
9237 * Form.cs: Added missing attributes
9238 * TreeView.cs: Added missing attributes
9240 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
9242 * GridItemCollection.cs: Fix signatures
9244 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
9246 * XplatUI.cs: Updated build rev/date
9247 * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs,
9248 DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
9249 * Application.cs: Trigger context-specific ExitThread events
9251 2005-11-03 Jackson Harper <jackson@ximian.com>
9255 * GridTableStylesCollection.cs:
9260 * MonthCalendar.cs: Signature fixes
9262 2005-11-03 Jackson Harper <jackson@ximian.com>
9264 * TreeNodeCollection.cs: Remove should not be virtual.
9265 * TreeView.cs: Implement the last of the missing methods.
9267 2005-11-03 Jackson Harper <jackson@ximian.com>
9269 * TreeNodeConverter.cs: Implement to get off my class-status back.
9271 2005-11-03 Jackson Harper <jackson@ximian.com>
9273 * TreeView.cs: Hookup the bits for drag and drop.
9274 * TreeNode.cs: Don't cache the tree_view or index anymore, now
9275 that nodes can be moved from tree to tree easily this just causes
9276 all sorts of problems.
9277 * TreeNodeCollection: Don't need to give treenodes an index and
9278 treeview anymore when they are added, these are computed on the
9279 fly. Also make sure to remove a node before its added.
9281 2005-11-03 Peter Dennis Bartok <pbartok@novell.com>
9284 - Added CaretSelection enum
9285 - Added comparison methods to Marker struct, makes selection code
9287 - Added SelectionStart and SelectionEnd as 'moveable' location for
9288 the CaretDirection enum and handler
9289 - Added selection_prev variable to track optimized invalidation for
9290 word and line selection
9291 - Added SelectionVisible property (returns true if there is a valid
9293 - Switched CaretHasFocus to only display the caret if there is no
9295 - Avoiding StringBuilder.ToString to retrieve a single char, instead
9296 using the direct character index; should be much faster
9297 - Added various conditional debug statements
9298 - Fixed invalidation calculation for selection ranges
9299 - Added ExpandSelection() method to support word and line selection
9300 - Switched SetSelectionToCaret to use new Marker compare overloads
9301 - Added central IsWordSeparator() method to determine word
9302 separators/whitespace and FindWordSeparator() to streamline common
9303 usage of IsWordSeparator()
9305 - Removed unneeded grabbed variable, it was just mirroring
9307 - No longer firing OnTextChanged event when Text setter is called,
9308 since the base will fire the event for us
9309 - Added handling of Ctrl-Up/Down selection
9310 - Added handling of Shift-Cursorkey selection
9311 - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
9313 - Added handling of Shift and Ctrl-Shift-Home/End selection
9314 - Removed some debug output
9315 - Added handling for single/double/tripple-click to place caret/
9316 select word/select line respectively (Fixes bug #76031)
9317 - Added support for drag expansion of word/line selection
9318 * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
9321 2005-11-02 Jackson Harper <jackson@ximian.com>
9323 * X11Dnd.cs: If the drag is going to and from a MWF window just
9324 copy the data instead of sending it out through the X Selection
9327 2005-11-02 Jackson Harper <jackson@ximian.com>
9330 * XplatUIX11.cs: When in a drag we don't want motion notify
9331 messages to get passed on to the other controls. This prevents
9332 mouse move messages from showing up in the drag source.
9334 2005-11-02 Jackson Harper <jackson@ximian.com>
9336 * X11Dnd.cs: Remove unneeded call to XAllowEvents. Make sure that
9337 the correct button is release to end a drag.
9338 * XplatUIX11.cs: Make the button state internal so the drag system
9339 can access it. Dragging needs to know about all button releases,
9340 not just left button.
9342 2005-11-02 Miguel de Icaza <miguel@novell.com>
9344 * Form.cs (Icon): If the icon is null, reset the icon to the
9347 * Cursor.cs: When writing the AND-mask bitmap do not include the
9348 number of colors, but hardcode those to two (black and white),
9349 fixes the loading of color cursors (Paint Dot Net).
9351 * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
9352 turn off autoscaling.
9354 * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
9356 2005-11-02 Jackson Harper <jackson@ximian.com>
9358 * X11Dnd.cs: Make sure to send a status message if the pointer
9359 enters a control that can not accept a drop, otherwise the cursor
9360 isn't updated correctly. Also tried to compress the lines of code
9363 2005-11-02 Jackson Harper <jackson@ximian.com>
9365 * X11Dnd.cs: Change cursors based on drag action. Also attempt to
9366 set actions correctly. This isn't perfect as XDND and win32 have
9367 some differences on how you allow actions. I'll clear this up by
9368 adding a path for drag from MWF to MWF windows.
9369 * XplatUIX11.cs: Hook into the dnd system.
9371 2005-11-02 Jordi Mas i Hernandez <jmas@softcatala.org>
9373 * ListView.cs: Fixes scroll bar visibility. Hide them if they were
9374 previously shown but they are no longer need it. Very obvious when
9375 browsing files with FileDialog.
9377 2005-11-01 Peter Dennis Bartok <pbartok@novell.com>
9379 * Control.cs: We always need to call OnPaintBackground. We pretty much
9380 ignore AllPaintingInWmPaint and always do the painting there, whether
9381 it's set or not, since we always ignore the WM_ERASEBKGND message
9382 (which we don't generate on X11). This fixes #76616.
9383 * Panel.cs: Removed unneeded background painting. This happens properly
9384 in Control.cs already
9386 2005-10-31 Mike Kestner <mkestner@novell.com>
9388 * Menu.cs: Add items to collection before setting their index.
9389 * MenuItem.cs : add range checking with ArgumentException like MS.
9392 2005-10-31 Jackson Harper <jackson@ximian.com>
9394 * ListBox.cs: Invalidate if the area is visible at all not just
9395 contained in the visible rect. Fixes unselection of semi visible
9398 2005-10-31 Jackson Harper <jackson@ximian.com>
9400 * Control.cs: Consistently name the dnd methods. Make them
9401 internal so we can override them to match some MS behavoir
9403 * Win32DnD.cs: Use the new consistent names.
9405 2005-10-31 Jackson Harper <jackson@ximian.com>
9407 * TreeView.cs: Don't draw the selected node when we lose focus.
9409 2005-10-31 Jackson Harper <jackson@ximian.com>
9411 * X11Dnd.cs: We still need to reset the state even though a full
9412 reset isn't being done, otherwise status's still get sent all over
9415 2005-10-31 Jackson Harper <jackson@ximian.com>
9417 * Control.cs: Make the dnd_aware flag internal so the dnd
9418 subsystem can check it. Catch exceptions thrown in dnd handlers to
9420 * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
9421 * X11Dnd.cs: Handle null data in the converters. Set the XDND
9422 version when sending a XdndEnter. Use the control/hwnd dnd_aware
9423 flags to reduce the number of dnd enters/status's sent.
9425 2005-10-31 Jackson Harper <jackson@ximian.com>
9427 * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
9429 2005-10-31 Jordi Mas i Hernandez <jordi@ximian.com>
9431 * PictureBox.cs: Fixes 76512
9433 2005-10-28 Jackson Harper <jackson@ximian.com>
9435 * X11Dnd.cs: Early implementation to support winforms being a drag
9436 source for data on X11. Also restructured the converters so they
9437 can go both ways now.
9438 * XplatUIX11.cs: Tie ins to the the Dnd stuff.
9440 2005-10-27 Peter Dennis Bartok <pbartok@novell.com>
9442 * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
9445 2005-10-27 Jackson Harper <jackson@ximian.com>
9447 * TreeNode.cs: Implement serialization so my DnD examples will work.
9449 2005-10-24 Kornél Pál <kornelpal@hotmail.com>
9451 * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
9452 TreeView.cs: Don't dispose objects that are not owned.
9454 2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
9456 * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
9457 should retrieve the current cursor and report that, but XplatUI
9458 doesn't (yet) have an interface for that (and I'm not sure I even
9460 * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
9461 until any message loop processing is done (and the WM_SETCURSOR
9462 replaces the cursor to the proper one)
9464 - Fixed override behaviour, we can't set the cursor globally on X11,
9465 just for our windows.
9466 - Invalidating the System.Drawing X11 display handle when we are
9468 * Control.cs: Fix to make csc happy
9470 2005-10-23 Peter Dennis Bartok <pbartok@novell.com>
9473 - get_Text: Add last line (without trailing newline) to returned
9475 - get_TextLength: Count last line in returned length
9476 - ToString: Call Text property instead of duplicating code
9478 2005-10-23 Kornél Pál <kornelpal@hotmail.com>
9480 * ImageList.cs: Dispose ImageAttributes objects.
9482 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
9484 * ImageList.cs: Use attribute constructors with less arguments where
9487 2005-10-22 Kornél Pál <kornelpal@hotmail.com>
9489 * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
9490 Use typeof instead of strings when assembly is referenced. Added
9493 2005-10-21 Jackson Harper <jackson@ximian.com>
9495 * ListView.cs: Raise a double click event. Also tried to somewhat
9496 fix when the selectedindexchanged event is raised. Its still
9499 2005-10-21 Jackson Harper <jackson@ximian.com>
9501 * TreeView.cs: New method to invalidate the plus minus area of a
9502 node without invalidating the whole node (maybe this can be used
9503 in some more places).
9504 * TreeNodeCollection.cs: When adding to an empty node we need to
9505 invalidate its plus minus area so the little block shows up.
9507 2005-10-21 Jackson Harper <jackson@ximian.com>
9509 * TreeView.cs: Make sure that when we invalidate a node the bounds
9510 are big enough to cover the selected box and the focus
9511 rectangle. Use a different colour for the lines connecting nodes
9512 so they show up with all themes.
9514 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
9516 * NativeWindow.cs: Don't call anything that could call into the driver,
9517 we might be on a different thread.
9519 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
9521 * Control.cs(Dispose): Since Dispose might run on a different thread,
9522 make sure that we call methods that could call into the driver via
9523 invoke, to avoid thread issues
9525 2005-10-21 Peter Dennis Bartok <pbartok@novell.com>
9527 * XplatUI.cs: Removed finalizer
9528 * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
9529 not allowing to be called on the finalizer thread.
9531 2005-10-21 Kornél Pál <kornelpal@hotmail.com>
9534 - Reverted r51889 and r51891.
9535 - Added ImageListItem class that stores unmodified image items and image
9536 properties required to create list images until handle is created.
9537 - Added AddItem and moved image creation logic to AddItemInternal.
9538 - Added CreateHandle method that creates images based on unmodified items.
9539 - Added DestroyHandle that changes state to store unmodified items.
9540 - Add and AddStrip methods no more create handle.
9541 - ReduceColorDepth has no return value.
9542 - Dispose destroys handle.
9543 - Modified other methods to reflect the above changes.
9544 - Implemented key support.
9545 - Added profile 2.0 members and attributes.
9546 - Added private Reset and ShouldSerialize methods that provide the same
9547 behavior as MS.NET but the Visual Studio .NET designer seems to ignore
9548 them as they are private.
9549 - Added some more comments about implementation details.
9551 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
9553 * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
9555 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
9557 * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
9559 2005-10-21 Jordi Mas i Hernandez <jordi@ximian.com>
9561 * DataGridDrawingLogic.cs: Fixes column hit calcultation
9562 * DataGridColumnStyle.cs: Remove debug message
9564 2005-10-20 Jackson Harper <jackson@ximian.com>
9566 * TreeView.cs: We can always get input keys regardless of whether
9567 or not editing is enabled. They are used for navigation.
9569 2005-10-20 Jackson Harper <jackson@ximian.com>
9571 * TreeNode.cs: Use the viewport rect for determining if a node
9572 needs to be moved for visibility. Don't use Begin/End edit. This
9573 calls a full refresh when its done.
9574 * TreeView.cs: New SetBottom works correctly. Make the viewport
9575 rect property internal so the treenodes can see it. When clicking
9576 on a node we need to ensure that its visible because it might just
9577 be partly visible when clicked.
9579 2005-10-20 Jackson Harper <jackson@ximian.com>
9581 * TreeNodeCollection.cs: Remove debug code.
9583 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
9585 * Datagrid.cs: Implements column sorting in Datagrid
9586 * DataGridColumnStyle.cs: Implements column sorting in Datagrid
9588 2005-10-20 Jackson Harper <jackson@ximian.com>
9590 * TreeNodeCollection.cs: Remove items properly. Update the correct
9591 area after removing them.
9593 2005-10-20 Jordi Mas i Hernandez <jordi@ximian.com>
9595 * Datagrid.cs: Should not call base.OnPaintBackground
9597 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
9599 * XplatUIX11.cs (GetMessage):
9600 - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
9601 window instead of client window
9602 - Now properly calculates NC_xBUTTONUP message coordinates
9603 - ScreenToMenu now properly calculates it's coordinates of whole
9604 window, since menus are in the whole window, not in the client
9606 - Added WholeToScreen coordinate translation method
9608 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
9610 * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
9611 want to return a message, loop back to the beginning of the function
9612 and grab the next real message to process instead.
9614 2005-10-20 Peter Dennis Bartok <pbartok@novell.com>
9616 * Splitter.cs: Properly set limits if no filler control is used
9618 2005-10-19 Jackson Harper <jackson@ximian.com>
9620 * ColorDialog.cs: Don't show the help button if it is not enabled
9621 instead of disabling it (this is what MS does). Don't create the
9622 panel until the dialog is run, otherwise the vars (such as
9623 ShowHelp) are not set yet.
9625 2005-10-19 Jackson Harper <jackson@ximian.com>
9627 * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
9628 are reduced when adding nodes.
9630 * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
9633 2005-10-19 Jackson Harper <jackson@ximian.com>
9635 * FolderBrowserDialog.cs: End editing our treeview so the window
9636 actually gets refreshed.
9638 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
9640 * Control.cs: Fixed logic flip on when to call OnPaintBackground.
9641 Obsoleted handling of WM_ERASEBKGND, now always draws our background
9644 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
9646 * MenuAPI.cs: Returns after Hidding window
9647 * XplatUIX11.cs: Added TODO found while debugging menu issues
9649 2005-10-18 Peter Dennis Bartok <pbartok@novell.com>
9651 * XplatUIX11.cs: Do not re-map the whole window when it's size
9652 becomes non-zero unless it's supposed to be actually visible
9654 2005-10-18 Jackson Harper <jackson@ximian.com>
9656 * TreeView.cs: We don't need to keep a count anymore.
9657 * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
9658 use the Grow method.
9660 2005-10-18 Jackson Harper <jackson@ximian.com>
9662 * TreeNodeCollection.cs: Insert is not supported on arrays, so
9663 implement it manually here.
9665 2005-10-18 Jackson Harper <jackson@ximian.com>
9667 * ImageList.cs: Dont kill the list when the colour depth is
9668 changed, just change the colour depth of all the images.
9669 - Same goes for setting the image size. Just resize them all
9670 instead of killing the list softly.
9672 2005-10-18 Jackson Harper <jackson@ximian.com>
9674 * Control.cs: Don't invalidate empty rectangles.
9676 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
9679 - Adds checked item to the Checked/Item lists (where empty before)
9680 - Do not add items to the Selected lists if they are already present
9682 - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
9683 - When deleting items make sure that we delete them for the Selected
9684 and Checked list also.
9686 2005-10-18 Jordi Mas i Hernandez <jordi@ximian.com>
9688 * Label.cs: Dispose objects no longer used
9689 * ThemeWin32Classic.cs: Dispose objects no longer used
9691 2005-10-18 Jackson Harper <jackson@ximian.com>
9693 * TabControl.cs: Don't refresh the whole control when the tabs are
9694 scrolled, we just need to refresh the tab area.
9696 2005-10-17 Jackson Harper <jackson@ximian.com>
9698 * XplatUIX11.cs: Compress code a little bit. Only calculate the
9699 after handle when we need it.
9701 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
9703 * Control.cs: When the parent size changes, recalculate anchor
9704 positions. Partial fix for #76462
9706 2005-10-17 Peter Dennis Bartok <pbartok@novell.com>
9708 * ThemeWin32Classic.cs: Make sure the picturebox has it's background
9711 2005-10-17 Jackson Harper <jackson@ximian.com>
9713 * MonthCalendar.cs: Don't create the numeric up down until our
9714 handle is created. Otherwise our handle is created in the
9715 constructor and we don't know if we are a WS_CHILD or WS_POPUP
9718 2005-10-17 Jackson Harper <jackson@ximian.com>
9720 * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
9723 2005-10-17 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
9724 * TreeNode.cs : small logical fix (was using local var instead of field)
9726 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
9728 * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
9730 2005-10-17 Jordi Mas i Hernandez <jordi@ximian.com>
9732 * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
9734 2005-10-16 Peter Dennis Bartok <pbartok@novell.com>
9737 - Re-implemented anchoring code. My first version was really broken.
9738 This fixes bug #76033. Unlike the previous implementation we will
9739 no longer have round errors since all numbers are calculated from
9740 scratch every time. Removed various anchor-related obsolete vars.
9741 - InitLayout no longer causes layout event firing and layout to be
9744 2005-10-16 Jackson Harper <jackson@ximian.com>
9746 * Hwnd.cs: Compute invalid area correctly (fixes my last commit
9749 2005-10-16 Jackson Harper <jackson@ximian.com>
9751 * TabControl.cs: Remove debug code.
9753 2005-10-16 Jackson Harper <jackson@ximian.com>
9755 * XEventQueue.cs: Increase the default queue size (very simple
9756 apps needed to grow the queue).
9757 * Hwnd.cs: No finalizer so we don't need to suppress
9758 finalization. Compute the invalid area manually so a new rectangle
9759 does not newto be created.
9760 * ScrollableControl.cs: Don't set any params (otherwise visibility
9761 isn't set correctly).
9762 * MdiChildContext.cs: New constructor takes the mdi parent so it
9763 doesn't have to be computed and avoids a crash on windows. Draw
9764 the window icon properly, and allow the text to be seen.
9765 * Form.cs: Use new MdiChildContext constructor. Make sure the
9766 child context isn't null in wndproc.
9767 * TabControl.cs: Don't set focus, this is muddling keyboard
9768 behavoir. Expand the tab rows when a window size increase will
9769 allow extra tabs to be seen. Don't allow tabs smaller than the
9770 width of a window to be scrolled out of view.
9772 * TreeView.cs: Use measure string to calculate a nodes width, the
9773 width is cached and only updated when the text or the font is
9774 changed. Don't check for expand/collapse clicks on the first level
9775 nodes if root lines are disabled.
9777 2005-10-16 Ritvik Mayank <mritvik@novell.com>
9779 * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
9781 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
9783 * DataGridBoolColumn.cs: fixes warning
9785 2005-10-16 Jordi Mas i Hernandez <jordi@ximian.com>
9787 * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
9788 to match more to match more precisely the MS Net behavior
9790 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
9792 * Hwnd.cs: Added field to track if window is mapped
9794 - Unmap windows if they become 0-size, re-map when
9795 they are >0 again; fixes #76035
9796 - Re-set our error handler after initializing X11Desktop
9797 to override any error handlers Gtk or whatever was called
9800 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
9802 * CheckedListBox.cs: Removed unused vars
9803 * ListView.cs: Fixed signatures
9804 * RichTextBox.cs: Removed unused vars
9805 * TextBoxBase.cs: Removed unused vars
9806 * XplatUIWin32.cs: Removed unused vars
9807 * XplatUIX11.cs: Removed unused vars
9808 * XplatUI.cs: Updated version and date to latest published
9810 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
9812 * Cursor.cs: Added private .ctor to work around a bug in
9813 resourceset (Thanks to Geoff Norton for the help on this)
9814 * SplitterEventArgs.cs: Made fields accessible so we don't
9815 waste boatloads of objects and can reuse the same one
9817 * XplatUIWin32.cs(DrawReversibleLine): Now also considers
9818 any captions and borders when generating screen coordinates
9819 * Splitter.cs: Reimplemented control, now fully complete, uses
9820 rubberband drawing, supports and obeys all properties, has
9823 2005-10-13 Miguel de Icaza <miguel@novell.com>
9825 * Form.cs (Form): Setup default values for autoscale and
9826 autoscale_base_size; Make these instance variables, not static
9829 (OnLoad): on the first load, adjust the size of the form.
9831 2005-10-13 Peter Dennis Bartok <pbartok@novell.com>
9833 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added
9834 width argument to DrawReversibleRectangle()
9835 * XplatUIWin32.cs, XplatUIX11.cs:
9836 - Implemented width for DrawReversibleRectangle()
9837 - Added logic to DrawReversibleRectangle that recognizes a zero
9838 width or height and only draws a line in that situation
9840 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
9842 * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
9843 * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
9844 * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
9845 method (it uses our FosterParent window to get a graphics context)
9847 2005-10-12 Peter Dennis Bartok <pbartok@novell.com>
9849 * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground
9850 and SetWindowBackground methods
9852 - Setting proper ControlStyles
9853 - We no longer call XplatUI.SetWindowBackground and XplatUI.
9854 EraseWindowBackground, instead we draw the window background
9855 ourselves in PaintControlBackground. This behaviour is
9856 required to match MS, where, when OnPaintBackground is not
9857 called, the background is not drawn.
9858 - Removed unneeded Refresh() in set_Text
9859 * Hwnd.cs: Dropped the ErasePending support. No longer needed
9861 - Created DeriveStyles method to translate from CreateParams to
9862 FormBorderStyle and TitleStyle, also handles BorderStyle (which
9863 matches FormBorderStyle enum values)
9864 - Consolidated SetHwndStyles and CalculateWindowRect border/title
9865 style calculations into single DeriveStyles method
9866 - Fixed CreateWindow to (finally) use Gravity. This prevents X11
9867 from redrawing the whole window on any resize or expose.
9868 - Fixed CreateWindow usage of SetWindowValuemask. Before not
9869 all styles were applied to our whole/client window appropriately
9870 - Removed EraseWindowBackground() and SetWindowBackground() methods
9871 - Removed handling of WM_ERASEBKGND message from DefWndProc, we
9872 no longer clear/redraw the background through X
9873 - Removed handling of erase_pending bit, we have no use for it (or
9876 - Removed generation and handling of WM_ERASEBKGND message
9877 - Removed EraseWindowBackground() and SetWindowBackground() methods
9878 - Removed handling of hwnd.ErasePending flag
9880 - Removed EraseWindowBackground() and SetWindowBackground() methods
9881 - We no longer call EraseWindowBackground on PaintEventStart, we
9882 ignore the fErase flag, erasing is handled in Control in the
9884 * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
9885 LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
9886 TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs,
9887 CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs,
9888 DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs,
9889 TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
9890 DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
9892 2005-10-12 Jonathan Chambers <jonathan.chambers@ansys.com>
9894 * PropertyGrids.cs: Get sub properties
9895 * PropertyGridView.cs: Fix drawing code
9897 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
9899 * ListBox.cs: Fixes 76383
9901 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
9903 * DataGridTextBoxColumn.cs: Sets location and size before attachment
9904 * ThemeWin32Classic.cs: Fixes border drawing and calculations
9905 * DataGridDrawingLogic.cs: Fixes border drawing and calculations
9908 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
9910 * ComboBox.cs: Fixes border drawing
9912 2005-10-10 Miguel de Icaza <miguel@novell.com>
9914 * MimeIcon.cs: Ignore errors if the file can not be read.
9916 2005-10-11 Jordi Mas i Hernandez <jordi@ximian.com>
9918 * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
9919 - Fixed border calculations
9920 - Fixed horizontal scrolling in single column listboxes
9921 - Fixed drawing issues
9923 2005-10-10 Peter Dennis Bartok <pbartok@novell.com>
9925 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to
9926 FormBorderStyle enum
9927 * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added
9928 code to determine FormBorderStyles from CreateParams
9930 - Fixed bug where we'd set the wrong window styles if we were
9931 not creating an MDI window
9932 - Added call to XplatUI.SetBorderStyle when form borders are set
9933 * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
9935 - Removed obsolete edge style
9936 - Switched from BorderStyle to FormBorderStyle
9938 2005-10-10 Jackson Harper <jackson@ximian.com>
9940 * Form.cs: Use the property to get the window handle instead of
9941 accessing it directly. Prevents a null reference exception.
9943 2005-10-10 Jackson Harper <jackson@ximian.com>
9945 * TreeView.cs: Don't adjust the rect given to DrawString now that
9946 our libgdiplus draws correctly.
9948 2005-10-08 Jackson Harper <jackson@ximian.com>
9950 * TreeView.cs: Don't try to find the clicked on node if there are
9951 no nodes in the tree.
9953 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
9959 2005-10-08 Alexander Olk <alex.olk@googlemail.com>
9961 * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
9962 ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
9964 Use ResPool for brushes and dispose System.Drawing objects that
9965 are not used anymore.
9967 2005-10-07 Jackson Harper <jackson@ximian.com>
9969 * MdiChildContext.cs: Use the new borders instead of drawing them
9972 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
9974 * Calling UpdateBounds after changing the window's BorderStyle
9975 since the style can change the ClientSize
9977 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
9979 * Control.cs: Made PaintControlBackground virtual
9980 * Panel.cs: Overriding PaintControlBackground instead of using paint
9981 event; paint event method was interfering with 'real' users of the
9984 2005-10-06 Jordi Mas i Hernandez <jordi@ximian.com>
9986 * ThemeWin32Classic.cs: remove border drawing since it is handled
9987 by the base control class now and was causing double border drawing.
9989 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
9991 * Panel.cs: Redraw our background on paint. Not a pretty solution,
9992 but it does seem to match MS behaviour. This fixes bug #75324
9994 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
9996 * XplatUIX11.cs: A better DrawReversibleRectangle version, however
9997 somewhat hackish looking
9999 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
10002 - We now accept Enter even if AcceptEnter is false, if the containing
10003 form does not have an AcceptButton configured (fixes bug #76355)
10004 - Calculations are now fixed to no longer use Width/Height, but
10005 ClientSize.Width/Height, since we now support borders (this was
10006 a result of fixing borders and therefore bug #76166)
10007 - We no longer show the horizontal scrollbar if TextBox.WordWrap is
10008 true (fixes bug #76354)
10010 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
10013 - Defaulting BorderStyle and setting it in XplatUI when our window
10015 - Added enum check to InternalBorderStyle setter
10017 - Added drawing of window borders
10018 - Now properly calculates WM decorations offset for toplevel
10019 windows (fixes bug #74763)
10021 - Implemented BorderStyles for windows (we're letting win32 draw
10023 - Fixed the signature for SetWindowLong
10024 * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
10025 ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for
10027 * UpDownBase.cs: Remove drawing of borders, this is handled by
10028 the driver, outside the client area
10029 * ListView.cs: Removed bogus border calculations. The control should
10030 be oblivious to borders, since those are not part of the client
10032 * X11DesktopColors.cs: Commented out (currently) unneeded variables
10033 * ThemeWin32Classic.cs: Removed border calculations from ListView
10036 2005-10-06 Jackson Harper <jackson@ximian.com>
10038 * MdiChildContext.cs: Clear out the old virtual position remove
10039 all the unneeded calls to CreateGraphics.
10041 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
10043 * TextControl.cs: Use proper color for highlighted text; fixes #76350
10045 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
10048 - Added loading and setting of our new default icon
10049 - Only set icon if window is already created
10051 2005-10-06 Peter Dennis Bartok <pbartok@novell.com>
10054 - Do not explicitly set the foreground and background colors, to
10055 allow inheriting from parents (fixes #76302)
10056 - Use Control's InternalBorderStyle property to deal with borders
10058 2005-10-06 Jackson Harper <jackson@ximian.com>
10060 * MdiChildContext.cs: Use the new xplatui function to draw a
10063 2005-10-06 Jackson Harper <jackson@ximian.com>
10065 * Form.cs: Add the parent before creating the child context cause
10066 we need the parent when setting up the child.
10068 2005-10-06 Jackson Harper <jackson@ximian.com>
10070 * FolderBrowserDialog.cs: redo the tree population code so a
10071 second thread isn't used. Should be a lot faster and more stable
10074 2005-10-05 Jackson Harper <jackson@ximian.com>
10076 * TreeView.cs: There are no expand/collapse boxes if the node has
10079 2005-10-05 Jackson Harper <jackson@ximian.com>
10081 * X11DesktopColors.cs: Get menu colours for the gtk theme.
10083 2005-10-05 Alexander Olk <alex.olk@googlemail.com>
10085 * FileDialog.cs: Fix InitialDirectory
10087 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
10090 - Fixes changing between styles
10091 - Fixes simple mode
10092 - Fixes last item crashing when navigating with keyboard
10094 2005-10-05 Jordi Mas i Hernandez <jordi@ximian.com>
10096 * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
10098 2005-10-05 Jackson Harper <jackson@ximian.com>
10100 * TreeView.cs: If updating the root node do a full refresh.
10101 * TreeNode.cs: The root node should be expanded by default. Also
10102 added a utility prop to tell if we are the root node.
10103 * TreeNodeCollection.cs: Only refresh if the node we are being
10104 added to is expanded. Also added a comment on a potential
10107 2005-10-04 Peter Dennis Bartok <pbartok@novell.com>
10109 * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize()
10110 in dispose method. Fixes #76330
10112 2005-10-04 Jordi Mas i Hernandez <jordi@ximian.com>
10114 * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
10116 - Implements vertical and horizontal scrolling using XplatUI
10117 - Fixes keyboard navagation
10118 - Fixes EnsureVisible
10120 - Handles and draws focus properly
10123 2005-10-04 Kornél Pál <kornelpal@hotmail.com>
10125 * ImageList.cs: Use upper case initials for internal fields. ImageStream:
10126 Create handle. NET_2_0: Destroy handle when value is null.
10128 2005-10-03 Jackson Harper <jackson@ximian.com>
10130 * ScrollBar.cs: My last scrollbar patch was broken. This is a
10131 revert and a new patch to prevent the thumb from refreshing so
10134 2005-10-02 Jackson Harper <jackson@ximian.com>
10136 * ScrollBar.cs: Don't update position if it hasn't actually
10137 changed. This occurs when you hold down the increment/decrement
10138 buttons and the thumb gets to the max/min.
10140 2005-10-01 Jackson Harper <jackson@ximian.com>
10143 * MdiChildContext.cs:
10144 * MdiClient.cs: Implement ActiveMdiChild in Form.
10146 2005-10-01 Jordi Mas i Hernandez <jordi@ximian.com>
10148 * ComboBox.cs: Include ComboBoxEdit flag for the edit item
10150 2005-10-01 Peter Dennis Bartok <pbartok@novell.com>
10152 * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
10155 2005-09-30 Jackson Harper <jackson@ximian.com>
10157 * ListBox.cs: Don't do a full refresh unless some data has
10160 2005-09-30 Jackson Harper <jackson@ximian.com>
10162 * TreeView.cs: Make sure that the checkboxes size is factored in
10163 even when not visible.
10165 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
10167 * FileDialog.cs: Fix Jordi's build break
10169 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
10172 - Use standard the Windows colours for the combobox as espected
10173 - Dispose objects that use resouces when no longer need them
10175 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
10177 * X11DesktopColors.cs: Initial incomplete implementation
10178 * XplatUIX11.cs: Added call to initialize X11DesktopColors
10180 2005-09-30 Peter Dennis Bartok <pbartok@novell.com>
10183 - Switched Theme color names to match the names defined in
10184 System.Drawing.KnownColors. Life's hard enough, no need to make
10186 - Added setters to all theme color properties so themes can set
10187 their color schemes. The setters also propagate the color changes
10188 to System.Drawing.KnownColors via reflection
10189 * ControlPaint.cs, Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
10190 ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
10191 DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
10192 use the new, more logical theme color names
10193 * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
10195 * ThemeWin32Classic.cs:
10196 - Removed code to set the old classic Windows colors. Instead it
10197 now relies on the colors returned by System.Drawing.KnownColors
10198 which will be either modern static colors (Unix) or colors
10199 read from the user's configuration (Win32)
10200 - Updated to use the new, more logical theme color names
10201 - Switched DataGrid drawing code to use only Theme colors instead of
10202 a mix of System.Drawing.KnownColors and Theme colors
10203 - DrawFrameControl(): Removed code that fills the button area, the
10204 fill would overwrite any previous fill done by a control. This
10206 - Added DrawReversibleRectangle() stub
10207 * ScrollableControl.cs: Set visible state to false when scrollbars
10208 are removed (pdn fix)
10209 * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added
10210 DrawReversibleRectangle() method to allow drawing primitive
10212 * XplatUIX11.cs: Implemented DrawReversibleRectangle()
10214 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
10216 * ImageList.cs: Add(Icon): Create handle.
10218 2005-09-30 Jordi Mas i Hernandez <jordi@ximian.com>
10221 * ThemeWin32Classic.cs:
10222 - Fixes detail mode
10224 - Issues with drawing
10226 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
10228 * ImageList.cs: Moved RecreateHandle back to ImageList as event
10229 source has to be the ImageList.
10231 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
10233 * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
10235 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
10237 * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
10239 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
10241 * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
10243 2005-09-29 Jonathan Chambers <jonathan.chambers@ansys.com>
10244 * GridItem.cs: Fixed TODOs
10245 * GridItemCollection.cs: Added ICollection interface
10247 2005-09-30 Kornél Pál <kornelpal@hotmail.com>
10249 * ImageList.cs: Resize icons when needed.
10251 2005-09-29 Jordi Mas i Hernandez <jordi@ximian.com>
10254 - Fixes GetBounds and returns on screen rects
10256 - Fixes vertical and horzintal scrolling of items
10257 * ThemeWin32Classic.cs:
10260 2005-09-29 Raja R Harinath <harinath@gmail.com>
10262 * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
10264 2005-09-29 Kornél Pál <kornelpal@hotmail.com>
10266 * ImageList.cs: Added comments about handle creation. Moved Handle,
10267 HandleCreated and OnRecreateHandle implementations to ImageCollection.
10268 Handle is created in Add methods.
10270 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
10272 * DataGridDrawingLogic.cs:
10273 - Takes rows into account on Colum calculations
10274 - Returns the column when clickig
10276 - Fixes default HitTestInfo values
10277 - Fixes HitTestInfo.ToString
10278 - Fixes ResetBackColor
10280 2005-09-28 Jackson Harper <jackson@ximian.com>
10282 * MdiChildContext.cs: Obey rules for fixed sized windows (no
10283 sizing or cursor changes). Also added some temp code to draw the
10284 titlebars text (Makes dev a little easier).
10286 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
10288 * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
10290 2005-09-28 Jordi Mas i Hernandez <jordi@ximian.com>
10292 * ListBox.cs: Fixes bug 76253
10294 2005-09-28 Kornél Pál <kornelpal@hotmail.com>
10296 * ImageList.cs: Added comments about the current implementation. Added
10297 ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
10298 Format32bppArgb to preserve transparency and can use Graphics.FromImage
10299 while using the specified ColorDepth. ReduceColorDepth uses unsafe code
10300 with Bitmap.LockBits for better performance. Revised the whole file to
10301 match MS.NET behaviour and provide better performance. Non-public
10302 interface members are calling public members even when they throw
10303 NotSupportedException for better maintainability. Moved ColorDepth,
10304 ImageSize, ImageStream and TransparentColor implementations to
10305 ImageCollection for better performance as these properties are not used
10307 * ImageListStreamer.cs: Added a new internal constructor that takes an
10308 ImageList.ImageCollection and serializes Images based on
10309 ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
10310 match ImageList property name.
10312 2005-09-28 Kazuki Oikawa <kazuki@panicode.com>
10314 * ListBox.cs: Fixes IndexFromPoint for last item
10316 2005-09-27 Jackson Harper <jackson@ximian.com>
10318 * Form.cs: Set the position of new mdi children correctly.
10320 2005-09-27 Jackson Harper <jackson@ximian.com>
10322 * MdiClient.cs: New mdi children need to be added to the back of
10323 the controls collection so the zorder is set correctly. Also add a
10324 count of all the child windows that have been created.
10326 2005-09-27 Jackson Harper <jackson@ximian.com>
10328 * Form.cs (CreateParams): Setup MDI forms correctly.
10330 2005-09-27 Jackson Harper <jackson@ximian.com>
10332 * MdiChildContext.cs:
10333 * MonthCalendar.cs:
10339 * ScrollableControl.cs:
10340 * ComboBox.cs: Add implicit controls using the new implict control
10341 functionality in ControlCollection. Also try to block multiple
10342 control add in a suspend/resume layout to save some cycles.
10344 2005-09-27 Jackson Harper <jackson@ximian.com>
10346 * Control.cs: Add functionality to the controls collection to add
10347 'implicit controls' these are controls that are created by the
10348 containing control but should not be exposed to the user. Such as
10349 scrollbars in the treeview.
10350 * Form.cs: The list var of the ControlsCollection is no longer
10351 available because of the potential of implicit controls getting
10352 ignored by someone accessing the list directly.
10354 2005-09-26 Peter Dennis Bartok <pbartok@novell.com>
10356 * Control.cs: Fixed SetChildIndex; it no longer causes a child to
10357 loose it's parent. (Fixed bug introduced in r49103 when we added
10358 setting the child parent to null on Remove)
10360 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
10362 * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
10363 * Splitter.cs: Added missing attributes for BorderStyle property.
10364 * TextBoxBase.cs: Marked Calculate* methods internal.
10365 * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
10368 2005-09-26 Jordi Mas i Hernandez <jordi@ximian.com>
10370 * ListBox.cs: Fixes navigation to the last item in multicolumn lists
10372 2005-09-25 Jackson Harper <jackson@ximian.com>
10374 * TreeView.cs: Update the node bounds correctly regardless of
10375 whether the node is visible.
10377 2005-09-25 Jackson Harper <jackson@ximian.com>
10379 * ImageList.cs: Don't dispose the image after it is added to the
10380 image list. Only reformat images that need to be resized.
10382 2005-09-25 Jackson Harper <jackson@ximian.com>
10384 * ImageList.cs: Don't set the format when changing the image.
10386 2005-09-25 Jackson Harper <jackson@ximian.com>
10388 * TreeView.cs: We can't just assume the node has a font. Use the
10389 treeviews font if no node font is available.
10391 2005-09-25 Jackson Harper <jackson@ximian.com>
10393 * TreeView.cs: Allow the scrollbars to be reset with negative
10395 - Don't add scrollbars to negative sized windows.
10397 2005-09-23 Jackson Harper <jackson@ximian.com>
10399 * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
10400 old Mono.Posix. Also remove some stray code that shouldn't have
10403 2005-09-23 Jackson Harper <jackson@ximian.com>
10405 * TreeView.cs: Attempt at proper sizing of the horizontal
10406 scrollbar. Also don't resize the scrollbars unless they are
10409 2005-09-23 Jackson Harper <jackson@ximian.com>
10411 * TreeView.cs: We don't need to expand the invalid area when the
10412 selection changes, as this is all drawn in the node's bounding
10413 box. The area needs to be expanded (previous typo was contracting
10414 it) when the focus rect moves.
10416 2005-09-23 Jackson Harper <jackson@ximian.com>
10418 * TreeView.cs: Display the selection box under the correct
10419 circumstances. We were rendering white text with no selection box
10422 2005-09-23 Peter Dennis Bartok <pbartok@novell.com>
10424 * TextControl.cs(Split): Now updates selection start/end if it points
10425 into a line that's being split. Fixes a FIXME and bug #75258
10427 2005-09-23 Jackson Harper <jackson@ximian.com>
10430 * ListControl.cs: Don't use the path when retrieving binding
10431 managers from the binding context. My bat sense tells me that the
10432 path is only used on insertion.
10434 2005-09-22 Jackson Harper <jackson@ximian.com>
10436 * Splitter.cs: Set the cursor an easier way. (Thanks peter).
10438 2005-09-22 Jackson Harper <jackson@ximian.com>
10440 * Splitter.cs: There are special cursors used for splitting.
10441 * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
10443 2005-09-22 Jackson Harper <jackson@ximian.com>
10445 * Splitter.cs: Change the cursor appropriately when the splitter
10446 is moused over, so the user actually knows there is a splitter
10449 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
10451 * Label.cs : Fix ToString method to give same output as MS.NET
10453 2005-09-22 Jackson Harper <jackson@ximian.com>
10455 * TreeView.cs: Create the scrollbars when the handle is created
10456 and add them right away, just make them invisble. Also account for
10457 the window being shrunk vertically to the point that the vert
10458 scrollbar needs to be added.
10459 - Remove some 0.5 adjustments to get around anti aliasing issues.
10461 2005-09-22 Jordi Mas i Hernandez <jordi@ximian.com>
10463 * MainMenu.cs: Fixes default value
10464 * MenuItem.cs: Fixes default value
10466 2005-09-22 Kazuki Oikawa <kazuki@panicode.com>
10468 * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
10470 2005-09-21 Jackson Harper <jackson@ximian.com>
10472 * Control.cs: Don't try to set the border style on the window if
10473 it hasn't been created. When the window is created the border
10474 style will be used.
10476 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
10478 * Control.cs (Update): Don't call XplatUI if we don't have a
10481 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
10483 * ContainerControl.cs: Instead of throwing an exception, print
10484 a one-time warning about Validate not being implemented
10485 * XplatUIWin32.cs: Removed debug output
10487 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
10489 * Control.cs: Only set XplatUI background if we expect the windowing
10490 system to handle the background. This stops controls that draw their
10491 own background from flickering
10493 * XplatUIX11.cs: Support custom visuals and colormaps for window
10494 creation. This allows, amongst other things, using MWF X11 windows
10497 2005-09-21 Peter Dennis Bartok <pbartok@novell.com>
10499 * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
10500 CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
10501 GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
10502 SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
10503 TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
10504 IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
10505 KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
10506 RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
10507 ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
10508 ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
10509 GridColumnStylesCollection.cs,
10510 IDataGridColumnStyleEditingNotificationService.cs,
10511 PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
10512 MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
10513 GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs,
10514 TreeNodeCollection.cs, AmbientProperties.cs,
10515 RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
10516 DataObject.cs, ErrorProvider.cs, Splitter.cs,
10517 DataGridLineStyle.cs, Shortcut.cs, Control.cs,
10518 FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
10519 BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
10520 IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
10521 FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
10522 IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
10523 NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
10524 PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
10525 SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
10526 FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
10527 DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
10528 ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
10529 RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
10530 MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
10531 ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
10532 CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
10533 MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
10534 NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
10535 ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
10536 SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
10537 Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
10538 RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
10539 DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
10540 ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
10541 PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
10542 DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
10543 ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
10544 AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
10545 RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
10546 CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
10547 SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
10548 Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
10549 SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
10550 ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
10551 TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
10553 2005-09-21 Jackson Harper <jackson@ximian.com>
10555 * TreeNode.cs: Call Before/After Expand not Collapse when
10558 2005-09-20 Jackson Harper <jackson@ximian.com>
10560 * XplatUIX11.cs: Use the more hand looking hand (in most themes).
10562 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
10566 - Fixes proper storing of subitems
10567 - Fixes not updated items
10569 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
10571 * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
10572 things if our window handle isn't created yet. Also disabled
10573 debug for TextBoxBase
10575 2005-09-20 Peter Dennis Bartok <pbartok@novell.com>
10577 * MenuAPI.cs: Remove filtering of events to allow menu usage
10579 2005-09-20 Miguel de Icaza <miguel@novell.com>
10581 * Cursor.cs: Allow null to be passed to Cursor.Current.
10583 2005-09-20 Alexander Olk <alex.olk@googlemail.com>
10585 * ThemeWin32Classic.cs:
10586 - Change some private methods/fields to protected virtual so that
10587 they can be accessed and overriden in derived classes
10588 - First refactoring of some methods. Derived themes now don't
10589 need to duplicate the complete code from ThemeWin32Classic
10591 - Added nice StatusBar
10592 - Derive from ThemeWin32Classic and not Theme
10593 - Removed duplicate ThemeWin32Classic code
10595 2005-09-20 Miguel de Icaza <miguel@novell.com>
10597 * Control.cs (ControlCollection.Add): If the value null is passed
10598 the control is ignored.
10600 Optimize this loop.
10602 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
10604 * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
10605 PostQuitMessage state.
10606 * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
10608 2005-09-19 Peter Dennis Bartok <pbartok@novell.com>
10610 * Application.cs: Our constructor will never get called, move
10611 initialization to fields; fixes bug #75933
10613 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
10616 - Allow files to be selected properly using file name
10618 - Add ability to change diretory (absolute / relative)
10619 using file name combo box.
10621 2005-09-16 Jordi Mas i Hernandez <jordi@ximian.com>
10624 - Fixes Multicolumn listboxes item wrong calculations
10625 - Allows to click when only one item is in the listbox
10626 - Fixes crash when no items using keyboard navigation
10628 2005-09-16 Alexander Olk <alex.olk@googlemail.com>
10630 * ComboBox.cs: Reverted almost everything from the latest patch which
10633 2005-09-16 Kazuki Oikawa <kazuki@panicode.com>
10636 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
10638 - When DropDownStyle is Simple, it does not show scrollbar
10639 to the last item of the list.
10640 - When DropDownStyle is Simple, it crashed when the list was
10641 scrolled down with the down cursor key.
10642 - Fixed a bug that when DropDownStyle is DropDownList, the
10643 selected item was not shown.
10644 - The position of the selected item was not preserved when
10645 the next dropdown happened.
10646 * ThemeWin32Classic.cs:
10647 - Items were wrapped at the right end.
10648 * CheckedListBox.cs:
10651 - Items should be fully shown.
10652 - When resizing and vertical scrollbar disappeared, the item
10653 of index 0 should be on the top of the list.
10654 - GetItemRectangle should consider the size of ver. scrollbar
10656 - SizingGrip area should not be allocated when it is not
10658 - Now it reflects MinWidth of the containing panel and
10659 fixed a crash that happens when its width becomes so small.
10661 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
10663 * CheckedListBox.cs: Fixes bug 76028
10664 * ListBox.cs: Fixes bug 76028
10666 2005-09-13 Jordi Mas i Hernandez <jordi@ximian.com>
10668 * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
10669 * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
10671 2005-09-12 Jordi Mas i Hernandez <jordi@ximian.com>
10673 * XplatUIX11.cs: fixes System.NullReferenceException in some situations
10675 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
10677 * IRootGridEntry.cs: Changed namespace to PropertyGridInternal
10679 2005-09-09 Jonathan Chambers <jonathan.chambers@ansys.com>
10681 * IRootGridEntry.cs: Added
10682 * PropertyGridCommands.cs: Added
10683 * PropertiesTab.cs: Added missing methods and property
10684 * PropertyGridView.cs: Made class internal
10685 * PropertyGridTextBox.cs: Made class internal
10687 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
10689 * MimeIcon.cs: Try to check some other environment variables
10690 if "DESKTOP_SESSION" returns "default"
10692 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
10694 * ThemeNice.cs: Corrected background colors (e.g. menus)
10695 * ColorDialog.cs: Use correct background colors for controls
10697 2005-09-09 Alexander Olk <alex.olk@googlemail.com>
10699 * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
10701 2005-09-08 Peter Dennis Bartok <pbartok@novell.com>
10703 * RichTextBox.cs: Added initial implementation
10704 * lang.cs: Removed. Was accidentally checked in long time ago
10705 * TODO: Removed. Contents were obsolete
10707 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
10709 * PropertiesTab.cs : Added
10711 2005-09-06 Jonathan Chambers <jonathan.chambers@ansys.com>
10713 * PropertyGrid.cs : Update
10714 * PropertyGridView.cs : Update
10715 * System.Windows.Forms.resx : Added images and strings
10717 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
10719 * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
10721 2005-09-06 Peter Dennis Bartok <pbartok@novell.com>
10723 * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
10724 a busy loop right after the Ungrab the X11 display is otherwise
10727 2005-09-06 Jordi Mas i Hernandez <jordi@ximian.com>
10729 * ThemeWin32Classic.cs: Optimise the use of clipping
10731 2005-09-05 Jordi Mas i Hernandez <jordi@ximian.com>
10733 * DataGrid.cs: fixes recursion bug
10735 2005-09-03 Alexander Olk <alex.olk@googlemail.com>
10738 - Draw RadioButton and CheckBox Buttons with DrawButtonBase
10741 2005-09-02 Alexander Olk <alex.olk@googlemail.com>
10743 * ThemeNice.cs: Draw nice ProgressBars
10745 2005-09-01 Miguel de Icaza <miguel@novell.com>
10747 * VScrollBar.cs: Another buglet found by Aaron's tool.
10749 * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
10752 2005-08-30 Alexander Olk <alex.olk@googlemail.com>
10755 - Added nicer menu drawing
10759 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
10761 * CreateParams.cs (ToString): Made output match MS
10762 * Control.cs (Text): Don't set Text or Focus via XplatUI unless
10763 handle is already created (to avoid forcing window creation)
10764 * XplatUIX11.cs: Set window text to caption after creating window,
10765 in case Text was set before window was created
10766 * Form.cs: Use this.Text instead of a static string as caption
10768 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
10770 * NotifyIcon.cs: Don't set the window to visible; this screws
10771 up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
10772 OnPaint without a bitmap)
10773 * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't
10774 happen very often anyway; we could add the check to the WM_PAINT
10775 event generation code
10777 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
10779 * NotifyIcon.cs: Fill the icon area with a background color, to
10780 avoid 'residue' when transparent icons are drawn
10782 - Handle whole_window == client_window when destroying windows
10783 - SystrayAdd(): Set client_window to whole_window value to
10784 get mouse and other events passed to NotifyIcon
10786 2005-08-30 Peter Dennis Bartok <pbartok@novell.com>
10788 * Form.cs: Set proper default for Opacity property
10790 - ShowSystray(): Don't bother creating telling the OS
10791 about the systray item if no icon is provided
10792 - Now handles WM_NCPAINT message to deal with whole/client window
10794 - Create window as visible to not get caught by Expose optimization
10795 * Hwnd.cs: Removed debug message
10796 * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
10797 StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched
10798 PaintEventStart/End to use new client argument
10800 - Commented out debug messages
10801 - Switched PaintEventStart/End to use new client argument
10802 * XplatUI.cs: Added client window bool to PaintEventStart()/
10803 PaintEventEnd() calls, to support drawing in non-client areas
10804 * XplatUIDriver.cs:
10805 - Added client window bool to PaintEventStart()/PaintEventEnd()
10806 calls, to support drawing in non-client areas
10807 - Added conditional compile to allow using MWF BeginInvoke
10810 - Added some conditional debug output
10811 - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
10812 whole/client window split
10813 - Implemented handling of client argument to PaintEventStart()/End()
10815 - Throw exception if BeginInvoke() is called and the window handle
10816 or one of the window's parent handles is not created
10817 - Added conditional compile to allow using MWF BeginInvoke on
10819 - get_Parent(): Only sets parent if handle is created. This avoids
10820 forcing window handle creation when parent is set.
10821 - Now fires Layout and Parent changed events in proper order
10822 - Switched to use Handle instead of window.Handle for Z-Order setting,
10823 the get_Parent() patch above causes us to possibly get null for 'window'
10824 - Implemented handling of client argument to PaintEventStart()/End()
10825 - Now reports back to windows that WM_SETCURSOR was handled (to avoid
10827 - Now sends a Refresh() to all child windows when Refresh() is called
10829 2005-08-29 Peter Dennis Bartok <pbartok@novell.com>
10831 * Form.cs: Added (non-functional) Opacity property
10832 * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
10834 2005-08-29 Alexander Olk <xenomorph2@onlinehome.de>
10835 * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
10836 use export MONO_THEME=nice to activate it.
10837 Currently supported controls:
10841 - TabControl (TabAlignment.Top only, other will follow)
10842 * ThemeEngine.cs: Add theme nice
10843 * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
10846 2005-08-25 Jonathan Chambers <jonathan.chambers@ansys.com>
10848 * Splitter.cs: Resize docked control and its neighbor.
10850 2005-08-24 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
10851 -- Making Windows with Menus layout correctly --
10852 * Form.cs : The first leg of the fix
10853 Menu setter - adjust Client Size as needed to make space for the menu
10854 SetClientSizeCore - doesn't call base version to be able to pass the
10855 menu handle to XplatUI.CalculateWindowRect
10856 * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
10857 * XplatUIX11.cs: The critical second leg of the fix
10858 GetWindowPos needs to use a recalculated client_rect
10859 so that resizing the window doesn't break layout of child controls.
10860 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
10861 Lots of \t\n killed
10863 2005-08-23 Peter Dennis Bartok <pbartok@novell.com>
10865 * Label.cs: Now properly recalculates width and height on Font and Text
10866 changes if AutoSize is set
10868 2005-08-19 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
10869 * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
10871 2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
10873 * ImageList.cs: Makes ToString method compatible with MS
10875 2005-08-18 Jordi Mas i Hernandez <jordi@ximian.com>
10877 * MenuAPI.cs: fixes bug 75716
10879 2005-08-11 Umadevi S <sumadevi@novell.com>
10880 * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
10882 2005-08-11 Umadevi S <sumadevi@novell.com>
10883 * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
10885 2005-08-10 Umadevi S <sumadevi@novell.com>
10886 * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
10888 2005-08-07 Jordi Mas i Hernandez <jordi@ximian.com>
10890 * Menu.cs: fixes bug 75700
10891 * MenuAPI.cs: fixes navigation issues
10893 2005-08-09 Umadevi S <sumadevi@novell.com>
10894 * CheckedListBox.cs - simple fix for GetItemChecked.
10896 2005-08-08 Jordi Mas i Hernandez <jordi@ximian.com>
10898 * ComboBox.cs: Serveral fixes
10899 * ListBox.cs: Serveral fixes
10901 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
10903 * ComboBox.cs: Fixes FindString methods and GetItemHeight
10904 * ListBox.cs: Fixes FindString methods
10906 2005-08-05 Jordi Mas i Hernandez <jordi@ximian.com>
10908 * DataGrid.cs: fixes bugs exposed by new tests
10910 2005-08-04 Peter Dennis Bartok <pbartok@novell.com>
10912 * Mime.cs: Compile Mono assembly references only if compiling
10913 with Mono (Allows to build with VS.Net again)
10915 2005-07-28 Marek Safar <marek.safar@seznam.cz>
10917 * Control.cs (PaintControlBackground): Draw background image
10919 (CheckForIllegalCrossThreadCalls): Stubbed.
10921 * Form.cs (OnCreateControl): Center when should be centered.
10923 * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
10925 2005-07-19 Jordi Mas i Hernandez <jordi@ximian.com>
10927 * Binding.cs: Binding to properties should be case unsensitive
10929 2005-07-18 vlindos@nucleusys.com
10931 * DataGrid.cs: fixes setmember order
10933 2005-07-07 Alexander Olk <xenomorph2@onlinehome.de>
10935 * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
10936 * FileDialog.cs: FileDialog is now resizable and uses the new
10939 2005-07-06 Jordi Mas i Hernandez <jordi@ximian.com>
10941 * DataGridTextBoxColumn.cs: default value
10942 * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
10943 * GridTableStylesCollection.cs: fixes checking MappingName
10944 * DataGridDrawingLogic.cs: fixes drawing logic issues
10945 * DataSourceHelper.cs: rewritten to make compatible with more data sources
10946 * DataGrid.cs: fixes
10948 2005-07-06 Alexander Olk <xenomorph2@onlinehome.de>
10950 * MimeGenerated.cs: Use case sensitive comparer for
10951 NameValueCollections
10953 2005-07-01 Jordi Mas i Hernandez <jordi@ximian.com>
10955 * DataGridTextBoxColumn.cs: bug fixes, code refactoring
10956 * ThemeWin32Classic.cs: bug fixes, code refactoring
10957 * DataGridDrawingLogic.cs: bug fixes, code refactoring
10958 * DataGrid.cs: bug fixes, code refactoring
10959 * DataGridTextBox.cs: bug fixes, code refactoring
10960 * DataGridColumnStyle.cs: bug fixes, code refactoring
10961 * Theme.cs: bug fixes, code refactoring
10963 2005-07-01 Peter Bartok <pbartok@novell.com>
10965 * TextControl.cs: Quick fix for the reported crash on ColorDialog
10966 and other text box usage
10968 2005-07-01 Jackson Harper <jackson@ximian.com>
10970 * TabControl.cs: Make sure the bottom of the tab covers the pages
10973 2005-06-30 Peter Bartok <pbartok@novell.com>
10975 * Form.cs (ShowDialog): Assign owner of the dialog
10976 * TextBoxBase.cs: Always refresh caret size when deleting, caret
10977 might have been moved to a tag with different height
10979 2005-06-30 Jackson Harper <jackson@ximian.com>
10981 * Form.cs: Don't create an infinite loop when setting focus
10982 * MenuItem.cs: Don't dirty the parents if we don't have any
10984 2005-06-29 Ben Maurer <bmaurer@ximian.com>
10986 * LibSupport.cs: Rename
10988 2005-06-29 Peter Bartok <pbartok@novell.com>
10990 * TextBoxBase.cs: Re-align caret after deleting a character
10992 - DeleteChars(): Ensure that tag covers the provided position
10993 - StreamLine(): Drop reference for dropped tag
10995 2005-06-29 Peter Bartok <pbartok@novell.com>
10998 - Selections now work properly, anchoring at the initial location
10999 and properly extending in either direction (SetSelectionToCaret(),
11000 SetSelectionStart() and SetSelectionEnd())
11001 - No longer redraws the whole control on selection change, now
11002 calculates delta between previous and new selection and only
11003 invalidates/redraws that area
11004 - Fixed FindPos() math off-by-one errors
11005 - Changed DeleteChars() to verify the provided tag covers the
11006 provided position, selections may have a tag that doesn't cover
11007 the position if the selection is at a tag border
11008 - Fixed off-by-one errors in DeleteChars()
11009 - Added missing streamlining check in DeleteChars() to remove
11011 - Implemented Invalidate() method, now properly calculates exposures
11012 between two given lines/positions
11013 - Implemented SetSelection()
11014 - Obsoleted and removed FixupSelection()
11015 - Improved RecalculateDocument() logic, removing code duplication
11017 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11019 * LibSupport.cs: changes to match different input/output arguments.
11021 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11023 * LibSupport.cs: added libsupport.so init routine.
11025 2005-06-29 Jordi Mas i Hernandez <jordi@ximian.com>
11027 * ControlBindingsCollection.cs
11028 - Throws an exception on null datasource when adding
11029 - Checks for duplicated bindings when adding
11031 2005-06-28 Jackson Harper <jackson@ximian.com>
11033 * TreeView.cs (OnKeyDown): Support left and right properly
11034 (navigates as well as expanding and collapsing.
11035 - Add support for Multiply, this expands all the selected nodes
11037 - Fix some tabbing.
11039 2005-06-28 Jackson Harper <jackson@ximian.com>
11041 * TreeView.cs: Implement keyboard navigation, currently supports,
11042 LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
11043 support for toggling checkboxes with the space bar.
11045 2005-06-28 Jackson Harper <jackson@ximian.com>
11047 * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
11050 2005-06-28 Jackson Harper <jackson@ximian.com>
11052 * TreeView.cs: Add missing event.
11054 2005-06-27 Peter Bartok <pbartok@novell.com>
11057 - Made line ending size configurable (now allows for counting
11058 lineendings as \n or \r\n)
11059 - Added margin to viewport to keep caret visible on right side
11060 - Fixed translation routines for line/pos to documentpos to consider
11061 cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
11062 - Fixed some line-endings to be unix style
11063 - Fixed Document.FormatText to perform it's calculations 1-based
11064 - Added descriptions for a few methods that might otherwise get
11066 - Added NOTE section with some basic conventions to remember at
11067 the top of the file
11068 - Major fixup for RichTextBox selection drawing:
11069 * Fixed crashes when multiple tags on a single line were selected
11070 * fixed selection box drawing not overlaying text
11071 * fixed bogus offset calculation for tags not starting at index 1
11072 * Switched behaviour from using multiple Substrings of a
11073 StringBuilder.ToString() to using multiple
11074 StringBuilder.ToString(start, length) statements, hoping this is
11075 faster (kept original version commented out in the code, in case
11076 original version was faster)
11077 * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if
11079 * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
11082 2005-06-27 Jackson Harper <jackson@ximian.com>
11084 * TabControl.cs: Move to the left and right with the arrow
11085 keys. These keys don't cycle beyond first and last like
11086 tab. Refresh all the tabs when scrolling them to the left or
11089 2005-06-27 Jackson Harper <jackson@ximian.com>
11092 - ToString: Added method
11093 - CreateParams: Remove TODO and comment
11094 - OnKeyDown: Cycle through bounds properly.
11095 - SelectedIndex: Scroll to the right or left if we need to
11096 display the newly selected tab.
11098 2005-06-23 Jackson Harper <jackson@ximian.com>
11100 * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
11103 2005-06-23 Jackson Harper <jackson@ximian.com>
11105 * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
11106 CTRL-SHIFT-TAB, and HOME, END are there any others?
11108 2005-06-23 Jackson Harper <jackson@ximian.com>
11110 * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
11112 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
11114 * DataGridTextBoxColumn.cs: fixes and enhancements
11115 * ThemeWin32Classic.cs: fixes and enhancements
11116 * DataGridBoolColumn.cs: fixes and enhancements
11117 * DataGridDrawingLogic.cs: fixes and enhancements
11118 * CurrencyManager.cs: fixes and enhancements
11119 * DataGrid.cs: fixes and enhancements
11120 * DataGridColumnStyle.cs: fixes and enhancements
11122 2005-06-22 Jackson Harper <jackson@ximian.com>
11124 * TabControl.cs: Add some missing methods that just call into the
11125 base. Make the TabPageCollection's IList interface behave in the
11126 same manner as the MS implementation.
11128 2005-06-22 Peter Bartok <pbartok@novell.com>
11130 * TextControl.cs: Added sanity check
11132 - Fixed wrapping behaviour, don't set wrap on single line controls
11133 (this fixes the breakage of colordialog introduced in an earlier
11135 - Added rudimentary support for autoscrolling right-aligned controls
11136 (still needs fixing, also, center alignment scroll is missing)
11138 2005-06-22 Jordi Mas i Hernandez <jordi@ximian.com>
11140 * ScrollBar.cs: Fixes thumbpos on Maximum values
11142 2005-06-21 Jonathan Chambers <jonathan.chambers@ansys.com>
11144 * PropertyGridView.cs: Pass context information to UITypeEditors
11146 2005-06-21 Peter Bartok <pbartok@novell.com>
11149 - Now calling PositionCaret with absolute space coordinates
11150 - Enabled vertical scrolling
11151 - Better tracking of scrollbar changes, tied into WidthChange
11153 - Improved cursor tracking
11154 - Removed debug output
11156 - PositionCaret coordinates are now works in absolute space, not
11158 - Improved tracking of document size
11159 - Added events for width and height changes
11161 2005-06-21 Peter Bartok <pbartok@novell.com>
11163 * Form.cs: Set focus to active control when form is activated
11165 - Added word-wrap functionality to RecalculateLine()
11166 - Added some short function descriptions for VS.Net to aid in
11167 writing dependent controls
11168 - Added Caret property, returning the current coords of the caret
11169 - Added ViewPortWidth and ViewPortHeight properties
11170 - Added Wrap property
11171 - Added CaretMoved event
11172 - Removed some old debug code
11173 - Split() can now create soft splits
11174 - Added PreviousTag()/NextTag() to allow walking "tag-lists"
11175 - Added method to format existing text
11176 - Fixed size/alignment calculations to use viewport
11177 - RecalculateDocument now can handle changing line-numbers while
11181 - Added some wrap logic, we don't wrap if alignment is not left
11182 - Added casts for scrollbar var, base class switched types to
11183 also support RichTextBoxA
11184 - Implemented handling of scrollbar visibility flags
11187 - Switched scrollbars type to RichTextBoxScrollBars to support
11189 - Added tracking of canvas width/height
11190 - Switched scrollbars to be not selectable (to keep focus on text)
11191 - Added central CalculateDocument() method to handle all redraw
11193 - Added ReadOnly support
11194 - Added WordWrap support
11195 - Fixed handling of Enter key (we now treat it as a DialogKey)
11196 - Fixed caret positioning when h or v scroll is not zero
11197 - Fixed placing/generation of vertical scrollbar
11198 - Added CalculateScrollBars() method to allow updating scrollbar
11199 limits and visibility
11200 - Fixed handling of horizontal scroll
11201 - Added handling of vertical scroll
11202 - Implemented auto-'jump' when caret moves to close to a left or
11203 right border and there is text to be scrolled into view (currently
11204 there's the potential for a stack overflow, until a bug in
11205 scrollbar is fixed)
11207 2005-06-21 Geoff Norton <gnorton@customerdna.com>
11209 * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
11211 2005-06-19 Alexander Olk <xenomorph2@onlinehome.de>
11215 - return application/x-zerosize for files with size zero
11216 (if no extension pattern matches).
11217 - check matches collection for strings too.
11218 - return only the first mime type if the name value
11219 collection has more than one mime type.
11221 2005-06-18 Jonathan Chambers <jonathan.chambers@ansys.com>
11223 * PropertyGrid.cs: Cleaned up some TODOs
11224 * PropertyGridView.cs: Added support for UITypeEditors
11226 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
11228 * DataGrid.cs: clears cached value
11230 2005-06-17 Jordi Mas i Hernandez <jordi@ximian.com>
11232 * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
11233 * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
11234 * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
11235 * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
11237 2005-06-16 Jordi Mas i Hernandez <jordi@ximian.com>
11239 * ThemeWin32Classic.cs: fixes colour
11241 2005-06-15 Peter Bartok <pbartok@novell.com>
11243 * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
11244 * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
11245 * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
11246 * Control.cs: Added some MWFCategory and MWFDescription attributes
11247 * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
11249 2005-06-15 Alexander Olk <xenomorph2@onlinehome.de>
11251 * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
11254 2005-06-14 Jordi Mas i Hernandez <jordi@ximian.com>
11256 * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
11257 * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
11258 * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
11259 * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
11260 * DataGrid.cs: default datagrid settings for Default Styles, fixes
11261 * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
11263 2005-06-13 Jackson Harper <jackson@ximian.com>
11265 * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
11266 isn't printed when the user enables dropping. (X11 does accept
11269 2005-06-13 Jackson Harper <jackson@ximian.com>
11271 * TreeView.cs: Remove some TODOS.
11273 2005-06-13 Jackson Harper <jackson@ximian.com>
11275 * Form.cs: Hook into the mdi framework.
11276 * MdiClient.cs: Use the base control collections add method so
11277 parents get setup correctly. Set the default back colour and dock
11279 * MdiChildContext.cs: New class, this bad actor handles an
11280 instance of an MDI window. Right now there is only basic
11281 support. You can drag, close, and resize windows. Minimize and
11282 Maximize are partially implemented.
11284 2005-06-13 Jackson Harper <jackson@ximian.com>
11286 * XplatUIX11.cs: Mash numbers together properly, otherwise we get
11287 freaky when both vals are negative. NOTE: There are probably other
11288 places in XplatUIX11 that this needs to be done.
11290 2005-06-13 Jordi Mas i Hernandez <jordi@ximian.com>
11292 * DataGrid.cs: implement missing methods, move KeyboardNavigation
11293 * DataGridColumnStyle.cs: fixes signature
11295 2005-06-12 Jackson Harper <jackson@ximian.com>
11297 * XplatUIX11.cs: Use sizing cursors similar to the ones on
11300 2005-06-11 Jackson Harper <jackson@ximian.com>
11302 * StatusBarPanel.cs: Signature cleanups. Implement
11305 2005-06-10 Jordi Mas i Hernandez <jordi@ximian.com>
11307 * DataGridTextBoxColumn.cs: Honors aligment
11308 * GridColumnStylesCollection.cs: Contains is case unsensitive
11309 * GridTableStylesCollection.cs: several fixes
11310 * DataGridTableStyle.cs: default column creation
11311 * DataGridDrawingLogic.cs: fixes
11312 * CurrencyManager.cs: ListName property
11313 * DataGrid.cs: multiple styles support
11314 * DataGridColumnStyle.cs: fixes
11317 2005-06-10 Peter Bartok <pbartok@novell.com>
11319 * Control.cs(Select): Moved SetFocus call to avoid potential
11320 loops if controls change the active control when getting focus
11321 * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
11322 the up/down buttons
11324 2005-06-10 Matthias Felgner <matthiasf@voelcker.ocm>
11326 * ImageListConverter.cs: Implemented
11328 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
11330 * MonthCalendar.cs: Wired in NumericUpDown control for year
11332 2005-06-10 John BouAntoun <jba-mono@optusnet.com.au>
11334 * MonthCalendar.cs: Removed MonoTodo attributes on Click and
11335 DoubleClick events, since they are not meant to be fired.
11337 2005-06-09 Peter Bartok <pbartok@novell.com>
11339 * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
11340 Jonathan's standalone controls into MWF, implemented missing
11341 events, attributes and methods; added xxxAccessible classes
11342 * AccessibleObject.cs: Made fields internal so other classes
11343 can change them if needed
11345 2005-06-09 Jonathan Gilbert <2a5gjx302@sneakemail.com>
11347 * UpDownBase.cs: Complete implementation
11348 * NumericUpDown.cs: Complete implementation
11349 * DomainUpDown.cs: Complete implementation
11351 2005-06-09 Jordi Mas i Hernandez <jordi@ximian.com>
11353 * DataGridTextBoxColumn.cs: drawing fixes
11354 * DataGridCell.cs: fixes ToString method to match MSNet
11355 * DataGridTableStyle.cs: fixes
11356 * DataGridBoolColumn.cs: fixes, drawing
11357 * DataGridDrawingLogic.cs: fixes, new methods
11358 * DataGridTextBox.cs: Keyboard and fixes
11360 - Keyboard navigation
11362 - Row selection (single, multiple, deletion, etc)
11365 2005-06-07 Jackson Harper <jackson@ximian.com>
11367 * ThemeWin32Classic.cs: Clear the background area when drawing
11370 2005-06-06 Peter Bartok <pbartok@novell.com>
11372 * ImageListStreamer.cs: Fixed signature for GetData
11373 * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
11375 - Added missing ChildAccessibleObject class
11376 - Added missing OnXXXFocus overrides, switched to using those
11377 instead of the event handler
11379 - Added Parent property for ControlAccessibleObject
11382 - Added ResetBindings()
11383 * ListBindingConverter.cs: Implemented some methods
11384 * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
11385 * ImageList.cs: Implemented basic handle scheme, removed TODOs
11386 * ContainerControl.cs: Fixed signature, now subscribing to the
11387 ControlRemoved event instead of overriding the handler, LAMESPEC
11388 * CurrencyManager.cs: Added missing attribute
11389 * MonthCalendar.cs: Added missing properties
11391 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
11393 * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
11395 2005-06-06 Gaurav Vaish and Ankit Jain
11397 * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
11398 * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
11400 2005-06-06 Jordi Mas i Hernandez <jordi@ximian.com>
11402 * Control.cs: fixes CreateParams Width / Height.
11404 2005-06-05 Peter Bartok <pbartok@novell.com>
11406 * Win32DnD.cs: Removed compilation warnings
11408 2005-06-05 Peter Bartok <pbartok@novell.com>
11410 * Control.cs (CreateParams): Since we don't know if one of the
11411 properties we use is overridden, lets make sure if we fail accessing
11412 we continue with a backup plan
11414 2005-06-05 Peter Bartok <pbartok@novell.com>
11417 - Removed debug output
11418 - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
11420 - Plugged resource leak
11421 * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
11424 2005-06-05 Peter Bartok <pbartok@novell.com>
11426 * XplatUIWin32.cs: Removed DnD code
11427 * Win32DnD.cs: Implemented drop source and drop target functionality
11429 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11431 * UpDownBase.cs: remove duplicate addition of event, enable some code
11432 that was commented out.
11433 * NumericUpDown.cs: added missing attributes and Hexadecimal property.
11434 Validate input when a key is pressed. It works fine now for every
11435 combination of Hexadecimal. Only missing some drawing love when sharing
11436 space with other controls.
11438 2005-06-04 Peter Bartok <pbartok@novell.com>
11441 - We need to pass a window for DragDrop, so enable callback events
11442 - Added DnD callback events when being a DragSource
11443 * XplatUI.cs (StartDrag): Added window handle argument
11444 * XplatUIDriver.cs (StartDrag): Added window handle argument
11445 * QueryContinueDragEventArgs: Made fields internally accessible so
11446 drivers can set them
11447 * GiveFeedbackEventArgs: Made fields internally accessible so drivers
11450 2005-06-03 Jordi Mas i Hernandez <jordi@ximian.com>
11452 * DataGridTextBoxColumn.cs: column text editing
11453 * DataGridTableStyle.cs: Respect columns styles created by the user
11454 * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
11455 * DataGridBoolColumn.cs: bool column editing
11456 * DataGrid.cs: fixes to scrolling, properties, etc
11457 * DataGridTextBox.cs: handle keyboard
11458 * DataGridColumnStyle.cs: fixes
11460 2005-06-02 Jackson Harper <jackson@ximian.com>
11462 * ImageListStreamer.cs: Somewhat broken implementation of
11463 GetObjectData. The RLE needs some work to match MS properly.
11465 2005-06-02 Jackson Harper <jackson@ximian.com>
11467 * X11Dnd.cs: Attempting to keep at least one file in MWF
11470 2005-06-02 Peter Bartok <pbartok@novell.com>
11472 * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
11475 2005-06-02 Peter Bartok <pbartok@novell.com>
11477 * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
11478 * XplatUI.cs: Added DoDragDrop() method
11479 * XplatUIDriver.cs: Added DoDragDrop() method
11481 2005-06-02 Jackson Harper <jackson@ximian.com>
11483 * Splitter.cs: Implement BorderStyle.
11485 2005-06-02 Jackson Harper <jackson@ximian.com>
11487 * XplatUIX11.cs: Tie into the X11Dnd subsystem.
11488 * X11Dnd.cs: New file. A subsystem that handles drag and drop on
11491 2005-06-02 Peter Bartok <pbartok@novell.com>
11494 - Added Data setter
11495 - Fixed broken insertion code for SetData, now also
11496 overwrites any existing entry of the same format name
11497 * Hwnd.cs: Added list of pointers that automatically gets
11498 freed when the window is disposed
11499 * XplatUI.cs: Call driver initialization method when loading
11502 - OnDragLeave takes EventArgs, not DragEventArgs
11503 - Added setting of WS_EX_ACCEPTFILES style when dropping is
11505 - Forces style update when drop state changes
11506 * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
11507 not perfect since we cannot (yet) call the IDataObject.GetData()
11508 method, we keep getting 0x80004005 error, dunno why)
11510 2005-06-02 Peter Bartok <pbartok@novell.com>
11512 * DragEventArgs.cs: Make fields internal so we can cache the
11513 object and re-set the fields from XplatUI
11515 2005-06-02 Jackson Harper <jackson@ximian.com>
11517 * Control.cs: Add some internal methods so the DnD subsystem can
11518 raise DnD events. Also call into the driver when AllowDrop is set.
11520 * XplatUIDriver.cs: New method for setting whether or not a window
11521 is allowed to accept drag and drop messages.
11523 2005-06-01 Jordi Mas i Hernandez <jordi@ximian.com>
11525 * ScrollBar.cs: Make sure that values sent in Scroll events
11526 are always between Maximum and Minimum.
11528 2005-06-01 Marek Safar <marek.safar@seznam.cz>
11530 * Menu.cs: Call MenuChanged when menuitem visibility has been
11532 * MenuItem.cs: Rebuild menu when item is (not) visible.
11533 * MainMenu.cs: MainMenu has special MenuChanged.
11534 * Theme.cs: Caption and FrameBorderSize are not fixed.
11535 * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
11536 * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
11538 * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
11539 * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
11541 2005-05-30 Jackson Harper <jackson@ximian.com>
11543 * DataFormat.cs: We can't statically initialize this stuff because
11544 it calls into the xplatui and could create a loop. So we lazy init
11547 2005-05-28 Jackson Harper <jackson@ximian.com>
11549 * Control.cs: Proper implementation of Product(Name/Version).
11551 2005-05-27 Jackson Harper <jackson@ximian.com>
11553 * DataObject.cs: Dont crash if no data is found.
11555 2005-05-26 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
11556 * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
11557 as per status page, guessing it should be set to true
11559 2005-05-26 Jordi Mas i Hernandez <jordi@ximian.com>
11561 * DataGridTextBoxColumn.cs: Draws text and basic text formatting
11562 * DataGridTableStyle.cs: set proper formatting text, def header text
11563 * ThemeWin32Classic.cs: new themable paramaters
11564 * DataGridBoolColumn.cs: paint check box, get data, fixes
11565 * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
11566 * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
11567 * DataGridColumnStyle.cs: fixes
11568 * Theme.cs: new themable paramaters
11570 2005-05-26 Peter Bartok <pbartok@novell.com>
11572 * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
11574 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
11575 * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
11577 2005-05-24 Peter Bartok <pbartok@novell.com>
11579 * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
11580 Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
11581 Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
11582 FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
11583 NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
11584 ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
11585 DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
11586 AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
11587 DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
11588 StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
11589 missing attributes, etc
11590 * DataGridPreferredColumnWidthTypeConverter.cs: Added
11592 2005-05-24 Peter Bartok <pbartok@novell.com>
11594 * Help.cs: Added, implemented trivial functions, throws up MessageBox
11595 when user tries to get help
11596 * DataObject.cs, DataFormats.cs, LinkArea.cs,
11597 SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
11598 to suppress warnings
11599 * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
11600 avoid unreachable code warning
11602 2005-05-20 Peter Bartok <pbartok@novell.com>
11604 * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
11606 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
11608 * DataGridTextBoxColumn.cs: Basic painting methods
11609 * DataGridTableStyle.cs: Set table style in the column
11610 * ThemeWin32Classic.cs: Use Theme for colors
11611 * DataGridDrawingLogic.cs: Implement more drawing
11612 * DataGrid.cs: drawing, theming, enhacements, fixes
11613 * DataGridColumnStyle.cs: fixes, drawing
11614 * Theme.cs: theming for Datagrid
11616 2005-05-20 Peter Bartok <pbartok@novell.com>
11618 * Cursor.cs: Implemented GetObjectData() method
11620 2005-05-20 Peter Bartok <pbartok@novell.com>
11622 * Cursors.cs: Added setting of cursor name
11624 - Implemented constructors
11625 - Implemented Draw and DrawStretched
11626 - Implemented Current property
11627 - Implemented == and != operators
11628 - Implemented Dispose()
11629 - Implemented ToString
11630 - Added missing attributes
11632 - Added missing reset for OverrideCursor when DoEvents is called
11633 - Fixed creation of cursor, logic was wrong
11635 - Added missing reset for OverrideCursor when DoEvents is called
11636 - Fixed creation of cursor, bit arrays were swapped
11637 * Clipboard.cs: Removed obsolete MonoTODO attribute
11639 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
11641 * ComboBox.cs: fixes OnSelectedItemChanged
11642 * ControlBindingsCollection.cs: fixes item range check
11644 2005-05-20 Jordi Mas i Hernandez <jordi@ximian.com>
11647 - Calc preferred height properly
11648 - Implement missing properties
11650 * NumericUpDown.cs: Implement missing events
11652 2005-05-19 Jackson Harper <jackson@ximian.com>
11654 * TabControl.cs: New method that resizes the tab pages before
11655 redrawing them. This as needed as the control is double buffered
11656 and sizing will not be recalculated unless ResizeTabPages is
11658 * TabPage.cs: Set base.Text instead of Text in the constructor so
11659 that UpdateOwner does not get called. Use the new Redraw method of
11660 TabControl instead of Refresh so the sizing is recalculated.
11661 * ThemeWin32Classic.cs: Draw the text for button tabs.
11663 2005-05-19 Jackson Harper <jackson@ximian.com>
11665 * Control.cs: Paint control background images. Fix typo where
11666 PaintControlBackground was not getting called correctly.
11668 2005-05-19 Peter Bartok <pbartok@novell.com>
11670 * ScrollableControl.cs (DisplayRectangle): Undid my last change until
11671 I can investigate, apparently I broke FileDialog
11673 2005-05-19 Marek Safar <marek.safar@seznam.cz>
11675 * AxHost.cs: Some simple properties.
11676 * Control.cs: window must be accessible after ctor.
11677 * Form.cs: Added TransparencyKey property.
11678 * TextBoxBase.cs: Implemented Clear. Text property can be null.
11679 * XplatUIWin32.cs: SetBorderStyle implemented.
11681 2005-05-18 Peter Bartok <pbartok@novell.com>
11683 * DataObject.cs: Entries are not global but particular to the
11684 DataObject, now it behaves that way
11685 * XplatUIWin32.cs: Implemented Clipboard methods
11686 * Clipboard.cs: Implemented
11687 * ScrollableControl.cs (DisplayRectangle): Fixed calculation
11688 * XplatUIOSX.cs: Updated to final clipboard prototypes
11689 * XplatUIX11.cs: Implemented Clipboard methods
11690 * XplatUIDriver.cs: Updated to final clipboard prototypes
11691 * XplatUIStructs.cs:
11692 - Added BITMAPINFOHEADER struct
11693 - Added ClipboardFormats enum
11695 - Added ClipboardStruct
11696 - Added Atom enum items for clipboard types
11697 - Fixed atom types for Selection event structures
11699 - Added internal properties and methods for drivers to enumerate
11701 - Switched initialization method to allow drivers to assign their
11702 own IDs even for the MS predefined clipboard IDs
11703 * XplatUI.cs: Updated to final clipboard interface
11705 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
11706 * PropertyGridView.cs: Fixed compiler warnings.
11708 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
11709 * PropertyGrid.cs: Added some event calls
11710 * PropertyGridView.cs: Change drawing code to use double buffering
11711 * PropertyGridTextBox.cs: Changed Text property name
11712 * GridItem.cs: Added Bounds property.
11713 * GridEntry.cs: Added Bounds property.
11715 2005-05-17 Lluis Sanchez Gual <lluis@novell.com>
11717 * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
11718 since GetType() may not return the correct type if the object is
11721 2005-05-17 Jordi Mas i Hernandez <jordi@ximian.com>
11723 * TreeNodeCollection.cs: fixes get/set item ranges
11725 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
11727 * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
11729 2005-05-15 Jordi Mas i Hernandez <jordi@ximian.com>
11731 * ComboBox.cs: Fix item range comparation
11732 * ListView.cs: Fix item range comparation
11734 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
11737 - Clear example panel when OnPaint is called
11738 - Better solution for displaying the example panel text
11739 - Select default indexes in the ListBoxes
11741 2005-05-11 Geoff Norton <gnorton@customerdna.com>
11743 * XplatUIOSX.cs: Avoid painting into invisible views. Fixes #74926
11745 2005-05-11 Peter Bartok <pbartok@novell.com>
11747 * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
11748 * SelectionRangeConverter.cs: Implemented
11749 * PropertyGrid.cs: Fixed attribute value
11751 - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
11752 - Added Sebastien Pouliot's CAS Stack Propagation fixes
11753 * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
11754 that's common to all drivers. First methods to go there are
11755 Sebastien Pouliot's CAS Stack Propagation helper methods
11756 * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
11757 Sebastien Pouliot for CAS Stack Propagation
11759 2005-05-11 Geoff Norton <gnorton@customerdna.com>
11762 XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
11764 2005-05-12 Jordi Mas i Hernandez <jordi@ximian.com>
11766 * DataGridTextBoxColumn.cs: fixed some members
11767 * GridColumnStylesCollection.cs: indexed column is case insensitive
11768 * DataGridTableStyle.cs: fixes
11769 * ThemeWin32Classic.cs: add new theme parameter
11770 * Theme.cs: add new theme parameter
11771 * DataGridDrawingLogic.cs: Datagrid's drawing logic
11772 * DataGrid.cs: fixes, new internal properties, etc.
11773 * DataGridColumnStyle.cs: allows to set grid value
11776 2005-05-10 Peter Bartok <pbartok@novell.com>
11778 * AccessibleObject.cs:
11779 - Removed MonoTODO attribute on help, method is correct
11780 - Fixed Bounds property
11781 * AxHost.cs: Moved MonoTODO
11782 * ButtonBase.cs: Now setting AccessibleObject properties
11783 * RadioButton.cs: Setting proper AccessibleObject role
11784 * CheckBox.cs: Setting proper AccessibleObject role
11785 * ControlBindingsCollection.cs: Added properties, methods and attributes
11786 * DataFormats.cs: Fixed awkward internal API, and changed to enable
11787 userdefined DataFormats.Format items as well
11788 * ListControl.cs: Removed data_member from the public eye
11789 * OpenFileDialog.cs:
11790 - Made class sealed
11791 - Added missing attributes
11792 * SaveFileDialog.cs: Added missing attributes
11793 * ImageListStreamer.cs: Fixed code that caused warnings
11794 * LinkLabel.cs: Removed unreachable code
11795 * TreeView.cs: Fixed code that caused warnings
11796 * PropertyGridView.cs: Fixed code that caused warnings
11797 * GridColumnStylesCollection.cs: Added missing attributes
11798 * GridTableStylesCollection: Added missing attribute
11799 * PropertyManager: Added .ctor
11800 * SecurityIDType: Added
11801 * DataObject.cs: Implemented class
11802 * LinkArea.cs: Added missing attribute
11804 2005-05-11 Jordi Mas i Hernandez <jordi@ximian.com>
11806 * RadioButton.cs: call base method to allow to fire OnClick event
11807 * UpDownBase.cs: OnMouseUp call base method
11808 * CheckedListBox.cs: call base method before returning
11809 * TrackBar.cs: call base method before returning
11812 2005-05-10 Peter Bartok <pbartok@novell.com>
11814 * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
11817 2005-05-10 Peter Bartok <pbartok@novell.com>
11819 * DataFormats.cs: Implemented
11820 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
11821 XplatUIX11.cs: Added Clipboard APIs
11822 * XplatUIWin32.cs: Implemented Clipboard APIs
11823 * FolderBrowserDialog.cs: Added missing event, attributes
11825 2005-05-10 Jordi Mas i Hernandez <jordi@ximian.com>
11827 * CheckBox.cs: call base method to allow to fire OnClick event
11829 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
11831 * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
11833 2005-05-06 Peter Bartok <pbartok@novell.com>
11835 * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
11836 * Screen.cs: Implemented
11837 * HelpNavigator.cs: Added
11838 * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
11840 * HelpProvider.cs: Implemented all we can do until we have a CHM
11841 help library (which means that "What's This" does work now)
11843 2005-05-06 Jackson Harper <jackson@ximian.com>
11845 * XplatUIX11.cs: Fix waking up the main loop.
11847 2005-05-05 Peter Bartok <pbartok@novell.com>
11849 * XplatUI.cs: Updated revision
11850 * Form.cs: Removed enless loop
11851 * GroupBox.cs (OnPaint): Added call to base.OnPaint()
11852 * Label.cs (OnPaint): Added call to base.OnPaint()
11853 * ToolTip.cs: Made ToolTipWindow reusable for other controls
11854 * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
11855 * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
11857 * ButtonBase.cs: Moved base.OnPaint() call to end of method
11858 * ThemeWin32Classic.cs: Replaced references to ToolTip with references
11859 to ToolTip.ToolTipWindow for drawing and size methods; this allows
11860 reuse of ToolTipWindow by other controls
11861 * SizeGrip.cs: Moved base.OnPaint() call to end of method
11862 * XplatUIX11.cs: Now clipping drawing area (experimental)
11863 * PictureBox.cs: Moved base.OnPaint() call to end of method
11864 * Theme.cs: Fixed ToolTip abstracts to match new format
11865 * ErrorProvider.cs: Implemented
11867 2005-05-05 Jordi Mas i Hernandez <jordi@ximian.com>
11869 * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
11873 - Implements LinkBehavior
11874 - Fixes many issues
11876 2005-05-03 Jackson Harper <jackson@ximian.com>
11878 * ListView.cs: Calculate the scrollbar positioning on resize and
11879 paint, so they get put in the correct place.
11881 2005-05-03 Alexander Olk <xenomorph2@onlinehome.de>
11883 * ColorDialogs.cs: The small color panels are now handled by
11884 SmallColorControl. This fixes drawing of the focus rectangle
11885 and adds a 3D border.
11887 2005-05-03 Peter Bartok <pbartok@novell.com>
11889 * Control.cs: Modified version of Jonathan Chamber's fix for
11892 2005-05-03 Jackson Harper <jackson@ximian.com>
11894 * ListView.cs: Remove redraw variable. Control now handles whether
11895 or not a redraw needs to be done, and will only raise the paint
11896 event if redrawing is needed.
11898 2005-05-03 Jackson Harper <jackson@ximian.com>
11900 * Splitter.cs: No decorations for the splitter form. Cache the
11903 2005-05-03 Jackson Harper <jackson@ximian.com>
11905 * TreeView.cs: Use dashed lines to connect nodes. Use the
11906 ControlPaint method for drawing the focus rect instead of doing
11909 2005-05-02 Peter Bartok <pbartok@novell.com>
11911 * LinkLabel.cs: Fixed the fixes from r43566 and 43521
11913 2005-04-29 Jackson Harper <jackson@ximian.com>
11915 * ThemeWin32Classic.cs: Don't clear the GC that will clear the
11916 entire image buffer. Just clear the clipping rectangle.
11918 2005-04-29 Jackson Harper <jackson@ximian.com>
11920 * ThemeWin32Classic.cs: Don't draw list view items that are
11921 outside the clipping rectangle.
11923 2005-04-29 Jordi Mas i Hernandez <jordi@ximian.com>
11925 * ListBox.cs: added horizontal item scroll
11927 2005-04-29 Jackson Harper <jackson@ximian.com>
11929 * ThemeWin32Classic.cs: Remove some old debug code that was
11930 causing flicker with the new double buffering code.
11932 2005-04-29 John BouAntoun <jba-mono@optusnet.com.au>
11934 * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
11935 behave like combobox and comboboxlist (still not sure if this is
11938 2005-04-28 Jackson Harper <jackson@ximian.com>
11940 * ThemeWin32Classic.cs: Don't fill the middle of progress
11941 bars. This fills areas outside of the clip bounds that don't need
11944 2005-04-28 Jackson Harper <jackson@ximian.com>
11946 * Control.cs: Don't expose functionality to touch the image buffers.
11948 * ListView.cs: We do not need to (and no longer can) manipulate
11949 the image buffers directly. All of this is handled by Control.
11951 2005-04-28 Peter Bartok <pbartok@novell.com>
11953 * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
11954 RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
11955 RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
11957 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
11960 - Adjust control's height for non-simple comboboxes (bug fix)
11962 * MenuAPI.cs: remove unused var
11963 * ScrollBar.cs: remove unsed var
11965 * ListBox.cs: unselect items when clearing
11967 2005-04-28 Jordi Mas i Hernandez <jordi@ximian.com>
11969 * ListControl.cs: honors OnPositionChanged and default Selected Item
11970 * ListBox.cs: unselect items when clearing
11972 2005-04-27 Jackson Harper <jackson@ximian.com>
11974 * X11Keyboard.cs: Initialize a default keyboard and give a warning
11975 if a "correct" keyboard is not found. This will make us not crash,
11976 but might give some users bad keyboard layouts...seems to be the
11977 same thing rewind does.
11979 2005-04-27 Jackson Harper <jackson@ximian.com>
11981 * BindingManagerBase.cs: Attach the current/position changed
11982 handlers to their respective events.
11984 2005-04-27 Jackson Harper <jackson@ximian.com>
11986 * Control.cs: Make sure that the first WM_PAINT does a full draw,
11988 * ThemeWin32Classic.cs: Don't fill the background for picture
11989 boxes. This could overright user drawing.
11990 * ComboBox.cs: Just fill the clipping rect not the entire client
11991 rect when drawing the background. This prevents pieces of the
11992 image buffer from getting overwritten and is theoretically faster.
11994 2005-04-26 Jordi Mas i Hernandez <jordi@ximian.com>
11996 * ComboBox.cs: Databinding support fixes, fire missing events
11997 * ListControl.cs: implement missing methods and properties, fixes
11998 * ThemeWin32Classic.cs: Databiding support on Drawing
11999 * CheckedListBox.cs: Databinding support fixes, fire missing events
12000 * ListBox.cs: Databinding support fixes, fire missing events
12002 2005-04-25 Peter Bartok <pbartok@novell.com>
12004 * LinkLabel.cs: Length of LinkArea is not allowed to be negative
12006 2005-04-25 Jackson Harper <jackson@ximian.com>
12008 * TreeView.cs: Use the horizontal scrollbars height not width when
12009 determining how much of the client area is available.
12011 2005-04-25 Jackson Harper <jackson@ximian.com>
12013 * Control.cs: Double buffering is handled differently now. As per
12014 the spec, the extra buffer is created in the WM_PAINT message and
12015 passed down to the control's drawing code.
12023 * PropertyGridView.cs:
12035 * DateTimePicker.cs:
12037 * TreeView.cs: Update to new double buffering system.
12038 * MonthCalendar.cs: Uncomment block, as Capture is now
12039 working. Update to new double buffering
12040 * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
12041 * PaintEventArgs.cs: New internal method allows us to set the
12042 graphics object. This is used for double buffering.
12043 * ThemeWin32Classic.cs: Give the picture box drawing code a clip
12044 rectangle. The internal paint_area var has been removed from
12045 StatusBar. The clipping rect should be used instead.
12046 * Theme.cs: Give the PictureBox drawing method a clipping rect.
12047 * TabPage.cs: The RefreshTabs method was removed, so just call the
12048 tab controls Refresh method now.
12049 * TabControl.cs: Update to new double buffering. Make sure the
12050 handle is created before sizing the tab pages, otherwise we will
12051 get stuck in a loop.
12053 2005-04-24 Borja Sanchez Zamorano <borsanza@gmail.com>
12055 * LinkLabel.cs: Fix typo, bug #74719; patch
12056 from Borja Sanchez Zamorano
12058 2005-04-22 Jackson Harper <jackson@ximian.com>
12060 * TreeNode.cs: Implement Handle stuff.
12061 * TreeView.cs: Utility methods so nodes can get/lookup by handle.
12063 2005-04-22 Jordi Mas i Hernandez <jordi@ximian.com>
12065 * DataGridTextBoxColumn.cs: call base constructors, fixes
12066 * GridColumnStylesCollection.cs: missing events, methods, and functionality
12067 * GridTableStylesCollection.cs: fixes, check duplicate mapping names
12068 * DataGridTableStyle.cs: implements create default column styles
12069 * DataGridBoolColumn.cs: which types can handle
12070 * DataGrid.cs: missing methods, fixes, new functionality
12071 * DataGridColumnStyle.cs: fixes
12073 2005-04-20 Alexander Olk <xenomorph2@onlinehome.de>
12074 * FolderBrowserDialog.cs:
12075 - Use a thread to fill the TreeView
12076 - Adjusted some sizes
12078 2005-04-19 Peter Bartok <pbartok@novell.com>
12080 * LinkLabel.cs: (Re-)create the pieces when setting the Text
12081 property. Fixes #74360.
12083 2005-04-19 Jackson Harper <jackson@ximian.com>
12085 * XEventQueue.cs: Lock when getting the lockqueue size.
12086 * PictureBox.cs: Call base OnPaint
12088 2005-04-19 Peter Bartok <pbartok@novell.com>
12090 * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
12091 messages were no longer being processed (this broke BeginInvoke)
12094 2005-04-18 Jackson Harper <jackson@ximian.com>
12096 * TreeView.cs: buglet that caused node images to get drawn
12097 regardless of whether or not they were in the clipping rectangle.
12099 2005-04-18 Jackson Harper <jackson@ximian.com>
12101 * CurrencyManager.cs: There are four rules for GetItemProperties:
12102 - If the type is an array use the element type of the array
12103 - If the type is a typed list, use the type
12104 - If the list contains an Item property that is not an object, use
12106 - use the first element of the list if there are any elements in
12109 2005-04-17 Jackson Harper <jackson@ximian.oom>
12111 * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
12112 click. This handles offsets for scrolling properly and reduces
12113 memory. Also fixed GetNode to not offset now that TopNode works
12115 * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
12117 2005-04-17 Jackson Harper <jackson@ximian.com>
12119 * CursorConverter.cs: Initial implementation.
12121 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
12123 * ListControl.cs: work towards complex data binding support on ListControl
12124 * CurrencyManager.cs: work towards complex data binding support on ListControl
12125 * ListBox.cs: work towards complex data binding support on ListControl
12128 2005-04-15 Jordi Mas i Hernandez <jordi@ximian.com>
12130 * GridTableStylesCollection.cs: fixes name and constructor
12131 * DataGridTableStyle.cs: fixes
12132 * DataGridBoolColumn.cs: fixes names and constructors
12133 * DataGrid.cs: define methods and properties. Some init implementations
12134 * DataGridCell.cs: define methods and properties. Some init implementations
12135 * GridTablesFactory.cs: Define methods and properties
12137 2005-04-15 Geoff Norton <gnorton@customerdna.com>
12139 * XplatUIOSX.cs: Handle proper mouse tracking even if the current
12140 graphics port changes. We still want the coordinates in global screen
12143 2005-04-14 Jackson Harper <jackson@ximian.com>
12145 * TreeView.cs: Handle clicks when plus minus is disabled. Don't
12146 check plus minus or checkbox clicks unless those features are enabled.
12148 2005-04-14 Jackson Harper <jackson@ximian.com>
12150 * TreeView.cs: Add methods for setting the top and bottom visible
12151 nodes. TreeNode::EnsureVisible uses these methods.
12152 * TreeNode.cs: Implement EnsureVisible
12154 2005-04-13 Jordi Mas i Hernandez <jordi@ximian.com>
12156 * Form.cs: Pospone menu assignation if the window has not been created yet
12157 * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
12160 2005-04-12 Jackson Harper <jackson@ximian.com>
12162 * TreeView.cs: Set the TopNode properly when scrolling
12163 occurs. This has the added benifit of reducing the amount of
12164 walking that needs to be done when drawing. Also removed an old
12166 * OpenTreeNodeEnumerator.cs: Fix moving backwards.
12168 2005-04-11 Jordi Mas i Hernandez <jordi@ximian.com>
12170 * Timer.cs: fixes interval setting when the timer is already enabled
12172 2005-04-10 Alexander Olk <xenomorph2@onlinehome.de>
12174 * FolderBrowserDialog.cs: First approach
12176 2005-04-09 Peter Bartok <pbartok@novell.com>
12178 * FolderBrowserDialog: Added
12180 2005-04-07 Jordi Mas i Hernandez <jordi@ximian.com>
12182 * LinkLabel.cs: move drawing code into the theme
12183 * ThemeWin32Classic.cs: drawing code and painting background bugfix
12184 * Theme.cs: define DrawLinkLabel method
12186 2005-04-05 Jackson Harper <jackson@ximian.com>
12188 * BindingContext.cs: Use weak references so these bad actors don't
12189 stay alive longer then they need to.
12191 2005-04-05 Jackson Harper <jackson@ximian.com>
12193 * ListControl.cs: Basic implementation of complex databinding.
12195 * ListBox.cs: Add calls to ListControl databinding methods.
12197 2005-04-05 Alexander Olk <xenomorph2@onlinehome.de>
12200 - Don't change PopupButtonState to Normal when the
12201 PopupButton gets pressed several times.
12202 - Renamed ButtonPanel to PopupButtonPanel
12204 2005-04-05 Jordi Mas i Hernandez <jordi@ximian.com>
12206 * ColorDialog.cs: Use cached objects instead of creating them
12207 * LinkLabel.cs: Use cached objects instead of creating them
12208 * Splitter.cs: Use cached objects instead of creating them
12209 * FontDialog.cs: Use cached objects instead of creating them
12210 * PropertyGridView.cs: Use cached objects instead of creating them
12211 * MessageBox.cs: Use cached objects instead of creating them
12212 * FileDialog.cs: Use cached objects instead of creating them
12213 * ThemeWin32Classic.cs: Use cached objects instead of creating them
12214 * TreeView.cs: Use cached objects instead of creating them
12216 2005-04-04 Jordi Mas i Hernandez <jordi@ximian.com>
12218 * Control.cs: use Equals to compare the font since no == op
12219 * ScrollBar.cs: use Equals to compare the font since no == op
12221 2005-04-04 Alexander Olk <xenomorph2@onlinehome.de>
12223 * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
12225 2005-04-01 Jackson Harper <jackson@ximian.com>
12227 * Binding.cs: Implement IsBinding.
12228 * BindingManagerBase.cs:
12229 * PropertyManager.cs:
12230 * CurrencyManager.cs: Add IsSuspended property.
12232 2005-04-01 Jackson Harper <jackson@ximian.com>
12234 * Binding.cs: Had some IsAssignableFrom calls backwards.
12236 2005-04-01 Jackson Harper <jackson@ximian.com>
12238 * Binding.cs: Handle null data members when pulling data.
12239 * PropertyManager.cs: Handle the data member being a property that
12242 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
12244 * DataGridTextBoxColumn.cs: fixes signature
12245 * DataGrid.cs: calls right constructor
12247 2005-04-01 Jordi Mas i Hernandez <jordi@ximian.com>
12249 * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
12250 * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
12251 * GridTableStylesCollection.cs: implements GridTableStylesCollection
12252 * DataGridTableStyle.cs: implements DataGridTableStyle
12253 * DataGridBoolColumn.cs: implements DataGridBoolColumn
12254 * DataGridTextBox.cs: implements DataGridTextBox
12255 * DataGridColumnStyle.cs: implements DataGridColumnStyle
12257 2005-03-31 Alexander Olk <xenomorph2@onlinehome.de>
12259 * FileDialog.cs: Added simple PopupButton class for ButtonPanel
12261 2005-03-29 Peter Bartok <pbartok@novell.com>
12264 - Properly implemented CompanyName property
12265 - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
12266 returns a path that includes CompanyName, ProductName and
12267 Version (fixes bug #70330)
12269 2005-03-29 Stefan Buehler <sbuehler@gmx.ch>
12271 * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
12274 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
12276 * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
12278 - Added ReadOnly CheckBox
12279 - Further refactoring: moved some code from Open-/SaveFileDialog
12282 2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
12284 * OpenFileDialog.cs: Fixed CheckFileExists
12286 Moved FileView and DirComboBox outside FileDialog class.
12287 They can now be used outside FileDialog
12289 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
12291 * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
12292 * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
12294 2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
12296 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
12297 - Added missing CreatePrompt property in SaveDialog
12298 - Overall SaveDialog handling should be better now
12299 - Added non standard ShowHiddenFiles property
12300 - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
12301 - Added InitialDirectory and RestoreDirectory support
12303 2005-03-26 Alexander Olk <xenomorph2@onlinehome.de>
12305 * FileDialog.cs: Made dirComboBox usable
12307 2005-03-24 Alexander Olk <xenomorph2@onlinehome.de>
12309 * FileDialog.cs: Added Filter support (case sensitiv)
12311 2005-03-24 Jackson Harper <jackson@ximian.com>
12313 * TabControl.cs: Need a couple more pixels for the lines.
12315 2005-03-23 Jackson Harper <jackson@ximian.com>
12317 * TabControl.cs: Give the tab page focus when it is selected.
12319 2005-03-23 Jackson Harper <jackson@ximian.com>
12321 * TabControl.cs: Account for the drawing of tabs borders when
12322 invalidating. If the slider was clicked dont do click detection on
12325 2005-03-23 Jackson Harper <jackson@ximian.com>
12327 * TabControl.cs: Fix typo, emilinates an unneeded expose event.
12329 2005-03-22 Jonathan Chambers <jonathan.chambers@ansys.com>
12331 * CategoryGridEntry.cs: Added
12332 * GridItem.cs: Added helper properties
12333 * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
12334 * GridEntry.cs: Updated code for collection
12335 * PropertyGrid.cs: Cleaned up some formatting
12336 * PropertyGridView.cs: Added drop down functionality for enums.
12337 * GridItemCollection.cs: Added enumerator logic
12338 * PropertyGridEntry.cs: Added
12340 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
12343 - Removed unnecessary commented code
12344 - Fixed handling for entering the filename manually in the combobox
12346 2005-03-19 Alexander Olk <xenomorph2@onlinehome.de>
12348 * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
12350 2005-03-18 Peter Bartok <pbartok@novell.com>
12352 * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
12353 them being touching the border
12355 2005-03-18 Peter Bartok <pbartok@novell.com>
12357 * TextControl.cs: Quick hack to center text better
12359 2005-03-18 Peter Bartok <pbartok@novell.com>
12362 - Don't throw NotImplemented exceptions, just print a notice once
12363 instead (requested by Miguel). This makes running existing SWF
12366 - Commented out Drag'N'Drop XplatUI call (no driver support yet)
12367 - Added context menu trigger on right click
12368 * Panel.cs: Trigger invalidate on resize
12370 - Removed old double-buffer drawing
12371 - Added ResizeRedraw style to force proper update of statusbar
12373 - Removed debug output
12374 * ThemeWin32Classic.cs:
12375 - Fixed drawing of status bar, now draws Text property if there
12376 are no defined panels
12378 2005-03-18 Jackson Harper <jackson@ximian.com>
12380 * ImageList.cs: When the image stream is set pull all the images
12382 * ImageListStreamer.cs: Implement reading image list streams.
12384 2005-03-18 Peter Bartok <pbartok@novell.com>
12386 * ThemeWin32Classic.cs (DrawPictureBox):
12387 - Fixed calculations for centered drawing
12388 - Fixed drawing for normal mode, not scaling the image on normal
12390 2005-03-18 Peter Bartok <pbartok@novell.com>
12392 * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
12395 - Made Open/Save button the accept button for FileDialog
12396 - Tied the cancel button to the IButtonControl cancel button
12397 - Save/Open now properly builds the pathname
12398 - Now handles user-entered text
12399 - Preventing crash on right-click if no item is selected
12400 - Fixed Text property, now uses contents of textbox
12401 - Fixed SelectedText property, now just returns the text part that
12402 is selected in the text box
12404 2005-03-18 Jackson Harper <jackson@ximian.com>
12406 * ThemeWin32Classic.cs: Use the proper func for drawing the focus
12407 rect, make sure to de-adjust the interior rect after drawing the
12410 2005-03-18 Peter Bartok <pbartok@novell.com>
12412 * MenuAPI.cs: Remove menu *before* executing selected action to
12413 prevent the menu from 'hanging around'
12415 2005-03-17 Geoff Norton <gnorton@customerdna.com>
12417 * XplatUIOSX.cs: Implemented WorkingArea property
12419 2005-03-17 Peter Bartok <pbartok@novell.com>
12421 * XplatUIX11.cs: Fixed menu coord calculations
12422 * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
12423 for calculating offsets
12425 2005-03-17 Peter Bartok <pbartok@novell.com>
12427 * Hwnd.cs: Do not consider menu presence for default client
12428 rectangle location/size
12429 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
12430 XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
12431 translation functions
12432 * FileDialog.cs: Fixed (what I presume is a) typo
12434 2005-03-17 Jonathan Gilbert <logic@deltaq.org>
12436 * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
12437 X access (avoids X-Async errors)
12439 2005-03-16 Jackson Harper <jackson@ximian.com>
12441 * TabControl.cs: Raise the SelectedIndexChanged event.
12443 2005-03-16 Alexander Olk <xenomorph2@onlinehome.de>
12445 * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
12446 - Removed vertical ToolBar and replaced it with a custom panel
12447 (desktop and home button already work)
12448 - Added Help button (some controls get resized or relocated then)
12449 - Draw correct text depending on Open or Save.
12450 - Fixed some typos...
12452 2005-03-16 Jordi Mas i Hernandez <jordi@ximian.com>
12455 - Only change Maximum and Minimum when need it (bug fix)
12457 2005-03-15 Peter Bartok <pbartok@novell.com>
12459 * Form.cs: Use Handle for icon, to trigger creation if
12460 the window does not yet exist
12462 - CanSelect: Slight performance improvement
12463 - Focus(): Preventing possible recursion
12464 - Invalidate(): Removed ControlStyle based clear flag setting
12465 - WM_PAINT: fixed logic for calling OnPaintBackground
12466 - WM_ERASEBKGND: Fixed logic, added call to new driver method
12467 EraseWindowBackground if the control doesn't paint background
12469 - Moved EraseWindowBackground() method to internal methods
12470 - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
12471 is sent via SendMessage on BeginPaint call on Win32
12473 - Added EraseWindowBackground() method
12474 - No longer sends WM_ERASEBKGND on .Expose, but on call to
12475 PaintEventStart, which more closely matches Win32 behaviour
12476 - Fixed Invalidate() call, now updates new ErasePending Hwnd property
12477 - Fixed SetFocus() to properly deal with client and whole windows
12478 * Hwnd.cs: Added ErasePending property
12479 * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
12480 * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
12482 2005-03-12 Geoff Norton <gnorton@customerdna.com>
12485 - Fix hard loop when timers exist.
12486 - Fix bugs with middle and right click for 3 button mice.
12488 2005-03-11 Peter Bartok <pbartok@novell.com>
12491 - get_WorkingArea: Need to call X directly, GetWindowPos only
12492 returns cached data now
12493 - Added sanity check to GetWindowPos hwnd usage
12495 2005-03-11 Jackson Harper <jackson@ximian.com>
12497 * BindingManagerBase.cs: This method isn't used anymore as
12498 PullData now updates the data in the control.
12500 2005-03-11 Jordi Mas i Hernandez <jordi@ximian.com>
12502 * Form.cs: fixes menu drawing on X11
12503 * MenuAPI.cs: fixes menu drawing on X11
12505 2005-03-11 Peter Bartok <pbartok@novell.com>
12507 * Control.cs: Changed OnCreateControl behaviour based on a suggestion
12508 from Jonathan Gilbert; should fix bug #73606
12509 * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
12510 in Screen coordinates. Thanks, Jordi.
12511 * Form.cs: Added missing attribute
12513 2005-03-11 Peter Bartok <pbartok@novell.com>
12516 - Rudimentary Mdi support
12517 - Removed outdated FormParent code
12518 - Implemented lots of missing properties and methods, still missing
12519 transparency support
12520 - Added missing attributes
12521 - Implemented support for MaximumBounds
12522 - Added firing of various events
12523 * XplatUI.cs: Added SetIcon() method
12524 * XplatUIDriver.cs: Added SetIcon() abstract
12525 * XplatUIOSX.cs: Stubbed out SetIcon() method
12527 - Implemented SetIcon() support
12528 - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
12529 - Switched to unix line endings
12531 - Made POINT internal so for can access it as part of MINMAX
12532 - Implemented SetIcon() support
12533 - Implemented support for CLIENTCREATESTRUCT (but might have to drop
12534 native Mdi support again, might have to go managed)
12535 * Control.cs: Now fires the StyleChanged event
12536 * MdiClient.cs: Added; still mostly empty
12538 2005-03-10 Peter Bartok <pbartok@novell.com>
12540 * SaveFileDialog.cs: Added emtpy file
12542 2005-03-08 Peter Bartok <pbartok@novell.com>
12544 * Control.cs: Fixed bug #73190; now invokes CreateControl (which
12545 in turn triggers OnCreateContro) when creating a handle for the
12547 * TextControl.cs: Fixed endless loop in certain cases when
12548 replacing the current selection
12550 2005-03-08 Jordi Mas i Hernandez <jordi@ximian.com>
12553 - Honors NewValue changes in Scroll events allowing apps to change it
12554 - Adds First and Last Scroll events
12555 - Fixes Thumb events
12557 2005-03-07 Peter Bartok <pbartok@novell.com>
12559 * Hwnd.cs: Added DefaultClientRectangle property
12560 * XplatUI.cs: Now using the X11 driver Where() method, which provides
12561 more detailed debug information
12563 - Fixed size-change feedback loop, where we would pull an old size
12564 off the queue and mistakenly change our window's size to an
12566 - Now compressing ConfigureNotify events, to reduce looping and
12568 * TextBoxBase.cs: Preventing crash when no text is set and ToString()
12571 2005-03-07 Jackson Harper <jackson@ximian.com>
12573 * Binding.cs: Push data pushes from data -> property. Check if the
12574 property is readonly when attempting to set it.
12576 2005-03-07 Jackson Harper <jackson@ximian.com>
12578 * Binding.cs: Format and parse data correctly. Use ASsignableFrom
12579 instead of IsSubclassOf. Pulling data now sets the value on the
12581 * PropertyManager.cs:
12582 * CurrencyManager.cs: Just need to pull data when updating now,
12583 because PullData will set the value on the control.
12585 2005-03-04 Jackson Harper <jackson@ximian.com>
12587 * Binding.cs: Implement data type parsing and converting on pulled
12588 data. TODO: Are there more ways the data can be converted?
12590 2005-03-04 Jackson Harper <jackson@ximian.com>
12592 * Binding.cs: Support <Property>IsNull checks. Also bind to the
12593 controls Validating method so we can repull the data when the
12594 control loses focus.
12596 2005-03-03 Jordi Mas i Hernandez <jordi@ximian.com>
12599 - Fixes null string format
12602 - Adds enum type checks
12603 - Fixes redrawing and recalc need after changing some properties
12604 - Fixes on focus_item set after the event
12605 - Fixes adding columns after the control has been created
12607 * ThemeWin32Classic.cs:
12608 - Fixes CheckBox focus rectangle
12609 - Fixes ColumnHeader drawing
12612 2005-03-03 Jackson Harper <jackson@ximian.com>
12614 * Binding.cs: Bind to <Property>Changed events so we can detect
12615 when properties are changed and update the data.
12617 2005-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
12620 - Changes 32-bit pixel format to Format32bppArgb to allow transparency
12621 - Fixes ImageList constructor with ImageList container
12622 - Fixes image scaling (wrong parameters at DrawImage)
12624 2005-02-02 Jackson Harper <jackson@ximian.com>
12626 * Binding.cs: Make property searches case-insensitive. Eliminate
12627 some duplicated code.
12629 2005-03-01 Jordi Mas i Hernandez <jordi@ximian.com>
12632 - Handle focus event
12633 - Fix scrollbar events
12634 - Discard highlighted item if remove it
12635 - Fixes SelectedItem with strings
12637 2005-03-01 Peter Bartok <pbartok@novell.com>
12640 - Fixed Visible property, now follows (once again) parent chain
12641 to return false if any control in the chain is visible=false
12642 - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
12643 - Fixed several places where is_visible instead of Visible was used
12644 - Implemented FIXME related to focus selection when setting focused
12645 control to be invisible
12647 * XplatUIWin32.cs: Now using proper method to find out if window is
12648 visible. Thanks to Jordi for pointing it out
12650 2005-02-28 Jordi Mas i Hernandez <jordi@ximian.com>
12652 * ComboBox.cs: show/hide scrollbar instead of creating it
12654 2005-02-27 Jackson Harper <jackson@ximian.com>
12656 * CurrencyManager.cs: Add PositionChanged stuff.
12658 2005-02-27 Peter Bartok <pbartok@novell.com>
12660 * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
12661 * XplatUIOSX.cs: Added GetMenuOrigin() stub
12662 * XplatUIWin32.cs: Implemented GetMenuOrigin()
12664 - Implemented GetMenuDC()
12665 - Implemented GetMenuOrigin()
12666 - Implemented ReleaseMenuDC()
12667 - Implemented generation of WM_NCPAINT message
12668 - Implemented generation and handling of WM_NCCALCSIZE message
12669 * Form.cs: Added debug helper message for Jordi's menu work
12671 - Modified ClientRect property; added setter, fixed getter to handle
12672 setting of ClientRect
12673 - Added MenuOrigin property
12675 2005-02-26 Peter Bartok <pbartok@novell.com>
12678 - Destroys the caret if a window that's being destroyed contains it
12679 - Ignores expose events coming from the X11 queue for windows that
12680 already are destroyed
12681 - Now uses the proper variable for handling DestroyNotify, before we
12682 marked the wrong window as destroyed
12683 - Improved/added some debug output
12685 2005-02-26 Peter Bartok <pbartok@novell.com>
12687 * X11Keyboard.cs: Fixes to work on 64bit systems
12689 2005-02-26 Peter Bartok <pbartok@novell.com>
12692 - Now calling OnHandleDestroyed from DestroyHandle()
12693 instead of Dispose()
12694 - Removed bogus call to controls.Remove() from DestroyHandle()
12696 2005-02-26 Peter Bartok <pbartok@novell.com>
12698 * Control.cs: Properly destroy child windows when our handle is
12701 2005-02-25 Peter Bartok <pbartok@novell.com>
12704 - Added 'DriverDebug' define to allow tracing XplatUI API calls
12705 - Alphabetized Static Methods and Subclasses
12708 - Added XException class to allow custom handling of X11 exceptions
12709 - Created custom X11 error handler, tied into XException class
12710 - Added support for MONO_XEXCEPTIONS env var to allow the user
12711 to either throw an exception on X errors or continue running
12712 after displaying the error
12713 - Added handling of DestroyNotify message
12714 - Added handler for CreateNotify message (still disabled)
12715 - Improved (tried to at least) Where method to provide file and lineno
12717 - Added XErrorHandler delegate
12718 - Added XRequest enumeration (to suppor translation of errors)
12720 2005-02-25 Jackson Harper <jackson@ximian.com>
12722 * PropertyManager.cs: Implement editing features
12723 * CurrencyManager.cs:
12724 * Binding.cs: First attempt at UpdateIsBinding
12725 * BindingManagerBase.cs: Call UpdateIsBinding before
12726 pushing/pulling data.
12728 2005-02-25 Jordi Mas i Hernandez <jordi@ximian.com>
12730 * MenuAPI.cs: Respect disabled items
12731 * ThemeWin32Classic.cs
12732 - Caches ImageAttributes creation for DrawImageDisabled
12733 - Fixes vertical menu line drawing
12734 - Draws disabled arrows in disable menu items
12736 2005-02-24 Peter Bartok <pbartok@novell.com>
12739 - Added UserData property to allow associating arbitrary objects
12741 - Fixed leak; now removing Hwnd references from static windows array
12743 - Fixed Graphics leak in PaintEventEnd
12744 - Removed usage of HandleData, switched over to Hwnd class
12745 * HandleData.cs: Removed, obsoleted by Hwnd.cs
12747 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
12749 * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
12750 * ScrollBar.cs: Fixes bug
12751 * TrackBar.cs: removes death code, clipping, mimize refreshes,
12752 keyboard navigation enhancements
12754 2005-02-24 Jordi Mas i Hernandez <jordi@ximian.com>
12756 * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
12757 * GroupBox.cs: Add control styles
12758 * Label.cs: Add control styles
12759 * UpDownBase.cs: Add control styles
12760 * ListBox.cs: Add control styles
12761 * XplatUIWin32.cs: Fixes wrong parameter order
12764 2005-02-23 Chris Bacon <chris.bacon@docobo.co.uk>
12766 * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
12768 2005-02-23 Jackson Harper <jackson@ximian.com>
12770 * PropertyManager.cs: Implement property binding. This doesn't
12771 seem to work yet though as (I think) there are some bugs in
12772 System.ComponentModel.PropertyDescriptor.
12773 * BindingContext.cs: Use new PropertyManager constructor.
12775 2005-02-23 Jordi Mas i Hernandez <jordi@ximian.com>
12777 * ProgressBar.cs: use clip region in ProgressBar
12778 * ThemeWin32Classic.cs: use clip region in ProgressBar
12780 2004-02-22 Jackson Harper <jackson@ximian.com>
12782 * BindingsCollection.cs: Remove some debug code.
12784 2005-02-22 Jackson Harper <jackson@ximian.com>
12786 * BindingContext.cs:
12787 * ControlBindingsCollection.cs:
12788 * CurrencyManager.cs:
12790 * BindingManagerBase.cs: Initial implementation
12791 * BindingsCollection.cs: Add an internal contains method that the
12792 BindingManagerBase uses to ensure bindings aren't added twice to
12794 * PropertyManager.cs: Stubbed out.
12796 * ContainerControl.cs: Hook up databinding
12798 2005-02-22 Geoff Norton <gnorton@customerdna.com>
12801 OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
12802 Fixed Invalidate/Update chain.
12803 Fixed tons of other minor bugs (this is almost a complete rewrite).
12805 2005-02-22 Jordi Mas i Hernandez <jordi@ximian.com>
12807 * ComboBox.cs: do subcontrol creation when the control is created
12809 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
12811 * Label.cs: fixes image drawing (image and imagelist)
12812 * ThemeWin32Classic.cs: cache brushes
12814 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
12816 * Form.cs: Move menu drawing code to Theme class
12817 * ComboBox.cs: Move ComboBox drawing code to Theme class
12818 * MenuItem.cs: Move menu drawing code to Theme class
12819 * MenuAPI.cs: Move menu drawing code to Theme class
12820 * ThemeWin32Classic.cs: New methods
12821 * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
12822 * ListBox.cs: Move Listbox drawing code to Theme class
12823 * Theme.cs: New methods
12825 2005-02-20 Peter Bartok <pbartok@novell.com>
12828 - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
12829 only process mnemonics on those)
12830 - Fixed event sequence for key handling; first calling
12831 ProcessKeyEventArgs now
12833 - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
12834 for processing non-character keys
12835 - Fixed WM_CHAR to generate proper event sequence before processing
12836 * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
12839 2005-02-19 Peter Bartok <pbartok@novell.com>
12841 * UserControl.cs: Added TextChanged event; added attributes
12842 * SizeGrip.cs: Implemented resizing and optional display of grip
12843 * Form.cs: Fixed attribute
12844 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
12845 Changed meaning of ScrollWindow bool argument; instead of the
12846 clear attribute (which will be true usually anyway), it gives the
12847 option of moving child controls as well.
12849 - Changed to match new ScrollWindow argument
12850 - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
12851 now handles the implicit parent window a WM puts around us
12852 * ScrollableControl.cs: Implemented (not the prettiest, but it seems
12854 * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
12855 * TreeView.cs: Adjusted to new ScrollWindow arguments
12857 2005-02-19 Jordi Mas i Hernandez <jordi@ximian.com>
12859 * Form.cs: Menu integration with non-client area
12860 * MenuItem.cs: Menu integration with non-client area
12861 * MenuAPI.cs: Menu integration with non-client area
12863 2005-02-18 Peter Bartok <pbartok@novell.com>
12865 * MethodInvoker.cs: Added
12866 * MdiLayout.cs: Added
12867 * SendKeys.cs: Started implementation
12868 * ErrorIconAlignment.cs: Added
12870 2005-02-18 Peter Bartok <pbartok@novell.com>
12872 * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
12873 * Form.cs: Added handling for Menu-related Non-client messages
12875 2005-02-17 Peter Bartok <pbartok@novell.com>
12877 * UpDownBase.cs: Fixed typo, compilation errors
12878 * DomainUpDown.cs: Fixed attribute value
12880 2005-02-16 Miguel de Icaza <miguel@novell.com>
12882 * UpDownBase.cs: Attach entry events.
12884 Add ForeColor property, Focused, InterceptArrowKeys (interception
12885 does not work yet).
12887 2005-02-17 Jordi Mas i Hernandez <jordi@ximian.com>
12890 - Redraw non client are on Setmenu
12891 - Calc proper menu starting point
12893 2005-02-17 Peter Bartok <pbartok@novell.com>
12895 * Application.cs: Fixed message_filter check
12897 2005-02-17 Peter Bartok <pbartok@novell.com>
12899 * Application.cs: Now calls registered message filters
12900 * DockStyle.cs: Fixed attribute
12901 * Form.cs: Fixed attribute
12902 * Menu.cs: Fixed attribute
12903 * ToolTip.cs: Fixed attribute
12904 * TreeNode.cs: Added missing attributes and arranged in regions
12905 * PropertyGrid.cs: Fixed signatures
12906 * TreeNodeCollection.cs: Added attributes
12907 * Splitter.cs: Added missing attributes; arranged into regions
12908 * TabPage.cs: Added missing attributes; arranged into regions
12909 * TextBoxBase.cs: Added missing attributes
12910 * TextBox.cs: Added missing attributes
12911 * ArrangeDirection.cs: Added missing attributes
12912 * TreeNodeConverter.cs: Added stub (needed for TreeNode)
12913 * ToolBarButton.cs: Fixed attributes
12914 * AnchorStyles.cs: Fixed attribute
12915 * TrackBar.cs: Fixed attributes
12916 * TabControl.cs: Added missing attributes and arranged into regions
12917 * ToolBar.cs: Fixed attribute
12918 * StatusBar.cs: Fixed signature, organized into regions and added
12920 * StatusBarPanel.cs: Fixed attributes
12921 * ContentsResizedEventArgs.cs: Implemented
12922 * ContentsResizedEventHandler.cs: Implemented
12923 * DateBoldEventArgs.cs: Implemented
12924 * DateBoldEventHandler.cs: Implemented
12925 * UpDownEventArgs.cs: Implemented
12926 * UpDownEventHandler.cs: Implemented
12928 2005-02-16 Jordi Mas i Hernandez <jordi@ximian.com>
12930 * Form.cs: first Menu NC refactoring
12931 * MenuAPI.cs: first Menu NC refactoring
12933 2005-02-16 Peter Bartok <pbartok@novell.com>
12935 * ImeMode.cs: Added missing attributes
12936 * Menu.cs: Fixed attribute
12937 * GroupBox.cs: Fixed attribute
12938 * Label.cs: Fixed attribute
12939 * ColorDialog.cs (RunDialog): Removed TODO attribute
12940 * ComboBox.cs: Fixed attributes
12941 * ListControl.cs: Added missing attributes
12942 * PropertyGrid.cs: Fixed attributes
12943 * Control.cs: Fixed attributes
12944 * ListViewItem.cs: Added TypeConverter attribute
12945 * NotifyIcon.cs: Fixed attributes
12946 * ListView.cs: Fixed attributes
12947 * ButtonBase.cs: Fixed attribute
12948 * ImageList.cs: Added missing attributes
12949 * ContainerControl.cs: Fixed signature
12950 * CheckedListBox.cs: Fixed attribute; added missing attributes
12951 * Panel.cs: Fixed attributes
12952 * PropertyTabChangedEventArgs.cs: Added missing attribute
12953 * PropertyValueChangedEventArgs.cs: Added missing attribute
12954 * Binding.cs: Fixed attribute
12955 * ListViewItemConverter: Implemented ListViewSubItemConverter class
12956 * ListBox.cs: Fixed attribute; added missing attributes;
12957 * ScrollableControl.cs: Added missing attributes
12958 * PictureBox.cs: Added missing attributes; implemented missing property
12959 * DateTimePicker.cs: Added missing attributes
12960 * Theme.cs (ToolWindowCaptionHeight): Fixed type
12961 * MonthCalendar.cs: Fixed attributes
12962 * StatusBarPanel.cs: Added missing attributes
12963 * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
12965 2005-02-16 Peter Bartok <pbartok@novell.com>
12967 * TextBoxBase.cs: The previous method to enforce height yet remember
12968 the requested high was less than ideal, this is an attempt to do
12970 * Control.cs: Added comment about possible problem
12971 * Copyright: Updated format
12972 * GridItemType.cs: Fixed swapped values
12974 2005-02-15 Jackson Harper <jackson@ximian.com>
12976 * BaseCollection.cs: Use property so we never access an
12977 uninitialized list. Also initialize the list in the property.
12979 2005-02-15 Peter Bartok <pbartok@novell.com>
12981 * GroupBox.cs (ProcessMnemonic): Implemented
12982 * Label.cs (ProcessMnemonic): Implemented
12983 * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
12986 2005-02-15 Peter Bartok <pbartok@novell.com>
12988 * RadioButton.cs (ProcessMnemonic): Implemented
12989 * CheckBox.cs (ProcessMnemonic): Implemented
12991 - Added handling of WM_SYSxxx keyboard messages to support mnemonic
12993 - Added internal method to allow calling ProcessMnemonic from other
12995 * ContainerControl.cs:
12996 - Started support for handling validation chain handling
12997 - Implemented ProcessMnemonic support
12998 - Added Select() call to Active, to make sure the active control
13000 * Form.cs: Setting toplevel flag for Forms (this was lost in the
13001 FormParent rewrite)
13002 * ThemeWin32Classic.cs:
13003 - DrawCheckBox(): Fixed stringformat to show hotkeys
13004 - DrawRadioButton(): Fixed stringformat to show hotkeys
13005 * CommonDialog.cs: Removed WndProc override, not needed
13007 2005-02-14 Peter Bartok <pbartok@novell.com>
13009 * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
13010 missed those in the rewrite
13012 2005-02-14 Miguel de Icaza <miguel@novell.com>
13014 * NumericUpDown.cs (Increment, ToString): Add.
13015 (DecimalPlaces): implement.
13019 * UpDownBase.cs: Add the designer attributes.
13021 2005-02-13 Peter Bartok <pbartok@novell.com>
13023 * Panel.cs: Removed border_style, now in Control
13024 * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
13025 ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
13027 2005-02-13 Peter Bartok <pbartok@novell.com>
13029 * MouseButtons.cs: Added missing attributes
13030 * XplatUIStructs.cs: Added enumeration for title styles
13031 * LeftRightAlignment.cs: Added missing attributes
13032 * Hwnd.cs: Switched to use client_window as handle (slower, but makes
13033 it compatible with Graphics.FromHwnd()
13034 * SelectedGridItemChangedEventArgs.cs: Fixed property type
13035 * Keys.cs: Added missing attributes
13036 * SelectionRange.cs: Added missing attributes
13037 * SelectionRangeConverter.cs: Added
13039 - Introduced SetBorderStyle, SetMenu, GetMenuDC and
13040 ReleaseMenuDC methods
13041 - Renamed ReleaseWindow to UngrabWindow
13042 - Added proper startup notice to allow version identification
13044 - Added missing attributes
13045 - Removed FormParent concept
13046 * Label.cs: Removed border_style field, now in Control
13047 * RadioButton.cs: Now properly selects RadioButton when focus is
13049 * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
13051 - Added missing attributes
13052 - Added borderstyle handling
13053 - Removed FormParent concept support
13054 - Fixed calls to XplatUI to match changed APIs
13055 - Fixed bug that would case us to use disposed Graphics objects
13056 - Removed unneeded internal methods
13057 - PerformLayout(): Fixed to handle DockStyle.Fill properly
13058 - SelectNextControl(): Fixed to properly check common parents
13059 * TextBoxBase.cs: Removed border_style field (now in Control)
13061 - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
13062 fixed calculations for form size
13063 - Added support for localized strings and icons
13064 - Improved form size calculations, added border
13065 * ListView.cs: Removed border_style field (now in Control)
13066 * X11Structs.cs: Moved several structs from X11 driver here
13067 * X11Keyboard.cs: Changed debug message
13068 * Application.cs: Removed FormParent concept support
13070 - Resetting end_modal flag
13071 - Removed FormParent concept support
13072 * NativeWindow.cs: Removed FormParent concept support
13073 * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
13074 Client area and Non-Client whole window to allow support for WM_NC
13076 * XplatUIOSX.cs: Updated to match latest driver spec; added exception
13077 prevent using it until it supports Hwnd as per Geoff Norton's request
13078 * ToolBar.cs: Fixed drawing, was not doing proper drawing
13079 * PictureBox.cs: Removed border_style field, now in Control
13080 * XplatUIWin32.cs: Added new driver methods
13082 2005-02-12 Peter Bartok <pbartok@novell.com>
13084 * OpacityConverter.cs: Implemented
13085 * Hwnd.cs: Internal class to support drivers that need to emulate
13086 client area/non-client area window behaviour
13088 2005-02-11 Peter Bartok <pbartok@novell.com>
13090 * KeysConverter.cs: Implemented
13092 2005-02-11 Jordi Mas i Hernandez <jordi@ximian.com>
13094 * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
13095 * LinkLabel: Added missing attributes
13096 * MainMenu.cs: fixes ToString
13097 * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
13098 * ListBox.cs: fixes event position
13099 * TrackBar.cs: adds missing attributes and events
13101 2005-02-10 Jordi Mas i Hernandez <jordi@ximian.com>
13103 * MenuItem.cs: Use SystemInformation and bug fixes
13104 * MenuAPI.cs: Use SystemInformation and bug fixes
13106 2005-02-09 Jackson Harper <jackson@ximian.com>
13108 * X11Keyboard.cs: We ignore some keys, but still need to set/reset
13109 their keystate otherwise things like VK_MENU get stuck "on".
13111 2005-02-09 Kazuki Oikawa <kazuki@panicode.com>
13113 * ListBox.cs: Fixes AddRange bug
13115 2005-02-09 Jordi Mas i Hernandez <jordi@ximian.com>
13118 - Add missing attributes
13119 - Add missing method
13121 * CheckedListBox.cs: Added missing attributes
13122 - Add missing attributes
13123 - Remove extra method
13125 * ComboBox.cs: Added missing attributes
13126 * VScrollBar.cs: Added missing attributes
13127 * ScrollBar.cs: Added missing attributes
13128 * ListBox.cs: Fixes signature, add missing consts
13129 * LinkArea.cs: Added missing attributes
13132 2005-02-08 Peter Bartok <pbartok@novell.com>
13134 * Menu.cs: Added missing attributes
13135 * MainMenu.cs: Added missing attributes
13136 * GroupBox.cs: Added missing attributes
13137 * Label.cs: Added missing attributes
13138 * CheckBox.cs: Implemented CheckBoxAccessibleObject class
13140 - Added Instance and Options properties
13141 - Added missing attributes
13142 * Cursor.cs: Made Serializable
13143 * NotifyIcon: Added missing attributes
13144 * MenuItem.cs: Added missing attributes
13145 * TextBoxBase.cs: Implemented AppendText() and Select() methods
13146 * Panel.cs: Added Missing attributes
13147 * MonthCalendar.cs: Fixed CreateParams
13149 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
13153 - Fixes issues with links
13154 - Adds the class attributes
13156 2005-02-08 Jordi Mas i Hernandez <jordi@ximian.com>
13159 - Fixes button when no items available in dropdown
13160 - Fixes repainting problems
13161 - Adds the class attributes
13163 2005-02-07 Geoff Norton <gnorton@customerdna.com>
13165 * XplatUIOSX.cs: Detect the menu bar and title bar height from
13166 the current theme. Cache these on startup.
13168 2005-02-07 Jackson Harper <jackson@ximian.com>
13170 * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
13171 the scrollbar buttons when they are depressed.
13173 2005-02-07 Geoff Norton <gnorton@customerdna.com>
13175 * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
13176 Get the display size from the main displayid. We currently dont
13177 support multiple display configurations.
13179 2005-02-07 Geoff Norton <gnorton@customerdna.com>
13181 * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
13183 2005-02-07 Miguel de Icaza <miguel@novell.com>
13185 * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
13187 2005-02-05 Jonathan Chambers <jonathan.chambers@ansys.com>
13189 * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
13191 2005-02-04 Jackson Harper <jackson@ximian.com>
13193 * ThemeWin32Classic.cs: Respect the clipping rect when
13194 drawing. Only fill the intersection of clips and rects so there
13195 isn't a lot of large fills.
13196 * ScrollBar.cs: Pass the correct clipping rect to the theme
13197 engine. Remove some debug code.
13199 2005-02-05 John BouAntoun <jba-mono@optusnet.com.au>
13201 * DateTimePicker.cs:
13202 - Fixed crash on DateTime.Parse, use Constructor instead
13204 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
13208 - Owner draw support (MeasureItem and DrawItem)
13210 2005-02-04 Jordi Mas i Hernandez <jordi@ximian.com>
13213 - Implements FindMergePosition and MergeMenu functions (very poor documented)
13214 - Fixes MenuItems.Add range
13216 - MergeMenu and Clone and CloneMenu functions
13218 2005-02-03 Jackson Harper <jackson@ximian.com>
13220 * ScrollBar.cs: Make abstract
13221 * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
13224 2005-02-03 Jackson Harper <jackson@ximian.com>
13226 * ScrollBar.cs: First part of my scrollbar fixups. This removes
13227 all the unneeded refreshes and uses invalidates with properly
13230 2005-02-03 Peter Bartok <pbartok@novell.com>
13232 * ComponentModel.cs: Added
13233 * IDataGridEditingService.cs: Added
13234 * Timer.cs: Added missing attributes
13235 * ToolTip.cs: Added missing attributes
13237 2005-02-03 Jonathan Chambers <jonathan.chambers@ansys.com>
13239 * PropertyGridView.cs: Added. Patch by Jonathan Chambers
13241 2005-02-03 Peter Bartok <pbartok@novell.com>
13243 * ListBox.cs: Added missing attributes
13245 2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
13248 - Fixes font height after font change
13249 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
13251 2005-02-02 Peter Bartok <pbartok@novell.com>
13253 * HandleData.cs: Introduced static methods to allow class
13254 to be more self-contained and track it's own HandleData objects
13255 * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
13256 HandleData to use new static methods
13258 2005-02-02 Jordi Mas i Hernandez <jordi@ximian.com>
13261 - Fixes default size and PreferredHeight
13263 - ObjectCollection.Insert implementation
13269 - ObjectCollection.Insert implementation
13270 - No selection after clean
13273 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
13275 * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
13277 2005-02-01 Jordi Mas i Hernandez <jordi@ximian.com>
13280 - Caches ItemHeight calculation for OwnerDrawVariable
13281 - Handles dropdown properly
13282 - Fixes several minor bugs
13284 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
13287 - Fixes 71946 and 71950
13288 - Fixes changing Multicolumn on the fly
13289 - Fixes keyboard navigation on Multicolumn listboxes
13291 2005-01-31 Geoff Norton <gnorton@customerdna.com>
13293 * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
13294 crash reporter log.
13296 2005-01-31 Geoff Norton <gnorton@customerdna.com>
13298 * XplatUIOSX.cs: Allow applications to actually exit.
13300 2005-01-31 Geoff Norton <gnorton@customerdna.com>
13302 * XplatUIOSX.cs: SetWindowStyle implemented. Reposition views in
13303 their parent at creation time rather than lazily later. Fixes a major
13304 regression we were experiencing.
13306 2005-01-31 John BouAntoun <jba-mono@optusnet.com.au>
13308 * ThemeWin32Classic.cs: more date time picker painting fixes
13309 * DateTimePicker.cs: more monthcalendar drop down fixes
13310 * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
13312 2005-01-31 Jordi Mas i Hernandez <jordi@ximian.com>
13315 - When moving the thumb going outside the control should stop the moving
13316 - Adds the firing of missing events
13317 - Fixes no button show if Size is not specified
13318 - End / Home keys for keyboard navigation
13320 2005-01-30 Peter Bartok <pbartok@novell.com>
13322 * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
13323 sanity check to prevent theoretical loop
13324 * XplatUIWin32.cs (SetVisible): Removed debug output
13325 * XplatUIX11.cs (SystrayChange): Added sanity check
13326 * ScrollableControl.cs (OnVisibleChanged): Now calls base method
13327 * Control.cs (OnVisibleChanged): Added workaround for ParentForm
13328 behaviour, valid until the X11 client window rewrite is done
13329 * TextBox.cs (ctor): Setting proper default foreground and background
13332 2005-01-30 John BouAntoun <jba-mono@optusnet.com.au>
13334 * Theme: Added DrawDateTimePicker to interface
13335 * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
13336 * DateTimePicker.cs: Created (still needs keys and painting code)
13337 * DateTimePickerFormat.cs: added
13338 * MonthCalendar.cs: fixed CreateParams for popup window mode
13340 2005-01-29 Peter Bartok <pbartok@novell.com>
13342 * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
13343 this should also the calculations for ligher/darker
13344 * Theme.cs: Fixed defaults for ScrollBar widths/heights
13346 2005-01-29 Peter Bartok <pbartok@novell.com>
13348 * ArrangeDirection.cs: Added
13349 * ArrangeStartingPositon.cs: Added
13350 * SystemInformation.cs: Implemented
13351 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
13352 XplatUIX11.cs, Theme.cs: Added/implemented new static properties
13353 used by SystemInformation class
13354 * X11Strucs.cs: Added XSizeHints structure
13356 - Fixed CreateParams to make sure the menu window is always visible
13357 - TrackPopupMenu: Added check to make sure we don't draw the
13360 2005-01-29 Peter Bartok <pbartok@novell.com>
13362 * HandleData.cs: Added method for altering invalid area
13363 * TextBoxBase.cs: Implemented TextLength
13365 2005-01-28 Peter Bartok <pbartok@novell.com>
13367 * XplatUIX11.cs: Improvement over last patch, not sending
13368 the WM_PAINT directly anymore, instead we scroll any pending
13369 exposed areas and let the system pick out the WM_PAINT later
13371 2005-01-28 Peter Bartok <pbartok@novell.com>
13373 * SWF.csproj: Deleted, no longer used. Instead,
13374 Managed.Windows.Forms/SWF.csproj should be used
13375 * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
13376 directly, to avoid a potential race condition with the next
13379 2005-01-28 Peter Bartok <pbartok@novell.com>
13381 * XplatUI.cs: Made class internal
13383 2005-01-28 Jordi Mas i Hernandez <jordi@ximian.com>
13385 * CheckedListBox.cs:
13388 - Missing methods and events
13390 2005-01-27 Peter Bartok <pbartok@novell.com>
13392 * Application.cs (Run): Don't use form if we don't have one
13394 2005-01-27 Peter Bartok <pbartok@novell.com>
13396 * TextBoxBase.cs (get_Lines): Fixed index off by one error
13398 2005-01-27 Peter Bartok <pbartok@novell.com>
13400 * GridEntry.cs: Added; Patch by Jonathan S. Chambers
13401 * GridItem.cs: Added; Patch by Jonathan S. Chambers
13402 * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
13403 * GridItemType.cs: Added; Patch by Jonathan S. Chambers
13404 * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
13405 * PropertySort.cs: Added; Patch by Jonathan S. Chambers
13406 * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
13407 * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
13408 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
13409 * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
13410 * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
13411 * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
13413 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
13416 - Draw focus on Simple Combobox
13417 - Fixes drawing issues
13420 2005-01-27 Peter Bartok <pbartok@novell.com>
13423 - Place window in default location, instead of hardcoded 0/0
13424 - Send initial LocationChanged event
13426 - UpdateBounds after creation to find out where the WM placed us
13427 - Make sure that if the ParentForm changes location the Form
13429 * XplatUIX11.cs: XGetGeometry will not return the coords relative
13430 to the root, but to whatever the WM placed around us.
13431 Translate to root coordinates before returning toplevel
13433 * XplatUIWin32.cs: Removed debug output
13434 * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
13435 flag to GetWindowPos, to allow translation of coordinates on X11
13437 2005-01-27 Jordi Mas i Hernandez <jordi@ximian.com>
13439 * ListBox.cs: connect LostFocus Event
13441 2005-01-27 Peter Bartok <pbartok@novell.com>
13443 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
13444 XplatUIX11.cs: Extended the Systray API
13445 * Form.cs: Removed debug output
13446 * Application.cs: Fixed focus assignment, always need to call
13447 XplatUI.Activate() since Form.Activate() has rules that may
13449 * NotifyIcon.cs: Should be complete now
13450 * ToolTip.cs: Worked around possible timer bug
13452 2005-01-27 Jackson Harper <jackson@ximian.com>
13455 - Only invalidate the effected tabs when the
13456 selected index changes. This reduces drawing and gets rid of some
13458 - Only refresh if the tabs need to be shifted, otherwise only
13459 invalidate the slider button.
13460 - On windows the tabs are not filled to right if the slider is
13463 2005-01-27 Jackson Harper <jackson@ximian.com>
13465 * TabControl.cs: Only refresh on mouseup if we are showing the
13466 slider. Also only invalidate the button whose state has changed.
13468 2005-01-26 Peter Bartok <pbartok@novell.com>
13470 * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
13471 * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
13472 and SystrayRemove() methods
13473 * XplatUIOSX.cs: Stubbed Systray methods
13475 - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
13477 - Fixed broken XChangeProperty calls (marshalling messed up things)
13478 * X11Structs.cs: Added enums and structs required for Size hinting
13479 * NotifyIcon.cs: Added & implemented
13481 2005-01-26 Jackson Harper <jackson@ximian.com>
13483 * TabControl.cs: Space vertically layed out tabs properly.
13485 2005-01-26 Peter Bartok <pbartok@novell.com>
13487 * Form.cs (CreateClientParams): Always set the location to 0,0
13488 since we're a child window.
13490 * Control.cs (SetVisibleCore): Always explicitly setting the location
13491 of a toplevel window, apparently X11 doesn't like to move windows
13492 while they're not mapped.
13494 2005-01-26 Jackson Harper <jackson@ximian.com>
13496 * TabControl.cs: Implement FillToRight size mode with vertically
13499 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
13501 * ControlPaint.cs, ThemeWin32Classic.cs
13502 - Fixes DrawFocusRectangle
13504 2005-01-26 Jordi Mas i Hernandez <jordi@ximian.com>
13507 - MenuBar tracking only starts when item is first clicked
13508 - Fixes menu hidding for multiple subitems
13509 - Unselect item in MenuBar when item Executed
13512 2005-01-25 Jordi Mas i Hernandez <jordi@ximian.com>
13515 - IsInputKey for ListBox
13518 - Shift and Control item selection
13519 - Implement SelectionMode.MultiExtended
13520 - Fixes RightToLeft
13522 - IsInputKey implemented
13523 - Do not generate OnTextChangedEdit on internal txt changes
13525 2005-01-23 Peter Bartok <pbartok@novell.com>
13527 * AccessibleObject.cs: Partially implemented Select()
13528 * MonthCalendar.cs: Added missing attributes and events
13529 * Form.cs: Fixed CreateParams behaviour, now controls derived from
13530 form can properly override CreateParams.
13531 * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
13532 XplatUIX11.cs: Dropped RefreshWindow method, not needed if
13533 Control performs Invalidate & Update
13534 * NativeWindow (CreateHandle): Added special handling for Form
13535 and Form.FormParent classes to allow overriding of From.CreateParams
13537 - ControlNativeWindow: Renamed 'control' variable to more intuitive
13539 - ControlNativeWindow: Added Owner property
13540 - Removed usage of Refresh() on property changes, changed into
13541 Invalidate(), we need to wait until the queue is processed for
13542 updates, direct calls might cause problems if not all vars for
13543 Paint are initialized
13544 - Added call to UpdateStyles() when creating the window, to set any
13545 styles that CreateWindow might have ignored.
13546 - Added support for Form CreateParent overrides to UpdateStyles()
13547 * MessageBox.cs: Removed no longer needed FormParent override stuff,
13548 CreateParams are now properly overridable
13549 * CommonDialog.cs: Removed no longer needed FormParent override stuff,
13550 CreateParams are now properly overridable
13552 2005-01-23 Miguel de Icaza <miguel@ximian.com>
13554 * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
13557 Capture LostFocus and OnTextBoxChanged. The later introduces a
13558 recursive invocation that I have not figured out yet.
13560 Reset the timer when not using (it was accumulating).
13563 (OnTextBoxChanged): Set UserEdit to true here to track whether the
13564 user has made changes that require validation.
13566 Reset changing to avoid loops.
13568 2005-01-22 Miguel de Icaza <miguel@ximian.com>
13570 * NumericUpDown.cs: Display value at startup.
13572 * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
13575 * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
13576 filled in. Added some basic parsing of text.
13578 Still missing the OnXXX method overrides, and figuring out the
13579 events that must be emitted.
13581 * UpDownBase.cs: Handle UserEdit on the Text property.
13583 2005-01-22 Jordi Mas i Hernandez <jordi@ximian.com>
13586 - Fixes IntegralHeight
13589 2005-01-21 Jackson Harper <jackson@ximian.com>
13591 * TabControl.cs: Set the SelectedIndex property when SelectedTab
13592 is set so that the page visibility is updated and the tabs are
13595 2005-01-21 Jackson Harper <jackson@ximian.com>
13597 * TabControl.cs: Use cliping rectangle for blitting. Give the
13598 theme the clipping rect so we can do clipping while
13599 drawing. Remove some debug code.
13601 2005-01-21 Jackson Harper <jackson@ximian.com>
13603 * TabPage.cs: Add a new method so tab pages can force the tab
13604 control to recalculate the tab page sizes.
13605 * TabControl.cs: UpdateOwner needs to make the tab control recalc
13608 2005-01-20 Jackson Harper <jackson@ximian.com>
13610 * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
13612 2005-01-20 Jackson Harper <jackson@ximian.com>
13614 * TreeView.cs: Set the bounds for nodes properly. They were
13615 getting screwed up when checkboxes were not enabled, but images
13618 2005-01-20 Jordi Mas i Hernandez <jordi@ximian.com>
13621 - Owner draw support
13624 2005-01-20 Jackson Harper <jackson@ximian.com>
13626 * XplatUIStructs.cs: More misc keys
13627 * X11Keyboard.cs: Ignore some control keys.
13629 2005-01-20 Jackson Harper <jackson@ximian.com>
13631 * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
13632 * X11Keyboard.cs: Set the AltGr mask when we get a key event.
13634 2005-01-19 Peter Bartok <pbartok@novell.com>
13636 * Control.cs: Un-selecting the control when it is loosing focus
13638 2005-01-19 Jackson Harper <jackson@ximian.com>
13640 * TreeView.cs: Hook up to the text controls leave event so we can
13641 end editing when the users clicks outside the text box.
13643 2005-01-19 Jackson Harper <jackson@ximian.com>
13645 * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
13646 get set in the conversion array.
13648 2005-01-19 Peter Bartok <pbartok@novell.com>
13650 * Application.cs (ModalRun): Added a call to CreateControl to ensure
13651 focus is properly set
13653 - Added missing attributes
13654 - removed styles, those are already set in the base class
13656 - Added missing attributes
13657 - Added clip window styles
13658 * CheckBox.cs: Added missing attributes
13660 - FormParentWindow.CreateParams: Added required clip styles
13661 * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
13662 also filters modifier keys
13664 - Added assignment of Accept and Cancel button to enable Enter
13665 and Esc keys in MessageBox dialogs
13666 - FormParentWindow.CreateParams: Added required clip styles
13667 * RadioButton.cs: Added missing attributes
13668 * TextControl.cs: No longer draws selection if control does not
13671 - Now draws simple rectangle around test area to make it obvious
13672 there's a control. This is a hack until we properly support borders
13673 - A few simple fixes to support selections better, now erases selected
13674 text when typing, and resets selection when using movement keys
13676 2005-01-19 Miguel de Icaza <miguel@ximian.com>
13678 * UpDownBase.cs: Added some new properties.
13680 * DomainUpDown.cs: Implement a lot to get my test working.
13682 2005-01-19 Geoff Norton <gnorton@customerdna.com>
13684 * XplatUIOSX.cs: Fix a minor bug to bring the close box back
13686 2005-01-19 Geoff Norton <gnorton@customerdna.com>
13688 * OSXStructs (WindowAttributes): Fixed csc complaints
13690 2005-01-19 Geoff Norton <gnorton@customerdna.com>
13693 OSXStructs.cs: Initial refactor to move enums and consts into
13694 OSXStructs and use them in the driver for greater readability.
13696 2005-01-19 Geoff Norton <gnorton@customerdna.com>
13698 * XplatUIOSX.cs: Initial support for Standard Cursors.
13699 * OSXStructs.cs: Move our structs here; added ThemeCursor enum
13701 2005-01-19 Jordi Mas i Hernandez <jordi@ximian.com>
13703 * ComboBox.cs: ability to change style when the ctrl is already
13704 created, missing methods and events, bug fixes, signature fixes
13706 2005-01-19 Peter Bartok <pbartok@novell.com>
13708 * Cursors.cs (ctor): Added ctor to fix signature
13710 2005-01-18 Peter Bartok <pbartok@novell.com>
13712 * Button.cs: Implemented DoubleClick event
13714 - Fixed keyboard handling to behave like MS, where the press of
13715 Spacebar is equivalent to a mousedown, and the key release is
13716 equivalent to mouseup. Now a spacebar push will give the same
13717 visual feedback like a mouse click.
13718 - Added missing attributes
13719 - Added ImeModeChanged event
13720 - Added support for generating DoubleClick event for derived classes
13722 - Implemented DoubleClick event
13723 - Added missing attributes
13724 * CommonDialog.cs: Added missing attribute
13725 * ContextMenu.cs: Added missing attributes
13727 - AutoChecked buttons do not allow to be unselected when clicked
13728 (otherwise we might end up with no selected buttons in a group)
13729 - Added missing attributes
13730 - Implemented DoubleClickEvent
13731 * ThreadExceptionDialog.cs: Enabled TextBox code
13733 2005-01-18 Peter Bartok <pbartok@novell.com>
13735 * Form.cs: Removed debug output
13736 * Button.cs: Added support for DoubleClick method
13738 2005-01-18 Peter Bartok <pbartok@novell.com>
13741 - Added method to parent window that allows triggering size
13742 calculations when a menu is added/removed
13743 - set_Menu: Cleaned up mess from early days of Form and Control,
13744 now properly triggers a recalc when a menu is added/removed
13745 - Added case to select form itself as focused form if no child
13747 - Added PerformLayout call when showing dialog, to ensure properly
13750 - Select(): Made internal so Form can access it
13751 - Focus(): Only call Xplat layer if required (avoids loop), and sets
13753 * Application.cs (Run): Removed hack and calls PerformLayout instead
13754 to trigger calculation when Form becomes visible
13756 2005-01-18 Jordi Mas i Hernandez <jordi@ximian.com>
13758 * ComboBox.cs: fixes for ownerdraw
13760 2005-01-18 Peter Bartok <pbartok@novell.com>
13763 - Sentinel is no longer static, each Document gets it's own, this
13764 avoids locking or alternatively overwrite problems when more
13765 than one text control is used simultaneously.
13766 - Switched to use Hilight and HilightText brushes for text selection
13768 * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
13770 2005-01-18 Peter Bartok <pbartok@novell.com>
13773 - Hooked up the following events:
13781 o SystemColorsChanged
13782 o ParentFontChanged
13784 - Removed debug output
13785 - Added a call to the current theme's ResetDefaults when a color change
13787 * Form.cs: Now setting the proper ImeMode
13788 * Theme.cs: Defined a method to force recreation of cached resources
13789 and rereading of system defaults (ResetDefaults())
13790 * ThemeWin32Classic.cs: Added ResetDefaults() stub
13792 2005-01-17 Peter Bartok <pbartok@novell.com>
13794 * Control.cs: Added missing attributes
13796 2005-01-17 Jackson Harper <jackson@ximian.com>
13798 * TreeNode.cs: Implement editing. Add missing properties selected
13800 * TreeView.cs: Implement node editing. Also some fixes to use
13801 Invalidate (invalid area) instead of Refresh when selecting.
13803 2005-01-17 Peter Bartok <pbartok@novell.com>
13806 - Implemented InvokeGotFocus() method
13807 - Implemented InvokeLostFocus() method
13808 - Implemented InvokePaint() method
13809 - Implemented InvokePaintBackground() method
13810 - Implemented InvokeClick() method
13811 - Implemented FindForm() method
13812 - Implemented RectangleToClient() method
13813 - Implemented ClientToRectangle() method
13814 - Implemented ResetBackColor() method
13815 - Implemented ResetCursor() method
13816 - Implemented ResetFont() method
13817 - Implemented ResteForeColor() method
13818 - Implemented ResetImeMode() method
13819 - Implemented ResetLeftToRight() method
13820 - Implemented ResetText() method
13821 - Implemented Scale() methods
13822 - Implemented ScaleCore() method
13823 - Implemented Update() method
13824 - Removed unused variables
13825 - Stubbed AccessibilityNotifyClients and
13826 ControlAccessibleObject.NotifyClients() methods (dunno what to do
13828 - Now setting proper default for RightToLeft property
13829 - Fixed bug in SetClientSizeCore that would cause windows to get
13831 - Now sending Click/DoubleClick events
13832 - Now selecting controls when left mouse button is clicked on
13834 * AccessibleEvents.cs: Added
13835 * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
13836 * XplatUIOSX.cs: Stubbed UpdateWindow() method
13837 * XplatUIWin32.cs: Implemented UpdateWindow() method
13838 * XplatUIX11.cs: Implemented UpdateWindow() method
13839 * Form.cs: Removed stray semicolon causing CS0162 warning
13840 * ThemeWin32Classic.cs: Fixed unused variable warnings
13841 * ScrollableControl.cs: Now calls base method for ScaleCore
13842 * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
13843 style to avoid interference with internal click handler (which is
13844 different than standard Control click handling)
13846 - Now unchecks all sibling radio buttons when control is
13847 selected (Fixes #68756)
13848 - Removed internal tabstop variable, using the one inherited from
13851 2005-01-17 Jackson Harper <jackson@ximian.com>
13853 * NavigateEventArgs.cs: Fix base type.
13854 * LinkLabel.cs: Sig fix
13856 2005-01-17 Jackson Harper <jackson@ximian.com>
13858 * TreeView.cs: Only invalidate the effected nodes bounds when
13861 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
13863 * XplatUIWin32.cs: fixes Win32 marshaling
13864 * XplatUIX11.cs: fixes method signature
13866 2005-01-17 Peter Bartok <pbartok@novell.com>
13868 * XplatUIX11.cs: Clean up resources when we no longer need them
13870 2005-01-17 Peter Bartok <pbartok@novell.com>
13872 * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
13873 OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
13874 and DestroyCursor() methods.
13875 * Cursor.cs: Partially implemented, now supports standard cursors;
13876 still contains some debug code
13877 * Cursors.cs: Implemented class
13879 - WndProc(): Added handling of WM_SETCURSOR message, setting the
13881 - Implemented Cursor property
13882 - Replaced break; with return; more straightforwar and possibly
13884 - Now properly setting the result for WM_HELP
13885 * X11Structs.cs: Added CursorFontShape enum
13886 * XplatUIStructs.cs:
13887 - Added StdCursor enum (to support DefineStdCursor() method)
13888 - Added HitTest enum (to support sending WM_SETCURSOR message)
13890 - Now sends the WM_SETCURSOR message
13891 - Implemented new cursor methods
13892 * XplatUIOSX.cs: Stubbed new cursor methods
13894 - Implemented new cursor methods
13895 - Added GetSystemMetrics function and associated enumeration
13897 2005-01-15 Peter Bartok <pbartok@novell.com>
13900 - WndProc(): Now handles EnableNotifyMessage
13901 - SelectNextControl(): Fixed bug where if no child or sibling
13902 controls exist we looped endlessly
13904 2005-01-14 Jackson Harper <jackson@ximian.com>
13906 * TreeView.cs: Recalculate the tab pages when a new one is added
13907 so that the proper bounding rects are created.
13909 2005-01-14 Jackson Harper <jackson@ximian.com>
13911 * TreeView.cs: Draw a gray box instead of a grip in the lower
13912 right hand corner when there are both horizontal and vertical
13915 2005-01-14 Jackson Harper <jackson@ximian.com>
13917 * Control.cs: When erasing backgrounds use FromHwnd instead of
13918 FromHdc when there is a NULL wparam. This occurs on the X driver.
13919 * XplatUIX11.cs: Set the wparam to NULL.
13921 2005-01-13 Jackson Harper <jackson@ximian.com>
13923 * PictureBox.cs: Implement missing methods (except ToString, need
13924 to test that on windows) and events. When visibility is changed we
13925 need to redraw the image because the buffers are killed. When size
13926 is changed refresh if the sizemode needs it.
13928 2005-01-13 Peter Bartok <pbartok@novell.com>
13930 * Control.cs (SelectNextControl): Was using wrong method to select
13933 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
13935 * ComboBox.cs: fixes dropstyle
13937 2005-01-13 Peter Bartok <pbartok@novell.com>
13940 - Implemented Select() override
13941 - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
13942 - Now sets keyboard focus on startup
13943 * Control.cs (SelectNextControl): Now properly handles directed=true
13945 - WndProc: Now passes tab key on to base if AcceptTabChar=false
13946 - Added (really bad) focus rectangle (mostly for testing)
13947 * TextBox.cs: Added code to handle getting/loosing focus and invalidating
13948 to enforce redraw on focus changes
13949 * ContainerControl.cs:
13950 - Fixed detection of Shift-Tab key presses
13951 - Fixed traversal with arrow keys
13952 * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
13953 gonna keep this or if it's complete yet
13955 2005-01-13 Jordi Mas i Hernandez <jordi@ximian.com>
13957 * ComboBox.cs: missing properties, fixes
13959 2005-01-13 Peter Bartok <pbartok@novell.com>
13961 * Panel.cs (ctor): Setting Selectable window style to off
13962 * Splitter.cs (ctor): Setting Selectable window style to off
13963 * GroupBox.cs (ctor): Setting Selectable window style to off
13964 * Label.cs (ctor): Setting Selectable window style to off
13966 2005-01-12 Miguel de Icaza <miguel@ximian.com>
13968 * UpDownBase.cs (InitTimer): If the timer has been already
13969 created, enable it.
13971 Use a TextBox instead of a Label.
13973 2005-01-12 Jackson Harper <jackson@ximian.com>
13975 * TreeView.cs: Refresh the tree after sorting the nodes. Always
13976 draw the connecting node lines (when ShowLines is true).
13977 * TreeNode.cs: The nodes index can now be updated. This is used
13978 when a node collection is sorted.
13979 * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
13980 insert or an existing unsorted node collection can be sorted.
13982 2005-01-12 Peter Bartok <pbartok@novell.com>
13984 * ContainerControl.cs: Implemented ProcessDialogKeys()
13986 2005-01-12 Peter Bartok <pbartok@novell.com>
13989 - Implemented SelectNextControl() method
13990 - Several focus related bug fixes
13991 - Fixed Docking calculations to match MS documentation and
13994 2005-01-12 Jordi Mas i Hernandez <jordi@ximian.com>
13996 * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
13999 2005-01-12 Peter Bartok <pbartok@novell.com>
14002 - Fixed broken Contains() method
14003 - Implemented GetNextControl() method. Finally. This is the pre-
14004 requisite for focus handling.
14006 2005-01-12 Peter Bartok <pbartok@novell.com>
14008 * OSXStrucs.cs: Added
14010 2005-01-12 Peter Bartok <pbartok@novell.com>
14013 - Removed PeekMessageFlags
14014 - Implemented SetWindowStyle() method
14015 * XplatUIStructs.cs: Added PeekMessageFlags
14016 * X11Structs: Added missing border_width field to XWindowChanges struct
14018 - PeekMessage: Now throws exception if flags which are not yet
14019 supported are passed
14020 - Implemented SetWindowStyle() method
14021 - Fixed SetZOrder to handle AfterHwnd properly
14022 * XplatUI.cs: Added SetWindowStyle() method
14023 * XplatUIDriver.cs: Added SetWindowStyle() abstract
14025 - Implemented UpdateStyles() method
14026 - Implemented UpdateZOrder() method
14027 * XplatUIOSX.cs: Added SetWindowStyle() stub
14029 2005-01-12 Geoff Norton <gnorton@customerdna.com>
14031 * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
14035 2005-01-11 Jackson Harper <jackson@ximian.com>
14037 * TreeView.cs: Still need to draw lines to siblings even if out of
14038 the current node is out of the clip.
14040 2005-01-11 Jackson Harper <jackson@ximian.com>
14042 * TreeView.cs: When setting the hbar/vbar/grip position use
14043 SetBounds so that perform layout is only called once. Also suspend
14044 and resume layout so layout is only done once for all controls.
14045 - Removed some debug fluff
14046 * SizeGrip.cs: Call base implmentation in overriding methods.
14047 - When visibility is changed the drawing buffers are killed so we
14050 2005-01-11 Jackson Harper <jackson@ximian.com>
14052 * TreeView.cs: Calculate the open node count while drawing. This
14053 saves us an entire tree traversal for every paint operation. Use
14054 a member var for the open node count so less vars are passed around.
14056 2005-01-11 John BouAntoun <jba-mono@optusnet.com.au>
14058 * MonthCalendar.cs:
14059 - fixed selection to use mousemove, not mouse polling on timer
14060 * ThemeWin32Classic.cs
14061 - removed redundant unused variable "no_more_content"
14063 2005-01-11 Peter Bartok <pbartok@novell.com>
14065 * XplatUIX11.cs (DoEvents): Needs to return when no more events
14066 are pending, so it now calls PeekMessage instead of GetMessage;
14067 implemented a incomplete version of PeekMessage
14069 2005-01-11 Peter Bartok <pbartok@novell.com>
14071 * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
14073 * TextBoxBase.cs: Added sending of TextChanged event
14075 2005-01-10 Jackson Harper <jackson@ximian.com>
14077 * TreeView.cs: Try not to draw outside the clipping rectangle on
14080 2005-01-10 Jordi Mas i Hernandez <jordi@ximian.com>
14082 * ComboBox.cs: keyboard navigation, item navigation, bug fixes
14084 2005-01-10 Jackson Harper <jackson@ximian.com>
14087 - Implement fast scrolling. Now only the newly
14088 exposed nodes are drawn and the old image is moved using the
14089 XplatUI::ScrollWindow method.
14090 - Factor in height of nodes when calculating whether or not the
14091 node is in the clipping rect.
14093 2005-01-10 Jackson Harper <jackson@ximian.com>
14095 * TreeNodeCollection.cs: Refresh the tree when a new node is added.
14097 2005-01-10 Peter Bartok <pbartok@novell.com>
14099 * Application.cs: Added temporary hack to resolve all our resize
14100 required issues on startup. This will get fixed properly at
14101 some point in the future
14103 2005-01-10 Jackson Harper <jackson@ximian.com>
14105 * SizeGrip.cs: New internal class that is used as a sizing
14106 grip control...hence the name.
14108 2005-01-10 Peter Bartok <pbartok@novell.com>
14110 * Control.cs: Implemented proper TabIndex handling, now assigning
14111 a tabindex when a control is added to a container
14112 * GroupBox.cs (ctor): Now sets the Container style bit, required
14113 for Control.GetNextControl()
14115 2005-01-09 Jackson Harper <jackson@ximian.com>
14117 * TextBoxBase.cs: Clear window when scrolling (fixes build).
14119 2005-01-09 Peter Bartok <pbartok@novell.com>
14121 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
14122 XplatUIX11.cs: Added ability to control ScrollWindow expose and
14123 an overload for ScrollWindow to allow only scrolling a rectangle
14125 2005-01-09 Peter Bartok <pbartok@novell.com>
14128 - Implemented SetDesktopBounds method
14129 - Implemented SetDesktopLocation method
14131 2005-01-08 Jackson Harper <jackson@ximian.com>
14133 * TreeView.cs: Only set the vbar's Maximum and LargeChange when
14134 the node count has changed, this removes to VScroll::Refresh calls
14137 2005-01-08 Geoff Norton <gnorton@customerdna.com>
14139 * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
14141 2005-01-07 Jackson Harper <jackson@ximian.com>
14143 * TreeNode.cs: Just update the single node when it is
14144 checked. Don't refresh after toggling, the Expand/Collapse already
14146 * TreeView.cs: Respect clipping a little more when drawing. Try
14147 not to redraw things that don't need to be redrawn. Just hide the
14148 scrollbars when they are no longer needed instead of removing
14149 them, so they don't have to be created again and again.
14151 2005-01-07 Geoff Norton <gnorton@customerdna.com>
14153 * XplatUIOSX.cs (SetCaretPos): We need to translate the view
14154 coordinates to window space to place the caret properly, FIXED.
14155 Implement GetWindowState & SetWindowState
14157 2005-01-06 Peter Bartok <pbartok@novell.com>
14160 - Implemented ClientSize property
14161 - Implemented DesktopBounds property
14162 - Implemented DesktopLocation property
14163 - Implemented IsRestrictedWindow property
14164 - Implemented Size property
14165 - Implemented TopLevel property
14166 - Implemented FormWindowState property
14168 - Implemented GetTopLevel() method
14169 - Implemented SetTopLevel() method
14170 * X11Structs.cs (Atom):
14171 - Added AnyPropertyType definition
14172 - Added MapState definiton and updated XWindowAttribute struct
14173 * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
14174 * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
14175 * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
14177 - Implemented GetWindowState() and SetWindowState() methods
14178 - Fixed Win32GetWindowLong return type
14180 - Introduced central function for sending NET_WM messages
14181 - Implemented GetWindowState() and SetWindowState() methods
14182 * TextBoxBase.cs (set_Lines):
14183 - Now uses Foreground color for text added via Text property (Duh!)
14184 - Added code to remember programmatically requested size (fixes
14185 behaviour when Multiline is set after Size)
14186 - Added AutoSize logic
14188 2005-01-06 Jackson Harper <jackson@ximian.com>
14190 * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
14192 2005-01-06 Jackson Harper <jackson@ximian.com>
14194 * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
14195 set to less then 0.
14197 2005-01-06 Jackson Harper <jackson@ximian.com>
14199 * ScrollableControl.cs: Lazy init the scrollbars.
14201 2005-01-06 Jackson Harper <jackson@ximian.com>
14203 * Theme.cs: Speed up getting pens and solid brushes, by using
14204 their ARGB as a hash instead of tostring and not calling Contains.
14206 2005-01-06 Peter Bartok <pbartok@novell.com>
14209 - Implemented OnActivated and OnDeactivate event trigger
14210 - Implemented Activate() method
14211 - Fixed ShowDialog() to activate the form that was active before
14212 the dialog was shown
14214 - Added global active_window var that tracks the currently active
14216 - Now always grabs Property changes from the root window to always
14217 catch changes on the active window property
14218 - Added code to PropertyNotify handler to send Active/Inactive
14219 messages when state changes. This puts X11 and Win32 en par on
14220 WM_ACTIVATE notifications (except for double notifications when
14221 the user clicks away from our modal window to another one of our
14224 2005-01-05 Jackson Harper <jackson@ximian.com>
14226 * ImageList.cs: Implment ctor
14228 2005-01-05 Geoff Norton <gnorton@customerdna.com>
14230 * XplatUIOSX.cs: Implement Activate/SetTopmost
14232 2005-01-05 Geoff Norton <gnorton@customerdna.com>
14234 * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
14236 2005-01-05 Geoff Norton <gnorton@customerdna.com>
14238 * XplatUIOSX.cs: Implement GetActive/SetFocus.
14240 2005-01-05 Peter Bartok <pbartok@novell.com>
14242 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
14243 XplatUIOSX.cs: Added GetActive method to return the currently
14244 active window for the application (or null, if none is active)
14246 - Implemented ActiveForm
14247 - Commented out owner assignment for modal dialogs (causes problems
14248 on Win32, since the owner will be disabled)
14249 - Reworked some Active/Focus handling (still incomplete)
14250 * CommonDialog.cs: Commented out owner assignment for modal dialogs
14251 (causes problems on Win32, since the owner will be disabled)
14252 * IWin32Window: Added ComVisible attribute
14254 2005-01-05 Peter Bartok <pbartok@novell.com>
14256 * ToolTip.cs (WndProc): Enable setting focus now that we have the
14257 required XplatUI functions.
14259 2005-01-05 Peter Bartok <pbartok@novell.com>
14261 * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
14262 XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
14263 to implement focus and activation handling; still incomplete and
14266 2005-01-04 Peter Bartok <pbartok@novell.com>
14268 * TextBoxBase.cs: Changed access level for Document property to
14269 match switch to internal for TextControl
14271 2005-01-04 Peter Bartok <pbartok@novell.com>
14273 * AccessibleObject: Added ComVisible attribute
14275 2005-01-04 Jackson Harper <jackson@ximian.com>
14277 * X11Keyboard.cs: Remove unneeded var.
14279 2005-01-04 Jackson Harper <jackson@ximian.com>
14281 * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
14283 * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
14284 ClientMessage. This makes apps exit cleanly (more often).
14286 2005-01-04 Jackson Harper <jackson@ximian.com>
14288 * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
14289 handling focus, return correct colors and fonts,
14290 * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
14291 handle selection, horizontal scrolling, and mouse interaction.
14293 2005-01-04 Peter Bartok <pbartok@novell.com>
14295 * ICommandExecutor.cs: Added
14296 * IDataGridColumnStyleEditingNotificationService.cs: Added
14297 * IFeatureSupport.cs: Added
14298 * IFileReaderService.cs: Added
14299 * IDataObject.cs: Added ComVisible attribute
14300 * AmbientProperties.cs: Added
14301 * BaseCollection.cs: Added missing attributes
14302 * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
14303 * BaseCollection.cs: Added missing attributes
14304 * Binding.cs: Added TypeConverter attribute
14305 * BindingContext.cs: Added DefaultEvent attribute
14306 * BindingsCollection.cs: Added DefaultEvent attribute
14307 * Button.cs: Added DefaultValue attribute
14308 * DragEventArgs.cs: Added ComVisible attribute
14309 * GiveFeedbackEventArgs.cs: Added ComVisible attribute
14310 * KeyEventArgs.cs: Added ComVisible attribute
14311 * KeyPressEventArgs.cs: Added ComVisible attribute
14312 * MouseEventArgs.cs: Added ComVisible attribute
14313 * NavigateEventArgs.cs: Added
14314 * NavigateEventHandler.cs: Added
14315 * FeatureSupport.cs: Added
14316 * OSFeature.cs: Added
14317 * Theme.cs: Added abstract Version property to support OSFeature
14318 * ThemeWin32Classic.cs: Added Version property to
14319 support OSFeature.Themes
14320 * ProgressBar.cs: Removed OnPaintBackground override, not required since
14321 the proper styles to avoid background drawing are set, also doesn't
14323 * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
14324 * QueryContinueDragEventArgs.cs: Added ComVisible attribute
14325 * ScrollEventArgs.cs: Added ComVisible attribute
14326 * SplitterEventArgs.cs: Added ComVisible attribute
14327 * AccessibleSelection.cs: Added Flags attribute
14328 * Appearance.cs: Added ComVisible attribute
14329 * Border3DSide.cs: Added ComVisible attribute
14330 * Border3DStyle.cs: Added ComVisible attribute
14331 * BorderStyle.cs: Added ComVisible attribute
14332 * DragAction.cs: Added ComVisible attribute
14333 * ErrorBlinkStyle.cs: Added
14334 * ScrollEventType.cs: Added ComVisible attribute
14335 * AnchorStyles.cs: Added Editor attribute
14336 * DockStyle.cs: Added Editor attribute
14337 * HorizontalAlignment.cs: Added ComVisible attribute
14338 * HelpEventArgs.cs: Added ComVisible attribute
14339 * PaintEventArgs.cs: Added IDisposable
14341 2005-01-04 Peter Bartok <pbartok@novell.com>
14343 * TextControl.cs: Switched Line, LineTag and Document classes to
14346 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
14348 * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
14349 Simple mode, fixes, IntegralHeight, etc.
14351 2005-01-04 Peter Bartok <pbartok@novell.com>
14353 * TextBoxBase.cs: Using proper font variable now
14355 2005-01-04 Peter Bartok <pbartok@novell.com>
14357 * Form.cs (ShowDialog): Set parent to owner, if provided
14358 * GroupBox.cs: Removed unused vars
14360 - Added GetHashCode() for Document and LineTag classes
14361 - Removed unused variables
14362 - Added CharIndexToLineTag() and LineTagToCharIndex() methods
14363 to allow translation between continuous char position and line/pos
14364 * CheckBox.cs: Removed vars that are provided by base class
14365 * RadioButton.cs: Removed vars that are provided by base class, added
14366 new keyword where required
14367 * LinkLabel.cs: Added new keyword where required
14368 * Control.cs (WndProc): Removed unused variable
14370 - Finished SelectionLength property
14371 - Implemented SelectionStart property
14372 - Implemented Text property
14373 - Removed unused vars
14374 * MessageBox.cs: Added new keyword where required
14375 * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
14377 * MenuAPI.cs: Added new keyword where required
14378 * ButtonBase.cs: Removed vars that are provided by base class, added
14379 new keyword where required
14380 * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
14381 argument to double, to allow compiling with csc 2.0 (Atsushi ran
14383 * Application.cs (Run): Now triggers the ThreadExit event
14384 * CommonDialog.cs: Added new keyword where required; now properly sets
14385 parent (owner) for dialog
14386 * XplatUIX11.cs: Commented out unused vars
14387 * StatusBar.cs: Fixed signature for Text property
14388 * TabPage.cs: Undid Jordi's removal of unused var, now using the var
14390 2005-01-04 Jordi Mas i Hernandez <jordi@ximian.com>
14392 * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
14393 TrackBar.cs, MonthCalendar.cs: remove unused vars
14395 2005-01-03 Jackson Harper <jackson@ximian.com>
14397 * ThemeWin32Classic.cs:
14398 * X11Keyboard.cs: Remove unused vars.
14400 2005-01-03 Peter Bartok <pbartok@novell.com>
14403 - set_Text: Tied into TextControl
14404 - set_TextAlignment: Tied into TextControl
14406 - Added alignment properties and implemented alignment handling
14407 and drawing (still has a bug, not generating proper expose events)
14408 - Added new Line() constructor to allow passing the line alignment
14409 - Fixed selection setting, properly handling end<start now
14410 - Added aligment considerations to RecalculateDocument()
14412 - Now properly enforces control height for single line controls
14413 - Added support for CharacterCasing
14414 - Added IsInputKey override
14415 - Fixed Keys.Enter logic
14416 - Added SetBoundsCore override
14417 - Fixed mouse selection handling
14419 2005-01-03 Jackson Harper <jackson@ximian.com>
14422 - Collapse and uncheck all nodes when CheckBoxes is disabled.
14423 - Checkboxes are always aligned to the bottom of the node,
14424 regardless of item height.
14425 - Use the node bounds to draw the text so we can center it when
14426 the item height is greater then the font height.
14427 - Node::Bounds are only the text part of the node.
14428 * TreeNode.cs: New method to combine collapsing and unchecking all
14431 2005-01-02 Jackson Harper <jackson@ximian.com>
14433 * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
14434 * TreeNode.cs: Add a bounding box for the checkbox, refresh the
14435 tree when a check is changed. TODO: Only refresh the checked node.
14437 2004-12-30 Jackson Harper <jackson@ximian.com>
14439 * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
14440 * TreeNode.cs: When collapsing make sure to never collapse the
14443 2004-12-29 Jackson Harper <jackson@ximian.com>
14445 * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
14447 2004-12-28 Zoltan Varga <vargaz@freemail.hu>
14449 * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
14451 2004-12-28 Peter Bartok <pbartok@novell.com>
14453 * MessageBox.cs (get_CreateParams): Don't use owner var if it's
14456 2004-12-28 Peter Bartok <pbartok@novell.com>
14458 * Control.cs (WndProc): Added WM_HELP handler, now generates
14459 HelpRequested event
14460 * Form.cs: Added HelpButton property and required support code
14461 * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
14463 2004-12-28 Peter Bartok <pbartok@novell.com>
14466 - Made DialogForm.owner variable internal
14467 - Added check to ensure owner form is set before setting
14468 owner properties in CreateParams
14470 2004-12-28 Geoff Norton <gnorton@customerdna.com>
14472 * XplatUIOSX.cs: Implement mouse hovering. Fix QDPoint struct to avoid
14473 swizzling. Implement ClientToScreen and ScreenToClient. Implement
14474 GetCursorPos. Fix major visibility issues. Rework the windowing
14475 system to support borderless/titleless windows (implements menus).
14476 Fix GetWindowPos. Implement initial background color support for
14479 2004-12-28 Peter Bartok <pbartok@novell.com>
14481 * Form.cs (get_CreateParams): Make sure we have an owner before using
14482 the owner variable. Implement proper default if no owner exists
14484 2004-12-28 Peter Bartok <pbartok@novell.com>
14486 * In preparation for making Managed.Windows.Forms the default build target
14487 for System.Windows.Forms, the following stubbed files were added.
14488 Dialogs are currently being implemented by contributors and are only
14489 short-term place holders.
14490 * ColorDialog.cs: Initial check-in (minmal stub)
14491 * DataGrid.cs: Initial check-in (minimal stub)
14492 * DataGridLineStyle.cs: Initial check-in (minimal stub)
14493 * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
14494 * DataGridTableStyle.cs: Initial check-in (minimal stub)
14495 * FontDialog.cs: Initial check-in (minimal stub)
14496 * FileDialog.cs: Initial check-in (minimal stub)
14497 * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
14498 * GridTableStylesCollection.cs: Initial check-in (minimal stub)
14499 * OpenFileDialog: Initial check-in (minimal stub)
14500 * IComponentEditorPageSite.cs: Initial check-in
14501 * Splitter.cs: Initial check-in (for Jackson)
14502 * SplitterEventArgs.cs: Initial check-in (for Jackson)
14503 * SplitterEventHandler.cs: Initial check-in (for Jackson)
14504 * TextBox.cs: Initial check-in; still needs some wiring to
14505 TextControl backend
14506 * Form.cs: Implemented ControlBox property
14507 * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
14508 * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
14509 * TextControl.cs: Added selection functionality; added todo header
14511 - Implemented Lines property
14512 - Implemented TextHeight property
14513 - Implemented SelectedText property
14514 - Implemented SelectionLength property
14515 - Implemented SelectAll method
14516 - Implemented ToString method
14517 - Removed and cleaned up some debug code
14518 - Implemented (still buggy) mouse text selection
14520 2004-12-27 Jordi Mas i Hernandez <jordi@ximian.com>
14522 * ComboBox.cs: Complete DropDownList implementation, fixes.
14524 2004-12-26 Jordi Mas i Hernandez <jordi@ximian.com>
14526 * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
14527 * ComboBoxStyle.cs: ComboBoxStyle enum
14528 * ComboBox.cs: Initial work on ComboBox control
14530 2004-12-21 Peter Bartok <pbartok@novell.com>
14532 * Control.cs (ctor, CreateParams): Moved setting of is_visible
14533 forward so that anything that creates a window gets the default,
14534 also no longer uses Visible property in CreateParams to avoid
14535 walking up the parent chain and possibly get the wrong visible
14536 status. Fixed IsVisible to no longer walk up to the parent.
14538 2004-12-21 Peter Bartok <pbartok@novell.com>
14540 * Form.cs (ShowDialog): Unset modality for the proper window
14542 2004-12-20 Peter Bartok <pbartok@novell.com>
14544 * CommonDialog.cs: Initial check-in
14546 2004-12-20 Peter Bartok <pbartok@novell.com>
14548 * Control.cs (Visible): Now uses the parent window instead of the
14549 client area window for the property
14552 - ShowDialog(): Now uses the proper window for modality
14553 - The default visibility state for the form parent is now false. This
14554 will prevent the user from seeing all the changes to the form and
14555 its controls before the application hits Application.Run()
14556 - Removed some stale commented out code
14559 - Added FindWindow() method to have a method to check for existence
14561 - Added ability to override default exception handling (for example
14562 when debugging with VS.Net; to do this the ExternalExceptionHandler
14564 - Removed some useless debug output
14567 - Removed r37929 (SetModal patch from Ashwin Bharambe), was
14568 not working as expected
14569 - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
14570 property to allow switching back to the modal window if focus is
14571 given to another one of our windows (Application Modal)
14572 - Now only sets override_redirect if we create a window
14574 - Moved EventMask selection before mapping of newly created window
14575 so we can catch the map event as well
14576 - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
14577 - Added various Atom related DllImports
14578 - Implemented Exit() method
14579 - .ctor() : No longer shows window if WS_VISIBLE is not defined
14580 in the CreateParams
14582 * MessageBox.cs: Now properly deals with the FormParent window by
14583 providing an override the FormParent CreateParams property to
14584 set as POPUP instead of OVERLAPPED window.
14586 2004-12-19 Geoff Norton <gnorton@customerdna.com>
14588 * XplatUIOSX.cs: Implement DestroyWindow. Implement ScrollWindow
14589 Minor code cleanup.
14591 2004-12-19 Geoff Norton <gnorton@customerdna.com>
14593 * XplatUIOSX.cs (SetModal): Implement this method on OSX.
14595 2004-12-18 Peter Bartok <pbartok@novell.com>
14597 * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
14598 implementing SetModal() method
14600 2004-12-18 Peter Bartok <pbartok@novell.com>
14602 * X11Structs.cs (XGCValues): Fixed type of function element
14603 * XplatUI.cs: Added ScrollWindow() method
14604 * XplatUIDriver.cs: Added ScrollWindow() abstract
14605 * XplatUIWin32.cs: Implemented ScrollWindow() method
14606 * XplatUIX11.cs: Implemented ScrollWindow() method
14607 * XplatUIOSX.cs: Stubbed out ScrollWindow() method
14609 2004-12-17 Geoff Norton <gnorton@customerdna.com>
14611 * XplatUIOSX.cs: Fix cursor to use an Invert instead of drawing it
14612 Some more keyboard support (INCOMPLETE)
14614 2004-12-17 Peter Bartok <pbartok@novell.com>
14617 - Added color attribute to line tags.
14618 - Added color argument to all functions dealing with tags
14619 - Added color argument support to various functions
14620 - Fixed miss-calculation of baseline/shift in certain circumstances
14622 * TextBoxBase.cs: Added new color option to test code
14624 2004-12-17 Jackson Harper <jackson@ximian.com>
14627 * MonthCalendar.cs: Signature fixes
14629 2004-12-17 Geoff Norton <gnorton@customerdna.com>
14631 * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
14632 keyboard event moved it. Create a new graphics context for each paint resolves this
14634 2004-12-17 Geoff Norton <gnorton@customerdna.com>
14636 * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
14637 Make caret exist and go blink blink. Initial keyboard support.
14638 Fix exception handler, Add Invalidate support. Change way RefreshWindow
14641 2004-12-17 Jackson Harper <jackson@ximian.com>
14643 * XplatUIStructs.cs: Updated set of virtual keycodes.
14644 * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
14646 2004-12-17 Jackson Harper <jackson@ximian.com>
14648 * XplatUIX11.cs: Prune old keyboard code.
14650 2004-12-17 Jackson Harper <jackson@ximian.com>
14652 * XplatUIX11.cs: When generating mouse wparams get the modifier
14653 keys from the ModifierKeys property.
14655 2004-12-17 Jackson Harper <jackson@ximian.com>
14657 * X11Keyboard.cs: Send up/down input when generating
14658 messages. Remove some unused vars.
14660 2004-12-17 Jackson Harper <jackson@ximian.com>
14663 * TreeView.cs: get rid of warnings.
14665 2004-12-17 Jackson Harper <jackson@ximian.com>
14667 * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
14669 2004-12-17 Jordi Mas i Hernandez <jordi@ximian.com>
14671 * ListBox.cs: bug fixes, changes for CheckedListBox.cs
14672 CheckedListBox.cs: Implementation
14674 2004-12-17 Peter Bartok <pbartok@novell.com>
14676 * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
14678 2004-12-16 Peter Bartok <pbartok@novell.com>
14681 - InsertCharAtCaret(): Fixed start pos fixup
14682 - CaretLine_get: No longer derives the line from the tag, the tag
14683 could be stale if lines in the document have been added or deleted
14684 - RebalanceAfterDelete(): Fixed bug in balancing code
14685 - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
14686 - Line.Streamline(): Now can also elminate leading empty tags
14687 - DumpTree(): Added a few more tests and prevented exception on
14689 - Added Debug section for Combining lines
14690 - Delete(): Now copies all remaining properties of a line
14693 - Left mousebutton now sets the caret (and middle button still acts
14694 as formatting tester, which must go away soon)
14695 - Added Debug section for Deleting/Combining lines
14696 - Fixed calculations for UpdateView after Combining lines
14698 2004-12-16 Peter Bartok <pbartok@novell.com>
14700 * TextControl.cs: Now properly aligns text on a baseline, using the
14701 new XplatUI.GetFontMetrics() method. Simplified several calculations
14702 * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
14705 2004-12-16 Peter Bartok <pbartok@novell.com>
14707 * XplatUI.cs: Added GetFontMetrics() method
14708 * XplatUIDriver.cs: Added GetFontMetrics() abstract
14709 * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
14710 into libgdiplus, our private GetFontMetrics function
14711 * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
14712 * XplatUIWin32.cs: Implemented GetFontMetrics() method
14714 2004-12-16 Jackson Harper <jackson@ximain.com>
14716 * XplatUIStruct.cs: Add enum for dead keys
14717 * X11Keyboard.cs: Map and unmap dead keys.
14719 2004-12-16 Jackson Harper <jackson@ximian.com>
14721 * X11Keyboard.cs: Detect and use the num lock mask.
14723 2004-12-16 Peter Bartok <pbartok@novell.com>
14725 * Control.cs (CreateGraphics): Added check to make sure the
14726 handle of the window exists before calling Graphics.FromHwnd()
14728 2004-12-16 Peter Bartok <pbartok@novell.com>
14730 * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
14731 contains a lot of code that's not supposed to be there for the
14732 real thing, but required for developing/testing the textbox
14735 2004-12-16 Peter Bartok <pbartok@novell.com>
14738 - Fixed Streamline method
14739 - Added FindTag method to Line
14740 - Added DumpTree method for debugging
14741 - Added DecrementLines() method for deleting lines
14742 - Fixed UpdateView to update the cursor to end-of-line on single-line
14744 - Added PositionCaret() method
14745 - Fixed MoveCaret(LineDown) to move into the last line, too
14746 - Added InsertChar overload
14747 - Fixed InsertChar tag offset calculations
14748 - Added DeleteChar() method
14749 - Added Combine() method for folding lines
14750 - Fixed Delete() method, no longer allocates wasted Line object and
14751 now copies all properties when swapping nodes
14752 - Delete() method now updates document line counter
14754 2004-12-15 Jackson Harper <jackson@ximian.com>
14756 * XplatUIX11.cs: Get the modifier keys from the keyboard driver
14757 * X11Keyboard.cs: Expose the currently selected modifier keys
14758 through a property.
14760 2004-12-15 Peter Bartok <pbartok@novell.com>
14762 * TextControl.cs: Initial check-in. Still incomplete
14764 2004-12-15 Jackson Harper <jackson@ximian.com>
14767 * TreeView.cs: Fix build on csc (second time today ;-))
14769 2004-12-15 Jackson Harper <jackson@ximian.com>
14771 * TreeView.cs: Store the treenodes plus/minus box bounds when it
14772 is calculated and use this for click testing.
14773 * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
14775 2004-12-15 Jackson Harper <jackson@ximian.com>
14777 * TreeView.cs: Pass the nodes image index to the image list when
14778 drawing that image.
14780 2004-12-15 Jackson Harper <jackson@ximian.com>
14782 * X11Keyboard.cs: Set messages hwnd.
14783 * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
14784 post_message calls.
14786 2004-12-15 Jackson Harper <jackson@ximian.com>
14788 * X11Keyboard.cs: Fix to compile with csc.
14790 2004-12-15 Jackson Harper <jackson@ximian.com>
14792 * X11Structs.cs: Add key mask values
14793 * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
14794 * X11Keyboard.cs: New file - Extrapolates and interpolates key
14795 down/up foo into WM_CHAR foo
14796 * KeyboardLayouts.cs: Common keyboard layouts
14797 * XplatUIX11.cs: Add the keyboard driver. Add functionality to
14798 post messages into the main queue.
14800 2004-12-13 Jordi Mas i Hernandez <jordi@ximian.com>
14802 * Button.cs: implement ProcessMnemonic
14803 * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
14805 * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
14806 * ButtonBase.cs: Show HotkeyPrefix (not the &)
14808 2004-12-12 John BouAntoun <jba-mon@optusnet.com.au>
14810 * MonthCalendar.cs: Implemented click-hold for next/previous month
14813 2004-12-11 Peter Bartok <pbartok@novell.com>
14816 - Added XKeyboardState (moved from XplatUIX11.cs)
14817 - Added XCreateGC related enums and structures
14818 - Added GXFunction for XSetFunction
14820 * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
14822 * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
14823 CaretVisible() calls
14825 * ToolTip.cs: Added code to prevent stealing focus from app windows
14827 * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
14828 DestroyCaret, SetCaretPos and CaretVisible)
14831 - Added implementation for caret functions
14832 - Moved hover variables into a struct, to make it a bit easier
14833 on the eyes and to debug
14834 - Removed XKeyboardState (moved to XplatUIX11.cs)
14835 - Moved Keyboard properties into the properties region
14837 * Control.cs (get_Region): Control.CreateGraphics is the appropriate
14838 call to get a graphics context for our control
14840 * XplatUIOSX.cs: Added empty overrides for the new caret functions
14842 * TreeView.cs: Fixed bug. No matter what color was set it would always
14843 return SystemColors.Window
14845 * XplatUIWin32.cs: Implemented caret overrides
14847 2004-12-10 Jordi Mas i Hernandez <jordi@ximian.com>
14849 * ListBox.cs: fire events, implement missing methods and properties,
14852 2004-12-10 John BouAntoun <jba-mono@optusnet.com.au>
14854 * MonthCalendar.cs: invalidation bug fixing
14855 * ThemeWin32Classic.cs: paint fixing
14857 2004-12-09 Geoff Norton <gnorton@customerdna.com>
14859 * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
14860 prepare the CGContextRef there now.
14862 2004-12-09 John BouAntoun <jba-mono@optusnet.com.au>
14864 * MonthCalendar.cs:
14865 - optimisationL only invalidate areas that have changed
14866 * ThemeWin32Classic.cs:
14867 - only paint parts that intersect with clip_area
14869 2004-12-09 Peter Bartok <pbartok@novell.com>
14871 * Application.cs: Undid changes from r37004 which cause problems
14874 2004-12-09 Ravindra <rkumar@novell.com>
14876 * ToolBar.cs: Added support for displaying ContextMenu
14877 attached to a button on ToolBar.
14878 * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
14881 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
14883 * Label.cs: autosize works in text change and removes unnecessary
14886 2004-12-09 Jordi Mas i Hernandez <jordi@ximian.com>
14888 * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
14891 2004-12-08 Geoff Norton <gnorton@customerdna.com>
14893 * XplatUIOSX.cs: Added mouse move/click/grab support
14894 Remove some debugging WriteLines not needed anymore.
14895 Add window resizing/positioning.
14896 Fix visibility on reparenting.
14898 2004-12-08 Peter Bartok <pbartok@novell.com>
14900 * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
14902 2004-12-07 Geoff Norton <gnorton@customerdna.com>
14904 * XplatUIOSX.cs: Initial checkin
14905 * XplatUI.cs: Use the Quartz driver if the environment is set to use it
14907 2004-12-03 Ravindra <rkumar@novell.com>
14909 * ListView.cs: Added some keybindings and fixed scrolling.
14910 ScrollBars listen to ValueChanged event instead of Scroll
14911 Event. This would let us take care of all changes being
14912 done in the scrollbars' values programmatically or manually.
14913 * ListView.cs (CanMultiselect): Added a check for shift key.
14914 * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
14915 * ListViewItem.cs (Clone): Fixed. We need to make a copy
14916 of ListViewSubItemCollection as well.
14918 2004-12-06 Peter Bartok <pbartok@novell.com>
14920 * Control.cs (Parent): Added check and exception to prevent
14923 2004-12-03 Jordi Mas i Hernandez <jordi@ximian.com>
14925 * ListBox.cs: implemented clipping, selection single and multiple,
14928 2004-12-03 Ravindra <rkumar@novell.com>
14930 * ListView.cs (ListView_KeyDown):
14931 * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
14932 when CTRL key is pressed.
14933 * ListViewItem.cs (Selected): Fixed setting the property.
14935 2004-12-03 Marek Safar <marek.safar@seznam.cz>
14937 * Application.cs (OnThreadException): Use ThreadExceptionDialog.
14939 * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
14940 MinimizeBox, ShowInTaskbar, TopMost properties.
14942 * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
14943 will be implemented).
14945 2004-12-03 Marek Safar <marek.safar@seznam.cz>
14947 * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
14949 * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
14952 * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
14954 * TreeView.cs: BackColor is Colors.Window.
14956 2004-12-01 Jackson Harper <jackson@ximian.com>
14958 * TreeView.cs: When resizing the tree if the user is making it
14959 smaller we don't get expose events, so we need to handle adding
14960 the horizontal scrollbar in the size changed handler as well as
14961 the expose handler.
14963 2004-12-02 Jordi Mas i Hernandez <jordi@ximian.com>
14965 * DrawItemState.cs: fixes wrong enum values
14967 2004-12-01 Jackson Harper <jackson@ximian.com>
14969 * TreeView.cs: Resize the hbar as well as the vbar on resize.
14971 2004-12-01 Jackson Harper <jackson@ximian.com>
14973 * NodeLabelEditEventArgs.cs:
14974 * NodeLabelEditEventHandler.cs:
14975 * OpenTreeNodeEnumerator.cs:
14977 * TreeNodeCollection.cs:
14979 * TreeViewAction.cs:
14980 * TreeViewCancelEventArgs.cs:
14981 * TreeViewCancelEventHandler.cs:
14982 * TreeViewEventArgs.cs:
14983 * TreeViewEventHandler.cs: Initial implementation.
14985 2004-12-01 Ravindra <rkumar@novell.com>
14987 * ListView.cs (CalculateListView): Fixed scrolling related
14988 calculations. Also, removed some debug statements from other
14990 * ListViewItem.cs: Changed access to 'selected' instance variable
14991 from private to internal.
14992 * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
14994 2004-12-01 Jordi Mas i Hernandez <jordi@ximian.com>
14996 * ThemeWin32Classic.cs: remove cache of brush and pens for
14997 specific controls and use the global system, fixes scrollbutton
14998 bugs (for small sizes, disabled, etc)
15000 * ScrollBar.cs: does not show the thumb for very small controls
15001 (as MS) and allow smaller buttons that the regular size
15003 2004-12-01 Miguel de Icaza <miguel@ximian.com>
15005 * UpDownBase.cs: Add abstract methods for the interface.
15006 Add new virtual methods (need to be hooked up to TextEntry when it
15008 Add override methods for most features.
15009 Computes the size, forces the height of the text entry.
15011 * NumericUpDown.cs: Put here the current testing code.
15013 * Set eol-style property on all files that do not have mixed line
15014 endings, to minimize the future problems. There are still a few
15015 files with mixed endings, and someone should choose whether they
15016 want to move it or not.
15018 2004-11-30 Jordi Mas i Hernandez <jordi@ximian.com>
15020 * MonthCalendar.cs, ListView.cs: use Theme colours instead of
15023 2004-11-30 Ravindra <rkumar@novell.com>
15025 * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
15026 drawing and replaced use of SystemColors by theme colors.
15027 * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
15028 * ListView.cs (ListViewItemCollection.Add): Throw exception when
15029 same ListViewItem is being added more than once.
15031 2004-11-30 John BouAntoun <jba-mono@optusnet.com.au>
15033 * MonthCalendar.cs:
15034 - ControlStyles love to make the control not flicker
15036 2004-11-30 Peter Bartok <pbartok@novell.com>
15038 * CharacterCasing.cs: Added
15040 2004-11-29 Peter Bartok <pbartok@novell.com>
15042 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
15043 TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
15044 I am removing these files as they conflict with already completed
15045 work. While it is fantastic to get contributions to MWF, I
15046 respectfully ask that everyone please coordinate their contributions
15047 through mono-winforms-list or #mono-winforms at this time. We're
15048 explicitly avoiding stubbing and don't want controls that don't have
15049 their basic functionality implemented in svn. Please also see
15050 http://www.mono-project.com/contributing/winforms.html
15053 2004-11-29 Marek Safar <marek.safar@seznam.cz>
15055 * Application.cs (ModalRun): Don't hang after exit.
15057 * Theme.cs: New TreeViewDefaultSize property.
15059 * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
15060 with less hardcoded SystemColors constant.
15061 Implemented TreeViewDefaultSize.
15063 * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
15064 TreeViewAction.cs, TreeViewEventArgs.cs: New files.
15067 2004-11-29 John BouAntoun <jba-mono@optusnet.com.au>
15069 * MonthCalendar.cs:
15070 - Fix NextMonthDate and PrevMonthDate click moving calendar
15072 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
15074 * MonthCalendar.cs:
15075 - Fix usage of ScrollChange Property when scrolling months
15077 2004-11-26 Jordi Mas i Hernandez <jordi@ximian.com>
15079 * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
15080 - Fixes menu destroying
15081 - Support adding and removing items on already created menus
15083 2004-11-26 John BouAntoun <jba-mono@optusnet.com.au>
15085 * MonthCalendar.cs:
15086 - Re-worked all bolded dates handling to match win32
15087 * ThemeWin32Classic.cs:
15088 - Fixed rendering with bolded dates
15090 2004-11-25 Jordi Mas i Hernandez <jordi@ximian.com>
15092 * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
15093 - Horizontal scroolbar
15098 2004-11-25 John BouAntoun <jba-mono@optusnet.com.au>
15100 * MonthCalendar.cs:
15101 - Fix Usage of MaxSelectionCount from SelectionRange
15102 - Fixed Shift + Cursor Selection
15103 - Fixed Shift + (Pg up/Pg dn, Home/End) selection
15104 - Fixed normal cursor selection to be compat with win32
15105 - Fixed Shift + Mouse Click selection
15107 2004-11-24 Peter Bartok <pbartok@novell.com>
15109 * XplatUI.cs (DispatchMessage): Switched to return IntPtr
15110 * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
15112 - CreatedKeyBoardMsg now updates keystate with Alt key
15113 - Added workaround for timer crash to CheckTimers, Jackson will
15114 develop a proper fix and check in later
15115 - Implemented DispatchMessage
15116 - Removed calling the native window proc from GetMessage (call
15117 now moved to DispatchMessage)
15119 * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
15120 the keydata (Fixes bug #69831)
15123 - (DispatchMessage): Switched to return IntPtr
15124 - Added DllImport for SetFocus
15126 2004-11-24 Ravindra <rkumar@novell.com>
15128 * ThemeWin32Classic.cs: Fixed ListView border and checkbox
15129 background drawing.
15130 * ListViewItem.cs: Fixed various properties, calculations
15131 and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
15132 * ListView.cs: Fixed calculations, BackColor, ForeColor properties
15133 and some internal properties. Fixed MouseDown handler and Paint
15136 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
15138 * MonthCalendar.cs: Add TitleMonth ContextMenu handling
15140 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
15142 * ContainerControl.cs: correct accidental check in of local changes
15144 2004-11-24 John BouAntoun <jba-mono@optusnet.com.au>
15146 * ThemeWin32Classic.cs:
15147 - Fixed Drawing Last month in grid (sometimes not showing)
15148 * MonthCalendar.cs:
15149 - Fixed title width calculation bug (makeing title small)
15151 2004-11-23 Peter Bartok <pbartok@novell.com>
15154 - Added generation of WM_MOUSEHOVER event
15155 - Added missing assignment of async_method atom
15156 - Fixed WM_ERASEBKGND; now only redraws the exposed area
15158 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
15160 * ThemeWin32Classic.cs:
15161 - Fixed Drawing of today circle when showtodaycircle not set
15162 - fixed drawing of first and last month in the grid (gay dates)
15163 * MonthCalendar.cs:
15164 - Fixed Drawing of today circle
15165 - Fixed drawing of grady dates
15166 - Fixed HitTest for today link when ShowToday set to false
15167 - Fixed DefaultSize to obey ShowToday
15169 2004-11-23 John BouAntoun <jba-mono@optusnet.com.au>
15171 * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
15172 * System.Windows.Forms/Theme.cs
15173 * MonthCalendar.cs: added for MonthCalendar
15174 * SelectionRange.cs: added for MonthCalendar
15175 * Day.cs: added for MonthCalendar: added for MonthCalendar
15176 * DateRangeEventArgs.cs: added for MonthCalendar
15177 * DateRangeEventHandler.cs: added for MonthCalendar
15179 2004-11-22 Ravindra <rkumar@novell.com>
15181 * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
15184 2004-11-22 Miguel de Icaza <miguel@ximian.com>
15186 * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
15189 * NumericUpDown.cs: Added new implementation.
15190 * UpDownBase.cs: Added new implementation.
15192 * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
15195 * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
15198 * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
15201 2004-11-21 Miguel de Icaza <miguel@ximian.com>
15203 * Timer.cs (Dispose): Should call the base dispose when
15206 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
15208 * ScrollBar.cs: updates thumb position when max, min or increment
15211 2004-11-21 Ravindra <rkumar@novell.com>
15213 * ListView.cs: Implemented item selection, activation and
15214 column header style. Fixed properties to do a redraw, if
15215 required. Added support for MouseHover, DoubleClick, KeyDown
15216 and KeyUp event handling and some minor fixes.
15217 * ListViewItem.cs: Fixed constructor.
15218 * ThemeWin32Classic.cs: Improved drawing for ListView.
15220 2004-11-19 Jordi Mas i Hernandez <jordi@ximian.com>
15222 * ThemeWin32Classic.cs: initial listbox drawing code
15223 * DrawMode.cs: new enumerator
15224 * ListControl.cs: stubbed class
15225 * ListBox.cs: initial implementation
15226 * Theme.cs: new methods definitions
15227 * SelectionMode.cs: new enumerator
15229 2004-11-17 Peter Bartok <pbartok@novell.com>
15231 * XplatUIWin32.cs: Added double-click events to the class style
15232 * Control.cs (WndProc):
15233 - Added handling of click-count to MouseDown/ MouseUp events.
15234 - Added handling of middle and right mouse buttons
15235 - Removed old debug code
15237 2004-11-17 Jackson Harper <jackson@ximian.com>
15239 * XplatUIX11.cs: Use the new Mono.Unix namespace.
15241 2004-11-17 Ravindra <rkumar@novell.com>
15243 * ListView.cs: Added event handling for MouseMove/Up/Down.
15244 * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
15245 * ThemeWin32Classic.cs: We need to clear the graphics context and
15246 draw column header in a proper state.
15249 2004-11-17 Jordi Mas i Hernandez <jordi@ximian.com>
15251 * Menu.cs: fixes signature
15253 2004-11-16 Peter Bartok <pbartok@novell.com>
15255 * XplatUIX11.cs (GetMessage): Implemented generation of
15256 double click mouse messages
15258 2004-11-12 Jordi Mas i Hernandez <jordi@ximian.com>
15260 * Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
15263 2004-11-11 Peter Bartok <pbartok@novell.com>
15265 * HandleData.cs: Added Visible property
15266 * XplatUIX11.cs (IsVisible): Now uses Visible property from
15268 * XplatUIX11.cs: Removed old debug leftovers
15269 * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
15270 * Control.cs (WndProc): Removed old debug leftovers,
15271 streamlined handling of WM_WINDOWPOSCHANGED, removed un-
15272 needed WM_SIZE handling
15274 2004-11-11 Jackson Harper <jackson@ximian.com>
15276 * OwnerDrawPropertyBag.cs:
15277 * TreeViewImageIndexConverter.cs: Initial implementation
15279 2004-11-10 Jackson Harper <jackson@ximian.com>
15281 * ThemeWin32Classic.cs:
15282 * TabControl.cs: instead of moving tabs by the slider pos just
15283 start drawing at the tab that is offset by the slider. This way
15284 scrolling always moves by exactly one tab.
15286 2004-11-10 Jackson Harper <jackson@ximian.com>
15288 * TabControl.cs: You can only scroll left when the slider has
15289 already ben moved right.
15291 2004-11-10 Jackson Harper <jackson@ximian.com>
15293 * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
15296 2004-11-10 Jackson Harper <jackson@ximian.com>
15298 * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
15301 2004-11-09 Jackson Harper <jackson@ximian.com>
15303 * TabControl.cs (CalcXPos): New helper method so we can determine
15304 the proper place to start drawing vertical tabs.
15305 * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
15307 2004-11-09 Jackson Harper <jackson@ximian.com>
15309 * TabControl.cs: Calculate sizing and rects for left aligned tabs.
15310 * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
15311 and Bottom, left and right are illegal values for this and
15312 multiline is enabled when the alignment is set to left or right.
15313 (DrawTab): Each alignment block should draw the text itself now
15314 because Left requires special love. Also add rendering for Left
15317 2004-11-09 Jordi Mas i Hernandez <jordi@ximian.com>
15319 * Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
15320 does not destroy the windows, removes debugging messages
15322 2004-11-09 jba <jba-mono@optusnet.com.au>
15324 * ThemeWin32Classic.cs
15325 (DrawButtonBase): Fix verticle text rect clipping in windows
15326 (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
15327 rendering and incorrect text rect clipping
15328 (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
15329 rendering and incorrect text rect clipping
15331 2004-11-08 Jackson Harper <jackson@ximian.com>
15333 * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
15334 bottom when they are bottom aligned so the bottoms of the tabs get
15336 * TabControl.cs (DropRow): Move rows up instead of down when the
15337 tab control is bottom aligned.
15339 2004-11-08 13:59 pbartok
15342 - Added handling for various window styles
15343 - Added handling for popup windows
15344 - Added SetTopmost handling
15346 2004-11-08 13:55 pbartok
15349 - Added argument to SetTopmost method
15350 - Fixed broken ClientToScreen function
15352 2004-11-08 13:53 pbartok
15354 * XplatUIStructs.cs:
15355 - Added missing WS_EX styles
15357 2004-11-08 13:53 pbartok
15359 * XplatUI.cs, XplatUIDriver.cs:
15360 - Added argument to SetTopmost
15362 2004-11-08 13:52 pbartok
15365 - Added XSetWindowAttributes structure
15366 - Improved XWindowAttributes structure
15367 - Added SetWindowValuemask enum
15368 - Added window creation arguments enum
15369 - Added gravity enum
15370 - Added Motif hints structure
15371 - Added various Motif flags and enums
15372 - Added PropertyMode enum for property functions
15374 2004-11-08 13:50 pbartok
15377 - Fixed arguments for updated SetTopmost method
15379 2004-11-08 13:49 pbartok
15382 - Fixed arguments for updated SetTopmost function
15383 - Fixed usage of PointToClient
15385 2004-11-08 13:44 pbartok
15388 - Added Clipping of children and siblings
15390 2004-11-08 13:41 pbartok
15393 - Removed SetMenuBarWindow call. We do this in Form.cs
15395 2004-11-08 13:40 jackson
15397 * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
15398 scrolling jimmi in the correct location with bottom aligned tabs
15400 2004-11-08 13:36 pbartok
15402 * ContainerControl.cs:
15403 - Implemented BindingContext
15404 - Implemented ParentForm
15406 2004-11-08 12:46 jackson
15408 * TabControl.cs: Put bottom rendered tabs in the right location
15410 2004-11-08 07:15 jordi
15412 * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
15415 2004-11-05 17:30 jackson
15417 * TabControl.cs: When selected tabs are expanded make sure they
15418 don't go beyond the edges of the tab control
15420 2004-11-05 14:57 jackson
15422 * TabControl.cs: Reset show_slider so if the control is resized to
15423 a size where it is no longer needed it's not displayed anymore
15425 2004-11-05 13:16 jackson
15427 * TabControl.cs: Make tab pages non visible when added to the
15430 2004-11-05 12:42 jackson
15432 * TabControl.cs: Implement SizeMode.FillToRight
15434 2004-11-05 12:16 jackson
15436 * Control.cs: Do not call CreateHandle if the handle is already
15439 2004-11-05 11:46 jackson
15441 * TabControl.cs: Remove superflous call to CalcTabRows
15443 2004-11-05 09:07 jackson
15445 * XplatUIX11.cs: Update for Mono.Posix changes
15447 2004-11-05 07:00 ravindra
15449 * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
15452 2004-11-04 22:47 jba
15454 * ThemeWin32Classic.cs:
15455 - Fix Button rendering for FlatStyle = Flat or Popup
15456 - Fix RadioButton and CheckBox rendering when Appearance = Button
15457 (normal and flatstyle).
15458 - Correct outer rectangle color when drawing focus rectangle
15459 - Adjust button bounds to be 1 px smaller when focused
15460 - Make button not draw sunken 3d border when pushed (windows compat)
15461 - Fix CPDrawBorder3D to not make bottom right hand corner rounded
15462 - Offset the text in RadioButton and Checkbox when being rendered as
15464 - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
15466 - Fixed disabled rendering for colored flatstyle radiobuttons (both)
15467 - Fixed disabled text rendering for normally rendered radiobuttons
15469 2004-11-04 10:26 jackson
15471 * TabControl.cs: Recalculate tab rows when resizing
15473 2004-11-04 07:47 jordi
15475 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
15476 collection completion, drawing issues, missing features
15478 2004-11-04 05:03 ravindra
15481 - We need to recalculate the Thumb area when
15482 LargeChange/maximum/minimum values are changed.
15483 - We set the 'pos' in UpdatePos() method to minimum, if it's less
15484 than minimum. This is required to handle the case if large_change is
15485 more than max, and use LargeChange property instead of large_change
15487 - We return max+1 when large_change is more than max, like MS does.
15489 2004-11-04 04:29 ravindra
15491 * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
15492 - Changed default value signatures (prefixed all with ListView).
15493 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
15495 - Fixed calculations for ListViewItem and implemented Clone()
15498 2004-11-04 04:26 ravindra
15500 * Theme.cs, ThemeWin32Classic.cs:
15501 - Changed default ListView values signatures (prefixed all with
15503 - Fixed default size values for VScrollBar and HScrollBar.
15504 - Fixed DrawListViewItem method.
15506 2004-11-04 04:05 ravindra
15508 * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
15510 2004-11-04 04:04 ravindra
15512 * ImageList.cs: Implemented the missing overload for Draw method.
15514 2004-11-03 19:29 jackson
15516 * TabControl.cs: Handle dropping rows on selection properly
15518 2004-11-03 11:59 jackson
15520 * TabControl.cs: remove debug code
15522 2004-11-03 11:52 jackson
15524 * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
15525 the scrolly widgerywoo
15527 2004-11-02 13:52 jackson
15529 * TabControl.cs: Resize the tab pages and tabs when the tab control
15532 2004-11-02 13:40 jackson
15534 * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
15535 selected tab to the bottom
15537 2004-11-02 13:39 jackson
15539 * TabPage.cs: Store the tab pages row
15541 2004-11-02 12:33 jordi
15543 * MenuItem.cs: fixes handle creation
15545 2004-11-02 11:42 jackson
15547 * TabControl.cs: signature fix
15549 2004-11-02 08:56 jackson
15551 * TabControl.cs: Calculate whether the tab is on an edge properly.
15552 Remove top secret debugging code
15554 2004-11-01 19:57 jackson
15556 * TabControl.cs: Add click handling, and proper sizing
15558 2004-11-01 19:47 jackson
15560 * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
15563 2004-11-01 19:39 jackson
15565 * TabPage.cs: add internal property to store the bounds of a tab
15568 2004-10-30 04:23 ravindra
15570 * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
15573 2004-10-30 04:21 ravindra
15575 * ListView.cs, ListViewItem.cs: Added support for scrolling and
15576 fixed calculations.
15578 2004-10-30 03:06 pbartok
15581 - Removed extension of DllImported libs
15583 2004-10-29 09:55 jordi
15585 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
15586 navigation, itemcollection completion, menu fixes
15588 2004-10-27 22:58 pbartok
15591 - Now throws a nice error message when no X display could be opened
15593 2004-10-26 13:51 jordi
15595 * ListView.cs: removes warning
15597 2004-10-26 03:55 ravindra
15599 * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
15600 ThemeWin32Classic.cs: Some formatting for my last checkins.
15602 2004-10-26 03:36 ravindra
15604 * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
15605 control and default values.
15607 2004-10-26 03:35 ravindra
15609 * Theme.cs: Added some default values for ListView control.
15611 2004-10-26 03:33 ravindra
15613 * ToolBar.cs: ToolBar should use the user specified button size, if
15614 there is any. Added a size_specified flag for the same.
15616 2004-10-26 03:33 ravindra
15618 * ColumnHeader.cs: Added some internal members and calculations for
15621 2004-10-26 03:32 ravindra
15623 * ListViewItem.cs: Calculations for ListViewItem.
15625 2004-10-26 03:31 ravindra
15627 * ListView.cs: Added some internal members and calculations for
15630 2004-10-22 13:31 jordi
15632 * MenuAPI.cs: speedup menus drawing
15634 2004-10-22 13:16 jackson
15636 * XplatUIX11.cs: Make sure to update exposed regions when adding an
15639 2004-10-22 11:49 jackson
15643 2004-10-22 11:41 jackson
15645 * Control.cs: Check to see if the window should have its background
15646 repainted by X when drawing.
15648 2004-10-22 11:31 jackson
15650 * XplatUIX11.cs: When invalidating areas only use XClearArea if
15651 clear is true, this way we do not get flicker from X repainting the
15654 2004-10-22 11:28 jackson
15656 * XEventQueue.cs: Queue properly
15658 2004-10-21 09:38 jackson
15660 * XEventQueue.cs: Fix access modifier
15662 2004-10-21 09:36 jackson
15664 * XEventQueue.cs: Don't loose messages
15666 2004-10-21 09:22 jackson
15668 * XEventQueue.cs: Don't loose messages
15670 2004-10-20 04:15 jordi
15672 * BootMode.cs: enum need it by SystemInfo
15674 2004-10-19 21:58 pbartok
15677 - Small sanity check
15679 2004-10-19 21:56 pbartok
15682 - Added private FormParentWindow class which acts as the container
15683 for our form and as the non-client area where menus are drawn
15684 - Added/Moved required tie-ins to Jordi's menus
15685 - Fixed/Implemented the FormStartPosition functionality
15687 2004-10-19 21:52 pbartok
15690 - Removed unneeded locals
15691 - Added code to all size and location properties to understand and
15692 deal with the parent container of Form
15694 2004-10-19 21:33 pbartok
15697 - Fixed to deal with new Form subclasses for menus
15699 2004-10-19 17:48 jackson
15701 * XEventQueue.cs: commit correct version of file
15703 2004-10-19 16:50 jackson
15705 * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
15707 2004-10-19 16:15 jordi
15709 * MenuAPI.cs: MenuBarCalcSize returns the height
15711 2004-10-19 08:31 pbartok
15714 - Added missing call to PreProcessMessage before calling OnXXXKey
15717 2004-10-19 00:04 ravindra
15719 * ToolTip.cs: Fixed constructor.
15721 2004-10-18 09:31 jordi
15723 * MenuAPI.cs: menuitems in menubars do not have shortcuts
15725 2004-10-18 09:26 jordi
15727 * MenuItem.cs: fixes MenuItem class signature
15729 2004-10-18 08:56 jordi
15731 * MenuAPI.cs: prevents windows from showing in the taskbar
15733 2004-10-18 00:28 ravindra
15735 * ToolTip.cs: Suppressed a warning message.
15737 2004-10-18 00:27 ravindra
15739 * Control.cs: Default value of visible property must be true.
15741 2004-10-17 23:19 pbartok
15744 - Complete implementation
15746 2004-10-17 23:19 pbartok
15749 - Added EnableWindow method
15750 - Added SetModal stub
15751 - Added generation of WM_ACTIVATE message (still needs testing)
15752 - Added SetTopMost stub
15753 - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
15755 2004-10-17 23:17 pbartok
15758 - Removed VirtualKeys to XplatUIStructs
15759 - Implemented SetTopMost method
15760 - Implemented EnableWindow method
15761 - Bugfix in ScreenToClient()
15762 - Bugfixes in ClientToScreen()
15764 2004-10-17 22:51 pbartok
15766 * XplatUIStructs.cs:
15767 - Added WS_EX styles to WindowStyles enumeration
15769 2004-10-17 22:50 pbartok
15771 * XplatUI.cs, XplatUIDriver.cs:
15772 - Added method for enabling/disabling windows
15773 - Added method for setting window modality
15774 - Added method for setting topmost window
15776 2004-10-17 22:49 pbartok
15778 * ThemeWin32Classic.cs:
15779 - Added ToolTip drawing code
15781 2004-10-17 22:49 pbartok
15784 - Added ToolTip abstracts
15786 2004-10-17 22:47 pbartok
15789 - Fixed Form.ControlCollection to handle owner relations
15790 - Added Owner/OwnedForms handling
15791 - Implemented Z-Ordering for owned forms
15792 - Removed unneeded private overload of ShowDialog
15793 - Fixed ShowDialog, added the X11 incarnation of modal handling (or
15795 - Fixed Close(), had wrong default
15796 - Added firing of OnLoad event
15797 - Added some commented out debug code for Ownership handling
15799 2004-10-17 22:16 pbartok
15802 - Fixed/implemented flat list of controls
15804 2004-10-17 22:14 pbartok
15807 - Added code to simulate modal dialogs on Win32
15809 2004-10-17 16:11 jordi
15811 * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
15814 2004-10-17 13:39 jordi
15816 * MenuAPI.cs: menu drawing fixes
15818 2004-10-15 09:10 ravindra
15820 * StructFormat.cs: General Enum.
15822 2004-10-15 09:09 ravindra
15824 * SizeGripStyle.cs: Enum for Form.
15826 2004-10-15 09:08 ravindra
15828 * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
15829 in Theme for ListView.
15831 2004-10-15 09:06 ravindra
15833 * ColumnHeader.cs: Flushing some formatting changes.
15835 2004-10-15 09:05 ravindra
15837 * ListViewItem.cs: Implemented GetBounds method and fixed coding
15840 2004-10-15 09:03 ravindra
15842 * ListView.cs: Implemented Paint method and fixed coding style.
15844 2004-10-15 07:34 jordi
15846 * MenuAPI.cs: fix for X11
15848 2004-10-15 07:32 ravindra
15850 * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
15851 - Renamed Paint() method to Draw() for clarity. Also, moved
15852 DrawImage() to OnPaint().
15854 2004-10-15 07:25 ravindra
15856 * CheckBox.cs, RadioButton.cs:
15857 - Removed Redraw (), we get it from ButtonBase.
15858 - Implemented Paint (), to do class specific painting.
15860 2004-10-15 07:16 ravindra
15863 - Redraw () is not virtual now.
15864 - Added an internal virtual method Paint (), so that
15865 derived classes can do their painting on their own.
15866 - Modified OnPaint () to call Paint ().
15868 2004-10-15 06:43 jordi
15870 * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
15871 MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
15873 2004-10-15 00:30 ravindra
15876 - MessageBox on windows does not have min/max buttons.
15877 This change in CreateParams fixes this on Windows. We
15878 still need to implement this windowstyle behavior in
15881 2004-10-14 05:14 ravindra
15884 - Changed Redraw () to do a Refresh () always.
15885 - Fixed the MouseMove event handling when mouse is pressed,
15886 ie drag event handling.
15887 - Replaced the usage of ToolBarButton.Pressed property to
15888 ToolBarButton.pressed internal variable.
15890 2004-10-14 05:10 ravindra
15892 * ToolBarButton.cs:
15893 - Added an internal member 'inside' to handle mouse move
15894 with mouse pressed ie mouse drag event.
15895 - Changed 'Pressed' property to return true only when
15896 'inside' and 'pressed' are both true.
15897 - Some coding style love.
15899 2004-10-14 00:17 ravindra
15901 * Form.cs: Fixed class signature. ShowDialog (Control) is not a
15904 2004-10-14 00:15 ravindra
15906 * ButtonBase.cs: Redraw () related improvements.
15908 2004-10-14 00:14 ravindra
15910 * MessageBox.cs: Moved InitFormSize () out of Paint method and
15911 removed unnecessary calls to Button.Show () method.
15913 2004-10-13 17:50 pbartok
15917 - Removed destroying of window until we solve the problem of X
15918 destroying the window before us on shutdown
15920 2004-10-13 16:32 pbartok
15923 - Now Redraws on MouseUp for FlatStyle Flat and Popup
15925 2004-10-13 14:18 pbartok
15928 - Added code to destroy the X window
15930 2004-10-13 14:18 pbartok
15933 - Added code to destroy a window
15935 2004-10-13 14:12 pbartok
15938 - Added the Redraw on Resize that got dropped in the last rev
15940 2004-10-13 09:06 pbartok
15942 * ThemeWin32Classic.cs:
15943 - Path from John BouAntoun:
15944 * Fix check rendering (centre correctly for normal style, offset
15945 correctly for FlatStyle).
15946 * Fix border color usage (use backcolor) for FlatStyle.Popup
15947 * Use checkbox.Capture instead of checkbox.is_pressed when
15948 rendering flatstyle states.
15950 2004-10-12 21:48 pbartok
15952 * ThemeWin32Classic.cs:
15953 - Removed all occurences of SystemColors and replaced them with the
15954 matching theme color
15956 2004-10-12 21:41 pbartok
15958 * ThemeWin32Classic.cs:
15959 - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
15960 him using the function for flatstyle drawing
15961 - Changed functions to use the new version of CPDrawBorder3D
15963 2004-10-12 21:15 pbartok
15966 - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
15967 match MS documentation. They need to return defined colors if the
15968 passed color matches the configured control color. Thanks to John
15969 BouAntoun for pointing this out.
15971 2004-10-12 20:57 pbartok
15974 - Fix from John BouAntoun: Raise ForeColorChanged event when text
15977 2004-10-12 20:46 pbartok
15980 - Fix from John BouAntoun: Now properly sets the Appearance property
15982 2004-10-12 20:45 pbartok
15984 * ThemeWin32Classic.cs:
15985 - Fixes from John BouAntoun: now handles forecolors and backcolors
15986 for flatstyle rendered controls much better; It also fixes normal
15987 checkbox rendering when pushed or disabled.
15989 2004-10-08 02:50 jordi
15991 * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
15994 2004-10-07 08:56 jordi
15996 * ThemeWin32Classic.cs: Removes deletion of cached brushes
15998 2004-10-06 03:59 jordi
16000 * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
16001 XplatUIWin32.cs: removes warnings from compilation
16003 2004-10-05 12:23 jackson
16005 * RadioButton.cs: Fix ctor
16007 2004-10-05 11:10 pbartok
16010 - Partial implementation by Benjamin Dasnois
16012 2004-10-05 10:15 jackson
16014 * ThemeWin32Classic.cs: Improve rendering of the radio button patch
16017 2004-10-05 03:07 ravindra
16020 - Removed a private method, Draw ().
16021 - Fixed the ButtonDropDown event handling.
16022 - Fixed MouseMove event handling.
16024 2004-10-05 03:04 ravindra
16026 * ThemeWin32Classic.cs:
16027 - Added DrawListView method and ListViewDefaultSize property.
16028 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
16029 - Changed DOS style CRLF to Unix format (dos2unix).
16031 2004-10-05 03:03 ravindra
16034 - Added DrawListView method and ListViewDefaultSize property.
16036 2004-10-05 02:42 ravindra
16038 * ToolBarButton.cs: Added an internal member dd_pressed to handle
16039 clicks on DropDown arrow.
16041 2004-10-04 22:56 jackson
16043 * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
16044 ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
16045 Control handle the buffers, derived classes should not have to
16046 CreateBuffers themselves.
16048 2004-10-04 21:20 jackson
16050 * StatusBar.cs: The control handles resizing the buffers now.
16052 2004-10-04 21:18 jackson
16054 * Control.cs: When resizing the buffers should be invalidated. This
16055 should be handled in Control not in derived classes.
16057 2004-10-04 14:45 jackson
16061 2004-10-04 02:14 pbartok
16063 * LeftRightAlignment.cs:
16066 2004-10-04 01:09 jordi
16068 * ThemeWin32Classic.cs: fixes right button position causing right
16069 button not showing on horizontal scrollbars
16071 2004-10-02 13:12 pbartok
16074 - Simplified the Invalidate method by using an X call instead of
16075 generating the expose ourselves
16076 - Added an expose when the window background is changed
16077 - Implemented ClientToScreen method
16079 2004-10-02 13:08 pbartok
16082 - Added Win32EnableWindow method (test for implementing modal
16084 - Added ClientToScreen method and imports
16086 2004-10-02 13:07 pbartok
16088 * XplatUI.cs, XplatUIDriver.cs:
16089 - Added ClientToScreen coordinate translation method
16091 2004-10-02 13:06 pbartok
16093 * KeyPressEventArgs.cs:
16094 - Fixed access level for constructor
16096 2004-10-02 13:06 pbartok
16099 - Changed access level for the window_collection hash table
16101 2004-10-02 13:05 pbartok
16104 - Added KeyPreview property
16105 - Added Menu property (still incomplete, pending Jordi's menu work)
16106 - Implemented ProcessCmdKey
16107 - Implemented ProcessDialogKey
16108 - Implemented ProcessKeyPreview
16110 2004-10-02 13:02 pbartok
16113 - Added private method to get the Control object from the window
16115 - Implemented ContextMenu property
16116 - Implemented PointToScreen
16117 - Implemented PreProcessMessage
16118 - Implemented IsInputChar
16119 - Implemented IsInputKey
16120 - Implemented ProcessCmdKey
16121 - Completed ProcessKeyEventArgs
16122 - Fixed message loop to call the proper chain of functions on key
16124 - Implemented ProcessDialogChar
16125 - Implemented ProcessDialogKey
16126 - Implemented ProcessKeyMessage
16127 - Implemented ProcessKeyPreview
16128 - Added RaiseDragEvent stub (MS internal method)
16129 - Added RaiseKeyEvent stub (MS internal method)
16130 - Added RaiseMouseEvent stub (MS Internal method)
16131 - Added RaisePaintEvent stub (MS Internal method)
16132 - Added ResetMouseEventArgs stub (MS Internal method)
16133 - Implemented RtlTranslateAlignment
16134 - Implemented RtlTranslateContent
16135 - Implemented RtlTranslateHorizontal
16136 - Implemented RtlTranslateLeftRight
16137 - Added generation of KeyPress event
16139 2004-10-02 05:57 ravindra
16141 * ListViewItem.cs: Added attributes.
16143 2004-10-02 05:32 ravindra
16145 * ListView.cs: Added attributes.
16147 2004-10-01 11:53 jackson
16149 * Form.cs: Implement the Close method so work on MessageBox can
16152 2004-09-30 14:06 pbartok
16157 2004-09-30 11:34 jackson
16159 * RadioButton.cs: Fix typo. Patch by John BouAntoun.
16161 2004-09-30 07:26 ravindra
16163 * ListViewItemConverter.cs: Converter for ListViewItem.
16165 2004-09-30 07:26 ravindra
16167 * SortOrder.cs: Enum for ListView control.
16169 2004-09-30 07:25 ravindra
16171 * ColumnHeader.cs: Supporting class for ListView control.
16173 2004-09-30 07:24 ravindra
16175 * ListView.cs, ListViewItem.cs: Initial implementation.
16177 2004-09-30 07:20 ravindra
16179 * ItemActivation.cs: Enum for ListView Control.
16181 2004-09-29 20:29 pbartok
16184 - Added lookup of pixel value for background color; tries to get a
16185 color 'close' to the requested color, it avoids having to create a
16186 colormap. Depending on the display this could mean the used color
16187 is slightly off the desired color. Might have to change it to a more
16188 resource intensive colormap approach, but it will work as a
16189 workaround to avoid red screens.
16191 2004-09-29 14:27 jackson
16193 * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
16195 2004-09-28 12:44 pbartok
16197 * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
16198 HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
16199 ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
16200 Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
16201 TrackBar.cs, VScrollBar.cs:
16202 - Streamlined Theme interfaces:
16203 * Each DrawXXX method for a control now is passed the object for
16204 the control to be drawn in order to allow accessing any state the
16205 theme might require
16207 * ControlPaint methods for the theme now have a CP prefix to avoid
16208 name clashes with the Draw methods for controls
16210 * Every control now retrieves it's DefaultSize from the current
16213 2004-09-28 12:17 jackson
16215 * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
16218 2004-09-24 14:57 jackson
16220 * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
16221 Gives us a nice little performance boost.
16223 2004-09-24 12:02 jackson
16225 * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
16226 TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
16227 Control and supporting classes. Initial checkin
16229 2004-09-23 13:08 jackson
16231 * Form.cs: Temp build fixage
16233 2004-09-23 01:39 ravindra
16235 * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
16236 ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
16237 ItemDragEventArgs.cs, ItemDragEventHandler.cs,
16238 LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
16239 EventHandlers needed by ListView Control.
16241 2004-09-22 14:12 pbartok
16243 * ScrollableControl.cs:
16244 - Implemented DockPadding property
16245 - Implemented AutoScroll property
16246 - Implemented AutoScrollMargin property
16247 - Implemented AutoScrollMinSize property
16248 - Implemented AutoScrollPosition property
16249 - Implemented DisplayRectangle property (still incomplete)
16250 - Implemented CreateParams property
16251 - Implemented HScroll property
16252 - Implemented VScroll property
16253 - Implemented OnVisibleChanged property
16255 2004-09-22 14:09 pbartok
16258 - Added Form.ControllCollection class
16259 - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
16260 RemoveOwnedForm (still incomplete, missing on-top and common
16261 minimize/maximize behaviour)
16262 - Added StartPosition property (still incomplete, does not use when
16264 - Added ShowDialog() methods (still incomplete, missing forcing the
16267 2004-09-22 14:05 pbartok
16270 - Added message loop for modal dialogs
16272 2004-09-22 14:02 pbartok
16275 - Fixed wrong types for events
16277 2004-09-22 14:00 pbartok
16279 * Shortcut.cs, FormWindowState.cs:
16280 - Fixed wrong values
16282 2004-09-22 12:01 jackson
16284 * Control.cs: Text is never null
16286 2004-09-20 22:14 pbartok
16289 - Fixed accessibility level for Idle handler
16291 2004-09-20 18:54 jackson
16293 * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
16294 XplatUIX11.cs: New message loop that uses poll so we don't get a
16297 2004-09-17 10:43 pbartok
16300 - Fixed behaviour of arrow buttons. Now properly behaves like
16301 Buttons (and like Microsoft's scrollbar arrow buttons)
16303 2004-09-17 10:14 pbartok
16306 - Added missing release of keyboard/mouse capture
16308 2004-09-17 06:18 jordi
16310 * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
16311 Theme.cs: Very early menu support
16313 2004-09-16 17:45 pbartok
16316 - Fixed sending a window to the front
16317 - Added overload for SetWindowPos to avoid casting
16319 2004-09-16 17:44 pbartok
16322 - Added SendToBack and BringToFront methods
16324 2004-09-16 07:00 ravindra
16326 * Copyright: Added Novell URL.
16328 2004-09-16 07:00 ravindra
16330 * ToolBar.cs: Invalidate should be done before redrawing.
16332 2004-09-15 21:19 ravindra
16334 * ColumnHeaderStyle.cs: Enum for ListView Control.
16336 2004-09-15 21:18 ravindra
16338 * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
16341 2004-09-13 18:26 jackson
16343 * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
16346 2004-09-13 18:13 jackson
16348 * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
16349 a second thread and post messages into the main threads message
16350 queue. This makes timing much more consistent. Both win2K and XP
16351 have a minimum timer value of 15 milliseconds, so we now do this
16354 2004-09-13 15:18 pbartok
16356 * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
16358 - Added Z-Ordering methods
16360 2004-09-13 10:56 pbartok
16363 - Fixed #region names
16364 - Moved properties and methods into their proper #regions
16366 2004-09-13 10:51 pbartok
16369 - Added Accept and CancelButton properties
16370 - Added ProcessDialogKey() method
16372 2004-09-13 08:18 pbartok
16374 * IWindowTarget.cs:
16377 2004-09-10 21:50 pbartok
16380 - Added DoDragDrop() [incomplete]
16381 - Properly implemented 'Visible' handling
16382 - Added SetVisibleCore()
16383 - Implemented FindChildAtPoint()
16384 - Implemented GetContainerControl()
16385 - Implemented Hide()
16387 2004-09-10 19:28 pbartok
16390 - Moved methods into their appropriate #regions
16391 - Reordered methods within regions alphabetically
16393 2004-09-10 18:57 pbartok
16395 * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
16396 - Added method to retrieve text from window
16398 2004-09-10 18:56 pbartok
16401 - Moved some internal functions into the internal region
16402 - Implemented FontHeight
16403 - Implemented RenderRightToLeft
16404 - Implemented ResizeRedraw
16405 - Implemented ShowFocusCues
16406 - Implemented ShowKeyboardCues
16407 - Implemented FromChildHandle
16408 - Implemented FromHandle
16409 - Implemented IsMnemonic
16410 - Implemented ReflectMessage
16411 - All public and protected Static Methods are now complete
16413 2004-09-10 16:54 pbartok
16416 - Implemented remaining missing public instance properties
16417 - Alphabetized some out of order properties
16419 2004-09-10 05:51 ravindra
16421 * PictureBox.cs: Added a check for null image.
16423 2004-09-10 00:59 jordi
16425 * GroupBox.cs: remove cvs tag
16427 2004-09-09 05:25 ravindra
16429 * ToolBar.cs: Make redraw accessible from ToolBarButton.
16431 2004-09-09 05:23 ravindra
16433 * ToolBarButton.cs: Changes in ToolBarButton need to make it's
16436 2004-09-09 02:28 pbartok
16438 * ThemeWin32Classic.cs:
16439 - Improve disabled string look
16441 2004-09-09 01:15 jordi
16443 * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
16446 2004-09-08 23:56 ravindra
16448 * ItemBoundsPortion.cs: It's enum, not a class!
16450 2004-09-08 23:47 ravindra
16452 * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
16455 2004-09-08 21:13 ravindra
16457 * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
16460 2004-09-08 21:03 ravindra
16462 * ThemeWin32Classic.cs: PictureBox would not draw a null image to
16465 2004-09-08 21:01 ravindra
16467 * ScrollableControl.cs: Removed unreachable code.
16469 2004-09-08 06:45 jordi
16471 * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
16473 2004-09-08 01:00 jackson
16475 * XplatUIX11.cs: Only run the timers when updating the message
16476 queue. This effectively gives X messages a higher priority then
16477 timer messages. Timers still need love though
16479 2004-09-07 14:01 jackson
16481 * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
16482 this for us and the handle is no longer valid.
16484 2004-09-07 13:59 jackson
16486 * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
16487 loop that manages to not crash. TODO: Add poll and cleanup timers
16489 2004-09-07 11:12 jordi
16491 * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
16493 2004-09-07 03:40 jordi
16495 * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
16496 fixes, methods, multiple links
16498 2004-09-06 06:55 jordi
16500 * Control.cs: Caches ClientRectangle rectangle value
16502 2004-09-05 02:03 jordi
16504 * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
16507 2004-09-04 11:10 jordi
16509 * Label.cs: Refresh when font changed
16511 2004-09-02 16:24 pbartok
16514 - Added sanity check to creation of double buffer bitmap
16516 2004-09-02 16:24 pbartok
16519 - Fixed selection of text color
16520 - Fixed handling of resize event; now properly recreates double
16522 - Added missing assignment of TextAlignment
16523 - Added proper default for TextAlignment
16525 2004-09-02 14:26 pbartok
16528 - Added missing RadioButton.RadioButtonAccessibleObject class
16530 2004-09-02 14:26 pbartok
16533 - Added missing Control.ControlAccessibleObject class
16534 - Started to implement Select()ion mechanisms, still very incomplete
16536 2004-09-02 14:25 pbartok
16538 * AccessibleObject.cs:
16539 - Added missing methods
16541 2004-09-02 14:23 pbartok
16543 * AccessibleNavigation.cs, AccessibleSelection.cs:
16546 2004-09-02 10:32 jordi
16548 * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
16549 pool for pens, brushes, and hatchbruses
16551 2004-09-01 15:30 jackson
16553 * StatusBar.cs: Fix typo
16555 2004-09-01 14:44 pbartok
16560 2004-09-01 14:39 pbartok
16562 * Button.cs, RadioButton.cs:
16563 - Functional initial check-in
16565 2004-09-01 14:01 pbartok
16568 - Added missing default
16569 - Added missing region mark
16571 2004-09-01 09:10 jordi
16573 * Label.cs: fixes method signatures, new methods, events, fixes
16576 2004-09-01 07:19 jordi
16578 * Control.cs: Init string variables with an empty object
16580 2004-09-01 04:20 jordi
16582 * Control.cs: fires OnFontChanged event
16584 2004-08-31 20:07 pbartok
16587 - Enabled display of strings
16589 2004-08-31 20:05 pbartok
16592 - Added (partial) implementation of DialogResult; rest needs to be
16593 implemented when the modal loop code is done
16595 2004-08-31 19:55 pbartok
16598 - Fixed to match the removal of the needs_redraw concept
16600 2004-08-31 19:55 pbartok
16603 - Removed the rather odd split between 'needs redraw' and redrawing
16604 - Now handles the events that require regeneration (ambient
16605 properties and size)
16607 2004-08-31 19:41 pbartok
16610 - Added firing of BackColorChanged event
16611 - Added TopLevelControl property
16612 - Fixed handling of WM_ERASEBKGRND message
16614 2004-08-31 12:49 pbartok
16620 2004-08-31 12:48 pbartok
16623 - Finished (famous last words)
16625 2004-08-31 04:35 jordi
16627 * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
16628 scrolling bugs, adds new methods
16630 2004-08-30 14:42 pbartok
16633 - Implemented CheckBox drawing code
16635 2004-08-30 14:42 pbartok
16638 - Made Redraw() and CheckRedraw() virtual
16639 - Improved mouse up/down/move logic to properly track buttons
16641 2004-08-30 09:44 pbartok
16644 - Updated to fix broken build. Not complete yet.
16646 2004-08-30 09:28 pbartok
16651 2004-08-30 09:17 pbartok
16656 2004-08-27 16:12 ravindra
16658 * ToolBarButton.cs: Added TypeConverter attribute.
16660 2004-08-27 16:07 ravindra
16662 * ImageIndexConverter.cs: Implemented.
16664 2004-08-27 14:17 pbartok
16667 - Removed unneeded stack vars
16668 - First attempt to fix sizing issues when layout is suspended
16670 2004-08-25 15:35 jordi
16672 * ScrollBar.cs: more fixes to scrollbar
16674 2004-08-25 14:04 ravindra
16676 * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
16677 Added the missing divider code and grip for ToolBar Control.
16679 2004-08-25 13:20 pbartok
16682 - Control now properly passes the ambient background color to child
16685 2004-08-25 13:20 jordi
16687 * ScrollBar.cs: small bug fix regarding bar position
16689 2004-08-25 12:33 pbartok
16692 - Now only calls SetTimer or KillTimer if the enabled state has
16695 2004-08-25 12:33 pbartok
16698 - Fixed timer handling, now seems to work
16699 - Improved error message for window creation
16701 2004-08-25 12:32 pbartok
16704 - Fixed generation of MouseUp message
16706 2004-08-25 12:29 jordi
16708 * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
16709 and fixes for progressbar
16711 2004-08-24 18:43 ravindra
16713 * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
16714 in ToolBar control.
16716 2004-08-24 17:15 pbartok
16720 - Added missing events
16723 2004-08-24 17:14 pbartok
16725 * StatusBar.cs, PictureBox.cs:
16726 - Now uses Control's CreateParams
16728 2004-08-24 16:36 pbartok
16731 - Fixed background color handling
16732 - Fixed sending of enter/leave events on a grab
16734 2004-08-24 16:35 pbartok
16737 - Refined definitions for CrossingEvent
16739 2004-08-24 12:37 jordi
16741 * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
16742 formmating, methods signature, and adds missing events
16744 2004-08-24 12:24 jordi
16746 * Control.cs: fire OnEnabledChanged event
16748 2004-08-24 11:17 pbartok
16751 - Implemented SetTimer() and KillTimer()
16753 2004-08-24 11:16 pbartok
16756 - Now uses Remove instead of Add to kill the timer
16758 2004-08-24 10:16 jackson
16760 * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
16761 picture boxes in the theme now. Draw picture box borders and obey
16764 2004-08-24 05:49 jackson
16766 * Timer.cs: Remove top secret debugging code
16768 2004-08-24 05:34 jackson
16770 * PictureBox.cs: Temp hack to make picture boxes draw their full
16773 2004-08-24 05:29 jackson
16775 * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
16776 XplatUIX11.cs: Move timers to the driver level. On X they are
16777 queued by the driver and checked on idle.
16779 2004-08-24 01:07 jackson
16781 * XplatUIX11.cs: Use a queue for async messages instead of passing
16782 them as ClientMessages since that was totally broken. Also simply
16783 check for events and return an idle message if none are found. This
16784 gives us an idle handler, and prevents deadlocking when no messages
16787 2004-08-23 18:19 ravindra
16789 * XplatUIWin32.cs: Removed the unwanted destructor.
16791 2004-08-23 17:27 pbartok
16794 - Finishing touches. Works now, just needs some optimizations.
16796 2004-08-23 16:53 jordi
16798 * ScrollBar.cs: small fix
16800 2004-08-23 16:45 pbartok
16803 - Removed debug output
16806 2004-08-23 16:43 jordi
16808 * ScrollBar.cs: [no log message]
16810 2004-08-23 16:10 pbartok
16813 - Fixed handling of WM_CLOSE message
16814 - Removed debug output
16816 2004-08-23 16:09 pbartok
16819 - Added handling of Idle event
16820 - Added handling of form closing
16821 - Fixed reporting of MessageLoop property
16822 - Removed some unneeded code, should provide a bit of a speedup
16824 2004-08-23 15:22 pbartok
16827 - Added InitLayout() method
16828 - Added code to properly perform layout when Anchor or Dock property
16830 - Changed 'interpretation' of ResumeLayout. MS seems to have a
16831 LAMESPEC, tried to do it in a way that makes sense
16833 2004-08-23 14:10 jordi
16835 * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
16836 properties and methods
16838 2004-08-23 13:55 pbartok
16841 - Properly fixed Jordi's last fix
16842 - Now uses Cursor's Position property instead of calling XplatUI
16845 2004-08-23 13:44 jordi
16847 * PaintEventHandler.cs: Adding missing attribute
16849 2004-08-23 13:39 pbartok
16852 - Implemented Position property
16854 2004-08-23 13:39 pbartok
16856 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
16857 - Added method to move mouse cursor
16859 2004-08-23 13:39 pbartok
16862 - Fixed setting of background color
16863 - Added method to move mouse cursor
16865 2004-08-23 13:16 jordi
16867 * Control.cs: avoids null exception
16869 2004-08-22 17:46 jackson
16871 * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
16874 2004-08-22 17:40 jackson
16876 * XplatUIX11.cs: Add some missing locks
16878 2004-08-22 15:10 pbartok
16880 * Control.cs, Form.cs:
16881 - Removed OverlappedWindow style from Control, instead it's default
16883 - Made form windows OverlappedWindow by default
16885 2004-08-22 13:34 jackson
16887 * ScrollBar.cs: Update the position through the Value property so
16888 the OnValueChanged event is raised.
16890 2004-08-22 12:04 pbartok
16893 - Added Cursor.cs and UserControl.cs
16895 2004-08-22 12:03 pbartok
16898 - Started implementation, not usable yet
16900 2004-08-22 12:00 pbartok
16903 - Implemented UserControl (complete)
16905 2004-08-21 19:20 ravindra
16907 * ToolBar.cs: Correcting the formatting mess of VS.NET.
16909 2004-08-21 18:49 ravindra
16911 * ToolBar.cs: Probably this completes the missing attributes in
16914 2004-08-21 18:03 ravindra
16916 * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
16917 Fixed toolbar control signatures.
16919 2004-08-21 16:32 pbartok
16924 2004-08-21 16:30 pbartok
16929 2004-08-21 16:19 pbartok
16931 * Control.cs, Label.cs:
16934 2004-08-21 15:57 pbartok
16937 - Added loads of debug output for development
16938 - Fixed typo in method name
16940 2004-08-21 15:52 pbartok
16942 * ToolBarButtonClickEventArgs.cs:
16943 - Added missing base class
16945 2004-08-21 14:53 pbartok
16948 - Updated to match new GrabWindow signature
16950 2004-08-21 14:51 pbartok
16952 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
16953 - Added method to get default display size
16955 2004-08-21 14:23 pbartok
16957 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
16958 - Added method to query current grab state
16959 - Added argument to allow confining a grab to a window
16961 2004-08-21 14:22 pbartok
16964 - Added [Flags] attribute so that modifiers can be used in bitwise
16967 2004-08-21 14:21 pbartok
16969 * TrackBar.cs, ScrollBar.cs:
16970 - Replaced direct XplatUI calls with their Control counterpart
16972 2004-08-21 13:32 pbartok
16975 - Implemented Created property
16977 2004-08-21 13:28 pbartok
16980 - Implemented ContainsFocus
16982 2004-08-21 13:26 pbartok
16985 - Implemented CausesValidation
16987 2004-08-21 13:21 pbartok
16990 - Implemented CanFocus
16991 - Implemented CanSelect
16992 - Implemented Capture
16994 2004-08-21 12:35 pbartok
16997 - Fixed bug with Async message handling
16998 - Implemented getting the ModifierKeys
17000 2004-08-21 12:32 jackson
17002 * AsyncMethodResult.cs: Make sure we have the mutex before we
17003 release it. Fixes BeginInvoke on windows
17005 2004-08-21 11:31 pbartok
17007 * XplatUIWin32.cs, XplatUIX11.cs:
17008 - Drivers now return proper mouse state
17010 2004-08-21 10:54 jackson
17012 * Control.cs: Implement EndInvoke
17014 2004-08-21 10:48 jackson
17016 * Timer.cs: Remove unneeded finalizer
17018 2004-08-20 19:52 ravindra
17020 * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
17021 in mouse event handling in the ToolBar control.
17023 2004-08-20 19:50 ravindra
17025 * ImageList.cs: Changed draw method to use the arguments passed in
17028 2004-08-20 18:58 pbartok
17030 * XplatUIStructs.cs:
17031 - Added private message for async communication
17033 2004-08-20 17:38 ravindra
17035 * Control.cs: Made RightToLeft property virtual and removed a
17038 2004-08-20 14:39 jordi
17040 * ThemeGtk.cs: use style_attach
17042 2004-08-20 14:39 pbartok
17045 - Added jackson's Async code from X11 to Win32
17047 2004-08-20 14:09 pbartok
17050 - Added all new files
17052 2004-08-20 14:09 pbartok
17055 - Added call to set window background color
17057 2004-08-20 14:03 pbartok
17059 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
17060 - Added method for setting the window background
17062 2004-08-20 14:02 pbartok
17065 - Added method for setting the background color
17066 - Added handling for erasing the window background
17068 2004-08-20 13:45 jordi
17070 * TrackBar.cs: fixes timer, new properties and methods
17072 2004-08-20 13:34 jackson
17074 * ScrollBar.cs: Use the SWF timer so callbacks are run in the
17077 2004-08-20 13:22 jackson
17079 * Timer.cs: Timer Tick events are now handed through Controls Async
17080 mechanism so the callbacks are executed in the same thread as X
17082 2004-08-20 13:19 jackson
17084 * XplatUIDriver.cs: Expose functionality to send async messages
17087 2004-08-20 13:18 jackson
17089 * Control.cs: Implement Begininvoke
17091 2004-08-20 13:14 jackson
17093 * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
17094 messages through the driver
17096 2004-08-20 13:12 jackson
17098 * XplatUIX11.cs: Lock before all X operations. Also added Async
17099 method functionality through XSendEvent
17101 2004-08-20 13:11 jackson
17103 * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
17104 This will screw up on 64 bit systems)
17106 2004-08-20 13:10 jackson
17108 * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
17109 Async messages through X/Win32
17111 2004-08-19 19:39 pbartok
17114 - Updated code to match new HandleData.DeviceContext type
17116 2004-08-19 19:38 pbartok
17119 - Made DeviceContext a generic object to allow usage from various
17121 - Added support for queueing Windows messages
17123 2004-08-19 19:37 pbartok
17126 - Added generation of MouseEnter, MouseLeave and MouseHover events
17127 - Added cleanup on EndPaint
17129 2004-08-19 19:17 pbartok
17132 - Added handling of WM_MOUSEHOVER
17133 - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
17136 2004-08-19 18:55 jordi
17138 * ThemeGtk.cs: fixes button order
17140 2004-08-19 18:12 jordi
17142 * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
17144 2004-08-19 17:09 pbartok
17147 - Added Right property
17148 - Added RightToLeft property
17150 2004-08-19 16:27 jordi
17152 * ThemeGtk.cs: experimental GTK theme support
17154 2004-08-19 16:26 jordi
17156 * ITheme.cs, Theme.cs: move themes from an interface to a class
17158 2004-08-19 16:25 jordi
17160 * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
17163 2004-08-19 16:04 pbartok
17166 - Added colormap basics
17167 - Added a way to re-initialize with a different display handle
17168 - Fixed setting of the window background color
17169 - Added various X11 imports related to colors and colormaps
17171 2004-08-19 15:51 pbartok
17174 - Removed packing hints (Paolo suggested this a while back)
17175 - fixed colormap type
17176 - Added default Atom types
17177 - Added Screen and color structs and enums
17179 2004-08-19 15:39 pbartok
17182 - Added missing Draw() method
17183 - Added missing RecreateHandle event
17185 2004-08-19 15:30 pbartok
17188 - Added handling of WM_CLOSE
17190 2004-08-18 13:16 jordi
17192 * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
17195 2004-08-18 09:56 jordi
17197 * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
17199 2004-08-17 15:31 ravindra
17201 * SWF.csproj: Updated project.
17203 2004-08-17 15:25 pbartok
17206 - Drawing improvement; don't call UpdateBounds if we are not visible
17207 (or have been minimized)
17209 2004-08-17 15:24 pbartok
17212 - Finished IsVisible
17213 - Added Win32GetWindowPlacement
17215 2004-08-17 15:08 jackson
17217 * Panel.cs: Initial checkin of the Panel
17219 2004-08-17 14:25 pbartok
17222 - Fixed broken handling of default window sizes
17224 2004-08-17 13:29 jackson
17226 * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
17227 has a large startup time.
17229 2004-08-17 10:25 jackson
17231 * HandleData.cs: union areas properly
17233 2004-08-17 10:12 jackson
17235 * HandleData.cs: union areas properly
17237 2004-08-16 20:00 ravindra
17239 * ToolBar.cs, ToolBarButton.cs: Added attributes.
17241 2004-08-16 18:48 ravindra
17243 * ToolBar.cs: Added attributes.
17245 2004-08-16 17:17 ravindra
17247 * SWF.csproj: Updated project.
17249 2004-08-16 17:16 jackson
17251 * XplatUIX11.cs: Check for more expose events before sending a
17252 WM_PAINT so they can all be grouped together. This makes dragging a
17253 window across another window redraw in a sane way.
17255 2004-08-16 15:47 pbartok
17258 - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
17259 support OnMouseEnter/Leave()
17260 - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
17263 2004-08-16 15:46 pbartok
17265 * XplatUIStructs.cs, XplatUIX11.cs:
17266 - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
17267 OnMouseEnter/Leave()
17269 2004-08-16 15:34 jackson
17271 * XplatUIX11.cs: Group multiple expose events in HandleData, make
17272 sure messages get the message field set to WM_NULL if they are not
17275 2004-08-16 15:24 jackson
17277 * HandleData.cs: HandleData is used for storing message information
17280 2004-08-15 17:23 ravindra
17282 * ColorDepth.cs: Added attribute.
17284 2004-08-15 17:23 ravindra
17286 * SWF.csproj: Updated project for ToolBar Control.
17288 2004-08-15 17:20 ravindra
17290 * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
17291 control and also dos2unix format.
17293 2004-08-15 17:13 ravindra
17295 * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
17296 ToolBarButtonClickEventArgs.cs,
17297 ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
17298 ToolBarTextAlign.cs: First Implementation of ToolBar control.
17300 2004-08-15 15:31 pbartok
17303 - First (mostly) working version
17305 2004-08-13 16:15 pbartok
17308 - Fixed Anchor default
17310 2004-08-13 15:43 pbartok
17313 - Changed GetCursorPos signature
17315 2004-08-13 15:42 pbartok
17317 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
17318 - Changed signature for GetCursorPos
17320 2004-08-13 15:25 pbartok
17324 - Fixed resizing/exposure handling
17326 2004-08-13 15:22 jordi
17328 * ThemeWin32Classic.cs: removes redundant code and fixes issues
17331 2004-08-13 14:55 jordi
17333 * TrackBar.cs: change from wndproc to events
17335 2004-08-13 13:00 jordi
17337 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
17338 XplatUIX11.cs: implements PointToClient (ScreenToClient)
17340 2004-08-13 12:53 pbartok
17343 - Changed GetWindowPos to also provide client area size
17344 - Fixed broken prototypes for several win32 functions
17346 2004-08-13 12:53 pbartok
17348 * XplatUI.cs, XplatUIDriver.cs:
17349 - Changed GetWindowPos to also provide client area size
17351 2004-08-13 12:52 pbartok
17354 - Added generation of WM_POSCHANGED
17355 - Changed GetWindowPos to also provide client area size
17357 2004-08-13 12:52 pbartok
17360 - Added Dispose() and destructor
17361 - Fixed resizing and bounds calculation
17363 - Added memory savings for invisible windows
17365 2004-08-13 12:46 jordi
17367 * TrackBar.cs: adds timer and grap window
17369 2004-08-13 10:25 jackson
17371 * Timer.cs: SWF Timer
17373 2004-08-12 16:59 pbartok
17375 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
17376 - Implemented method to get current mouse position
17378 2004-08-12 14:29 jordi
17380 * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
17381 enhancement, fix mouse problems, highli thumb, etc
17383 2004-08-12 13:31 pbartok
17386 - Fixed Anchoring bugs
17388 2004-08-12 13:01 jackson
17390 * StatusBar.cs: Don't forget things
17392 2004-08-12 12:54 jackson
17394 * ThemeWin32Classic.cs: Handle owner draw status bars
17396 2004-08-12 12:54 jackson
17398 * StatusBar.cs: Implement missing properties, events, and methods.
17399 Handle mouse clicking
17401 2004-08-12 10:19 jackson
17403 * StatusBarPanelClickEventArgs.cs,
17404 StatusBarPanelClickEventHandler.cs: Classes for handling status
17405 bar panel click events
17407 2004-08-12 10:10 jackson
17409 * Control.cs: Add missing properties
17411 2004-08-12 09:46 pbartok
17413 * BindingsManagerBase.cs:
17414 - Name changed to BindingManagerBase.cs
17416 2004-08-12 09:25 jordi
17418 * ScrollableControl.cs: calls ctrlbase instead of exeception
17420 2004-08-11 16:28 pbartok
17422 * InputLanguageChangingEventArgs.cs:
17423 - Never check in before compiling. Fixes the last check-in
17425 2004-08-11 16:26 pbartok
17427 * InputLanguageChangingEventArgs.cs:
17428 - More signature fixes
17430 2004-08-11 16:20 pbartok
17432 * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
17433 Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
17434 ImageListStreamer.cs, InputLanguage.cs,
17435 InputLanguageChangedEventArgs.cs,
17436 InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
17437 LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
17438 ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
17439 XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
17442 2004-08-11 16:16 pbartok
17446 - Added .Net 1.1 method
17448 2004-08-11 15:25 pbartok
17451 - Fixed BindingManagerBase.cs filename
17453 2004-08-11 15:22 pbartok
17455 * BindingManagerBase.cs:
17456 - Was checked in with wrong filename
17458 2004-08-11 14:50 pbartok
17463 2004-08-11 13:41 jordi
17465 * XplatUIWin32.cs: Fixes ClientRect
17467 2004-08-11 13:19 pbartok
17469 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
17471 - We had SetWindowPos and MoveWindow to set window positions and
17472 size, removed MoveWindow. We have GetWindowPos, so it made sense to
17473 keep SetWindowPos as matching counterpart
17474 - Added some X11 sanity checking
17476 2004-08-11 12:59 pbartok
17479 - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
17480 (It seems that SetBounds is just a front for SetBoundsCore and
17481 SetBoundsCore updates the underlying window system and
17482 UpdateBounds is responsible for updating the variables associated
17483 with the Control and sending the events)
17484 - Major cleanup of Size handling; we now have two sizes, client_size
17485 and bounds. Bounds defines the window with decorations, client_size
17488 2004-08-11 12:55 pbartok
17490 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
17491 - Added method to calculate difference between decorated window and
17494 2004-08-11 12:54 pbartok
17497 - Forcing redraw on resize
17499 2004-08-11 11:43 pbartok
17502 - Removed disposing of the actual images when the list is disposed
17504 2004-08-11 09:13 pbartok
17507 - Now properly reparents windows
17509 2004-08-11 08:37 pbartok
17514 2004-08-11 07:47 pbartok
17517 - Rewrote the collection stuff. Might not be as fast now, not
17518 keeping the number of children around and accessible directly, but
17519 it's more straightforward
17521 2004-08-11 07:44 pbartok
17523 * AccessibleObject.cs:
17524 - Fixed to match ControlCollection rewrite
17526 2004-08-11 07:43 pbartok
17529 - Added missing creation of the collection list
17531 2004-08-10 20:08 jackson
17533 * StatusBar.cs: Get the paint message from WndProc
17535 2004-08-10 19:31 jackson
17537 * ThemeWin32Classic.cs: Create Brushes as little as possible
17539 2004-08-10 19:20 jackson
17541 * UICues.cs: Add Flags attribute
17543 2004-08-10 19:19 jackson
17545 * StatusBarPanel.cs: Signature cleanup
17547 2004-08-10 19:10 jackson
17549 * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
17550 Initial implementation of status bar item drawing
17552 2004-08-10 17:27 jordi
17554 * TrackBar.cs: add missing methods, properties, and restructure to
17557 2004-08-10 16:24 jackson
17559 * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
17560 ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
17563 2004-08-10 13:21 jordi
17565 * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
17566 enhancements and standarize on win colors defaults
17568 2004-08-10 12:52 jackson
17570 * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
17571 ThemeWin32Classic.cs: Implement DrawItem functionality
17573 2004-08-10 12:47 jordi
17575 * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
17577 2004-08-10 12:32 jordi
17579 * Control.cs: throw ontextchange event
17581 2004-08-10 11:43 pbartok
17584 - Added more to the still unfinished Dock/Anchor layout code
17586 2004-08-10 11:39 pbartok
17588 * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
17589 - Added GetWindowPos method
17591 2004-08-10 11:36 pbartok
17594 - Implemented several methods
17596 2004-08-10 09:47 jackson
17598 * TrackBar.cs: Allow control to handle buffering
17600 2004-08-10 09:41 jackson
17602 * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
17604 2004-08-10 09:24 jackson
17606 * Label.cs, LinkLabel.cs: Let Control handle buffering.
17608 2004-08-10 09:09 jackson
17610 * StatusBar.cs: Let Control handle all the buffering.
17612 2004-08-10 09:08 jackson
17614 * Control.cs: Control will now handle the buffering code, so each
17615 control does not have to implement this.
17617 2004-08-10 08:34 jackson
17619 * XplatUIDriver.cs: Use default colors from the theme
17621 2004-08-09 17:12 pbartok
17624 - Fixed several bugs Ravindra pointed out
17626 2004-08-09 16:11 pbartok
17629 - Added incomplete dock layout code
17630 - Added support for mouse wheel
17632 2004-08-09 16:09 pbartok
17635 - Added handling for middle and right mousebutton
17636 - Added handling for mouse wheel
17637 - Added handling for key state and mouse state and position
17638 - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
17641 2004-08-09 15:40 jackson
17643 * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
17644 StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
17647 2004-08-09 15:37 jackson
17649 * StatusBar.cs: Initial implementation of StatusBar
17651 2004-08-09 15:36 jackson
17653 * ITheme.cs: Add support for drawing status bar and getting status
17656 2004-08-09 15:35 pbartok
17661 2004-08-09 15:34 jackson
17663 * ThemeWin32Classic.cs: Add support for drawing status bar and get
17664 status bar item sizes
17666 2004-08-09 15:21 jackson
17668 * ThemeWin32Classic.cs: Use known colors for default control
17671 2004-08-09 15:12 jackson
17673 * ThemeWin32Classic.cs: Make the default font static, it is static
17674 in control so this doesn't change functionality and creating fonts
17677 2004-08-09 14:56 pbartok
17680 - Added GrabMode enum
17682 2004-08-09 14:55 pbartok
17684 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
17685 - Removed Run method, was only required for initial development
17687 2004-08-09 14:51 pbartok
17689 * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
17690 - Implemented GrabWindow/ReleaseWindow methods to allow pointer
17693 2004-08-09 13:48 pbartok
17696 - Fixed default sizing for child windows
17698 2004-08-09 12:56 pbartok
17701 - Added generation of WM_DESTROY message
17702 - Added handling of window manager induced shutdown
17704 2004-08-09 11:31 jackson
17706 * ThemeWin32Classic.cs: New names for control properties
17708 2004-08-09 11:25 jackson
17710 * Control.cs: Use new color names
17712 2004-08-09 11:02 jackson
17714 * XplatUI.cs: Get default window properties from the theme
17716 2004-08-09 11:01 jackson
17718 * ITheme.cs: The theme engine now controls default window
17721 2004-08-09 11:00 jackson
17723 * ThemeWin32Classic.cs: Add default window color properties
17725 2004-08-09 10:17 jackson
17727 * ThemeWin32Classic.cs: Use correct default back color
17729 2004-08-09 10:05 jackson
17731 * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
17734 2004-08-09 09:56 jackson
17736 * XplatUI.cs: Remove defaults, these are handled by the theme now.
17738 2004-08-09 09:54 jackson
17740 * Control.cs: Get default properties from the theme.
17742 2004-08-09 09:53 jackson
17744 * ITheme.cs: Themes now handle default control properties
17746 2004-08-09 09:53 jackson
17748 * ThemeWin32Classic.cs: Themes now handle default control
17749 properties so coloring will be consistent
17751 2004-08-08 16:54 jordi
17753 * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
17755 2004-08-08 15:08 jordi
17757 * XplatUIX11.cs: fixes keyboard crash
17759 2004-08-08 13:47 jordi
17761 * Label.cs: add cvs header info
17763 2004-08-08 12:09 jackson
17765 * ThemeWin32Classic.cs: Add pen_buttonface
17767 2004-08-08 11:52 jordi
17769 * Label.cs, LinkLabel.cs: [no log message]
17771 2004-08-08 11:34 jordi
17773 * ThemeWin32Classic.cs: Use Windows Standard Colours
17775 2004-08-07 17:32 jordi
17777 * TrackBar.cs: throw exceptions of invalid enums values
17779 2004-08-07 17:31 jordi
17781 * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
17784 2004-08-07 16:56 jackson
17786 * HorizontalAlignment.cs: Initial checkin
17788 2004-08-07 13:16 jordi
17790 * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
17793 2004-08-07 13:05 jordi
17795 * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
17796 GetSysColor defines
17798 2004-08-06 18:01 pbartok
17800 * ThemeWin32Classic.cs:
17801 - Fixed some rounding issues with float/int
17803 2004-08-06 18:00 jackson
17805 * DockStyle.cs, AnchorStyles.cs:
17807 Add flags and serializable attributes.
17809 2004-08-06 17:46 pbartok
17812 - Implemented GetParent
17814 2004-08-06 17:18 pbartok
17817 - Fixed some rounding issues with float/int
17819 2004-08-06 17:17 pbartok
17821 * X11Structs.cs, XplatUIX11.cs:
17822 - Fixed Refresh and Invalidate
17824 2004-08-06 15:30 pbartok
17826 * Control.cs, X11Structs.cs, XplatUIX11.cs:
17827 - Fixed recursive loop when resizing
17828 - Improved/fixed redrawing on expose messages
17830 2004-08-06 09:53 jordi
17832 * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
17833 keyboard navigation
17835 2004-08-06 08:02 pbartok
17837 * X11Structs.cs, XplatUIX11.cs:
17838 - Fixed reparenting
17839 - Fixed window border creation
17841 2004-08-05 15:38 pbartok
17844 - Attempted fix for reparenting problems
17846 2004-08-04 15:14 pbartok
17849 - Fixed Invalidation bug (calculated wrong client area)
17850 - Added ClientSize setter
17852 2004-08-04 15:13 pbartok
17855 - Added AutoScale properties
17857 2004-08-04 15:13 pbartok
17860 - Added latest files
17862 2004-08-04 14:11 pbartok
17864 * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
17866 - Added Invalidate handling
17868 2004-08-03 17:09 jordi
17870 * XplatUIDriver.cs: fixes spelling mistake
17872 2004-07-27 09:53 jordi
17874 * TrackBar.cs: fixes trackbar events, def classname, methods
17877 2004-07-27 09:29 jordi
17879 * ScrollBar.cs: fixes scrollbar events
17881 2004-07-27 04:38 jordi
17883 * Control.cs: changes to be able to run winforms samples
17885 2004-07-26 11:42 jordi
17887 * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
17888 ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
17890 2004-07-26 05:41 jordi
17892 * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
17893 MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
17896 2004-07-22 09:22 jordi
17898 * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
17899 check link overlapping, implement events, and fixes
17901 2004-07-21 10:28 jordi
17903 * DialogResult.cs, IButtonControl.cs: fixes comments filenames
17905 2004-07-21 10:19 jordi
17907 * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
17908 LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
17909 LinkLabelLinkClickedEventArgs.cs,
17910 LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
17911 XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
17914 2004-07-19 13:09 jordi
17916 * Control.cs, Label.cs: label control re-written: added missing
17917 functionlity, events, and properties
17919 2004-07-19 10:49 jordi
17921 * Control.cs: fixes SetBounds logic
17923 2004-07-19 01:29 jordi
17925 * Control.cs: Call RefreshWindow only if the window has created
17927 2004-07-15 14:05 pbartok
17929 * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
17930 - Implemented ImageList and ImageList.ImageCollection classes
17931 - Added ColorDepth enumeration
17932 - Updated SWF VS.Net project
17934 2004-07-15 11:06 jordi
17936 * XplatUIStructs.cs: added MsgButons enum
17938 2004-07-15 11:03 jordi
17940 * Control.cs: added basic mouse handeling events
17942 2004-07-15 03:38 jordi
17944 * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
17945 Vertical TrackBar control implementation
17947 2004-07-13 09:33 jordi
17949 * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
17951 2004-07-13 09:31 jordi
17953 * Control.cs, Form.cs: commit: new properties and fixes form size
17956 2004-07-09 14:13 miguel
17958 * ProgressBar.cs: Spelling
17960 2004-07-09 11:25 pbartok
17963 - Removed usage of Rectangle for drawing. Miguel pointed out it's
17966 2004-07-09 11:17 miguel
17968 * ProgressBar.cs: 2004-07-09 Miguel de Icaza <miguel@ximian.com>
17970 * ProgressBar.cs: Fixed spelling for `block'
17972 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
17975 Avoid using the += on rect.X, that exposed a bug in the compiler.
17977 2004-07-08 23:21 pbartok
17979 * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
17980 AnchorStyles.cs, Application.cs, ApplicationContext.cs,
17981 BaseCollection.cs, Binding.cs, BindingContext.cs,
17982 BindingMemberInfo.cs, BindingsCollection.cs,
17983 BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
17984 BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
17985 ButtonState.cs, CaptionButton.cs, CheckBox.cs,
17986 ContainerControl.cs, Control.cs, ControlEventArgs.cs,
17987 ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
17988 ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
17989 CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
17990 DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
17991 FrameStyle.cs, GiveFeedbackEventArgs.cs,
17992 GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
17993 HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
17994 IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
17995 InputLanguageChangedEventArgs.cs,
17996 InputLanguageChangedEventHandler.cs,
17997 InputLanguageChangingEventArgs.cs,
17998 InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
17999 InvalidateEventArgs.cs, InvalidateEventHandler.cs,
18000 KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
18001 KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
18002 LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
18003 MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
18004 PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
18005 QueryAccessibilityHelpEventArgs.cs,
18006 QueryAccessibilityHelpEventHandler.cs,
18007 QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
18008 RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
18009 ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
18010 ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
18011 TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
18012 UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
18013 XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
18014 XplatUIX11.cs, lang.cs: