2006-04-10 Peter Dennis Bartok <pbartok@novell.com>
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
2
3         * ScrollableControl.cs:
4           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
5             (instead of 0,0) and we now return the real width/height instead of
6             just the clientrectangle, adjusted for padding. The rectangle is
7             now cached and created by the new CalculateDisplayRectangle method.
8           - Created new CalculateDisplayRectange method, which basically does
9             what get_DisplayRectangle() did originally, but now using the 
10             right edge instead of DisplayRectangle to determine the size of
11             our scrollbars
12           - get_Canvas(): Fixed it to properly calculate canvas for 
13             right/bottom controls which seem to be placed to the right/bottom
14             of any controls that have a fixed location
15           - Removed TODO that's taken care of
16           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
17             and SetDisplayRectLocation according to new MSDN2 docs
18           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
19             event when that is called, this is added for compatibility
20           - ScrollControlIntoView(): Implemented.
21           - Switched scrollbars to be implicit, they shouldn't be selectable
22         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
23           call it when the active control is set/changed
24         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
25         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
26           implicit_control variable (used for native Win32 message generation)
27         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
28           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
29         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
30         * XplatUIStructs.cs: Added ScrollBarCommands enum
31
32 2006-04-10  Jackson Harper  <jackson@ximian.com>
33
34         * ButtonBase.cs:
35         * CheckedListBox.cs:
36         * ComboBox.cs:
37         * DataGrid.cs:
38         * DataGridView.cs:
39         * Form.cs:
40         * GroupBox.cs:
41         * ListBox.cs:
42         * PrintPreviewControl.cs:
43         * ProgressBar.cs:
44         * PropertyGrid.cs:
45         * Splitter.cs:
46         * StatusBar.cs:
47         * TrackBar.cs:
48         * UpDownBase.cs: Fixup base event overrides.
49         
50 2006-04-06  Mike Kestner  <mkestner@novell.com>
51
52         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
53         all user-initiated value changes to min <= value <= max-thumbsz+1.
54         (set_Value): check for vert/horiz when calculating new thumb position.
55         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
56         like MS does.
57         (OnMouseMoveSB): refactor the thumb dragging code and refine
58         invalidation logic to reduce flicker.
59         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
60         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
61         (UpdateThumbPosition): small code readability cleanup
62
63 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
64
65         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
66           different
67
68 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
69
70         * ThemeNice.cs: Use a better graphics effect when a button is pressed
71
72 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
73
74         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
75         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
76           This dramatically reduces the number of Pen.Dispose calls. 
77           Where possible call ResPool methods only once instead of calling it
78           over and over again (for example for the same color).
79
80 2006-04-06  Mike Kestner  <mkestner@novell.com>
81
82         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
83         Also remove an unused private field on the collection. Fixes #77972.
84
85 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
86
87         * ThemeNice.cs: Added ToolBar drawing code
88
89 2006-04-06  Mike Kestner  <mkestner@novell.com>
90
91         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
92         I'm assuming that means we need to look up the toplevel for the
93         provided control. Fixes the crash trace in #77911 but exposes another
94         crash in some strange reflection usage in NDocGui.
95
96 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
97
98         * ThemeNice.cs: Gave it a little silver touch and added Images
99           method
100         * FontDialog.cs: FontDialog is not resizable
101         * FileDialg.cs: Added SizeGripStyle.Show
102
103 2006-04-05  Jackson Harper  <jackson@ximian.com>
104
105         * KeyboardLayouts.cs: Remove warning.
106
107 2006-04-05  Jackson Harper  <jackson@ximian.com>
108
109         * Control.cs: Enable OnPaintInternal so we can use it for drawing
110         all of our controls instead of Paint +=.
111         * ListBox.cs:
112         * ListView.cs:
113         * MenuAPI.cs:
114         * MessageBox.cs:
115         * NotifyIcon.cs:
116         * ProgressBar.cs:
117         * ScrollBar.cs:
118         * Splitter.cs:
119         * StatusBar.cs:
120         * TabControl.cs:
121         * TextBoxBase.cs:
122         * ToolBar.cs:
123         * TrackBar.cs:
124         * UpDownBase.cs:
125         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
126         use OnPaintInternal. Remove Width/Height and Visible checks in
127         paint handler, this is done at a higher level now.
128         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
129         * PaintEventArgs.cs: Add a handled flag so controls that don't
130         want anymore painting after OnPaintInternal can make sure OnPaint
131         isn't called.
132
133 2006-04-05  Mike Kestner  <mkestner@novell.com>
134
135         * Form.cs: fix the menu WndProc hacks to respect the native enabled
136         state of the form, so that we don't process events when Modal dialogs
137         are up. Fixes #77922.
138
139 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
140
141         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
142           checking is done.
143
144 2006-04-05  Mike Kestner  <mkestner@novell.com>
145
146         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
147
148 2006-04-05  Mike Kestner  <mkestner@novell.com>
149
150         * ListView.cs (HeaderMouseMove): null guarding for the over column
151         when setting up the drag_to_index.  Fixes #78015.
152
153 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
154
155         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
156           in the taskbar. Transient windows seem to accomplish that.
157
158 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
159
160         * Form.cs:
161           - Re-enabled CreateParams.X/Y code for FormStartPosition
162           - Added code for manual placement when creating the Control
163           - Incomplete patch to treat MDI forms differently when
164             setting the ClientSizeCore. (Still need to figure out handling
165             x/y coords there)
166         * XplatUIX11.cs:
167           - When we're explicitly setting the X/Y position of a non-Child
168             window, let the WM know. Metacity really wants this.
169
170 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
171
172         * ThemeNice.cs: Added CPDrawButton
173
174 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
175
176         * ThemeNice.cs: Changed the color for focused buttons and activated
177           the arrows for small scroll buttons.
178
179 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
180
181         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
182           anymore. Changed some method modifiers to protected (virtual)
183         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
184           changes
185         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
186           Updated drawing of menus, buttons and progressbars; added
187           CPDrawBorder3D 
188
189 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
190
191         * ImageListStreamer.cs: implemented serialization/deserialization
192         of the images.
193
194 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
195
196         * ThemeWin32Classic.cs:
197           - Removed all the DrawFrameControl stuff; CPDrawButton,
198             CPDrawCheckBox and CPDrawRadioButton are now handled directly
199             inside the methods
200           - Updated and corrected the drawing code of CPDrawButton,
201             CPDrawCheckBox and CPDrawRadioButton to better match ms
202           - Updated theme checkbox and radiobutton code to use the CP*
203             methods
204
205 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
206
207         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
208           bug is fixed
209
210 2006-03-31  Jackson Harper  <jackson@ximian.com>
211
212         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
213         sometimes.
214         * UpDownBase.cs: Don't CreateGraphics manually, use a
215         Refresh. Ideally we would invalidate the correct areas here.
216
217 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
218
219         * XplatUIX11.cs: 
220           - We now track the mapping state of windows. If a window (or 
221             one of it's parents) is not mapped we no longer permit
222             WM_PAINT messages to be generated since we'd otherwise get 
223             lots of BadMatch X errors. Jackson did all the work figuring
224             out the problem.
225           - Destroying the caret if the window it's contained in is 
226             destroyed. Can't use regular DestroyCaret method since it
227             might fall into a drawing function (trying to remove the
228             caret) and with that generate new BadMatch errors. Again,
229             Jackson tracked this down.
230           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
231             make sure we send the messages to all windows. (The old code
232             would send the WM_DESTROY to the window, and then all child
233             windows would be 'gone' because the WM_DESTROY handle lookup
234             would no longer find the destroyed window)
235         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
236         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
237
238 2006-03-31  Jackson Harper  <jackson@ximian.com>
239
240         * ScrollableControl.cs: Dont recalc if we are not visible.
241
242 2006-03-31  Mike Kestner  <mkestner@novell.com>
243
244         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
245         the visibility branch.
246
247 2006-03-31  Jackson Harper  <jackson@ximian.com>
248
249         * ScrollBar.cs: Cap values when incrementing/decrementing.
250
251 2006-03-31  Mike Kestner  <mkestner@novell.com>
252
253         * MenuAPI.cs: setup menu.tracker for popup/context menus.
254         * ToolTip.cs: guard against timer expirations with no active control.
255         Not sure why it happened.
256
257 2006-03-31  Mike Kestner  <mkestner@novell.com>
258
259         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
260         text.
261         * ToolTip.cs: Position the tooltip based on where the cursor is at
262         popup time, not at MouseEnter time.  Add a Down state so that we don't
263         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
264         positioning offset. Lookup DisplaySize at positioning time, since it
265         can theoretically change during invocation.
266         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
267         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
268
269 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
270
271         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
272           Fixes behaviour when the Text property of the box is String.Empty
273
274 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
275
276         * XplatUIX11.cs: Only send mouseleave for our client windows, not
277           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
278           a window)
279
280 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
281
282         * FileDialog.cs: Visual enhancement for the popup buttons in 
283           PopupButtonPanel
284
285 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
286
287         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
288           code
289
290 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
291
292         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
293           highlighted menu items to match ms
294
295 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
296
297         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
298
299 2006-03-30  Mike Kestner  <mkestner@novell.com>
300
301         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
302         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
303         go active to account for HotLight to Selected transition.
304         * MenuItem.cs: add internal Selected prop. Fill out the Status
305         property by calculating it from item info. Add HotLight,
306         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
307
308 2006-03-30  Mike Kestner  <mkestner@novell.com>
309
310         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
311
312 2006-03-29  Jackson Harper  <jackson@ximian.com>
313
314         * Form.cs: Implement TODO.
315
316 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
317
318         * PrintPreviewDialog.cs: Implemented missing methods and events; still
319           missing proper dialog setup in the constructor
320
321 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
322
323         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
324         * Control.cs:
325           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
326           - Fixed ResetBindings and removed TODO
327           - Added check for cross-thread calls to get_Handle()
328           - Added Marshaller attribute for set_Font to satisfy class status
329         * FontDialog.cs: Removed TODOs that seemed implemented
330         * UpDownBase.cs: Removed unneeded TODO and Fixme
331         * MessageBox.cs: Implemented support for Default button and removed TODO
332         * FileDialog.cs: Removed obsolete TODO
333         * DomainUpDown.cs: Removed obsolete TODO
334         * ButtonBase.cs: Removed obsolete TODO
335         * XplatUIWin32.cs: Removed obsolete TODO
336         * Form.cs:
337           - Removed obsolete TODO
338           - Calling CheckAcceptButton when the acceptbutton is changed to allow
339             internal status updates
340           - Making sure the active control is selected when the control is created
341         * CurrencyManager.cs: Removed obsolete TODO
342
343 2006-03-29  Mike Kestner  <mkestner@novell.com>
344
345         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
346         of PrintPreviewDialog and RichTextBox.
347
348 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
349
350         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
351           DarkDark, Light and LightLight colors for a specific color
352         * ThemeWin32Classic.cs:
353           - Use Button drawing code to draw RadioButtons and CheckBoxes with
354             Appearance = Button 
355           - Make use of the new ResPool helper CPColor
356           - Draw ProgressBar and StatusBar with correct 3D borders
357
358 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
359
360         * ColorDialog.cs: Return selected color. Fixes bug #77940.
361
362 2006-03-28  Mike Kestner  <mkestner@novell.com>
363
364         * ListView.cs: fix Icon layout to plan for scrollbar widths when
365         calculating col/row counts.
366
367 2006-03-28  Mike Kestner  <mkestner@novell.com>
368
369         * ColumnHeader.cs:
370         * ListView.cs:
371         * ListViewItem.cs:
372         * Menu.cs: 
373         switch to explicit interface method implementation for some methods
374         corcompare identifies as inconsistent with MS.
375
376 2006-03-28  Mike Kestner  <mkestner@novell.com>
377
378         * MainMenu.cs: 
379         * Menu.cs:
380         add a few missing methods from the class status output.
381
382 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
383
384         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
385           correct.
386
387 2006-03-28  Mike Kestner  <mkestner@novell.com>
388
389         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
390
391 2006-03-27  Mike Kestner  <mkestner@novell.com>
392
393         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
394         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
395
396 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
397
398         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
399
400 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
401
402         * ThemeWin32Classic.cs:
403           - GroupBox: Inserted a little gap between the text and the lines
404             on the right side
405           - Made the code in CPDrawBorder3D more readable
406           - Corrected the drawing location of the up and down arrows in 
407             CPDrawScrollButton
408
409 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
410
411         * ControlPaint.cs: Corrected line widths in DrawBorder for
412           ButtonBorderStyle Inset and Outset
413
414 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
415
416         * ThemeWin32Classic.cs:
417           - Rewrote the totally broken CPDrawBorder3D method. That was
418             one of the main problems for the terrific ThemeWin32Classic
419             look
420           - Updated and corrected Button drawing
421           - Correct the dimensions of the SizeGrip to match ms ones
422           - Removed a small drawing glitch in DrawComboBoxEditDecorations
423         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
424           Border3DStyle.Sunken to match ms.
425
426 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
427
428         * ThemeWin32Classic.cs: First small part of the "de-uglify
429           ThemeWin32Classic" effort, SizeGrip
430
431 2006-03-24  Jackson Harper  <jackson@ximian.com>
432
433         * XplatUIX11.cs: Give a max idle time of one second, this matches
434         MS and forces an Idle event every second when there are no other
435         events in the queue.
436
437 2006-03-24  Mike Kestner  <mkestner@novell.com>
438
439         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
440         * ListView.Item.cs: fix layout issues with null image lists and images
441         smaller than checkbox size.
442         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
443         mode like MS does.  It's weird, but consistent.  ;-)
444         Fixes #77890.
445
446 2006-03-24  Mike Kestner  <mkestner@novell.com>
447
448         * ListView.cs: Scroll wheel support for the item control.  Fixes
449         #77839.
450
451 2006-03-23  Jackson Harper  <jackson@ximian.com>
452
453         * ScrollableControl.cs: Special case negative sized areas, not
454         zero.
455         * MonthCalendar.cs: Save the rect of the clicked date so we can
456         use it for invalidation.
457         - Try to cut down on the number of invalidates
458         - Invalidate the rect the mouse is over and was over when moving
459         the mouse, so we get the focus box following the cursor.
460
461 2006-03-23  Mike Kestner  <mkestner@novell.com>
462
463         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
464         focus rectangle drawing. Fixes #77835.
465
466 2006-03-23  Mike Kestner  <mkestner@novell.com>
467
468         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
469         the if and else if and reverting back to the original == check on the
470         None conditional.
471
472 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
473
474         * FontDialog.cs: Update the example panel if the selected index of
475           the fontListBox changes.
476
477 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
478
479         * FileDialog.cs: Make FileDialog remember which directory it was in
480           last in the same execution.
481
482 2006-03-22  Mike Kestner  <mkestner@novell.com>
483
484         * FileDialog.cs: make the DropDownMenu on the toolbar display
485         RadioChecks since they are mutually exclusive and that's what MS does.
486
487 2006-03-22  Mike Kestner  <mkestner@novell.com>
488
489         * Theme.cs: add Color param to CPDrawMenuGlyph.
490         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
491         checks and radio marks and arrows are visible on highlighted items.
492         * ControlPaint.cs: update to use new Theme signature.
493
494 2006-03-22  Mike Kestner  <mkestner@novell.com>
495
496         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
497         is active. Fixes #77870.
498
499 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
500
501         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
502           to be focused/selected after startup
503
504 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
505
506         * ColorDialog.cs: 
507           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
508             CustomColors and ShowHelp properties
509           - Some internal rewrites to get better results when using the
510             ColorMatrix
511
512 2006-03-22  Mike Kestner  <mkestner@novell.com>
513
514         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
515         HoverSelection.  Fixes #77836.
516
517 2006-03-22  Mike Kestner  <mkestner@novell.com>
518
519         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
520         ToggleButtons.  (De)Sensitize the Back button around a stack count of
521         1, not 0.  Update ButtonSize based on a pixel count of the win32
522         control.  Adjust the toolbar size/location for new button size.
523
524 2006-03-22  Jackson Harper  <jackson@ximian.com>
525
526         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
527         true.
528         * ScrollBar.cs: When doing increments and decrements we need to
529         set the Value property so that ValueChanged gets raised. A
530         possible optimization here would be to make an internal SetValue
531         that doesn't invalidate immediately.
532         * ToolTip.cs: Tooltips get added to their container (when
533         supplied) so they get disposed when the container is disposed.
534         - Don't create tooltips for String.Empty. This prevents all these
535         little 2-3 pixel windows from showing up when running nunit-gui
536         and driving me mad.
537         * Form.cs: Don't set topmost when setting the owner if the handles
538         haven't been created yet.  The topmost set will happen when the
539         handles are created.
540
541 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
542
543         * XplatUIX11.cs:
544           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
545           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
546             visible (to allow them to recalculate their sizes)
547
548 2006-03-21  Mike Kestner  <mkestner@novell.com>
549
550         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
551         methods. Removed a ton of redundant code.  Still not really happy with
552         the border rendering, but I think that's mainly because of the
553         ControlDarkDark being black instead of a dark grey. Depending on how 
554         close we want to be, we might want to revisit those color choices.
555         Among the new features added during the refactor were DropDownArrow
556         pressed rendering, Disabled image rendering.  Proper flat appearance
557         boundary rendering.  Removed the Divider and Wrapping dividers since I
558         can't figure out any combination of themes and conditions to make the
559         MS control draw a horizontal line on a toolbar despite what the
560         Divider property docs indicate.
561         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
562         conditions and incorrect layout.  Updated to coding standard.
563         * ToolBarButton.cs: refactored layout and positioning code from
564         ToolBar to here.  Invalidate wherever possible instead of forcing
565         redraws of the whole toolbar. 
566         (Known remaining issues: explicit ButtonSize smaller than provided
567         images.)
568
569 2006-03-21  Mike Kestner  <mkestner@novell.com>
570
571         * ContextMenu.cs (Show): use the position parameter instead of just
572         showing at the MousePosition.
573
574 2006-03-21  Jackson Harper  <jackson@ximian.com>
575
576         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
577         control handle this.
578         * TreeNodeCollection.cs: If we are clearing the root node we need
579         to reset top_node so calcs can still happen.
580         * ThemeWin32Classic.cs: This is a Flags so we need to check
581         properly.
582         
583 2006-03-21  Jackson Harper  <jackson@ximian.com>
584
585         * DataGrid.cs: Create columns when the binding context has been
586         changed.
587         * X11Structs.cs: Keysyms are uints.
588         - Add size to fix build.
589
590 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
591
592         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
593           XplatUIOSX.cs: 
594           - Added ResetMouseHover method to allow controls to retrigger
595             hovering if they need it more than once
596           - Implemented MouseHoverTime and MouseHoverSize properties
597         * Timer.cs: Start() must reset the interval
598         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
599           properties
600
601 2006-03-21  Jackson Harper  <jackson@ximian.com>
602
603         * X11Keyboard.cs: improved layout detection. Move the nonchar
604         tables into this file.
605         * KeyboardLayouts.cs: Move the tables into resource files.
606
607 2006-03-21  Mike Kestner  <mkestner@novell.com>
608
609         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
610
611 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
612
613         * Mime.cs: Various speed optimizations. Looking up mime types
614           is now 2 times faster than before
615
616 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
617
618         * CreateParams.cs: Added internal menu field
619         * Control.cs: 
620           - Switched call order for UpdateBounds; now we always call
621             the one that also takes ClientSize, and we're calculating the 
622             client size via driver method in the others. The previous
623             method of tracking client size by difference wasn't working
624             for forms where even the starting client size wouldn't match
625             the overall form size (due to borders) (Part of fix for #77729)
626           - CreateParams(): Do not use parent.Handle unless the handle is
627             already created. Causes havoc with Nexxia and throws off our
628             creation of controls
629         * XplatUIX11.cs:
630           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
631           - Switched handling of ConfigureNotify over to new PerformNCCalc 
632             method (consolidates code)
633           - Changed RequestNCRecalc to use new PerformNCCalc method
634           - Added calls to RequestNCRecalc when menus and borders are changed
635             to allow app to set NC size. (Part of fix for #77729) This matches
636             when MS send a WM_NCRECALC on Win32 windows.
637           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
638             (Part of fix for #77729). This matches what MS does, they also
639             send that message when the form is made visible.
640           - XException.GetMessage: Improved usability of X errors by including
641             a translation of the window into Hwnd and Control class
642           - Improved debug info for window creation, reparenting and destruction
643           - Created helper method WindowIsMapped() [Currently not used]
644         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
645         * Form.cs:
646           - CreateParams: Now setting our menu on the new internal menu field
647           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
648             avoid calculating the same property twice
649         * Hwnd.cs:
650           - Improved usability of ToString() for debugging purposes
651           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
652             determine the height of the menu, instead of just the font. This
653             required to also create a graphics context and to keep a bmp 
654             around (for performance reasons)
655
656 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
657
658         * MenuAPI.cs: Added OnMouseUp method
659         * Form.cs:
660           - Now remembering the requested client size, avoids size errors
661           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
662             instead of base if the menu is active. This is required due to
663             control now capturing and releasing on down/up and it would
664             prematurely release our menu capture
665
666 2006-03-17  Jackson Harper  <jackson@ximian.com>
667
668         * KeyboardLayouts.cs: Add the czech layouts.
669
670 2006-03-16  Jackson Harper  <jackson@ximian.com>
671
672         * Control.cs: Use the viewport space when sizing not the controls
673         client size, so things like ScrollableControl that effect the
674         viewport size (when scrollbars are added) are computed correctly.
675         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
676         of ManagerEntrys.
677         - Handle creating BindingManagers for null data sources.
678         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
679         source, otherwise when rows are added they are added to the 'fake'
680         datasource and we will crash when trying to set the position in
681         those rows.
682         - Use Implicit scrollbars on the datagrid so they arent
683         selectable.
684         
685 2006-03-16  Jackson Harper  <jackson@ximian.com>
686
687         * Binding.cs:
688         * InternalWindowManager.cs:
689         * MdiWindowManager.cs:
690         * X11Keyboard.cs: I really want Mike to love me again (fix
691         compiler warnings).
692
693 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
694
695         * DataGrid.cs:
696           - OnMouseDown: Switch to editing mode when clicking on the cell
697                          even if we're clicking on the cell that's currently 
698                          selected
699           - ProcessGridKey: Left/Right now wrap like MS.Net does
700           - ProcessGridKey: Tab now knows to add a new row when tab is
701                             pressed in the cell of the last column of the 
702                             last row
703           - ProcessGridKey: Enter now adds another row  if pressed in the last
704                             row and selectes the new row, same column cell
705           - ProcessGridKey: Home/End navigate columns, not rows, like 
706                             originally implemented
707           - Broke ProcessKeyPreview code out into an extra Internal method
708             so it can be called from the edit code
709         * DataGridTextBox.cs (ProcessKeyMessage):
710           - Switched to accept Tab keypresses
711           - Added F2 handling to allow jumping to the end of the edited cell
712           - Added logic to allow moving caret left/right inside edited cell
713             and making the edited cell jump when the caret hits cell borders
714           - Tab and Enter are now passed to the datagrid after being handled
715         * TextBoxBase.cs:
716           - Removed capture code now that Control handles it
717           - set_SelectionStart now ensures caret is visible
718
719 2006-03-16  Jackson Harper  <jackson@ximian.com>
720
721         * TrackBar.cs: Debackwards the increment/decrement for handling
722         mouse clicks on the bar with vertical trackbars.
723         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
724         bottom to match MS.
725
726 2006-03-16  Mike Kestner  <mkestner@novell.com>
727
728         * ListView.cs: make shift/ctrl keyboard and mouse selection 
729         consistent with the MS control. Fix a bug in
730         SelectedListViewItemCollection.Clear that was pissing me off for the
731         better part of a day because the collection was being altered
732         underneath us as we walked the list.
733
734 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
735
736         * Control.cs: Not sure how we could miss this so long, but it seems
737           that MS.Net has Capture set all the way from before calling 
738           OnMouseDown through sending the mouse events until after
739           OnMouseUp. This will fix DataGrid's selection being set to end
740           at the location of the MouseUp.
741
742 2006-03-15  Jackson Harper  <jackson@ximian.com>
743
744         * BindingContext.cs: Check the binding after its added so that it
745           can initialize the binding managers and hookup to events.
746         * Binding.cs: Data members seem to sometimes include rows/cols in
747           the format Row.Column we now take this into account.
748           - Hookup to the position changed event so we can update the
749           control when the position has changed in the data set.
750         * CurrencyManager.cs: Take into account the row/col naming
751           convention when creating dataset tables.
752         * BindingContext.cs: Using a newer better way of storing
753           datasource/datamember pairs.  Hopefully this better matches MS for
754           looking up binding managers.
755
756
757 2006-03-15  Jackson Harper  <jackson@ximian.com>
758
759         * BindingContext.cs: The currency manager needs the data member
760         name, if the member is a data set we use the name to find the
761         correct table.
762         * CurrencyManager.cs: When creating the list prefer an IList over
763         an IListSource.
764         - Attempt to create a DataTable from a DataSet (TODO: might need
765         some better error checking here, although MS doesn't seem to have much)
766         - If we have a DataTable create a view and use it as our list.
767
768 2006-03-15  Mike Kestner  <mkestner@novell.com>
769
770         * ListView.cs: keep a matrix of the icon mode layout to facilitate
771         keyboard navigation. Support Up/Down/Left/Right selection correctly
772         for all 4 View modes.
773         * ListViewItem.cs: add internal row/col fields for icon layouts.
774
775 2006-03-15  Jackson Harper  <jackson@ximian.com>
776
777         * TabControl.cs: Redraw the tabs when we resize so their newly
778         calculated sizes are drawn on screen.
779         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
780         composite characters.
781         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
782         - filter events so that composite characters can be created
783         patches by peter
784         * X11Structs.cs: Add XIMProperties enum.
785
786 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
787
788         * Control.cs (BringToFront, SendToBack): Don't use window or handle
789           unless it's created
790
791 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
792
793         * Control.cs (PerformLayout): We don't need to consider visiblity
794           for anchoring, only for docking. This fixes 'whacky' alignment
795           in listbox and other controls that use implicit scrollbars after
796           the previous PerformLayout patch
797         * ListBox.cs: Switched to use implicit scrollbars
798           
799 2006-03-14  Mike Kestner  <mkestner@novell.com>
800
801         * ToolBar.cs: 
802         * VScrollBar.cs:
803         - chain up the "new event" overrides to base and use
804         OnEvent to raise them.  Part of fix for bug #76509.
805
806 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
807
808         * FileDialog.cs: Do not select an item in the parent directory
809           on backspace
810
811 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
812
813         * Control.cs (PerformLayout): It would seem that we considered
814           invisible windows for our layout. Not quite the right thing
815           to do. Now we don't any longer, thereby fixing bug #76889.
816
817 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
818
819         * Control.cs (CanFocus): I goofed. A control can have focus 
820           even though it's not selectable. Made it match MS docs.
821
822 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
823
824         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
825           center by default (fixes #76895)
826         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
827           all uses of Border3DSides.All with the explicit ORd together
828           Left|Right|Top|Bottom because I assume that nobody was aware 
829           that All also implies a center fill. Most places I checked had
830           a fill right above.
831         * ProgressBarStyle.cs: Added
832
833 2006-03-13  Mike Kestner  <mkestner@novell.com>
834
835         * ListView.cs: fix breakage in drag shadow header positioning 
836         from Peter's csc compilation fix.
837
838 2006-03-13  Mike Kestner  <mkestner@novell.com>
839
840         * ListView.cs: fix NRE produced by backspacing twice in a focused
841         FileDialog.
842
843 2006-03-13  Mike Kestner  <mkestner@novell.com>
844
845         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
846
847 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
848
849         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
850           be changed
851         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
852           the allowed size before making programmatic size changes
853
854 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
855
856         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
857           set, metacity is broken and will still use the emty sizes in 
858           the struct. (Fix for #77089)
859
860 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
861
862         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
863           WindowExStyles and marked both enums as Flags
864         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
865           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
866           to match WindowStyles split
867         * XplatUIX11.cs:
868           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
869           - Updated to match WindowStyles split
870         * XplatUIWin32.cs:
871           - Fixed FosterParent creation, was using ExStyle on the Style field
872             (This should help with Popup focus issues)
873           - Updated to match WindowStyles split
874
875 2006-03-13  Jackson Harper  <jackson@ximian.com>
876
877         * MdiWindowManager.cs: Use the system menu height. Fixes some
878         strange sizing issues.
879
880 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
881
882         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
883         * TextBoxBase.cs:
884           - Scroll to caret after inserting text (#77672)
885           - Make scroll range one pixel higher, fixes off-by-one error (and
886             makes underlines visible on the last line)
887
888 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
889
890         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
891           the keyboard state from being stuck with keys in 'pressed' state when
892           focus is switched away via keyboard
893         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
894           reset the keyboard if no X11 KeyUp events are expected to come
895         * X11Structs.cs: Switched type of Visible to bool to match driver
896
897 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
898
899         * TextControl.cs:
900           - Switched caret to be just 1 pixel wide, matches MS and looks less
901             clunky
902           - Moved caret display 1 pixel down from the top of the control
903             to improve view
904           - InsertCharAtCharet: Update the selection start if moving the caret
905             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
906           - No longer always creating the caret when the caret methods are
907             called. Only the actual ShowCaret/HideCaret will do that now
908           - Only setting caret visible if the owner control has focus
909           - UpdateView: Added invalidation-shortcut logic for center and right 
910             aligned text. Previously we'd update all according to the left
911             logic which caused drawing errors. Also fixed height of invalidated
912             areas, now properly invalidating the whole area (was off-by-one)
913           - owner_HandleCreated: Always generate the document when the
914             handle is created; this ensures that 
915         * TextBoxBase.cs:
916           - Fixed situation where caret would disappear under the right
917             window border, also improved scrolling behaviour on left-
918             aligned textboxes
919           - Fixed right-aligned textboxes to have a border to the
920             right instead of the caret being under the right border
921         * XplatUIX11.cs:
922           - Switched from 'nested' to simple visible/not visible tracking 
923             for caret (part of fix for #77671)
924           - No longer passing through translated FocusIn/FocusOut messages
925             since we were notifying too often and the wrong windows. Instead
926             we just notify our focussed window of receiving or loosing focus
927         * XplatUIWin32.cs: Switched from 'nested' show/hide 
928           counting for caret to simple visible yes/no behaviour (part of 
929           fix for #77671)
930
931 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
932
933         * Mime.cs: Remove debug code...
934
935 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
936
937         * MimeGenerated.cs: Removed
938         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
939           and subclasses) from /usr/(local/)share/mime and
940           $HOME/.local/share/mime.
941
942 2006-03-10  Jackson Harper  <jackson@ximian.com>
943
944         * MdiWindowManager.cs: Recalc the NC area when a window is
945         maximized/restored so that the menu area is drawn on forms that
946         don't have a menu.
947
948 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
949
950         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
951           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
952           us to force a WM_NCCALCRESIZE message being sent. This is needed
953           for MDI maximizing.
954
955 2006-03-10  Jackson Harper  <jackson@ximian.com>
956
957         * Form.cs: We need to use the ActiveMenu when calculating menu
958         height.
959         - Fix nullref when the window manager hasn't been created yet.
960         * Control.cs: Fix nullref when we try to bring a control to the
961         front that has no parent.
962         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
963         height.
964         - Add a dummy item to the maximized menu so it always has the
965         correct height. Otherwise when there are no menus we don't get our
966         icon and buttons.
967         
968
969 2006-03-10  Jackson Harper  <jackson@ximian.com>
970
971         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
972         stuff.
973         * Form.cs: Make the window_state internal so the window managers
974         can track it.
975         - When an MDI child is maximized let its window manager create the
976         main menu (so it can add its icon).
977         - Notify the window managers of state changes
978         - Let the window manager paint its buttons and handle button
979         clicks on the menu when it is maximized.
980         * InternalWindowManager.cs: Move the prev_bounds into the mdi
981         window manager, since tool windows don't use it, only mdi windows.
982         - Tell the main form that we don't want it to handle NCPAINT
983         itself to avoid extra painting.
984         - Handle clicks on a maximized windows menu.
985         - Handle window state changes
986         - Handle minimize/maximize clicks correctly by setting the window state.
987         * MdiWindowManager.cs: Add an icon menu that (the menu you get
988         when clicking on the forms icon).
989         - New method to create a forms maximized menu. This is its normal
990         menu + an icon.
991         - Handle window state changes.
992         - Handle sizing of maximized windows.  Maximized windows are just
993         drawn bigger then the parent visible area. All controls are still
994         there, they are just outside the visible area (this matches windows).
995         * MdiClient.cs: No scrollbars when a child window is maximized.
996         - Let the children windows figure out how big they should be when
997         sizing maximized windows.
998         - Implement a version of ArrangeIconicWindows somewhat similar to
999         Windows version.  There are some little differences, but I don't
1000         think any app will rely on the layout of minimized mdi windows.
1001
1002 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
1003
1004         * Padding.cs: Several fixes to allow compiling with csc 2.0
1005
1006 2006-03-09  Jackson Harper  <jackson@ximian.com>
1007
1008         * Menu.cs:
1009         * MenuItem.cs: Cheap hack so we can add items to the list without
1010         the events being raised.  This allows adding mdi items during
1011         drawing. TODO: Should probably find a better time to add the items.
1012
1013 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
1014
1015         * ThemeWin32Classic.cs:
1016           - CheckBox_DrawText: Added logic to not wrap if not enough space
1017             is available (Fix for bug #77727)
1018           - RadioButton_DrawText: Added logic not to wrap if not enough
1019             space is available (Fix for bug #77727). Also removed some
1020             duplicate code, DrawString always drawing the regular text
1021             before hitting the if statement.
1022
1023 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
1024
1025         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
1026
1027 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
1028
1029         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
1030         * ContainerControl.cs: Partial implementation of some 2.0 scaling
1031           methods. Moved the new 2.0 properties into alphabetical order with
1032           other properties and added MonoTODO tags
1033
1034 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
1035
1036         * AutoScaleMode.cs: Added. Fix build.
1037
1038 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
1039
1040         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
1041           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
1042           and was requiring premature handle creation for calls from above
1043         * Form.cs, Control.cs: Removed handle arguments from calls to
1044           CalculateClientRect()
1045
1046 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
1047
1048         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
1049           drag_column.column_rect is MarshalByRef and can't be used that way
1050
1051 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
1052
1053         * AxHost.cs: Added deserialization constructor for 
1054           AxHost+State (fixes 77743)
1055
1056 2006-03-09  Mike Kestner  <mkestner@novell.com>
1057
1058         * ListView.cs: 
1059         - Added column drag reordering for details view.
1060         - fixed behavior when mouse is dragged off column and
1061         AllowColumnReorder is false.
1062         * ColumnHeader.cs: clone the format too in Clone.
1063         * Theme.cs: add DrawListViewHeaderDragDetails method.
1064         * ThemeWin32Classic.cs:
1065         - impl new method for drawing drag column shadows and targets.
1066         - support column offset for details mode in DrawListViewItem.
1067
1068 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
1069
1070         * TextControl.cs: Reset the char_count when the document is cleared
1071           (Fixes bug reported on mono-winforms mailing list)
1072
1073 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
1074
1075         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
1076           of calling base we simply process the key ourselves, since both
1077           DefWindowProc and the handled method would set m.Result. 
1078           (Fixes #77732)
1079
1080 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
1081
1082         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
1083           method also moves the window; instead implemented a copy of
1084           Control.ScaleCore (Part of fix for #77456)
1085         * TextBoxBase.cs: 
1086           - Created new CreateGraphicsInternal method to allow providing
1087             a graphics context when no handle is created without triggering
1088             handle creation. (Part of fix for #77456)
1089           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
1090         * TextControl.cs: 
1091           - Switched Constructor to require TextBoxBase instead of Control (to
1092             allow uncast access to CreateGraphicsInternal)
1093           - Safeguarded use of owner.Handle property. No longer accessing it
1094             unless the handle is already created.
1095           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
1096           - Now triggering a recalc when owning control becomes visible
1097         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
1098           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
1099           premature handle creation (Part of fix for #77456)
1100         * Control.cs:
1101           - We now only destroy our double-buffering buffers when the
1102             control is resized or disposed, but not when visibility
1103             changes. (The code even re-created them twice every time)
1104           - Now requiring a redraw of the buffer on visibility changes
1105             (fixes bug 77654 part 2)
1106           - Not passing OnParentVisibleChanged up unless the control
1107             is visible
1108           - CanFocus: Fixed to match MS documentation
1109           - Focus: Fixed to return actual focus state and to check if
1110             setting focus is legal before setting it
1111
1112 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
1113
1114         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
1115           when to draw focus rectangle by looking at parent focus and
1116           selected state instead. This fixes TabPages on Linux sometimes
1117           having none or multiple focus rectangles.
1118         * XplatUIX11.cs (SetFocus): 
1119           - Don't set the focus if the same window already has focus
1120           - Use SendMessage instead of PostMessage (like it's Win32
1121             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
1122             to match MS behaviour
1123         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
1124           are not selectable.
1125
1126 2006-03-07  Jackson Harper  <jackson@ximian.com>
1127
1128         * PictureBox.cs: Revert line I accidently committed last week.
1129
1130 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
1131
1132         * Control.cs: 
1133           - Added new IsRecreating and ParentIsRecreating properties to
1134             allow testing if RecreateHandle has been called on ourselves
1135             or one of our parents
1136           - WndProc(WM_DESTROY): If our control handle is being recreated
1137             we immediately need to create the handle when receiving the
1138             destroy, that way our child windows find a valid parent handle
1139             when they themselves are being recreated upon WM_DESTROY receipt
1140             (fix for bug #77654 part 1)
1141         * XplatUIX11.cs:
1142           - DestroyWindow: WM_DESTROY must be sent to our own window before
1143             notifying any child windows. MS documents that child windows
1144             are still valid when WM_DESTROY is received. (Control now relies on
1145             this behaviour)
1146           - Added some fine-grain debug options
1147
1148 2006-03-06  Jackson Harper  <jackson@ximian.com>
1149
1150         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
1151         box and base calculations off this.
1152         * MdiChildContext.cs:
1153         * MdiWindowManager.cs: Don't need to ensure scrollbars here
1154         anymore.
1155         
1156 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
1157
1158         * Splitter.cs: In situations where the affected control is added
1159           to the parent's control list after the splitter, we would not
1160           populate affected. Now we try populating it on mousedown, if
1161           it's not already set, and force it to be re-set whenever our
1162           parent changes.
1163
1164 2006-03-03  Matt Hargett  <matt@use.net>
1165
1166         * Control.cs: implement Control.Padding
1167         * Padding.cs: -Padding.All returns -1 when constructing with the
1168         implicit default ctor
1169         -Padding.ToString() matches MS.NET
1170         * ContainerControl.cs: implement
1171         ContainerControl.AutoScaleDimensions
1172         * ListControl.cs: implement ListControl.FormattingEnabled
1173         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
1174         * ButtonBase.cs:
1175         * TabPage.cs: Implement UseVisualStyleBackColor.
1176         * PictureBox.cs: Implement PictureBox.InitialImage.
1177
1178 2006-03-03  Mike Kestner  <mkestner@novell.com>
1179
1180         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
1181         event declarations to proxy to base event.
1182         * ListViewItem.cs: update to use ItemControl.
1183         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
1184         * ThemeWin32Classic.cs: update to new ListView theme API and fix
1185         column header label rendering for 0 width columns.
1186
1187 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
1188
1189         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
1190           that causes the control to be created. Fixes #77476.
1191
1192 2006-03-02  Jackson Harper  <jackson@ximian.com>
1193
1194         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
1195         expose_pending.
1196
1197 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
1198
1199         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
1200           passed in for the EventArgs (fixes #77690)
1201
1202 2006-03-01  Jackson Harper  <jackson@ximian.com>
1203
1204         * ScrollBar.cs: Refresh afterbeing resized.
1205
1206 2006-02-28  Mike Kestner  <mkestner@novell.com>
1207
1208         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
1209         Clean up a tracker compile warning.
1210         * MenuItem.cs: add internal PerformPopup method.
1211         [Fixes #77457]
1212
1213 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
1214
1215         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
1216           implicit expose) when the text is set to null
1217
1218 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
1219
1220         * RichTextBox.cs (FlushText): When newline is true, we always
1221           need to split the line, even if no text is on it and we may
1222           never eat newlines. (Fixes #77669)
1223
1224 2006-02-28  Mike Kestner  <mkestner@novell.com>
1225
1226         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
1227         and set Selected instead.
1228         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
1229         collections.
1230
1231 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
1232
1233         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
1234
1235 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
1236
1237         * FontDialog.cs:
1238           - Got rid of the panel. All controls are now directly added to
1239             the dialog form
1240           - It is now possible to set a font with the Font property
1241           - MinSize and MaxSize property do now what they should
1242           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
1243           - Searching and selecting a font with the font textbox works now,
1244             the same applies to the style and size textbox
1245           - Draw the correct 3D border in the example panel
1246           - Fixed a little mem leak (unused fonts didn't get disposed)
1247           - Many other internal updates/rewrites...
1248           - Fix typo
1249
1250 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
1251
1252         * TextControl.cs: 
1253           - InsertRTFFromStream: Added 'number of characters inserted' argument
1254           - set_SelectedRTF: Now using the number of characters to calculate
1255             the new location for the selection and cursor (x/y cannot be used
1256             due to potentially already wrapped text)
1257
1258 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
1259
1260         * TextControl.cs: Added property and implemented means to allow 
1261           disabling recalculation of a document (can be used to speed up
1262           multiple inserts and is needed to make RTF inserts predictable, see
1263           bug #77659)
1264         * RichTextBox.cs: Using the new NoRecalc property of Document to
1265           keep x/y insert locations predictable. Also makes it faster inserting
1266           large chunks of RTF
1267
1268 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
1269
1270         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
1271           it's easier for a child control to handle the other messages without
1272           having to duplicate the special functionality
1273         * TextBoxBase.cs
1274           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
1275             code to handle processing the key ourselves, in order to get 
1276             access to the result of KeyEventArgs.Handled. We now only call 
1277             ProcessKey if they key hasn't been handled already. Fixes #77526.
1278           - set_Text: If null or empty string is given, just clear the 
1279             document. Fixes part of #77526
1280
1281 2006-02-27  Jackson Harper  <jackson@ximian.com>
1282
1283         * SizeGrip.cs: Paint the background color before painting the grip
1284         so things look right.
1285         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
1286
1287 2006-02-27  Mike Kestner  <mkestner@novell.com>
1288
1289         * ListView.cs:
1290           - Restructure layout and invalidation model to remove a ton of
1291           flicker from the control and speed up performance in general.
1292           - Add manual column resize, flickers like crazy, but I already have
1293           some ideas on how I'll fix that. (#76822)
1294           - Merge the three Icon-based views into a single layout method.
1295           - Move item selection interaction logic from the item since 
1296           interaction with the collections is more appropriate to the view.
1297           - Deselection on non-item clicks.
1298         * ListViewItem.cs:
1299           - Encapsulate most of the layout. Add some internal props to trigger
1300           layout.  Move to a model where Items invalidate themselves instead
1301           of just invalidating the whole control every time something changes.
1302           - Invalidate on Text/Caption changes.
1303           - switch to an offset based layout model to avoid having to absolute
1304           position every element on item moves.
1305           - correct checkbox layout to conform to MS layout.
1306         * ThemeWin32Classic.cs:
1307           - refactor some column header drawing code.
1308           - fix string justification for column headers (#76821)
1309           - make SmallIcon labels top justified for compat with MS impl.
1310         * ThemeClearlooks.cs:
1311           - adjust to new ListViewItem internal checkbox bounds api.
1312
1313 2006-02-27  Jackson Harper  <jackson@ximian.com>
1314
1315         * Control.cs:  Change where implicit controls fall in the zorder.
1316         They are now on top of all children.
1317         - Synced AddImplicit code with Add
1318         - Removed unused enumerator.
1319         * SizeGrip.cs: Remove the TODO as its been TODONE.
1320
1321 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
1322
1323         * TextControl.cs(Insert): Combine the last lines unless the insertion
1324           string ends with \n\n, otherwise we leave one line too many (Fixes
1325           something I noticed with the testapp for #77526; the bug itself was
1326           already fixed in the previous checkin)
1327
1328 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
1329
1330         * RichTextBox.cs:
1331           - SelectionColor and SelectionFont methods no longer set absolute
1332             styles. Instead, the keep font or color respectively (This 
1333             resolves a long-standing FIXME in the code)
1334           - When flushing RTF text, the insert code now considers text trailing
1335             behind the insertion point (Fixes the bug where when replacing
1336             the selected text via SelectedRTF the remainder of the line behind 
1337             the selection would stay on the first insertion line)
1338         * TextBoxBase.cs:
1339           - AppendText now updates the selection points after inserting text
1340           - AppendText now ensures that the last tag (sometimes 0-length) of
1341             the document is used for the style information (Fixes part of 
1342             bug #77220)
1343         * TextControl.cs:
1344           - Created new FontDefiniton class to allow describing partial style
1345             changes
1346           - StreamLine() now takes a lines argument, to allow it to decide
1347             whether an encountered zero-length tag is the last in the document
1348             (which must be kept to not loose the font/color contained in it,
1349             for later appends)
1350           - Created Combine() and Split() methods for Marker structs, to 
1351             support marker updates due to reformatted documents (soft line
1352             wraps)
1353           - Implemented Document.CaretTag setter
1354           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
1355             of the last line (Not the cause, but also exposed by bug #77220)
1356           - Added LineTag argument to InsertString method, to allow callers
1357             to force a certain tag to be used (required to force use of the
1358             trailing zero-length tag of a document)
1359           - Now updating markers in Combine(), to avoid stale tag markers
1360           - Added some method descriptions to aid maintenance
1361           - Implemented new FormatText concept, allowing additive/subtractive
1362             formatting by only specifying the components that are to be 
1363             changed. This was needed for resolving the RTB.SelectedColor/
1364             RTB.SelectedFont fixmes
1365           - Added Break() support method to allow breaking up linetags (used
1366             for partial formatting)
1367           - Added GenerateTextFormat() method. It is used for partial 
1368             formatting and allows to generate a full font/color from given
1369             attributes and an existing tag.
1370
1371 2006-02-26  Jackson Harper  <jackson@ximian.com>
1372
1373         * XplatUIX11.cs:  Use the correct caption height.
1374         - Translate hittest coordinates to screen coords to match MS.
1375         * XplatUIWin32.cs: When we create MDI windows we need to reset
1376         some of the style flags, so we get a nice blank window, and can
1377         draw all the decorations ourselves.
1378         - Set a clipping rectangle on the non client paint event, the
1379         window manager drawing code needs one.
1380         * Form.cs: The window manager needs to know when the window state
1381         has been updated.
1382         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
1383         don't need to factor in border and title sizes in these
1384         methods. TODO: Remove the args and fix the call points.
1385         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
1386         properly.
1387         - Let the driver set the cursors.
1388         - Improve active window handling
1389         - Correct sizes for title bars and buttons.
1390         - Match MS drawing better
1391         * MdiWindowManager.cs: We don't need to handle border style
1392         updates specially anymore.
1393         - Check for scrollbars when windows are done moving
1394         - Handle Active properly.
1395         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
1396         correctly. I am spewing the exception though, so we don't hide the
1397         bugs.
1398         
1399 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
1400
1401         * DataGridViewRowPostPaintEventArgs.cs,
1402           DataGridViewCellPaintingEventArgs.cs,
1403           DataGridViewRowCollection.cs,
1404           DataGridViewRowPrePaintEventArgs.cs,
1405           DataGridViewCell.cs: Clear a few warnings and implement a few
1406           exceptions that should be thrown.
1407
1408 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
1409
1410         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
1411           'inheriting' our parent's (non-default) cursor. (Part of
1412            the fix for #77479)
1413
1414 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
1415
1416         * XplatUIX11.cs: Fixed cast to make csc happy
1417
1418 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
1419
1420         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
1421           it's for the client area (part of fix for #77479 and needed
1422           for MDI window cursor handling)
1423         * XplatUIX11.cs
1424           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
1425             the appropriate default cursors and also passing the message
1426             up the parent chain 
1427           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
1428             for non-client areas
1429
1430 2006-02-15  Jackson Harper  <jackson@ximian.com>
1431
1432         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
1433         is a real MDI window
1434
1435 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
1436
1437         * X11DesktopColors.cs: Instead of checking the desktop session
1438           string for "KDE" check if it starts with "KDE"
1439
1440 2006-02-10  Jackson Harper  <jackson@ximian.com>
1441
1442         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
1443         systems).
1444
1445 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
1446
1447         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
1448           errors
1449         * ColorDialog.cs:
1450           - Got rid of the panel. All controls are now directly added to
1451             the dialog form
1452           - Changed to mono coding style
1453
1454 2006-02-10  Jackson Harper  <jackson@ximian.com>
1455
1456         * InternalWindowManager.cs: We don't need the set visibility to
1457         false hack anymore now that peter has written beautiful shutdown
1458         code.
1459
1460 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
1461
1462         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
1463           where already explicitly destroyed
1464
1465 2006-02-10  Jackson Harper  <jackson@ximian.com>
1466
1467         * MdiClient.cs: Handle the case where windows are too high or to
1468         the left and we need scrollbars.
1469
1470 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
1471
1472         * MimeIcon.cs: Added some icons
1473         * FileDialog.cs:
1474           - Fixed bug #77477
1475           - Got rid of the panel. All controls are now directly added to
1476             the dialog form
1477           - Changed to mono coding style
1478           - On Linux "My Computer" and "My Network" will now show some
1479             more usefull information. A new class, MasterMount, gathers
1480             this information from /proc/mount. Updated MWFFileView to make
1481             use of this information
1482           - Fixed a bug that caused FileDialog to crash when
1483             ".recently_used" file had a zero size
1484           - FilterIndex does now what it should
1485           - Some Refactoring
1486         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
1487             FileDialog changes
1488
1489 2006-02-09  Jackson Harper  <jackson@ximian.com>
1490
1491         * ComboBox.cs: Don't touch if null.
1492
1493 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
1494
1495         * Cursor.cs: 64bit safeness fix
1496         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
1497
1498 2006-02-09  Jackson Harper  <jackson@ximian.com>
1499
1500         * Form.cs: If a form is made into an MDI form update the styles so
1501         all the props can get set correctly.
1502         - Kill the mdi_container when we dont need it anymore.
1503         * InternalWindowManager.cs: Add missing NOT
1504
1505 2006-02-08  Jackson Harper  <jackson@ximian.com>
1506
1507         * InternalWindowManager.cs: Respek clipping when drawing MDi
1508         decorations.
1509
1510 2006-02-08  Jackson Harper  <jackson@ximian.com>
1511
1512         * Hwnd.cs: Add bits to track non client expose events.
1513         * XplatUIX11.cs: Track non client expose events on the hwnd. This
1514         gives us a proper invalid rect and will allow for some nice
1515         optimizations with NC client drawing
1516         - MDI windows are children windows, so move their style handling
1517         into the child window block.
1518         * InternalWindowManager.cs: Remove a state reset that was
1519         getting invoked at the wrong time. Fixes managed windows getting
1520         into a 'stuck' captured state.
1521
1522 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
1523
1524         * TextControl.cs (Document.ctor): Now initializing 
1525           selection_anchor. Fixes #77493
1526
1527 2006-02-07  Jackson Harper  <jackson@ximian.com>
1528
1529         * TrackBar.cs: The increment/decrements were backwards.
1530
1531 2006-02-07  Mike Kestner  <mkestner@novell.com>
1532
1533         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
1534         to the instance itself.
1535
1536 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
1537
1538         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
1539           on ulongs and pointers, the size differs between 32bit and 64bit
1540           systems. 
1541
1542 2006-02-07  Mike Kestner  <mkestner@novell.com>
1543
1544         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
1545         for 64 bit platforms to work around a metacity bug. 
1546
1547 2006-02-07  Jackson Harper  <jackson@ximian.com>
1548
1549         * TrackBar.cs: Process the input keys we need, and hookup to
1550         KeyDown instead of using WndProc, so we get key messages.
1551
1552 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
1553
1554         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
1555           machine we're on. 
1556         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
1557           we need to translate the XdndVersion atoms array before sending it
1558
1559 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
1560
1561         * XplatUIX11.cs: 
1562           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
1563             number of bits for the property, not the number of bytes. The
1564             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
1565             but would not crash since it specified 8 bits instead of 4 bits)
1566           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
1567             defined as XID -> long in the C headers)
1568           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
1569             references since those are now IntPtr to begin with
1570           - Switched all Atom.XXX 'int' casts to IntPtr casts
1571           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
1572           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
1573           - Added XChangeActivePointerGrab DllImport (for X11DnD)
1574         * X11Structs.cs:
1575           - Changed 'int' type for Atoms in XEvent structures to IntPtr
1576           - Changed atom in HoverStruct to be IntPtr
1577         * X11DnD.cs:
1578           - Removed local DllImports, switched code to use those from XplatUIX11
1579           - Removed/fixed casts related to the switch of Atom to be a IntPtr
1580
1581 2006-02-06  Mike Kestner  <mkestner@novell.com>
1582
1583         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
1584         method signatures in the import region.  There may still be some
1585         lingering struct marshaling issues, as I didn't drill down into those.
1586         Yet.
1587
1588 2006-02-06  Jackson Harper  <jackson@ximian.com>
1589
1590         * ComboBox.cs: Dont manually set the top_item, this is computed
1591         when the scrollbar position is set.
1592
1593 2006-02-06  Mike Kestner  <mkestner@novell.com>
1594
1595         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
1596         startup crashes on amd64.  There's other fixes needed.  All pinvoke
1597         usage of Atom needs to be mapped to IntPtr for example.  And there are
1598         likely other int/long issues to be addressed.
1599
1600 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
1601
1602         * FileDialog.cs: One more...
1603
1604 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
1605
1606         * FileDialog.cs: Next try
1607
1608 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
1609
1610         * FileDialog.cs: First part of fix for #77464
1611
1612 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
1613
1614         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
1615           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
1616           AcceptButton border drawing.
1617
1618 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
1619
1620         * Form.cs: Moved positioning of form after auto scaling is applied,
1621           otherwise it would possibly use wrong form size.
1622
1623 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
1624
1625         * Control.cs (RecreateHandle): No need to re-create any child
1626           controls, the child windows will get destroyed automatically by
1627           the windowing system or driver, and re-created when the handle
1628           is being accessed the first time. Fixes #77456
1629         * Form.cs: No longer setting the form to closing if the handle is 
1630           being recreated. This seems like the right thing to do, don't
1631           have a bug or testcase for this, though.
1632
1633 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
1634
1635         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
1636           controls to avoid unwanted side effects
1637
1638 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
1639
1640         * Control.cs: 
1641           - ScaleCore needs to scale the bounds, not the ClientSize of the 
1642             control. Fixes #77416.
1643           - DefaultSize is 0,0 for control
1644         * TextBoxBase.cs: 
1645           - DefaultSize is 100, 20
1646           - SetBoundsCore: Now enforcing the height, no matter if the provided
1647             height is more or less than the preferred one, as long as AutoSize
1648             is on
1649         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
1650
1651 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
1652
1653         * Control.cs:
1654           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
1655             call unless both performLayout is true *and* we have a pending
1656             layout change
1657           - ResumeLayout: MS does not completely nest Suspend and Resume,
1658             they bottom out at 0, fixed our code to match that.
1659           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
1660             SetBoundsCore, we were updating even when we shouldn't. This fixes
1661             swf-anchors mis-anchoring when resizing the app fast and lots.
1662           - UpdateDistances: Now only setting the left and top distance if 
1663             we have a parent and are not suspended, this is based on
1664             a suggestion by Don Edvaldson in bug #77355.
1665           - OnVisibleChanged: Fixed logic when to create the control. We may
1666             not create the control if we have no parent or if it's not visible;
1667             switched to using Visible property instead of is_visible field 
1668             since the property also considers parent states. This fixes a bug
1669             when starting Paint.Net
1670
1671 2006-02-02  Jackson Harper  <jackson@ximian.com>
1672
1673         * Form.cs: If the forms handle hasn't been created yet don't call
1674         into xplatui to make it top most, just set the topmost flag on the
1675         form in CreateParams
1676         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
1677
1678 2006-02-01  Jackson Harper  <jackson@ximian.com>
1679
1680         * ScrollableControl.cs: Refactored the Recalculate method a
1681         little, this wasn't handling all the variants of bottom and right
1682         bars needed to be added and added/removed based on their
1683         counterparts being added/removed (which changes the drawable
1684         size). Also we special case client widths and heights of 0 and
1685         don't add the scrollbar for those.
1686
1687 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
1688
1689         * XplatUIX11.cs: 
1690           - Added method to get AbsoluteGeometry(); currently unused, but might
1691             be used in the future, if we try again to figure out toplevel
1692             coordinates with some more crappy window managers
1693           - Added FrameExtents() method to retrieve the WM set decoration size
1694           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
1695             to deal with at least KDE, FVWM and metacity (Fixes #77092)
1696         * Hwnd.cs: 
1697           - Added whacky_wm tracking var for metacity
1698           - Added logic to have default menu height if the actual menu height
1699             has not yet been calculated (part of fix for #77426)
1700         * Form.cs: Keep track whether client size has been set and re-set 
1701           it if a menu is added/removed afterwards (Fixes #77426)
1702
1703 2006-01-31  Jackson Harper  <jackson@ximian.com>
1704
1705         * Control.cs: When a new Site is set on the component attempt to
1706         pull the AmbientProperties from it.
1707
1708 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
1709
1710         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
1711           in the background of the owning form. Fixes #77332
1712
1713 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
1714
1715         * MimeIcon.cs: Fix for #77409
1716
1717 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
1718
1719         * XplatUIX11GTK.cs: Initial import
1720
1721 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
1722
1723         * FixedSizeTextBox: fixes class signature
1724
1725 2006-01-30  Jackson Harper  <jackson@ximian.com>
1726
1727         * FixedSizeTextBox.cs: New internal class that represents a
1728         textBox that will not be scaled.
1729         * TreeView.cs:
1730         * ComboBox.cs:
1731         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
1732         standard TextBox.
1733                 
1734 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
1735
1736         * XplatUIX11.cs: Retrieve default screen number instead of
1737           assuming 0. Attempted fix for #77318
1738
1739 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
1740
1741         * XplatUIWin32.cs: 
1742           - GetWindowPos: When a window is parented by FosterParent, use 
1743             the desktop instead of FosterParent as the base to get coordinates
1744           - CreateWindow: Don't make FosterParent the parent window for Popups
1745             if we don't want a taskbar entry, Popups automatically don't get one
1746         * Hwnd.cs: Need to call remove to actually remove the key from the
1747           hash table
1748
1749 2006-01-30  Mike Kestner  <mkestner@novell.com>
1750
1751         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
1752
1753 2006-01-30  Jackson Harper  <jackson@ximian.com>
1754
1755         * TreeView.cs:
1756         * TreeNode.cs: Raise events no matter how the treenode is
1757         checked. Patch by Don Edvalson.
1758
1759 2006-01-30  Jackson Harper  <jackson@ximian.com>
1760
1761         * TreeNode.cs: Signature fix.
1762
1763 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
1764
1765         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
1766
1767 2006-01-20  Mike Kestner  <mkestner@novell.com>
1768
1769         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
1770         event forwarding when menus are active.
1771         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
1772         Most of the patch is pdb's with a little rework.
1773
1774 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
1775
1776         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
1777           Removed GetMenuDC and ReleaseMenuDC methods; replaced
1778           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
1779         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
1780         * InternalWindowManager.cs: Added use of PaintEventStart/End to
1781           handling of WM_NCPAINT message, now passing the PaintEventArgs to
1782           the PaintWindowDecorations method
1783         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
1784         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
1785         * MenuAPI.cs: Made tracker window invisible
1786         * XplatUIWin32.cs:
1787           - Removed GetMenuDC and ReleaseMenuDC methods
1788           - Implemented the client=false path for PaintEventStart and
1789             PaintEventEnd
1790
1791 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
1792
1793         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
1794         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
1795           styles
1796         * Form.cs: 
1797           - MaximizeBox, MinimizeBox: Recreate the handle when setting
1798             the style
1799           - CreateParams: Reworked the styles to match MS look'n'feel,
1800             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
1801             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
1802
1803 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
1804
1805         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
1806           window is not mapped, since otherwise every form that's being 
1807           created is considered minimized, which is wrong.
1808         * Form.cs: Catching the exception and returning our internal value
1809           instead
1810
1811 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
1812
1813         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
1814           SetWindowMinMax() to have means to tell the driver about the minimum,
1815           maximum and maximized state window sizes. (Part of the fix for #76485)
1816         * Form.cs:
1817           - Implemented tracking of minimum and maximum window size, now calling
1818             new SetWindowMinMax() driver method to tell the driver (Part of the
1819             fix for #76485)
1820           - Finished handling of WM_GETMINMAXINFO method, now setting all values
1821             (Completes fix for #76485)
1822           - Calling new SetWindowMinMax driver method when the handle for a 
1823             form is created, to make sure the driver knows about it even if
1824             the values have been set before the window was created
1825           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
1826             to avoid messing up our anchoring calculations (partial fix
1827             for #77355)
1828         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
1829         * XplatUIX11.cs:
1830           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
1831           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
1832             (and presumably other freedesktop.org compliant WMs). Left the
1833             assumption unmapped=minimized, needed for SetVisible to work.
1834           - Now setting the window state when creating windows
1835           - Fixed SetVisible to consider/set the window state when mapping
1836             a Form. We cannot set the state before it's mapped, and we cannot
1837             use Form.WindowState once it's mapped (since it would ask the
1838             driver and get 'normal'. Therefore, we grab the state before
1839             mapping, map, and then set state.
1840           - Implmemented SetWindowMinMax method; Metacity does not seem to
1841             honor the ZoomHints, though.
1842         * XplatUIWin32.cs:
1843           - Removed MINMAXINFO (moved to XplatUIStructs)
1844           - Added SetWindowMinMax stub (on Win32 the only way to set that
1845             information is in response to the WM_GETMINMAXINFO message, which
1846             is handled in Form.cs)
1847           - Added logic to SetVisible to set the proper window state when a 
1848             form is made visible (fixes #75720)
1849
1850 2006-01-26  Jackson Harper  <jackson@ximian.com>
1851
1852         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
1853         same way we handle them with Invoke.
1854
1855 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
1856
1857         * Form.cs:
1858           - Added tracking of window state so CreateParams can return
1859             the appropriate style
1860           - Moved setting of WS_CAPTION style in CreateParams to allow
1861             styles without caption
1862         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
1863           control if the TextBox property is accessed. Fixes #77345
1864         * Control.cs:
1865           - get_Created: now uses is_disposed and is_created to determine
1866             return value (suggested by Jackson)
1867           - CreateHandle: No longer exits if the handle is being recreated
1868           - RecreateHandle: If the handle is not yet created call the 
1869             appropriate method to create either control or handle. If the
1870             control is already created CreateHandle will simply exit instead
1871             of just creating the handle
1872         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
1873           now SendMessage WM_DESTROY directly to the control when DestroyWindow
1874           is called.
1875         * XplatUIX11.cs: 
1876           - When DestroyWindow is called, instead of waiting for the 
1877             DestroyNotification from X11, we directly post it to the WndProc
1878             and immediately dispose the hwnd object.
1879             Same applies to DestroyChildWindows, and this obsoletes the
1880             expose_pending tracking. Contrary to Win32 behaviour we destroy our
1881             child windows before our own, to avoid X11 errors.
1882           - Removed the direct sending of WM_PAINT on UpdateWindow
1883         * XplatUIWin32.cs:
1884           - Reworked DoEvents and GetMessage to allow access to internal queue
1885             even when trying non-blocking access to the queue.  Fixes #77335. 
1886             Based on a patch suggestion by Don Edvalson. The new private
1887             GetMessage can now also be used as a backend for a PeekMessage
1888             frontend version.
1889         * XplatUI.cs: Improved debug output for CreateWindow
1890
1891 2006-01-25  Jackson Harper  <jackson@ximian.com>
1892
1893         * Help.cs: Allow param to be null. Patch by Don Edvalson.
1894
1895 2006-01-24  Jackson Harper  <jackson@ximian.com>
1896
1897         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
1898         when we have a MaxDropItems lower then the selected index.
1899
1900 2006-01-24  Jackson Harper  <jackson@ximian.com>
1901
1902         * Control.cs: Don't allow selection of non visible controls, allow
1903         selection of controls without parents.
1904
1905 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
1906
1907         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
1908         * DataGridDrawingLogic.cs: Add editing row only when is necessary
1909
1910 2006-01-23  Jackson Harper  <jackson@ximian.com>
1911
1912         * UpDownBase.cs: Make the textbox handle all the selection and
1913         tabbing. This fixes tabing to updown controls.
1914
1915 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
1916
1917         * TextBoxBase.cs: fixes exception thown the object was null
1918
1919 2006-01-23  Jackson Harper  <jackson@ximian.com>
1920
1921         * ButtonBase.cs: Just use the base CreateParams. They set
1922         visibility and enabled correctly.
1923         * ComboBox.cs:
1924         * TrackBar.cs:
1925         * MonthCalendar.cs: Lets let the base set as much of the
1926         createparams as possible so we don't have duplicate code all over
1927         the place.
1928
1929 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
1930
1931         * ThemeGtk.cs: Added TrackBar and some experimental code to
1932           get double buffering back
1933
1934 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
1935
1936         * DataGrid.cs: Allows row number set internally higher than the last
1937         when creating a new row. Restores the editing functionality.
1938
1939 2006-01-20  Mike Kestner  <mkestner@novell.com>
1940
1941         * MimeIcon.cs: delay Image creation until the icons are accessed
1942         instead of creating 190 scaled images on GnomeHandler startup.
1943
1944 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
1945
1946         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
1947           first call base before processing the event. Fixes #77279
1948
1949 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
1950
1951         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
1952           that the stride for the GDI bitmap would match the stride of
1953           a DIB or a Cursor.
1954
1955 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
1956
1957         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
1958
1959 2006-01-19  Jackson Harper  <jackson@ximian.com>
1960
1961         * ComboBox.cs: Hookup the text controls keydown event so we get
1962         those when the text control has the focus.
1963
1964 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
1965
1966         * Label.cs: Now using the base events instead of defining new ones;
1967           this allows us to just call the base properties without having to
1968           duplicate all base property logic 
1969
1970 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
1971
1972         * Label.cs: A label by default is not a tabstop (Fixes one of our
1973           failing nunit tests)
1974
1975 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
1976
1977         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
1978         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
1979
1980 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
1981
1982         * Cursor.cs: Reimplemented creating cursor bitmaps without using
1983           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
1984           This fixes #77218
1985         * XplatUIWin32.cs: 
1986           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
1987             constructor creates images that can't be saved. Part of the fix
1988             for #76103
1989           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
1990           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
1991             bug fix for handling window state in forms properly)
1992
1993 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
1994
1995         * ThemeGtk.cs: Simplify ScrollBar drawing
1996
1997 2006-01-18  Jackson Harper  <jackson@ximian.com>
1998
1999         * Splitter.cs: Set the default dock style for the splitter control
2000         in the constructor.
2001
2002 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
2003
2004         * ThemeGtk.cs: Corrected StateType and ShadowType for
2005           gtk_paint_box
2006
2007 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
2008
2009         * Control.cs: Make use of Theme.DoubleBufferingSupported
2010         * ThemeGtk.cs:
2011           - Added drawing for flat style buttons
2012           - Added ScrollBar drawing
2013
2014 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
2015
2016         * ThemeClearlooks.cs: Removed some unneeded code.
2017         * ThemeGtk.cs: First part of ThemeGtk enhancements.
2018
2019 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
2020
2021         * LinkLabel.cs: We need to update the hover drawing when
2022           leaving the control as well.
2023
2024 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
2025
2026         * DataGrid.cs: Clicking on non empty areas in the columns
2027            area was giving an exception
2028
2029 2006-01-17  Jackson Harper  <jackson@ximian.com>
2030
2031         * ThemeWin32Classic.cs:
2032         * ListView.cs: Do not draw/clip the headers when the header style
2033         is None.
2034
2035 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
2036
2037         * DataGrid.cs: Fixes 77260
2038         
2039 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
2040
2041         * DataGrid.cs: Clicking on a column on a empty grid was giving
2042           an exception
2043
2044 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
2045
2046         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
2047           or any keypress will crash the grid.
2048
2049 2006-01-17  Mike Kestner  <mkestner@novell.com>
2050
2051         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
2052         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
2053         invisible/previously-visible items.
2054         [Fixes #76909]
2055
2056 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
2057
2058         * ThemeClearlooks.cs:
2059         - Added CL_Draw_Button method; now other theme controls that are 
2060           not derived from button or do not have a button can draw buttons
2061           too
2062         - Updated ComboBox drawing
2063         - Beautified RadioButton drawing
2064         - Corrected drawing of bottom and left tabs
2065         - Beautified DateTimePicker and MonthCalendar
2066         - Added CPDrawButton and CPDrawRadioButton
2067
2068 2006-01-16  Jackson Harper  <jackson@ximian.com>
2069
2070         * ComboBox.cs: Set the initial value of the scrollbar to the
2071         current index. Reduce the numbers of refreshs and IndexOfs called.
2072
2073 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
2074
2075         * FileDialog.cs: When the file listview is focused hitting the
2076           backspace key moves the fileview to the parent directory
2077
2078 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
2079
2080         * Form.cs: 
2081           - Added RecreateHandle call when changing taskbar visibility to 
2082             trigger reparenting in Win32 driver (Fixes #75719)
2083           - If a window has minimize or maximize buttons, it cannot have
2084             a help button
2085         * XplatUIWin32.cs:
2086           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
2087             the toplevel form with FosterParent (A toolwindow not on the
2088             taskbar) (Fixes #75719)
2089           - Made FosterParent a toolwindow
2090
2091 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
2092
2093         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
2094
2095 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
2096
2097         * ToolTip.cs: If SetToolTip is called from a control and the mouse
2098           is currently over that control, make sure that tooltip_window.Text
2099           gets updated
2100
2101 2006-01-13  Mike Kestner  <mkestner@novell.com>
2102
2103         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
2104
2105 2006-01-13  Jackson Harper  <jackson@ximian.com>
2106
2107         * TreeView.cs: On MS GetNodeAt never actually factors in the X
2108         value passed.  Also redraw the selected node when we recieve
2109         focus, so tabbing between trees works correctly.
2110
2111 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
2112
2113         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
2114           ~/.gconf/%gconf-tree.xml, so use
2115           .gconf/desktop/gnome/interface/%gconf.xml
2116
2117 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
2118
2119         * TextControl.cs: Draw text in gray if control is disabled
2120
2121 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
2122
2123         * TreeView.cs: Draw the focus rectangle outside the highlight, to
2124           make sure it's always visible. Fixes #76680.
2125
2126 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
2127
2128         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
2129
2130 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
2131
2132         * PageSetupDialog.cs: Added.
2133         * PrintDialog.cs: Attributes.
2134         * PrintPreviewControl.cs: Updates.
2135         * PrintPreviewDialog.cs: Updates.
2136         
2137 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
2138
2139         * Control.cs: Undid my selection check fix, since it's not needed
2140         * TextBoxBase.cs:
2141           - Now considering the presence of hscroll/vscroll when sizing
2142             vscroll/hscroll respectively. Fixed bug #77077
2143           - Added Left/Up/Down/Right to IsInputKey list to prevent
2144             ContainerControl from stealing them. This fixes what I broke
2145             with my last checkin.
2146
2147 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
2148
2149         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
2150           I finally understand how the property can be set without a setter :-)
2151
2152 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
2153
2154         * Application.cs:
2155           - Switched RunLoop to use static Message.Create to create a 
2156             Message object
2157           - Added PreProcessMessage call in runloop for keyboard events; this
2158             is part of the fix for #77219, I overlooked this originally in the
2159             MSDN doc for PreProcessMessage
2160         * Control.cs:
2161           - Removed call to PreProcessMessage from handling of keyboard 
2162             messages; it's supposed to be done in the message pump
2163           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
2164             per MSDN documentation.
2165           - IsInputChar: All chars are input chars by default; removed the 
2166             parent calling chain, MS does not document that
2167           - PreProcessMessage: If IsInputChar is true, we want to return false
2168             to allow dispatching of the message
2169           - When selecting the next control, now also check that we're not
2170             selecting ourselves again and therefore return a false positive.
2171         * TextBoxBase.cs:
2172           - Tried to match return values for IsInputKey and ProcessDialogKey
2173             to what MS returns; moved processing of our special keys outside
2174             ProcessDialogKey since MS does not seem to return true on those.
2175           - Moved code that previously was in ProcessDialogKey into new private
2176             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
2177           - Reworked handling of WM_CHAR to not have to duplicate code from
2178             Control.cs anymore, instead we simply call down to base.
2179            
2180 2006-01-12  Jackson Harper  <jackson@ximian.com>
2181
2182         * ComboBox.cs: We always need to refresh the text area when
2183         EndUpdate is called. Fixes the combobox in the file dialog.
2184         * Control.cs: Don't create the creator_thread until the controls
2185         handle is created.  Also in InvokeRequired we check if the
2186         creator_thread is null. This gives the effect of InvokeRequired
2187         returning true if the controls handle is not created yet, and
2188         matches MS.
2189
2190 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
2191
2192         * XplatUI.cs:
2193           - Added StartLoop() driver method. This is used to allow drivers to
2194             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
2195             loop for a particular thread
2196           - Added EndLoop() driver method. This is called once the message
2197             pump for the thread is shut down
2198           - Added SupportsTransparency method to allow the driver to indicate
2199             opacity support for windows
2200         * Form.cs:
2201           - Removed TODO attribute, completed AllowTransparency property
2202           - Added documented logic to Opacity
2203         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
2204           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
2205           versions of CompatibleTextRendering
2206         * X11Structs.cs: Added opacity atom to our atom enumeration
2207         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
2208           of a form might be set before it's reparented by the WM, and we need
2209           the opacity value without calling up to Form)
2210         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
2211           SupportsTransparency() driver methods
2212         * Application.cs: Now calling StartLoop and EndLoop driver methods
2213         * XplatUIX11.cs:
2214           - Added opacity atom registration
2215           - Added StartLoop()/EndLoop() methods. They're empty right now but
2216             will need to get implemented when we switch to a per-thread queue
2217           - Implemented SupportsTransparency() method
2218           - Implemented SetWindowTransparency() method
2219           - Added support for setting the opacity value when a window is
2220             reparented (since the opacity needs to be set on the WM frame)
2221         * XplatUIOSX.cs, XplatUIWin32.cs:
2222           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
2223
2224 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
2225
2226         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
2227
2228 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
2229
2230         * FileDialog.cs: Added ToolTip for MWFFileView
2231         * MimeIcon.cs: Rewrote GnomeHandler.
2232           - Get currently used gnome icon theme from
2233             ($HOME)/.gconf/%gconf-tree.xml
2234           - Make use of inherited icon themes
2235           - Support SVG icon themes like Tango via librsvg
2236
2237 2006-01-12  Miguel de Icaza  <miguel@novell.com>
2238
2239         Revert's Jackson's revert which broke 2.0 builds.   Fix both
2240         builds. 
2241         
2242         * Application.cs: Move the use_compatible_text_rendering outside
2243         the NET_2_0 define.  If we ever need to use the
2244         use_compatible_text_rendering on the individual controls they will
2245         access the variable from the common shared code paths.
2246
2247 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
2248
2249         * XplatUI.cs:
2250           - Added more granular debug options
2251           - Added method to print both window text and id
2252           - Switched debug output to use new Window() debug method
2253           - Added IsEnabled() driver method
2254           - Added EnableWindow() driver method
2255         * Form.cs:
2256           - Removed end_modal; no longer needed, new loop handles termination
2257             via 'closing' variable
2258           - If form is modal, setting DialogResult will now initiate loop
2259             termination via 'closing' variable
2260           - Added support for is_enabled/WS_DISABLED to CreateParams
2261           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
2262             does all the work
2263           - Removed code that's now in RunLoop from ShowDialog()
2264           - Added various documented sanity checks to ShowDialog()
2265           - Added handling of WM_DESTROY message; we set 'closing' on getting
2266             the message to indicate the message pump to terminate
2267           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
2268             send by the Application.ExitThread method. (We send the message
2269             to destroy the window after all other events have been
2270             processed through the queue, instead of destroying the handle 
2271             directly)
2272           - Moved code from Close() method to WM_CLOSE handler; added logic
2273             to only send close-related events if the form is not displayed
2274             modal
2275         * Splitter.cs (..ctor): Fixed typo in resource name
2276         * Control.cs:
2277           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
2278             brush now
2279           - set_Cursor: Now only setting calling into XplatUI if the handle for
2280             the control is already created; this avoids implict handle creation
2281             or crashes if it's not created
2282           - set_Enabled: Now setting the enabled state via the new driver method
2283             instead of just tracking it
2284           - CreateParams: Added logic to set WS_DISABLED based on enabled state
2285           - CreateControl: Reordered event firing and method calls to more
2286             closely fire events in the order MS does. Now setting the
2287             enabled state in the driver when creating the control.
2288           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
2289             match MS order
2290         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
2291           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
2292         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
2293         * Hwnd.cs:
2294           - Added tracking of window enabled state (get_Enabled/set_Enabled)
2295           - Added EnabledHwnd property to easily allow a driver to find the
2296             handle of the first enabled window in the parent chain (this is
2297             used by drivers to pass up input events of disabled windows)
2298         * XplatUIDriver.cs: Added IsEnabled() method
2299         * Application.cs:
2300           - Removed crude and obsolete exiting tracking variable
2301           - Removed internal ModalRun(); replaced by RunLoop()
2302           - Implemented private CloseForms() method to allow closing all 
2303             windows owned by a particular (or all) threads
2304           - Exit() now properly closes all windows without forcing the message
2305             pump to quit
2306           - Removed obsolete InternalExit() method
2307           - Changed Run() methods to use new RunLoop() message pump
2308           - Implemented new RunLoop() method for both modal and non-modal forms
2309         * CommonDialog.cs:
2310           - get_CreateParams: Added setting of WS_DISABLED
2311           - Simplified ShowDialog(); now all the work is done in RunLoop(),
2312             invoked via Form.ShowDialog()
2313         * NativeWindow.cs: We don't remove the window from the collection when
2314           the handle is destroyed; there might still be messages for it in the
2315           queue (mainly the resulting WM_DESTROY); instead it will be removed
2316           when Control calls InvalidateHandle in the WM_DESTROY handler
2317         * XplatUIX11.cs:
2318           - CreateWindow: Added logic to handle the WS_DISABLED window style
2319           - EnableWindow: Implemented based on Hwnd.Enabled
2320           - GetMessage: Reset PostQuitState so the method can be called again
2321           - Implemented support for disabled windows (passing messages to the
2322             first enabled parent) in handling all input messages
2323           - Added optimizations for handling Expose events
2324           - Implemeted new driver method IsEnabled()
2325           - Now always resetting paint pending tracking vars when we start paint
2326           - Re-implemented UpdateWindow via just sending a WM_PAINT message
2327         * XplatUIOSX.cs: Added IsEnabled method stub
2328         * XplatUIWin32.cs: Implemented new IsEnabled() method
2329
2330 2006-01-11  Jackson Harper  <jackson@ximian.com>
2331
2332         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
2333         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
2334         variables a little.
2335         * ColorDialog.cs: Clear out the old form before adding the new
2336         panel.  
2337
2338 2006-01-11  Jackson Harper  <jackson@ximian.com>
2339
2340         * X11Dnd.cs: Make sure to add all the text formats when adding
2341         strings to the data object.
2342         * TreeNodeCollection.cs: When adding to a sorted tree we need to
2343         do some redrawing too.  Also change the UpdateNode to an
2344         UpdateBelow so the newly added node gets painted.
2345         
2346 2006-01-11  Miguel de Icaza  <miguel@novell.com>
2347
2348         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
2349         LinkLabel.cs, PropertyGrid.cs: Implement the
2350         UseCompatibleTextRendering property for 2.x
2351
2352         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
2353
2354 2006-01-11  Jackson Harper  <jackson@ximian.com>
2355
2356         * TreeView.cs: Use the property for setting the selected node so
2357         the correct events get raised.
2358         * TreeNode.cs: Update the tree when the fore/back colours of a
2359         node are set.
2360
2361 2006-01-10  Jackson Harper  <jackson@ximian.com>
2362
2363         * TreeView.cs: Allow setting SelectedNode to null.
2364
2365 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
2366
2367         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
2368
2369 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
2370
2371         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
2372
2373 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
2374
2375         * PrintDialog.cs: Added attributes and set default property values.
2376
2377 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
2378
2379         * PrintControllerWithStatusDialog.cs: 
2380         Added PrintControllerWithStatusDialog.
2381
2382 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
2383
2384         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
2385         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
2386
2387 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
2388
2389         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
2390
2391 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
2392
2393         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
2394         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
2395
2396 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
2397
2398         * MimeIcon.cs: Added internal class SVGUtil.
2399
2400 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
2401
2402         * FileDialog.cs: Don't crash if there are two files with the
2403           same name but different locations.
2404
2405 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
2406
2407         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
2408         dates across multiple month grids. Used to not highlight entire 
2409         month, but does now.
2410         
2411 2006-01-06  Jackson Harper  <jackson@ximian.com>
2412
2413         * MonthCalendar.cs: Removed DoEvents call to prevent a running
2414         message loop. Change timer intervals to numbers that seem more
2415         natural.
2416
2417 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
2418
2419         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
2420           object for location info since screen object is now implemented.
2421
2422 2006-01-05  Jackson Harper  <jackson@ximian.com>
2423
2424         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
2425         * AsyncMethodResult.cs: We no longer use a WeakReference for the
2426         AsyncMethodResult, this is because we ALWAYS want the
2427         ManualResetEvent to get set.
2428         * Control.cs: When disposing use an async invoke to call shutdown
2429         code, so that thigns don't block on the finalizer thread.  Also
2430         check if we even have a message loop before trying to send
2431         messages, if we don't then don't bother sending messages.
2432         - No more weak references for async methods
2433         * XplatUIDriver.cs: No more weak references for async methods.
2434
2435 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
2436
2437         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
2438           returns two FontFamily with the same name
2439
2440 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
2441
2442         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
2443           drawing disabled text. Instead using the ColorGrayText color
2444
2445 2006-01-04  Jackson Harper  <jackson@ximian.com>
2446
2447         * TreeNode.cs: redraw the node when its image index is changed.
2448
2449 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
2450
2451         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
2452           time I checked there are no others like it.
2453
2454 2006-01-04  Jackson Harper  <jackson@ximian.com>
2455
2456         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
2457         this gives the behavoir I was looking for.
2458         * Control.cs: Special case Invoking EventHandlers, this matches MS
2459         and fixes part of bug #76326.
2460
2461 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
2462
2463         * ThemeClearlooks.cs, FileDialog.cs:
2464           - Reflect the latest Theme class changes
2465           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
2466             with DateTime
2467             
2468 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
2469
2470         * Theme.cs: Cache UI resource images and resize them if needed
2471
2472 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
2473
2474         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
2475           is called. This fixes the crash in Nexxia when setting the font
2476           attributes in the chat. [However, RTF needs a look-over to make sure
2477           that all SelectionXXX methods handle the special case that selection
2478           is empty and therefore the change must be applied to all text starting
2479           at the cursor/selection start]
2480
2481 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
2482
2483         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
2484           XplatUIOSX.cs: Added SendMessage and PostMessage methods
2485         * X11Keyboard.cs: Switched to new way of calling PostMessage
2486
2487 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
2488
2489         * Theme.cs: Added theme interface for images to allow the theme to
2490           control what images are used for things like FileDialog, MessageBox
2491           icons, etc.
2492         * MessageBox.cs: Now uses the new Theme icon/image interfaces
2493
2494 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
2495
2496         * FileDialog.cs:
2497           - Removed some dead code
2498           - Opening a recently used file does work now
2499           - Small UI enhancements
2500           - Refactoring
2501
2502 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
2503
2504         * FileDialog.cs: Forgot too add __MonoCS__
2505
2506 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
2507
2508         * FileDialog.cs: We are able to read recently used files now let's
2509           go on and write them.
2510
2511 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
2512
2513         * FileDialog.cs: Breathe some life into "last open"/"recently used"
2514           button
2515         * MimeIcon.cs: Do a check for the top level media type also
2516
2517 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
2518
2519         * ThemeClearlooks.cs:
2520           - Added CPDrawStringDisabled
2521           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
2522             some chars if the text doesn't fit into text_rect
2523           - DrawListViewItem: If View = View.LargeIcon center the image;
2524             rewrote the drawing of ListViewItem.Text if View = 
2525             View.LargeIcon
2526
2527 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
2528
2529         * MimeIcon.cs: Use default KDE icon theme if there is no
2530           "48x48" directory for the current icon theme, fixes #77114
2531         * Mime.cs: Disable not working and actually not used code. 
2532         * ThemeWin32Classic.cs:
2533           - Replace "new SolidBrush" in GetControlBackBrush and
2534             GetControlForeBrush with ResPool.GetSolidBrush
2535           - Changed DrawListViewItem from private to protected virtual
2536         * FileDialog.cs:
2537           - Added form.MaximizeBox = true
2538           - Don't throw an exception if there is a broken symbolic link
2539
2540 2005-12-23  Jackson Harper  <jackson@ximian.com>
2541
2542         * TabControl.cs: Give the panels focus, keyboard navigation is
2543         fixed so this works correctly now.
2544         - We need these key events also.
2545         * ToolBar.cs: Remove some of the poor mans double buffering.
2546         
2547 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
2548
2549         * ComboBox.cs: The internal TextBox now returns the focus.
2550
2551 2005-12-23  Jackson Harper  <jackson@ximian.com>
2552
2553         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
2554
2555 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
2556
2557         * Control.cs: Removed debug code
2558         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
2559           implicit children
2560
2561 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
2562
2563         * Control.cs: When creating the control, update the Z-order after
2564           all it's children are created, too. (Fixes nexxia not showing
2565           picturebox bug)
2566
2567 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
2568
2569         * Control.cs: Do not update the anchoring distances if layout is
2570           suspended, instead do it once layout is resumed
2571
2572 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
2573
2574         * Control.cs: 
2575           - After many hours of debugging, for both Jackson and
2576             myself, it turns out that it helps to set the parent of a control
2577             if you want to actually see it onscreen. In the spirit of that
2578             discovery, we're now setting the parent of the control and
2579             it's children when the control's handle is created. This fix
2580             will make Lutz Roeder's Reflector run happily. 
2581           - now just creating the handle instead of the whole control when
2582             getting a graphics context for the control.
2583
2584 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
2585
2586         * ScrollableControl.cs: When calculating the canvas, don't consider
2587           the scrollbar widths. Instead, predict if horizontal scrollbar
2588           will affect canvas when deciding on vertical display and vice versa.
2589
2590 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
2591
2592         * RichTextBox.cs: Set default RTF font for documents that don't
2593           have a font table (Fixes #77076)
2594
2595 2005-12-22  Jackson Harper  <jackson@ximian.com>
2596
2597         * TextBoxBase.cs: It's difficult to do, but you can have an empty
2598         clipboard. This prevents a NullRef in that case.
2599         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
2600         clipboard. PRIMARY is for the currently selected text only. (We
2601         should implement PRIMARY at some point.
2602
2603 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
2604
2605         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
2606           a Unicode function with a structure that was defined in Ansi way.
2607           This fixes #76942.
2608
2609 2005-12-21  Jackson Harper  <jackson@ximian.com>
2610
2611         * StatusBar.cs: Statusbar handles its fore/back colours on it's
2612         on. Because thats how it rolls. (and this avoids it using ambient
2613         colours).
2614         * ThemeWin32Classic.cs: Use the proper back color for filling.
2615         * Menu.cs: Use the system menu bar color for drawing menu
2616         bars. Using the window back color will bring ambient colours into
2617         the picture.
2618
2619 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
2620
2621         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
2622           Bitmaps were created and not disposed.
2623
2624 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
2625
2626         * Control.cs (CreateControl): Don't do anything if the control is
2627           already created, otherwise we'd fire the OnCreated event more than
2628           once
2629
2630 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
2631
2632         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
2633           will always match. Instead return -1. Fixes #76464.
2634
2635 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
2636
2637         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
2638           neither the beginning nor the end of the line (Fixes bug #76479)
2639
2640 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
2641
2642         * Control.cs:
2643           - ControlNativeWindow.ControlFromHandle(): Now handling situation
2644             where handle is invalid
2645           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
2646             instead of slower linear search
2647         * NativeWindow.cs: Don't remove the window from the hashtable until
2648           after the driver has destroyed it (since the driver might use
2649           Control.FromHandle to lookup the control object
2650         * Hwnd.cs: Added DestroyPending property to track if a window is 
2651           already destroyed as far as the driver is concerned and only hasn't
2652           yet notified the control
2653         * XplatUIX11.cs:
2654           - Activate(): Check if the window is still valid before using the 
2655             handle
2656           - Implemented DestroyChildWindow() method to mark child windows as
2657             destroyed when a window is destroyed. This prevents situations 
2658             where we might call an X method based on queued events for a
2659             window that already has been destroyed but we haven't yet pulled
2660             the destroy method from the queue.
2661           - Added a call to the new DestroyChildWindow() method to the drivers
2662             DestroyWindow code. Also now marking the destroyed window itself
2663             as pending
2664
2665 2005-12-20  Jackson Harper  <jackson@ximian.com>
2666
2667         * StatusBar.cs:
2668         * StatusBarPanel.cs: Don't calculate panel sizes on draw
2669         anymore. Just do them when needed, also track the rects of panels
2670         so that we can optimize refreshing more in the future.
2671
2672 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
2673
2674         * ColorDialog.cs: Fixed focus drawing in small color controls
2675
2676 2005-12-19  Jackson Harper  <jackson@ximian.com>
2677
2678         * InternalWindowManager.cs:
2679         * MdiWindowManager.cs: Cleanup some coordinate system changes so
2680         moving windows works properly.
2681
2682 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
2683
2684         * Control.cs: 
2685           - Removed call to InitLayout() from SetBoundsCore(); doc says
2686             it's only called when a control is added to a container
2687           - Split InitLayout logic, moved to separate UpdateDistances() method
2688             since we need to perform those calculations more often than just
2689             when adding the control to a container. (Needed to fix #77022)
2690           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
2691           - Reduced the OnBindingContextChanged events count, don't send them
2692             unless the control is created, we still aren't totally matching
2693             MS, but I can't quite figure out some of their rules
2694
2695 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
2696
2697         * ThemeClearlooks.cs: Corrected distance between ProgressBar
2698           stripes
2699
2700 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
2701
2702         * ThemeClearlooks.cs:
2703           - Updated ProgressBar drawing
2704           - Corrected drawing of ScrollBars and scroll buttons
2705           - Some temporary fixes for minor pixel artefacts
2706
2707 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
2708
2709         * Control.cs:
2710           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
2711             cause events to be sent in the same order as MS does.
2712           - Added ChangeParent() method to trigger various OnXXXChanged events
2713             that need to be fired when a parent changes (This is a reworking
2714             of the patch from r54254, with the X11 errors fixed)
2715           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
2716             since on MS we get OnLayoutChanged events when calling Clear()
2717           - Changed Enabled property to consider parent state as well, if a
2718             parent is not enabled, the control will not be either
2719           - Changed Parent property to simply call Controls.Add() since that
2720             now does all the work required, this way we avoid code duplication
2721           - Threw in a few OnBindingsContextChanged calls to try and match
2722             when MS sends them. We seem to send a few too many, though.
2723           - Added call to CreateControl when adding the control to a parent.
2724             We were never calling CreateControl. Still needs some work, in
2725             some places we treat HandleCreated and ControlCreated as equal, 
2726             which is wrong
2727           - Removed obsolete commented out code from UpdateZOrder()
2728
2729 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
2730
2731         * ThemeClearlooks.cs: Updated TrackBar drawing.
2732
2733 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
2734
2735         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
2736
2737 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
2738
2739         * FileDialog.cs: Add the Help button and the open readonly
2740           checkbox only if needed
2741
2742 2005-12-16  Jackson Harper  <jackson@ximian.com>
2743
2744         * Control.cs: Make sure we have an active menu before trying to
2745         process commands on it. Prevents menu-less forms from crashing
2746         when Alt is pressed.
2747         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
2748         Dieter Bremes.
2749         * RichTextBox.cs: Expand statement to help out gmcs and fix the
2750         2.0 build.
2751
2752 2005-12-16  Jackson Harper  <jackson@ximian.com>
2753
2754         * InternalWindowManager.cs: Don't translate tool windows screen
2755         coordinates. This fixes windows 'bouncing' around when being moved.
2756
2757 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
2758
2759         * TextBoxBase.cs:
2760           - MaxLength now treats 2^31-1 equal to unlimited length (this is
2761             not quite MS compatible, MS uses that number only for single line
2762             and 2^32-1 for multi-line, but I figure it won't hurt keeping
2763             the limit at 2GB)
2764           - Now enforcing the MaxLength limit when entering characters
2765           - Added argument to internal Paste() method to track if it's called
2766             from programatically or via keyboard, since keyboard driven pastes
2767             need to enforce max-length
2768           - Added logic to Paste to only paste as many chars as MaxLength 
2769             allows
2770         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
2771         * TextControl.cs:
2772           - Added Length property to return number of characters in document
2773           - Added private CharCount property which only tracks actual chars
2774             in the document (no linefeeds) and fires event when CharCount
2775             changes
2776           - Added tracking of character count to all methods that alter it
2777           - Added LengthChanged event to allow applications to subscribe
2778             to any changes to the document
2779
2780 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
2781
2782         * TextBox.cs: 
2783           - Removed local password_char field (moved to TextBoxBase)
2784           - Now setting the document's password var when password is
2785             set
2786         * TextBoxBase.cs:
2787           - Added password_char field (needed here so MultiLine can
2788             access it)
2789           - Added logic to MultiLine property setter to set the document's
2790             variable when password display is allowed
2791           - Removed debug code and made some debug code conditional
2792         * TextControl.cs:
2793           - Added RecalculatePasswordLine() method to handle special password
2794             char only lines
2795           - Added PasswordChar property, also added related tracking vars
2796           - Draw() method now uses local text var for grabbing text to draw,
2797             this var is set to line.text unless we're doing password display,
2798             then it is set to the pre-generated all-password-chars line
2799           - Added calling RecalculatePasswordLine() method for password lines
2800
2801 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
2802
2803         * Hwnd.cs: 
2804           - Added Reparented property to allow tracking of Window Manager
2805             reparenting actions (which affect X/Y calculations of toplevel 
2806             windows)
2807           - Made ToString() print window handles in hex
2808         * XplatUIX11.cs:
2809           - AddConfigureNotify(): Now uses reparented state off Hwnd to
2810             determine if X/Y needs offsetting
2811           - AddConfigureNotify(): Fixed offset calculations
2812           - Now adds ReparentNotify messages into the queue
2813           - Now processes ReparentNotify messages and causes a 
2814             WM_WINDOWPOSCHANGED message to be sent upstream if a window
2815             is reparented (as most likely it's X/Y coordinates are changed
2816             due to that)
2817
2818 2005-12-14  Jackson Harper  <jackson@ximian.com>
2819
2820         * XplatUIX11.cs: Tool windows still need to respek focus.
2821
2822 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
2823
2824         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
2825           have a working release
2826
2827 2005-12-13  Jackson Harper  <jackson@ximian.com>
2828
2829         * Form.cs: Update styles after setting the border style regardless
2830         of whether or not the window is using a window manager.
2831
2832 2005-12-13  Jackson Harper  <jackson@ximian.com>
2833
2834         * Form.cs: We now hook into an internal window manager instead of just an
2835         MDI subsystem, this is so we can have properly behaving tool windows.
2836         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
2837         * InternalWindowManager.cs: New internal class that acts as a
2838         window manager for tool windows and as a base for mdi windows.
2839         * MdiWindowManager.cs: New class that acts as a window manager for
2840         mdi windows.
2841
2842 2005-12-12  Jackson Harper  <jackson@ximian.com>
2843
2844         * Control.cs: Updates so we match behavoir for for implicit
2845         controls. Fixes explosions in MDI.
2846
2847 2005-12-12  Jackson Harper  <jackson@ximian.com>
2848
2849         * Control.cs: Implement Invalidate (Region).
2850
2851 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
2852
2853         * Control.cs: 
2854           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
2855             the same events as MS does. MS fires events for each property 
2856             except, for unknown reasons, Cursor, when the control is reparented. 
2857             I can't seem to totally match add/remove since MS also fires some 
2858             VisibleChanged events, which makes no sense. Consolidated the
2859             parenting code into a separate method so it can be called from
2860             both Add and Remove. set_Parent no longer needs any special logic
2861             as it calls the parent's add method which implicitly fires
2862             all events
2863           - Removed some obsolete code and debug output
2864           - Enabled state is inherited from parents, if this is enabled
2865
2866 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
2867
2868         * Form.cs: Removed commented out code
2869
2870 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
2871
2872         * Control.cs:
2873           - Added internal version of Invoke, with additional argument 
2874             indicating if we're calling it from a Dispose() handler. That
2875             way we can avoid BeginInvoke throwing an exception if we're
2876             calling for an already destroyed window.
2877           - Added a dispose argument to BeginInvokeInternal, and made the
2878             check if a valid window handle chain exists conditional on
2879             it not being a dispose call
2880           - Removed code in DestroyHandle to destroy our children. Since we
2881             now handle the WM_DESTROY message we will catch all our children
2882             being destroyed.
2883           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
2884         * Form.cs:
2885           - Added a field to track the application context of the form.
2886           - No need to set closing variable as response to WM_CLOSE, instead
2887             we destroy the window. We also call PostQuitMessage if the form
2888             has an application context (which makes it the main app form,
2889             which, when closed terminates the app)
2890         * XplatUI.cs:
2891           - Dropped Exit() method, it's naming was confusing
2892           - Added PostQuitMessage() which causes GetMessage to return false
2893             once the message queue is empty
2894         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
2895           PostQuitMessage()
2896         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
2897           no longer a valid XplatUI method, but left it in since it's used
2898           internally. Added empty PostQuitMessage() method.
2899         * MenuAPI.cs: Replaced call to Exit() with call to
2900           PostQuitMessage, even though this is probably no longer needed.
2901         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
2902         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
2903         * Application.cs:
2904           - Replaced call to XplatUI.Exit() with PostQuitMessage()
2905           - Removed old debug code that would call XplatUI for exception
2906             display, enabled standard exception handling (Still not enabled
2907             though, until NativeWindow's ExternalExceptionHandler define
2908             is removed
2909         * NativeWindow.cs:
2910           - Added internal method to allow control to update NativeWindow
2911             after a window has been destroyed
2912           - Added handling of already destroyed windows when calling i
2913             DestroyWindow
2914           - Added removal of handle from list on ReleaseHandle
2915         * XplatUIX11.cs:
2916           - Dropped GetMessageResult var and related code
2917           - Added PostQuitState to field to track if PostQuitMessage has been
2918             called
2919           - Dropped Exit() method
2920           - Added PostQuitMessage() method
2921           - GetMessage now will return false if PostQuitState is set and no
2922             more messages are in the queue.
2923           - Expose handler will no longer generate WM_PAINT messages if we are
2924             in PostQuitState since it's very likely any windows have already
2925             been destroyed, and since Hwnd won't get updated until we have
2926             processed the DestroyNotify we'd be causing X errors.
2927         
2928 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
2929
2930         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
2931           Thanks to Mike for pointing out the err of my ways.
2932
2933 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
2934
2935         * Control.cs(PreProcessMessage): Moved menu handling back, but
2936           after all other key handling, to match MS (who handles Menu in
2937           DefWndProc)
2938         * Menu.cs (WndProc): Removed my brainfart
2939
2940 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
2941
2942         * Control.cs(PreProcessMessage): Removed special menu handling 
2943         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
2944
2945 2005-12-07  Mike Kestner  <mkestner@novell.com>
2946
2947         * Control.cs : special case SYSKEYUP so that we can adjust keynav
2948         state according in tracker.
2949         * Menu.cs : promote tracker field to base class and provide a tracker
2950         lookup capability.  Add/Remove shortcuts dynamically if the top menu
2951         has a tracker. Unparent items that are removed from the collection.
2952         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
2953         * Theme*.cs: add always_show_hotkeys field to support configurability
2954         of mnemonic display.  win32 doesn't show mnemonics until Alt is
2955         pressed.
2956
2957 2005-12-07  Jackson Harper  <jackson@ximian.com>
2958
2959         * MdiChildContext.cs: Use Control.ResetCursor.
2960         * Control.cs: ResetCursor needs to set the property so that the
2961         correct XplatUI call gets made.
2962
2963 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
2964
2965         * Control.cs: More fixes to make our key events match MS. We
2966           were not setting the modifier state on KeyData, and we were
2967           not generating any events when Alt was pressed with a key
2968           since handling of WM_SYSxxx was missing for the OnKey methods.
2969
2970 2005-12-07  Jackson Harper  <jackson@ximian.com>
2971
2972         * MdiChildContext.cs: reenable the sizing code.
2973         - When the mouse leaves a window reset its cursor.
2974
2975 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
2976
2977         * ThemeClearlooks.cs: Reflect latest Hwnd changes
2978
2979 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
2980
2981         * Hwnd.cs: Now using the theme 3d bordersize to calculate
2982           widths of Fixed3D borders
2983
2984 2005-12-07  Jackson Harper  <jackson@ximian.com>
2985
2986         * MdiClient.cs: Fix warnings. Earn Mike's love.
2987
2988 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
2989
2990         * ThemeClearlooks.cs:
2991           - Adjusted mouse over button color
2992           - Added first parts of CheckBox drawing
2993           - Added correct color for selected text background
2994           - Fixed ComboBox drawing
2995           - Added CPDrawBorder3D and CPDrawBorder
2996
2997 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
2998
2999         * XplatUIX11.cs: Added call to XBell for AudibleAlert
3000
3001 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
3002
3003         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
3004           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
3005           alert users via sound. We could add an enum arg with different
3006           types of alerts in the future
3007
3008 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
3009
3010         * Control.cs: Fix behaviour problems pointed out by Mike
3011
3012 2005-12-05  Mike Kestner  <mkestner@novell.com>
3013
3014         * StatusBarPanel.cs: add Invalidate method and hook it into all the
3015         prop setters.  Calls parent.Refresh for now, but could be maybe be
3016         optimized with an internal method on StatusBar at some point.
3017         [Fixes #76513]
3018
3019 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
3020
3021         * RichTextBox.cs: Implemented get_SelectionColor
3022
3023 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
3024
3025         * ThemeClearlooks.cs:
3026           - Removed dead code
3027           - Draw black button border only if button is Form.AcceptButton
3028           - Draw correct button color for pressed RadioButton if the mouse 
3029             has entered the button
3030           - Updated ProgressBar drawing!
3031           - Updated CPDrawSizeGrip drawing
3032           - Updated StatusBarPanel drawing
3033
3034 2005-12-05  Mike Kestner  <mkestner@novell.com>
3035
3036         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
3037         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
3038
3039 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
3040
3041         * ThemeClearlooks.cs: Initial check-in, activate with
3042           export MONO_THEME=clearlooks
3043         * ThemeEngine.cs: Added ThemeClearlooks
3044
3045 2005-12-03  Mike Kestner  <mkestner@novell.com>
3046
3047         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
3048         [Fixes #76897]
3049
3050 2005-12-02  Jackson Harper  <jackson@ximian.com>
3051
3052         * Form.cs: If the child form has no menu the default main menu is
3053         used as the active menu.
3054
3055 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
3056
3057         * ListBox.cs: Check if any items exist before trying to resolve 
3058           coordinates into items
3059
3060 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
3061
3062         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
3063           as the second color for the background hatch
3064
3065 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
3066
3067         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
3068         * RichTextBox.cs: FormatText position arguments are 1-based, now making
3069           sure that what we pass to FormatText is always 1-based. Fixes #76885
3070
3071 2005-11-29  Miguel de Icaza  <miguel@novell.com>
3072
3073         * NumericUpDown.cs (EndInit): When we are done initializing,
3074         reflect any updates on the UI.
3075
3076 2005-12-02  Jackson Harper  <jackson@ximian.com>
3077
3078         * ImplicitHScrollBar.cs:
3079         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
3080         their container controls.
3081         * TreeView.cs: Use the new implicit scrollbars.
3082
3083 2005-12-02  Jackson Harper  <jackson@ximian.com>
3084
3085         * TreeView.cs: Make top_node internal so the TreeNodeCollections
3086         can play with it.
3087         * TreeNodeCollection.cs: If we remove the topnode we need to
3088         update topnode to the next node in line.
3089         - When clearing nodes go through the same process as removing
3090         them, so they get depareneted and checked if they are top node.
3091
3092 2005-12-01  Jackson Harper  <jackson@ximian.com>
3093
3094         * TreeView.cs: When imagelists are used the image area is
3095         selectable as well as the text.
3096         - If there are no selected nodes select the first one.
3097         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
3098         so don't do it more then we need to.
3099
3100 2005-12-01  Jackson Harper  <jackson@ximian.com>
3101
3102         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
3103         that arrows can be scaled.
3104
3105 2005-12-01  Jackson Harper  <jackson@ximian.com>
3106
3107         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
3108         fail. Patch by Dieter Bremes
3109
3110 2005-11-30  Jackson Harper  <jackson@ximian.com>
3111
3112         * Form.cs: Property is 2.0 only
3113         * PrintDialog.cs: Signature fix.
3114
3115 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
3116
3117         * TextControl.cs: 
3118           - No longer artificially moves text 2 pixels down (now that we have
3119             borders this is no longer needed)
3120           - Added calcs for left, hanging and right indent
3121
3122 2005-11-23  Mike Kestner  <mkestner@novell.com>
3123
3124         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
3125
3126 2005-11-30  Jackson Harper  <jackson@ximian.com>
3127
3128         * MdiChildContext.cs: Set the cloned menus forms, as these don't
3129         get cloned as part of CloneMenu ().
3130         * Menu.cs: Make sure the parent of the items get set correctly
3131         when they are added.  And the owners are notified of the changes.
3132         * Form.cs: Create an ActiveMenu property, so that when MDI is used
3133         we can change the menu being displayed/handled by the form without
3134         changing the menu assosciated with the form.
3135         - Don't let Mdi children draw/handle menus.
3136         
3137 2005-11-30  Jackson Harper  <jackson@ximian.com>
3138
3139         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
3140         a MenuChanged event. Just to make the API a little more
3141         consistent.
3142         * MainMenu.cs:
3143         * MenuItem.cs: Use the new OnMenuChanged
3144         * MdiChildContext.cs: Handle menu merging.
3145         * Form.cs: Implement MergedMenu.
3146         
3147 2005-11-30  Jackson Harper  <jackson@ximian.com>
3148
3149         * Menu.cs: We were misusing Add. Add goes behind the specified
3150         index according to the docs, and does not replace the specified
3151         index. So I added an Insert method.
3152
3153 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
3154
3155         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
3156           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
3157           is for Jackson
3158         * RichTextBox.cs: Added calls to base for DnD events
3159
3160 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
3161
3162         * TextControl.cs:
3163           - Fixed drag-selection related crash; style fixes
3164           - Implemented undo class
3165             o Implemented method to capture document state for specified
3166               range in document tree
3167             o Implemented method to restore captured document state
3168             o Implemented cursor tracking
3169             o Implemented basic undo stack
3170           - Added undo cursor tracking to methods altering cursor location
3171           - Added undo tracking to selection deletion (still missing
3172             other text-altering hookups)
3173         * RichTextBox.cs:
3174           - Added SelectionLength property
3175           - Implemented CanPaste()
3176           - Implemented Paste()
3177           - Added missing protected methods
3178           - Fixed RTF->Document conversion; now uses font index 0 and color 
3179             index 0 as the default font for the parsed text
3180           - Fixed RTF<->Document font size translation
3181           - Fixed RTF generation, now properly handles cross-tag boundaries
3182             for single line selection
3183           - No longer always appends blank line to generated RTF
3184           - Removed TODOs
3185           - Added missing attributes
3186           - Hooked up undo-related methods
3187         * TextBoxBase.cs:
3188           - Implemented Copy()
3189           - Implemented Paste()
3190           - Implemented Cut()
3191           - Fixed caret mis-behaviour on backspace across line-boundaries
3192
3193 2005-11-29  Jackson Harper  <jackson@ximian.com>
3194
3195         * MdiClient.cs: Add a method for activating mdi children. Very
3196         basic right now. I imagine someday it might need more girth.
3197         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
3198         children windows names are added to the menu item.
3199         * ThemeWin32Classic.cs: Draw the arrow if the item is an
3200         mdilist. This happens regardless of whether or not there are any
3201         mdi windows to see in the list, and according to my tests happens
3202         before the items are even added. Also happens if there isn't even
3203         an mdi client to get windows from.
3204
3205 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
3206
3207         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
3208         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
3209
3210 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
3211
3212         * DataGridTableStyle.cs:
3213           - Create always the styles for the missing columns even if they are
3214             provided by the user (not default table style)
3215         * DataGrid.cs:
3216           - Fixes bug 76770
3217           - Fixes SetDataBinding (always re-attach source)
3218           - Fixes SetNewDataSource (only clear styles if they are not for 
3219             this source)
3220          -  Expands OnTableStylesCollectionChanged to handle style refresh 
3221             and remove properly
3222
3223 2005-11-29  Jackson Harper  <jackson@ximian.com>
3224
3225         * FileDialog.cs: Implement missing bits, remove some dead
3226         code.
3227         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
3228         creation of the panel so that the options set on the dialog are
3229         seen when the panel is created.
3230         * TreeView.cs: raise a click when items are clicked.
3231         
3232 2005-11-29  Jackson Harper  <jackson@ximian.com>
3233
3234         * MdiClient.cs: Pass some signature methods through to base.
3235
3236 2005-11-28  Jackson Harper  <jackson@ximian.com>
3237
3238         * ListView.cs: Raise the click event when items are clicked.
3239
3240 2005-11-28  Jackson Harper  <jackson@ximian.com>
3241
3242         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
3243         a nullref.
3244
3245 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
3246
3247         * ThemeNice.cs: - Removed 1 pixel bitmaps
3248           - Use SmoothingMode.AntiAlias where it makes sense
3249             (ScrollButton arrow for example)
3250           - Enhanced Button focus drawing
3251           - Fixed ComboBox drawing (no artefacts anymore, focus
3252             rectangle is back again, reduced size of ComboButton, etc.)
3253           - Fixed RadioButton focus drawing for Appearence.Button
3254           - Slight ScrollButton redesign
3255           - Some LinearGradientBrush size fixes
3256           - GroupBoxes have now rounded edges
3257           - Fixed StatusBar drawing
3258
3259 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
3260
3261         * ThemeNice.cs: - Remove dead code
3262           - use correct background colors for menus, etc.
3263           - Fake pixel drawing with 1 pixel bitmaps
3264
3265 2005-11-24  Jackson Harper  <jackson@ximian.com>
3266
3267         * MdiClient.cs: Size the scrollbars when resizing the window.
3268         - Resize the maximized windows when the client is resized
3269         * Form.cs: Make the child context available
3270         
3271 2005-11-23  Jackson Harper  <jackson@ximian.com>
3272
3273         * MdiChildContext.cs: Don't size windows if they are maximized.
3274
3275 2005-11-23  Mike Kestner  <mkestner@novell.com>
3276
3277         * ContextMenu.cs: use MenuTracker.
3278         * Control.cs: remove menu handle usage.
3279         * Form.cs: remove menu handle usage.
3280         * Hwnd.cs: remove menu handle usage.
3281         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
3282         motion and clicks to the new Tracker handlers.
3283         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
3284         and handle usage.
3285         * MenuAPI.cs: refactored to combine popup and menubar event handling.
3286         Killed the MENU and MENUITEM data types and associated collections
3287         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
3288         MenuTracker class that exposes the leftovers from the old MenuAPI
3289         static methods. Restructured Capture handling so that only one grab is
3290         done for the entire menu hierarchy instead of handing off grabs to
3291         submenus. Tracker now has an invisible control to Capture when active.
3292         * MenuItem.cs: add sizing accessors, kill Create
3293         and handle usage.
3294         * Theme.cs: remove menu handle and MENU(ITEM) usage.
3295         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
3296         MENU(ITEM). remove menu handle usage, use Menu directly.
3297         * XplatUIDriver.cs: remove menu handle usage.
3298         * XplatUIOSX.cs: remove menu handle usage.
3299         * XplatUIWin32.cs: remove menu handle usage.
3300         * XplatUIX11.cs: remove menu handle usage.
3301
3302 2005-11-22  Jackson Harper  <jackson@ximian.com>
3303
3304         * Hwnd.cs: Don't compute the menu size for
3305         DefaultClientRectangle.
3306         - Reenable menu sizes being computed for GetClienRectangle.
3307         * Form.cs: Remove comment of trechery
3308         
3309 2005-11-22  Jackson Harper  <jackson@ximian.com>
3310
3311         * Hwnd.cs: The adjustments for the menu bar are made when it is
3312         attached to the form.
3313
3314 2005-11-19  Jackson Harper  <jackson@ximian.com>
3315
3316         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
3317         (just like on windows).
3318
3319 2005-11-19  Jackson Harper  <jackson@ximian.com>
3320
3321         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
3322         use real buttons anymore because they are in non client area. The
3323         one TODO here is that I need to somehow invalidate a section of
3324         the non client area.
3325
3326 2005-11-18  Jackson Harper  <jackson@ximian.com>
3327
3328         * Control.cs: Put the enum check back in now that MDI doesnt have
3329         to use this to set border styles.
3330         * Form.cs: Only set mdi child windows borders if the handle has
3331         been created.
3332         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
3333         this directly on to the driver.
3334         - Get the move start position before adjusting for the titlebar
3335         height, this fixes the windows "skipping" when they are first
3336         moved.
3337
3338 2005-11-18  Jackson Harper  <jackson@ximian.com>
3339
3340         * XplatUIX11.cs: Just compute the mdi borders separately as they
3341         don't totally match up with normal form borders.
3342
3343 2005-11-18  Jackson Harper  <jackson@ximian.com>
3344
3345         * Control.cs: Set WS_ styles for borders, so that the driver does
3346         not have to retrieve the control instance to figure out what kind
3347         of borders it should have.
3348         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
3349         driver can know its an mdi child easily.
3350         * XplatUIX11.cs: Get the border styles and whether the window is
3351         MDI from the Styles and ExStyles params instead of having to get a
3352         control. This prevents a chicken and egg problem.       
3353
3354 2005-11-18  Jackson Harper  <jackson@ximian.com>
3355
3356         * MdiClient.cs: Fix typo so scrollbars show up correctly.
3357
3358 2005-11-18  Jackson Harper  <jackson@ximian.com>
3359
3360         * MdiClient.cs: Calculate when to add and remove scrollbars
3361         correctly.
3362         * MdiChildContext.cs: Adjust the y position to take the titlebar
3363         into account.
3364         - No height for FormBorderStyle.None
3365
3366 2005-11-18  Jackson Harper  <jackson@ximian.com>
3367
3368         * Control.cs: Allow non enum values to be used for
3369         InternalBorderStyle.  MDI does this to set a special border style.
3370         - New utility methods for converting points to/from client coords
3371         - Add the newly created control to the Controls collection before
3372         updating its style. This way UpdateStyle can walk the control
3373         heirarchy to find the control if needed.
3374         so I don't need to create a new Point object all the time.
3375         * Form.cs: Let MDI windows handle their border styles.
3376         - Set styles on MDI windows so the correct title style is derived.
3377         * MdiChildContext.cs: Move all the painting and window handling
3378         into the non client area.
3379         - Use correct sizing and put correct buttons on frames based on
3380         the FormBorderStyle.
3381         - Notify the mdi client about scrolling
3382         - Need to handle the buttons ourselves now, because they are all
3383         in non client areas and we can't add controls there.
3384         * MdiClient.cs: Halfway to scrolling, this implementation is
3385         somewhat broken though, we need to check to make sure other
3386         windows aren't causing scrolling before removing the bars. Also
3387         the bars need to be drawn on top, maybe I can switch implicit
3388         controls to be on top.
3389         * Hwnd.cs: caption_height and tool_caption_height are now
3390         properties of an hwnd, this way they can be set by the driver
3391         based on the type of window they are.  In X11 the window manager
3392         handles the decorations so caption_height is zero unless its an
3393         MDI window.
3394         - Add 3 pixel borders for MDI windows (0xFFFF).
3395         - Get rid of some code duplication, have DefaultClientRectanle
3396         just call GetClientRectangle.
3397         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
3398         Hwnd now.
3399         - Set border styles differently for mdi windows.
3400         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
3401         Hwnd now.
3402         
3403 2005-11-15  Mike Kestner  <mkestner@novell.com>
3404
3405         * Menu.cs: when adding an item to the collection, if item is already 
3406         parented, remove it from the parent.
3407
3408 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
3409
3410         * X11DesktopColors.cs: Added KDE support
3411
3412 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
3413
3414         * XplatUIWin32.cs: 
3415           - Clipboard methods now can translate Rtf format
3416           - No longer removes clipboard contents whenever a new format is added
3417             to allow placing multiple formats on the clipboard
3418         * Clipboard.cs: Clipboard now supports getting a IDataObject and
3419           will place all formats contained in it onto the clipboard. Also
3420           now cleans the clipboard before placing a new object onto it
3421         * RichTextBox.cs:
3422           - Implemented set_Rtf
3423           - Implemented set_SelectedRtf
3424           - Created InsertRTFFromStream() method to allow single code base
3425             for all properties and methods that insert RTF into document
3426           - Removed debug output
3427         * TextControl.cs:
3428           - Fixed Delete(int) to fix up line numbers
3429           - Fixed ReplaceSelection to combine start and end line
3430           - Fixed serious DeleteChars bug that would leave the document tree
3431             broken
3432           - Improved DumpTree with several logic checks to detect broken
3433             document trees
3434           - Removed debug lines
3435           - Fixed Caret.WordForward/WordBack moving code, now always also 
3436             updates caret.tag (fixes crash when word-selecting across tag
3437             boundaries via keyboard)
3438           - Added Insert() method for inserting multiline text into documents
3439           - Fixed DeleteChars() calculation errors that would cause a broken
3440             tag chain with multiple tag lines
3441           - DeleteChars() no longer crashes on multi-tag lines if not all tags
3442           - Split() no longer moves caret if split is at caret location
3443           - ReplaceSelection() now updates the cursor and re-displays it
3444           - ReplaceSelection() now uses new Insert() method to avoid code
3445             duplication
3446           - FormatText() can now handle formatting partial lines
3447         * TextBoxBase.cs:
3448           - Append now uses new TextControl.Insert() method (this avoids 
3449             duplicate code)
3450           - Implemented Ctrl-X (Cut) (
3451           - Implemented Ctrl-C (Copy)
3452           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
3453             regeneration when pasting text; roundtripping Copy&Paste within
3454             edit control still fails due to some calculation bugs in GenerateRTF)
3455           - The Delete key will now remove the current selection if it is visible
3456         * TextBox.cs: Removed debug lines
3457         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
3458           driver to be initialized and can't therefore be done via a static ctor)
3459
3460 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
3461
3462         * TextControl.cs: Added backend code for finding char arrays and strings
3463         * TextBoxBase.cs:
3464           - Added mouse wheel scroll support
3465           - Added support for VScroll and HScroll events
3466         * RichTextBox.cs:
3467           - Implemented all seven Find() variants
3468           - Implemented GetCharFromPosition()
3469           - Implemented GetCharIndexFromPosition()
3470           - Implemented GetLineFromIndex()
3471           - Implemented GetPositionFromCharIndex();
3472           - Implemented SaveFile for PlainText and UnicodeText
3473           - Fixed set_Font, now setting a new font applies that font to
3474             the whole document
3475           - Implemented generic Document to RTF converter
3476           - Implemented SaveFile for RichText format (still missing unicode
3477             conversion for non-ansi chars)
3478           - Implemented get_Rtf
3479           - Implemented get_SelectedRtf
3480
3481 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
3482
3483         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
3484           to allow any captures to be released before triggering OnClick. This
3485           way a click handler may capture the mouse without interference.
3486         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
3487           This way we send them even though X may not allow a grab (if the window
3488           isn't visible, for example)
3489
3490 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
3491
3492         * DataGridViewRowEventArgs.cs: DataGridView implementation
3493         * DataGridViewElement.cs: DataGridView implementation
3494         * DataGridViewComboBoxCell.cs: DataGridView implementation
3495         * DataGridViewDataErrorContexts.cs: DataGridView implementation
3496         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
3497         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
3498         * ImageLayout.cs: DataGridView implementation
3499         * DataGridViewComboBoxColumn.cs: DataGridView implementation
3500         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
3501         * DataGridViewSelectionMode.cs: DataGridView implementation
3502         * IDataGridViewEditingControl.cs: DataGridView implementation
3503         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
3504         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
3505         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
3506         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
3507         * DataGridViewColumnSortMode.cs: DataGridView implementation
3508         * DataGridView.cs: DataGridView implementation
3509         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
3510         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
3511         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
3512         * Padding.cs: DataGridView implementation
3513         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
3514         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
3515         * DataGridViewRowEventHandler.cs: DataGridView implementation
3516         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
3517         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
3518         * DataGridViewButtonCell.cs: DataGridView implementation
3519         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
3520         * DataGridViewEditMode.cs: DataGridView implementation
3521         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
3522         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
3523         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
3524         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
3525         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
3526         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
3527         * DataGridViewCellEventHandler.cs: DataGridView implementation
3528         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
3529         * DataGridViewCellStyleConverter.cs: DataGridView implementation
3530         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
3531         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
3532         * DataGridViewColumnEventArgs.cs: DataGridView implementation
3533         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
3534         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
3535         * QuestionEventArgs.cs: DataGridView implementation
3536         * IDataGridViewEditingCell.cs: DataGridView implementation
3537         * DataGridViewTriState.cs: DataGridView implementation
3538         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
3539         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
3540         * DataGridViewColumnCollection.cs: DataGridView implementation
3541         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
3542         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
3543         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
3544         * DataGridViewColumn.cs: DataGridView implementation
3545         * DataGridViewCellBorderStyle.cs: DataGridView implementation
3546         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
3547         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
3548         * DataGridViewRow.cs: DataGridView implementation
3549         * DataGridViewImageCellLayout.cs: DataGridView implementation
3550         * DataGridViewImageCell.cs: DataGridView implementation
3551         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
3552         * DataGridViewCheckBoxCell.cs: DataGridView implementation
3553         * DataGridViewHeaderCell.cs: DataGridView implementation
3554         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
3555         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
3556         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
3557         * DataGridViewTextBoxColumn.cs: DataGridView implementation
3558         * QuestionEventHandler.cs: DataGridView implementation
3559         * DataGridViewCellStyleScopes.cs: DataGridView implementation
3560         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
3561         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
3562         * DataGridViewCell.cs: DataGridView implementation
3563         * DataGridViewCellEventArgs.cs: DataGridView implementation
3564         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
3565         * DataGridViewCellStyle.cs: DataGridView implementation
3566         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
3567         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
3568         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
3569         * TextFormatFlags.cs: DataGridView implementation
3570         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
3571         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
3572         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
3573         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
3574         * DataGridViewButtonColumn.cs: DataGridView implementation
3575         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
3576         * HandledMouseEventArgs.cs: DataGridView implementation
3577         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
3578         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
3579         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
3580         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
3581         * DataGridViewRowCollection.cs: DataGridView implementation
3582         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
3583         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
3584         * DataGridViewHitTestType.cs: DataGridView implementation
3585         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
3586         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
3587         * DataGridViewColumnEventHandler.cs: DataGridView implementation
3588         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
3589         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
3590         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
3591         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
3592         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
3593         * DataGridViewContentAlignment.cs: DataGridView implementation
3594         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
3595         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
3596         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
3597         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
3598         * DataGridViewPaintParts.cs: DataGridView implementation
3599         * DataGridViewCellCollection.cs: DataGridView implementation
3600         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
3601         * DataGridViewImageColumn.cs: DataGridView implementation
3602         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
3603         * DataGridViewElementStates.cs: DataGridView implementation
3604         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
3605         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
3606         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
3607         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
3608         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
3609         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
3610         * DataGridViewRowHeaderCell.cs: DataGridView implementation
3611         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
3612         * DataGridViewTextBoxCell.cs: DataGridView implementation
3613         * DataGridViewBand.cs: DataGridView implementation
3614         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
3615         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
3616         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
3617         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
3618         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
3619         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
3620         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
3621         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
3622         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
3623         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
3624         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
3625
3626 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
3627
3628         * ThemeWin32Classic.cs: 
3629           - Draw the outside focus rectangle around buttons
3630           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
3631             doesn't use end caps for every dash of a line anymore. This
3632             workaround ignores the forecolor.
3633
3634 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
3635
3636         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
3637           endian safe.
3638
3639 2005-11-07  Jackson Harper  <jackson@ximian.com>
3640
3641         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
3642
3643 2005-11-07  Jackson Harper  <jackson@ximian.com>
3644
3645         * ScrollableControl.cs: Calculate the maximum and change vars
3646         (more) correctly so that scrollbars appear as a sensible size.
3647
3648 2005-11-04  Jackson Harper  <jackson@ximian.com>
3649
3650         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
3651         collection.
3652         * TreeView.cs: When the tree is sorted null out the top_node so
3653         that it is recalculated.
3654         - Use dotted lines instead of dashed lines to match MS better.
3655
3656 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
3657
3658         * ListView.cs: 
3659           - Implements key search for items. Useful when browsing files with FileDialog
3660           - When changing view mode or when clear the items reset scrollbar positions
3661
3662 2005-11-04  Jackson Harper  <jackson@ximian.com>
3663
3664         * CurrencyManager.cs: Implement the MetaDataChanged event, the
3665         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
3666         as to what the method may do as there is no real way of creating a
3667         derived CurrencyManager and calling the method. 
3668
3669 2005-11-03  Jackson Harper  <jackson@ximian.com>
3670
3671         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
3672         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
3673         method which seems to just be used internally to refresh the tabs.
3674
3675 2005-11-03  Jackson Harper  <jackson@ximian.com>
3676
3677         * TabControl.cs: Implement the remove method. Fix some broken
3678         comments.
3679
3680 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
3681
3682         * DateTimePicker.cs:
3683           - Added missing DateTimePickerAccessibleObject class
3684           - Added missing events
3685           - Added OnFontChanged method
3686         * Form.cs: Added missing attributes
3687         * TreeView.cs: Added missing attributes
3688
3689 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
3690
3691         * GridItemCollection.cs: Fix signatures
3692
3693 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
3694
3695         * XplatUI.cs: Updated build rev/date
3696         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
3697           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
3698         * Application.cs: Trigger context-specific ExitThread events
3699
3700 2005-11-03  Jackson Harper  <jackson@ximian.com>
3701
3702         * Menu.cs:
3703         * MainMenu.cs:
3704         * GridTableStylesCollection.cs:
3705         * Timer.cs:
3706         * TabPage.cs:
3707         * HelpProvider.cs:
3708         * StatusBar.cs:
3709         * MonthCalendar.cs: Signature fixes
3710
3711 2005-11-03  Jackson Harper  <jackson@ximian.com>
3712
3713         * TreeNodeCollection.cs: Remove should not be virtual.
3714         * TreeView.cs: Implement the last of the missing methods.
3715
3716 2005-11-03  Jackson Harper  <jackson@ximian.com>
3717
3718         * TreeNodeConverter.cs: Implement to get off my class-status back.
3719
3720 2005-11-03  Jackson Harper  <jackson@ximian.com>
3721
3722         * TreeView.cs: Hookup the bits for drag and drop.
3723         * TreeNode.cs: Don't cache the tree_view or index anymore, now
3724         that nodes can be moved from tree to tree easily this just causes
3725         all sorts of problems.
3726         * TreeNodeCollection: Don't need to give treenodes an index and
3727         treeview anymore when they are added, these are computed on the
3728         fly. Also make sure to remove a node before its added.
3729
3730 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
3731
3732         * TextControl.cs:
3733           - Added CaretSelection enum
3734           - Added comparison methods to Marker struct, makes selection code
3735             more readable
3736           - Added SelectionStart and SelectionEnd as 'moveable' location for
3737             the CaretDirection enum and handler
3738           - Added selection_prev variable to track optimized invalidation for
3739             word and line selection
3740           - Added SelectionVisible property (returns true if there is a valid 
3741             selection)
3742           - Switched CaretHasFocus to only display the caret if there is no
3743             visible selection
3744           - Avoiding StringBuilder.ToString to retrieve a single char, instead
3745             using the direct character index; should be much faster
3746           - Added various conditional debug statements
3747           - Fixed invalidation calculation for selection ranges
3748           - Added ExpandSelection() method to support word and line selection
3749           - Switched SetSelectionToCaret to use new Marker compare overloads
3750           - Added central IsWordSeparator() method to determine word 
3751             separators/whitespace and FindWordSeparator() to streamline common
3752             usage of IsWordSeparator()
3753         * TextBoxBase.cs:
3754           - Removed unneeded grabbed variable, it was just mirroring
3755             Control.Capture
3756           - No longer firing OnTextChanged event when Text setter is called,
3757             since the base will fire the event for us
3758           - Added handling of Ctrl-Up/Down selection
3759           - Added handling of Shift-Cursorkey selection
3760           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
3761             words
3762           - Added handling of Shift and Ctrl-Shift-Home/End selection
3763           - Removed some debug output
3764           - Added handling for single/double/tripple-click to place caret/
3765             select word/select line respectively (Fixes bug #76031)
3766           - Added support for drag expansion of word/line selection
3767         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
3768           current selection
3769
3770 2005-11-02  Jackson Harper  <jackson@ximian.com>
3771
3772         * X11Dnd.cs: If the drag is going to and from a MWF window just
3773         copy the data instead of sending it out through the X Selection
3774         mechanism.
3775
3776 2005-11-02  Jackson Harper  <jackson@ximian.com>
3777
3778         * X11Dnd.cs:
3779         * XplatUIX11.cs: When in a drag we don't want motion notify
3780         messages to get passed on to the other controls. This prevents
3781         mouse move messages from showing up in the drag source.
3782
3783 2005-11-02  Jackson Harper  <jackson@ximian.com>
3784
3785         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
3786         the correct button is release to end a drag.
3787         * XplatUIX11.cs: Make the button state internal so the drag system
3788         can access it.  Dragging needs to know about all button releases,
3789         not just left button.
3790
3791 2005-11-02  Miguel de Icaza  <miguel@novell.com>
3792
3793         * Form.cs (Icon): If the icon is null, reset the icon to the
3794         default value. 
3795
3796         * Cursor.cs: When writing the AND-mask bitmap do not include the
3797         number of colors, but hardcode those to two (black and white),
3798         fixes the loading of color cursors (Paint Dot Net).
3799
3800         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
3801         turn off autoscaling.
3802
3803         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
3804
3805 2005-11-02  Jackson Harper  <jackson@ximian.com>
3806
3807         * X11Dnd.cs: Make sure to send a status message if the pointer
3808         enters a control that can not accept a drop, otherwise the cursor
3809         isn't updated correctly. Also tried to compress the lines of code
3810         a bit.
3811
3812 2005-11-02  Jackson Harper  <jackson@ximian.com>
3813
3814         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
3815         set actions correctly.  This isn't perfect as XDND and win32 have
3816         some differences on how you allow actions. I'll clear this up by
3817         adding a path for drag from MWF to MWF windows.
3818         * XplatUIX11.cs: Hook into the dnd system.
3819
3820 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
3821
3822         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
3823         previously shown but they are no longer need it. Very obvious when 
3824         browsing files with FileDialog.
3825
3826 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
3827
3828         * Control.cs: We always need to call OnPaintBackground. We pretty much
3829           ignore AllPaintingInWmPaint and always do the painting there, whether 
3830           it's set or not, since we always ignore the WM_ERASEBKGND message 
3831           (which we don't generate on X11). This fixes #76616.
3832         * Panel.cs: Removed unneeded background painting. This happens properly
3833           in Control.cs already
3834
3835 2005-10-31  Mike Kestner  <mkestner@novell.com>
3836
3837         * Menu.cs: Add items to collection before setting their index.
3838         * MenuItem.cs : add range checking with ArgumentException like MS.
3839         [Fixes #76510]
3840
3841 2005-10-31  Jackson Harper  <jackson@ximian.com>
3842
3843         * ListBox.cs: Invalidate if the area is visible at all not just
3844         contained in the visible rect. Fixes unselection of semi visible
3845         items.
3846
3847 2005-10-31  Jackson Harper  <jackson@ximian.com>
3848
3849         * Control.cs: Consistently name the dnd methods. Make them
3850         internal so we can override them to match some MS behavoir
3851         internally.
3852         * Win32DnD.cs: Use the new consistent names.
3853
3854 2005-10-31  Jackson Harper  <jackson@ximian.com>
3855
3856         * TreeView.cs: Don't draw the selected node when we lose focus.
3857
3858 2005-10-31  Jackson Harper  <jackson@ximian.com>
3859
3860         * X11Dnd.cs: We still need to reset the state even though a full
3861         reset isn't being done, otherwise status's still get sent all over
3862         the place.
3863
3864 2005-10-31  Jackson Harper  <jackson@ximian.com>
3865
3866         * Control.cs: Make the dnd_aware flag internal so the dnd
3867         subsystem can check it. Catch exceptions thrown in dnd handlers to
3868         match MS behavoir.
3869         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
3870         * X11Dnd.cs: Handle null data in the converters. Set the XDND
3871         version when sending a XdndEnter. Use the control/hwnd dnd_aware
3872         flags to reduce the number of dnd enters/status's sent.
3873
3874 2005-10-31  Jackson Harper  <jackson@ximian.com>
3875
3876         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
3877
3878 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
3879
3880         * PictureBox.cs: Fixes 76512
3881
3882 2005-10-28  Jackson Harper  <jackson@ximian.com>
3883
3884         * X11Dnd.cs: Early implementation to support winforms being a drag
3885         source for data on X11. Also restructured the converters so they
3886         can go both ways now.
3887         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
3888         
3889 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
3890
3891         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
3892           clipboard requests
3893
3894 2005-10-27  Jackson Harper  <jackson@ximian.com>
3895
3896         * TreeNode.cs: Implement serialization so my DnD examples will work.
3897
3898 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
3899
3900         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
3901           TreeView.cs: Don't dispose objects that are not owned.
3902           
3903 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
3904
3905         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
3906           should retrieve the current cursor and report that, but XplatUI
3907           doesn't (yet) have an interface for that (and I'm not sure I even
3908           can, on X11)
3909         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
3910           until any message loop processing is done (and the WM_SETCURSOR
3911           replaces the cursor to the proper one)
3912         * XplatUIX11.cs: 
3913           - Fixed override behaviour, we can't set the cursor globally on X11, 
3914             just for our windows.
3915           - Invalidating the System.Drawing X11 display handle when we are
3916             shutting down
3917         * Control.cs: Fix to make csc happy
3918
3919 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
3920
3921         * TextBoxBase.cs: 
3922           - get_Text: Add last line (without trailing newline) to returned
3923             value (Fixes 76212)
3924           - get_TextLength: Count last line in returned length
3925           - ToString: Call Text property instead of duplicating code
3926
3927 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
3928
3929         * ImageList.cs: Dispose ImageAttributes objects.
3930
3931 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
3932
3933         * ImageList.cs: Use attribute constructors with less arguments where
3934           possible.
3935
3936 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
3937
3938         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
3939           Use typeof instead of strings when assembly is referenced. Added
3940           some more comments.
3941
3942 2005-10-21  Jackson Harper  <jackson@ximian.com>
3943
3944         * ListView.cs: Raise a double click event. Also tried to somewhat
3945         fix when the selectedindexchanged event is raised. Its still
3946         broken though.
3947
3948 2005-10-21  Jackson Harper  <jackson@ximian.com>
3949
3950         * TreeView.cs: New method to invalidate the plus minus area of a
3951         node without invalidating the whole node (maybe this can be used
3952         in some more places).
3953         * TreeNodeCollection.cs: When adding to an empty node we need to
3954         invalidate its plus minus area so the little block shows up.
3955         
3956 2005-10-21  Jackson Harper  <jackson@ximian.com>
3957
3958         * TreeView.cs: Make sure that when we invalidate a node the bounds
3959         are big enough to cover the selected box and the focus
3960         rectangle. Use a different colour for the lines connecting nodes
3961         so they show up with all themes.
3962
3963 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
3964
3965         * NativeWindow.cs: Don't call anything that could call into the driver,
3966           we might be on a different thread.
3967
3968 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
3969
3970         * Control.cs(Dispose): Since Dispose might run on a different thread,
3971           make sure that we call methods that could call into the driver via
3972           invoke, to avoid thread issues
3973
3974 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
3975
3976         * XplatUI.cs: Removed finalizer
3977         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
3978           not allowing to be called on the finalizer thread.
3979
3980 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
3981
3982         * ImageList.cs:
3983           - Reverted r51889 and r51891.
3984           - Added ImageListItem class that stores unmodified image items and image
3985             properties required to create list images until handle is created.
3986           - Added AddItem and moved image creation logic to AddItemInternal.
3987           - Added CreateHandle method that creates images based on unmodified items.
3988           - Added DestroyHandle that changes state to store unmodified items.
3989           - Add and AddStrip methods no more create handle.
3990           - ReduceColorDepth has no return value.
3991           - Dispose destroys handle.
3992           - Modified other methods to reflect the above changes.
3993           - Implemented key support.
3994           - Added profile 2.0 members and attributes.
3995           - Added private Reset and ShouldSerialize methods that provide the same
3996             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
3997             them as they are private.
3998           - Added some more comments about implementation details.
3999
4000 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
4001
4002         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
4003
4004 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
4005
4006         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
4007
4008 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
4009
4010         * DataGridDrawingLogic.cs: Fixes column hit calcultation
4011         * DataGridColumnStyle.cs: Remove debug message
4012
4013 2005-10-20  Jackson Harper  <jackson@ximian.com>
4014
4015         * TreeView.cs: We can always get input keys regardless of whether
4016         or not editing is enabled. They are used for navigation.
4017
4018 2005-10-20  Jackson Harper  <jackson@ximian.com>
4019
4020         * TreeNode.cs: Use the viewport rect for determining if a node
4021         needs to be moved for visibility. Don't use Begin/End edit. This
4022         calls a full refresh when its done.
4023         * TreeView.cs: New SetBottom works correctly.  Make the viewport
4024         rect property internal so the treenodes can see it. When clicking
4025         on a node we need to ensure that its visible because it might just
4026         be partly visible when clicked.
4027
4028 2005-10-20  Jackson Harper  <jackson@ximian.com>
4029
4030         * TreeNodeCollection.cs: Remove debug code.
4031
4032 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
4033
4034         * Datagrid.cs: Implements column sorting in Datagrid
4035         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
4036
4037 2005-10-20  Jackson Harper  <jackson@ximian.com>
4038
4039         * TreeNodeCollection.cs: Remove items properly. Update the correct
4040         area after removing them.
4041
4042 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
4043
4044         * Datagrid.cs: Should not call base.OnPaintBackground
4045
4046 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
4047
4048         * XplatUIX11.cs (GetMessage):
4049           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
4050             window instead of client window
4051           - Now properly calculates NC_xBUTTONUP message coordinates
4052           - ScreenToMenu now properly calculates it's coordinates of whole 
4053             window, since menus are in the whole window, not in the client
4054             window
4055           - Added WholeToScreen coordinate translation method
4056
4057 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
4058
4059         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
4060           want to return a message, loop back to the beginning of the function
4061           and grab the next real message to process instead.
4062
4063 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
4064
4065         * Splitter.cs: Properly set limits if no filler control is used
4066
4067 2005-10-19  Jackson Harper  <jackson@ximian.com>
4068
4069         * ColorDialog.cs: Don't show the help button if it is not enabled
4070         instead of disabling it (this is what MS does). Don't create the
4071         panel until the dialog is run, otherwise the vars (such as
4072         ShowHelp) are not set yet.
4073
4074 2005-10-19  Jackson Harper  <jackson@ximian.com>
4075
4076         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
4077         are reduced when adding nodes.
4078         * TreeNode.cs:
4079         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
4080         tree.
4081         
4082 2005-10-19  Jackson Harper  <jackson@ximian.com>
4083
4084         * FolderBrowserDialog.cs: End editing our treeview so the window
4085         actually gets refreshed.
4086
4087 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
4088
4089         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
4090           Obsoleted handling of WM_ERASEBKGND, now always draws our background
4091           inside of WM_PAINT
4092
4093 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
4094
4095         * MenuAPI.cs: Returns after Hidding window
4096         * XplatUIX11.cs: Added TODO found while debugging menu issues
4097
4098 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
4099
4100         * XplatUIX11.cs: Do not re-map the whole window when it's size
4101           becomes non-zero unless it's supposed to be actually visible
4102
4103 2005-10-18  Jackson Harper  <jackson@ximian.com>
4104
4105         * TreeView.cs: We don't need to keep a count anymore.
4106         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
4107         use the Grow method.
4108
4109 2005-10-18  Jackson Harper  <jackson@ximian.com>
4110
4111         * TreeNodeCollection.cs: Insert is not supported on arrays, so
4112         implement it manually here.
4113
4114 2005-10-18  Jackson Harper  <jackson@ximian.com>
4115
4116         * ImageList.cs: Dont kill the list when the colour depth is
4117         changed, just change the colour depth of all the images.
4118         - Same goes for setting the image size. Just resize them all
4119         instead of killing the list softly.
4120
4121 2005-10-18  Jackson Harper  <jackson@ximian.com>
4122
4123         * Control.cs: Don't invalidate empty rectangles.
4124
4125 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
4126
4127         * ListViewItem.cs:
4128           - Adds checked item to the Checked/Item lists (where empty before)
4129           - Do not add items to the Selected lists if they are already present
4130         * ListView.cs:
4131           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
4132           - When deleting items make sure that we delete them for the Selected
4133           and Checked list also.
4134
4135 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
4136
4137         * Label.cs: Dispose objects no longer used
4138         * ThemeWin32Classic.cs: Dispose objects no longer used
4139
4140 2005-10-18  Jackson Harper  <jackson@ximian.com>
4141
4142         * TabControl.cs: Don't refresh the whole control when the tabs are
4143         scrolled, we just need to refresh the tab area.
4144
4145 2005-10-17  Jackson Harper  <jackson@ximian.com>
4146
4147         * XplatUIX11.cs: Compress code a little bit. Only calculate the
4148         after handle when we need it.
4149
4150 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
4151
4152         * Control.cs: When the parent size changes, recalculate anchor 
4153           positions. Partial fix for #76462
4154
4155 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
4156
4157         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
4158           drawn. Fixes #76462
4159
4160 2005-10-17  Jackson Harper  <jackson@ximian.com>
4161
4162         * MonthCalendar.cs: Don't create the numeric up down until our
4163         handle is created. Otherwise our handle is created in the
4164         constructor and we don't know if we are a WS_CHILD or WS_POPUP
4165         yet.
4166
4167 2005-10-17  Jackson Harper  <jackson@ximian.com>
4168
4169         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
4170         correctly.
4171
4172 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
4173         * TreeNode.cs : small logical fix (was using local var instead of field)
4174         
4175 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
4176
4177         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
4178
4179 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
4180
4181         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
4182
4183 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
4184
4185         * Control.cs: 
4186           - Re-implemented anchoring code. My first version was really broken.
4187             This fixes bug #76033. Unlike the previous implementation we will
4188             no longer have round errors since all numbers are calculated from
4189             scratch every time. Removed various anchor-related obsolete vars.
4190           - InitLayout no longer causes layout event firing and layout to be 
4191             performed
4192
4193 2005-10-16  Jackson Harper  <jackson@ximian.com>
4194
4195         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
4196         which was broken).
4197
4198 2005-10-16  Jackson Harper  <jackson@ximian.com>
4199
4200         * TabControl.cs: Remove debug code.
4201
4202 2005-10-16  Jackson Harper  <jackson@ximian.com>
4203
4204         * XEventQueue.cs: Increase the default queue size (very simple
4205         apps needed to grow the queue).
4206         * Hwnd.cs: No finalizer so we don't need to suppress
4207         finalization. Compute the invalid area manually so a new rectangle
4208         does not newto be created.
4209         * ScrollableControl.cs: Don't set any params (otherwise visibility
4210         isn't set correctly).
4211         * MdiChildContext.cs: New constructor takes the mdi parent so it
4212         doesn't have to be computed and avoids a crash on windows. Draw
4213         the window icon properly, and allow the text to be seen.
4214         * Form.cs: Use new MdiChildContext constructor. Make sure the
4215         child context isn't null in wndproc.
4216         * TabControl.cs: Don't set focus, this is muddling keyboard
4217         behavoir. Expand the tab rows when a window size increase will
4218         allow extra tabs to be seen. Don't allow tabs smaller than the
4219         width of a window to be scrolled out of view.
4220         * TreeNode.cs:
4221         * TreeView.cs: Use measure string to calculate a nodes width, the
4222         width is cached and only updated when the text or the font is
4223         changed. Don't check for expand/collapse clicks on the first level
4224         nodes if root lines are disabled.
4225         
4226 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
4227
4228         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
4229
4230 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
4231
4232         * DataGridBoolColumn.cs: fixes warning
4233
4234 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
4235
4236         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
4237         to match more to match more precisely the MS Net behavior
4238
4239 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
4240
4241         * Hwnd.cs: Added field to track if window is mapped
4242         * XplatUIX11.cs: 
4243           - Unmap windows if they become 0-size, re-map when 
4244             they are >0 again; fixes #76035
4245           - Re-set our error handler after initializing X11Desktop
4246             to override any error handlers Gtk or whatever was called
4247             may have set.
4248
4249 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
4250
4251         * CheckedListBox.cs: Removed unused vars
4252         * ListView.cs: Fixed signatures
4253         * RichTextBox.cs: Removed unused vars
4254         * TextBoxBase.cs: Removed unused vars
4255         * XplatUIWin32.cs: Removed unused vars
4256         * XplatUIX11.cs: Removed unused vars
4257         * XplatUI.cs: Updated version and date to latest published
4258
4259 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
4260
4261         * Cursor.cs: Added private .ctor to work around a bug in
4262           resourceset (Thanks to Geoff Norton for the help on this)
4263         * SplitterEventArgs.cs: Made fields accessible so we don't
4264           waste boatloads of objects and can reuse the same one
4265           in Splitter
4266         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
4267           any captions and borders when generating screen coordinates
4268         * Splitter.cs: Reimplemented control, now fully complete, uses
4269           rubberband drawing, supports and obeys all properties, has
4270           proper cursors
4271
4272 2005-10-13  Miguel de Icaza  <miguel@novell.com>
4273
4274         * Form.cs (Form): Setup default values for autoscale and
4275         autoscale_base_size;  Make these instance variables, not static
4276         variables. 
4277
4278         (OnLoad): on the first load, adjust the size of the form.
4279
4280 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
4281
4282         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
4283           width argument to DrawReversibleRectangle()
4284         * XplatUIWin32.cs, XplatUIX11.cs: 
4285           - Implemented width for DrawReversibleRectangle()
4286           - Added logic to DrawReversibleRectangle that recognizes a zero
4287             width or height and only draws a line in that situation
4288         
4289 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
4290
4291         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
4292         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
4293         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
4294           method (it uses our FosterParent window to get a graphics context)
4295
4296 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
4297
4298         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
4299           and SetWindowBackground methods
4300         * Control.cs:
4301           - Setting proper ControlStyles
4302           - We no longer call XplatUI.SetWindowBackground and XplatUI.
4303             EraseWindowBackground, instead we draw the window background
4304             ourselves in PaintControlBackground. This behaviour is
4305             required to match MS, where, when OnPaintBackground is not
4306             called, the background is not drawn.
4307           - Removed unneeded Refresh() in set_Text
4308         * Hwnd.cs: Dropped the ErasePending support. No longer needed
4309         * XplatUIX11.cs:
4310           - Created DeriveStyles method to translate from CreateParams to
4311             FormBorderStyle and TitleStyle, also handles BorderStyle (which
4312             matches FormBorderStyle enum values)
4313           - Consolidated SetHwndStyles and CalculateWindowRect border/title
4314             style calculations into single DeriveStyles method
4315           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
4316             from redrawing the whole window on any resize or expose.
4317           - Fixed CreateWindow usage of SetWindowValuemask. Before not
4318             all styles were applied to our whole/client window appropriately
4319           - Removed EraseWindowBackground() and SetWindowBackground() methods
4320           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
4321             no longer clear/redraw the background through X
4322           - Removed handling of erase_pending bit, we have no use for it (or
4323             so it seems)
4324         * XplatUIOSX.cs:
4325           - Removed generation and handling of WM_ERASEBKGND message
4326           - Removed EraseWindowBackground() and SetWindowBackground() methods
4327           - Removed handling of hwnd.ErasePending flag
4328         * XplatUIWin32.cs:
4329           - Removed EraseWindowBackground() and SetWindowBackground() methods
4330           - We no longer call EraseWindowBackground on PaintEventStart, we 
4331             ignore the fErase flag, erasing is handled in Control in the
4332             background handler
4333         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
4334           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
4335           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
4336           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
4337           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
4338           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
4339           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
4340
4341 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
4342
4343         * PropertyGrids.cs: Get sub properties
4344         * PropertyGridView.cs: Fix drawing code
4345
4346 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
4347
4348         * ListBox.cs: Fixes 76383
4349
4350 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
4351
4352         * DataGridTextBoxColumn.cs: Sets location and size before attachment
4353         * ThemeWin32Classic.cs: Fixes border drawing and calculations
4354         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
4355
4356
4357 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
4358
4359         * ComboBox.cs: Fixes border drawing
4360
4361 2005-10-10  Miguel de Icaza  <miguel@novell.com>
4362
4363         * MimeIcon.cs: Ignore errors if the file can not be read.
4364
4365 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
4366
4367         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
4368          - Fixed border calculations
4369          - Fixed horizontal scrolling in single column listboxes
4370          - Fixed drawing issues
4371
4372 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
4373
4374         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
4375           FormBorderStyle enum
4376         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
4377           code to determine FormBorderStyles from CreateParams
4378         * Form.cs:
4379           - Fixed bug where we'd set the wrong window styles if we were
4380             not creating an MDI window
4381           - Added call to XplatUI.SetBorderStyle when form borders are set
4382         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
4383         * Hwnd.cs:
4384           - Removed obsolete edge style
4385           - Switched from BorderStyle to FormBorderStyle
4386         
4387 2005-10-10  Jackson Harper  <jackson@ximian.com>
4388
4389         * Form.cs: Use the property to get the window handle instead of
4390         accessing it directly. Prevents a null reference exception.
4391
4392 2005-10-10  Jackson Harper  <jackson@ximian.com>
4393
4394         * TreeView.cs: Don't adjust the rect given to DrawString now that
4395         our libgdiplus draws correctly.
4396
4397 2005-10-08  Jackson Harper  <jackson@ximian.com>
4398
4399         * TreeView.cs: Don't try to find the clicked on node if there are
4400         no nodes in the tree.
4401
4402 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
4403
4404         * RichTextBox.cs:
4405
4406           restore
4407
4408 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
4409
4410         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
4411           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
4412           ErrorProvider.cs:
4413           Use ResPool for brushes and dispose System.Drawing objects that
4414           are not used anymore.
4415
4416 2005-10-07  Jackson Harper  <jackson@ximian.com>
4417
4418         * MdiChildContext.cs: Use the new borders instead of drawing them
4419         ourselves.
4420
4421 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
4422
4423         * Calling UpdateBounds after changing the window's BorderStyle 
4424         since the style can change the ClientSize
4425
4426 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
4427
4428         * Control.cs: Made PaintControlBackground virtual
4429         * Panel.cs: Overriding PaintControlBackground instead of using paint
4430           event; paint event method was interfering with 'real' users of the
4431           event.
4432
4433 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
4434
4435         * ThemeWin32Classic.cs: remove border drawing since it is handled
4436         by the base control class now and was causing double border drawing.
4437
4438 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
4439
4440         * Panel.cs: Redraw our background on paint. Not a pretty solution,
4441           but it does seem to match MS behaviour. This fixes bug #75324
4442
4443 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
4444
4445         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
4446           somewhat hackish looking
4447
4448 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
4449
4450         * TextBoxBase.cs:
4451           - We now accept Enter even if AcceptEnter is false, if the containing
4452             form does not have an AcceptButton configured (fixes bug #76355)
4453           - Calculations are now fixed to no longer use Width/Height, but
4454             ClientSize.Width/Height, since we now support borders (this was
4455             a result of fixing borders and therefore bug #76166)
4456           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
4457             true (fixes bug #76354)
4458         
4459 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
4460
4461         * Control.cs: 
4462           - Defaulting BorderStyle and setting it in XplatUI when our window 
4463             is created
4464           - Added enum check to InternalBorderStyle setter
4465         * XplatUIX11.cs: 
4466           - Added drawing of window borders
4467           - Now properly calculates WM decorations offset for toplevel 
4468             windows (fixes bug #74763)
4469         * XplatUIWin32.cs: 
4470           - Implemented BorderStyles for windows (we're letting win32 draw 
4471             the border for us)
4472           - Fixed the signature for SetWindowLong
4473         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
4474           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
4475           setting borders
4476         * UpDownBase.cs: Remove drawing of borders, this is handled by
4477           the driver, outside the client area
4478         * ListView.cs: Removed bogus border calculations. The control should
4479           be oblivious to borders, since those are not part of the client
4480           area. 
4481         * X11DesktopColors.cs: Commented out (currently) unneeded variables
4482         * ThemeWin32Classic.cs: Removed border calculations from ListView 
4483           drawing code
4484
4485 2005-10-06  Jackson Harper  <jackson@ximian.com>
4486
4487         * MdiChildContext.cs: Clear out the old virtual position remove
4488         all the unneeded calls to CreateGraphics.
4489
4490 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
4491
4492         * TextControl.cs: Use proper color for highlighted text; fixes #76350
4493
4494 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
4495
4496         * Form.cs: 
4497           - Added loading and setting of our new default icon
4498           - Only set icon if window is already created
4499
4500 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
4501
4502         * Label.cs:
4503           - Do not explicitly set the foreground and background colors, to
4504             allow inheriting from parents (fixes #76302)
4505           - Use Control's InternalBorderStyle property to deal with borders
4506
4507 2005-10-06  Jackson Harper  <jackson@ximian.com>
4508
4509         * MdiChildContext.cs: Use the new xplatui function to draw a
4510         reversible rect.
4511
4512 2005-10-06  Jackson Harper  <jackson@ximian.com>
4513
4514         * Form.cs: Add the parent before creating the child context cause
4515         we need the parent when setting up the child.
4516
4517 2005-10-06  Jackson Harper  <jackson@ximian.com>
4518
4519         * FolderBrowserDialog.cs: redo the tree population code so a
4520         second thread isn't used. Should be a lot faster and more stable
4521         now.
4522
4523 2005-10-05  Jackson Harper  <jackson@ximian.com>
4524
4525         * TreeView.cs: There are no expand/collapse boxes if the node has
4526         no children.
4527
4528 2005-10-05  Jackson Harper  <jackson@ximian.com>
4529
4530         * X11DesktopColors.cs: Get menu colours for the gtk theme.
4531
4532 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
4533
4534         * FileDialog.cs: Fix InitialDirectory
4535
4536 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
4537
4538         * ComboBox.cs:
4539                 - Fixes changing between styles
4540                 - Fixes simple mode
4541                 - Fixes last item crashing when navigating with keyboard
4542
4543 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
4544
4545         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
4546
4547 2005-10-05  Jackson Harper  <jackson@ximian.com>
4548
4549         * TreeView.cs: If updating the root node do a full refresh.
4550         * TreeNode.cs: The root node should be expanded by default. Also
4551         added a utility prop to tell if we are the root node.
4552         * TreeNodeCollection.cs: Only refresh if the node we are being
4553         added to is expanded. Also added a comment on a potential
4554         optimization.
4555         
4556 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
4557
4558         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
4559           in dispose method. Fixes #76330
4560
4561 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
4562
4563         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
4564
4565                 - Implements vertical and horizontal scrolling using XplatUI
4566                 - Fixes keyboard navagation
4567                 - Fixes EnsureVisible
4568                 - Drawing fixes
4569                 - Handles and draws focus properly
4570
4571
4572 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
4573
4574         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
4575           Create handle. NET_2_0: Destroy handle when value is null.
4576
4577 2005-10-03  Jackson Harper  <jackson@ximian.com>
4578
4579         * ScrollBar.cs: My last scrollbar patch was broken. This is a
4580         revert and a new patch to prevent the thumb from refreshing so
4581         much.
4582
4583 2005-10-02  Jackson Harper  <jackson@ximian.com>
4584
4585         * ScrollBar.cs: Don't update position if it hasn't actually
4586         changed. This occurs when you hold down the increment/decrement
4587         buttons and the thumb gets to the max/min.
4588
4589 2005-10-01  Jackson Harper  <jackson@ximian.com>
4590
4591         * Form.cs:
4592         * MdiChildContext.cs:
4593         * MdiClient.cs: Implement ActiveMdiChild in Form.
4594
4595 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
4596
4597         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
4598
4599 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
4600
4601         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
4602           be found
4603
4604 2005-09-30  Jackson Harper  <jackson@ximian.com>
4605
4606         * ListBox.cs: Don't do a full refresh unless some data has
4607         actually changed.
4608
4609 2005-09-30  Jackson Harper  <jackson@ximian.com>
4610
4611         * TreeView.cs: Make sure that the checkboxes size is factored in
4612         even when not visible.
4613
4614 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
4615
4616         * FileDialog.cs: Fix Jordi's build break
4617
4618 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
4619
4620         * FileDialog.cs: 
4621                 - Use standard the Windows colours for the combobox as espected
4622                 - Dispose objects that use resouces when no longer need them
4623
4624 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
4625
4626         * X11DesktopColors.cs: Initial incomplete implementation
4627         * XplatUIX11.cs: Added call to initialize X11DesktopColors
4628
4629 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
4630
4631         * Theme.cs: 
4632           - Switched Theme color names to match the names defined in 
4633             System.Drawing.KnownColors. Life's hard enough, no need to make 
4634             it harder.
4635           - Added setters to all theme color properties so themes can set
4636             their color schemes. The setters also propagate the color changes
4637             to System.Drawing.KnownColors via reflection
4638         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
4639           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
4640           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
4641           use the new, more logical theme color names
4642         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
4643           post-NT colors
4644         * ThemeWin32Classic.cs:
4645           - Removed code to set the old classic Windows colors. Instead it
4646             now relies on the colors returned by System.Drawing.KnownColors
4647             which will be either modern static colors (Unix) or colors
4648             read from the user's configuration (Win32)
4649           - Updated to use the new, more logical theme color names
4650           - Switched DataGrid drawing code to use only Theme colors instead of
4651             a mix of System.Drawing.KnownColors and Theme colors
4652           - DrawFrameControl(): Removed code that fills the button area, the
4653             fill would overwrite any previous fill done by a control. This
4654             fixes bug #75338 
4655           - Added DrawReversibleRectangle() stub
4656         * ScrollableControl.cs: Set visible state to false when scrollbars
4657           are removed (pdn fix)
4658         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
4659           DrawReversibleRectangle() method to allow drawing primitive 
4660           'rubber bands'
4661         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
4662
4663 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
4664
4665         * ImageList.cs: Add(Icon): Create handle.
4666
4667 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
4668
4669         * ListView.cs:
4670         * ThemeWin32Classic.cs:
4671                 - Fixes detail mode
4672                 - Sets clippings
4673                 - Issues with drawing
4674
4675 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
4676
4677         * ImageList.cs: Moved RecreateHandle back to ImageList as event
4678           source has to be the ImageList.
4679
4680 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
4681
4682         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
4683
4684 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
4685
4686         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
4687
4688 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
4689
4690         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
4691
4692 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
4693         * GridItem.cs: Fixed TODOs
4694         * GridItemCollection.cs: Added ICollection interface
4695
4696 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
4697
4698         * ImageList.cs: Resize icons when needed.
4699
4700 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
4701
4702         * ListViewItem.cs
4703                 - Fixes GetBounds and returns on screen rects
4704         * ListView.cs:
4705                 - Fixes vertical and horzintal scrolling of items
4706         * ThemeWin32Classic.cs:
4707                 - Fixes drawing
4708                 
4709 2005-09-29  Raja R Harinath  <harinath@gmail.com>
4710
4711         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
4712
4713 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
4714
4715         * ImageList.cs: Added comments about handle creation. Moved Handle,
4716           HandleCreated and OnRecreateHandle implementations to ImageCollection.
4717           Handle is created in Add methods.
4718
4719 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
4720          
4721         * DataGridDrawingLogic.cs: 
4722                 - Takes rows into account on Colum calculations
4723                 - Returns the column when clickig
4724         * DataGrid.cs:
4725                 - Fixes default HitTestInfo values
4726                 - Fixes HitTestInfo.ToString
4727                 - Fixes ResetBackColor          
4728         
4729 2005-09-28  Jackson Harper  <jackson@ximian.com>
4730
4731         * MdiChildContext.cs: Obey rules for fixed sized windows (no
4732         sizing or cursor changes). Also added some temp code to draw the
4733         titlebars text (Makes dev a little easier).
4734
4735 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
4736
4737         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
4738
4739 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
4740          
4741         * ListBox.cs: Fixes bug 76253
4742
4743 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
4744
4745         * ImageList.cs: Added comments about the current implementation. Added
4746           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
4747           Format32bppArgb to preserve transparency and can use Graphics.FromImage
4748           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
4749           with Bitmap.LockBits for better performance. Revised the whole file to
4750           match MS.NET behaviour and provide better performance. Non-public
4751           interface members are calling public members even when they throw
4752           NotSupportedException for better maintainability. Moved ColorDepth,
4753           ImageSize, ImageStream and TransparentColor implementations to
4754           ImageCollection for better performance as these properties are not used
4755           by ImageList.
4756         * ImageListStreamer.cs: Added a new internal constructor that takes an
4757           ImageList.ImageCollection and serializes Images based on
4758           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
4759           match ImageList property name.
4760
4761 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
4762
4763         * ListBox.cs: Fixes IndexFromPoint for last item
4764
4765 2005-09-27  Jackson Harper  <jackson@ximian.com>
4766
4767         * Form.cs: Set the position of new mdi children correctly.
4768
4769 2005-09-27  Jackson Harper  <jackson@ximian.com>
4770
4771         * MdiClient.cs: New mdi children need to be added to the back of
4772         the controls collection so the zorder is set correctly. Also add a
4773         count of all the child windows that have been created.
4774
4775 2005-09-27  Jackson Harper  <jackson@ximian.com>
4776
4777         * Form.cs (CreateParams): Setup MDI forms correctly.
4778
4779 2005-09-27  Jackson Harper  <jackson@ximian.com>
4780
4781         * MdiChildContext.cs:
4782         * MonthCalendar.cs:
4783         * UpDownBase.cs:
4784         * ListBox.cs:
4785         * ListView.cs:
4786         * TextBoxBase.cs:
4787         * TreeView.cs:
4788         * ScrollableControl.cs:
4789         * ComboBox.cs: Add implicit controls using the new implict control
4790         functionality in ControlCollection. Also try to block multiple
4791         control add in a suspend/resume layout to save some cycles.
4792         
4793 2005-09-27  Jackson Harper  <jackson@ximian.com>
4794
4795         * Control.cs: Add functionality to the controls collection to add
4796         'implicit controls' these are controls that are created by the
4797         containing control but should not be exposed to the user. Such as
4798         scrollbars in the treeview.
4799         * Form.cs: The list var of the ControlsCollection is no longer
4800         available because of the potential of implicit controls getting
4801         ignored by someone accessing the list directly.
4802
4803 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
4804
4805         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
4806           loose it's parent. (Fixed bug introduced in r49103 when we added
4807           setting the child parent to null on Remove)
4808
4809 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
4810
4811         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
4812         * Splitter.cs: Added missing attributes for BorderStyle property.
4813         * TextBoxBase.cs: Marked Calculate* methods internal.
4814         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
4815         MS.NET.
4816
4817 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
4818          
4819         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
4820
4821 2005-09-25  Jackson Harper  <jackson@ximian.com>
4822
4823         * TreeView.cs: Update the node bounds correctly regardless of
4824         whether the node is visible.
4825
4826 2005-09-25  Jackson Harper  <jackson@ximian.com>
4827
4828         * ImageList.cs: Don't dispose the image after it is added to the
4829         image list. Only reformat images that need to be resized.
4830
4831 2005-09-25  Jackson Harper  <jackson@ximian.com>
4832
4833         * ImageList.cs: Don't set the format when changing the image.
4834
4835 2005-09-25  Jackson Harper  <jackson@ximian.com>
4836
4837         * TreeView.cs: We can't just assume the node has a font. Use the
4838         treeviews font if no node font is available.
4839
4840 2005-09-25  Jackson Harper  <jackson@ximian.com>
4841
4842         * TreeView.cs: Allow the scrollbars to be reset with negative
4843         values.
4844         - Don't add scrollbars to negative sized windows.
4845
4846 2005-09-23  Jackson Harper  <jackson@ximian.com>
4847
4848         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
4849         old Mono.Posix. Also remove some stray code that shouldn't have
4850         been committed.
4851
4852 2005-09-23  Jackson Harper  <jackson@ximian.com>
4853
4854         * TreeView.cs: Attempt at proper sizing of the horizontal
4855         scrollbar. Also don't resize the scrollbars unless they are
4856         visible.
4857
4858 2005-09-23  Jackson Harper  <jackson@ximian.com>
4859
4860         * TreeView.cs: We don't need to expand the invalid area when the
4861         selection changes, as this is all drawn in the node's bounding
4862         box. The area needs to be expanded (previous typo was contracting
4863         it) when the focus rect moves.
4864
4865 2005-09-23  Jackson Harper  <jackson@ximian.com>
4866
4867         * TreeView.cs: Display the selection box under the correct
4868         circumstances. We were rendering white text with no selection box
4869         before.
4870
4871 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
4872
4873         * TextControl.cs(Split): Now updates selection start/end if it points 
4874           into a line that's being split. Fixes a FIXME and bug #75258
4875
4876 2005-09-23  Jackson Harper  <jackson@ximian.com>
4877
4878         * Binding.cs:
4879         * ListControl.cs: Don't use the path when retrieving binding
4880         managers from the binding context. My bat sense tells me that the
4881         path is only used on insertion.
4882
4883 2005-09-22  Jackson Harper  <jackson@ximian.com>
4884
4885         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
4886
4887 2005-09-22  Jackson Harper  <jackson@ximian.com>
4888
4889         * Splitter.cs: There are special cursors used for splitting.
4890         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
4891
4892 2005-09-22  Jackson Harper  <jackson@ximian.com>
4893
4894         * Splitter.cs: Change the cursor appropriately when the splitter
4895         is moused over, so the user actually knows there is a splitter
4896         there.
4897
4898 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
4899
4900        * Label.cs : Fix ToString method to give same output as MS.NET
4901
4902 2005-09-22  Jackson Harper  <jackson@ximian.com>
4903
4904         * TreeView.cs: Create the scrollbars when the handle is created
4905         and add them right away, just make them invisble. Also account for
4906         the window being shrunk vertically to the point that the vert
4907         scrollbar needs to be added.
4908         - Remove some 0.5 adjustments to get around anti aliasing issues.
4909         
4910 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
4911          
4912         * MainMenu.cs: Fixes default value
4913         * MenuItem.cs: Fixes default value
4914
4915 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
4916
4917         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
4918
4919 2005-09-21  Jackson Harper  <jackson@ximian.com>
4920
4921         * Control.cs: Don't try to set the border style on the window if
4922         it hasn't been created. When the window is created the border
4923         style will be used.
4924
4925 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
4926
4927         * Control.cs (Update): Don't call XplatUI if we don't have a
4928           window handle yet
4929
4930 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
4931
4932         * ContainerControl.cs: Instead of throwing an exception, print
4933           a one-time warning about Validate not being implemented
4934         * XplatUIWin32.cs: Removed debug output
4935
4936 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
4937
4938         * Control.cs: Only set XplatUI background if we expect the windowing
4939           system to handle the background. This stops controls that draw their
4940           own background from flickering
4941
4942         * XplatUIX11.cs: Support custom visuals and colormaps for window 
4943           creation. This allows, amongst other things, using MWF X11 windows 
4944           with OpenGL.
4945
4946 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
4947
4948         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
4949           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
4950           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
4951           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
4952           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
4953           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
4954           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
4955           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
4956           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
4957           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
4958           GridColumnStylesCollection.cs, 
4959           IDataGridColumnStyleEditingNotificationService.cs,
4960           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
4961           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
4962           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
4963           TreeNodeCollection.cs, AmbientProperties.cs, 
4964           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
4965           DataObject.cs, ErrorProvider.cs, Splitter.cs,
4966           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
4967           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
4968           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
4969           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
4970           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
4971           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
4972           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
4973           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
4974           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
4975           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
4976           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
4977           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
4978           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
4979           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
4980           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
4981           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
4982           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
4983           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
4984           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
4985           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
4986           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
4987           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
4988           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
4989           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
4990           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
4991           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
4992           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
4993           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
4994           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
4995           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
4996           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
4997           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
4998           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
4999           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
5000           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
5001
5002 2005-09-21  Jackson Harper  <jackson@ximian.com>
5003
5004         * TreeNode.cs: Call Before/After Expand not Collapse when
5005         expanding.
5006
5007 2005-09-20  Jackson Harper  <jackson@ximian.com>
5008         
5009         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
5010
5011 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
5012          
5013         * ListViewItem.cs:
5014                 - Fixes bug 76120
5015                 - Fixes proper storing of subitems
5016                 - Fixes not updated items
5017
5018 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
5019
5020         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
5021           things if our window handle isn't created yet. Also disabled 
5022           debug for TextBoxBase
5023
5024 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
5025
5026         * MenuAPI.cs: Remove filtering of events to allow menu usage
5027
5028 2005-09-20  Miguel de Icaza  <miguel@novell.com>
5029
5030         * Cursor.cs: Allow null to be passed to Cursor.Current.
5031
5032 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
5033
5034         * ThemeWin32Classic.cs:
5035           - Change some private methods/fields to protected virtual so that 
5036             they can be accessed and overriden in derived classes
5037           - First refactoring of some methods. Derived themes now don't 
5038             need to duplicate the complete code from ThemeWin32Classic
5039         * ThemeNice.cs:
5040           - Added nice StatusBar
5041           - Derive from ThemeWin32Classic and not Theme
5042           - Removed duplicate ThemeWin32Classic code
5043
5044 2005-09-20  Miguel de Icaza  <miguel@novell.com>
5045
5046         * Control.cs (ControlCollection.Add): If the value null is passed
5047         the control is ignored. 
5048
5049         Optimize this loop.
5050
5051 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
5052
5053         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
5054           PostQuitMessage state.
5055         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
5056
5057 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
5058
5059         * Application.cs: Our constructor will never get called, move 
5060           initialization to fields; fixes bug #75933
5061
5062 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
5063
5064         * FileDialog.cs :
5065                 - Allow files to be selected properly using file name
5066                 combo box.
5067                 - Add ability to change diretory (absolute / relative)
5068                 using file name combo box.
5069
5070 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
5071          
5072         * ListBox.cs: 
5073                 - Fixes Multicolumn listboxes item wrong calculations
5074                 - Allows to click when only one item is in the listbox
5075                 - Fixes crash when no items using keyboard navigation
5076
5077 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
5078
5079         * ComboBox.cs: Reverted almost everything from the latest patch which
5080           broke ComboBox
5081
5082 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
5083         
5084         * ToolTip.cs:
5085                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
5086         * ComboBox.cs:
5087                 - When DropDownStyle is Simple, it does not show scrollbar 
5088                 to the last item of the list.
5089                 - When DropDownStyle is Simple, it crashed when the list was 
5090                 scrolled down with the down cursor key.
5091                 - Fixed a bug that when DropDownStyle is DropDownList, the 
5092                 selected item was not shown.
5093                 - The position of the selected item was not preserved when 
5094                 the next dropdown happened.
5095         * ThemeWin32Classic.cs:
5096                 - Items were wrapped at the right end.
5097         * CheckedListBox.cs:
5098                 - Fixed Add method
5099         * ListBox.cs:
5100                 - Items should be fully shown.
5101                 - When resizing and vertical scrollbar disappeared, the item 
5102                 of index 0 should be on the top of the list.
5103                 - GetItemRectangle should consider the size of ver. scrollbar
5104         * StatusBar.cs:
5105                 - SizingGrip area should not be allocated when it is not 
5106                 displayed.
5107                 - Now it reflects MinWidth of the containing panel and 
5108                 fixed a crash that happens when its width becomes so small.
5109
5110 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
5111
5112         * CheckedListBox.cs: Fixes bug 76028
5113         * ListBox.cs: Fixes bug 76028
5114
5115 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
5116
5117         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
5118         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
5119
5120 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
5121
5122         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
5123
5124 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
5125
5126         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
5127
5128 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
5129
5130         * IRootGridEntry.cs: Added
5131         * PropertyGridCommands.cs: Added
5132         * PropertiesTab.cs: Added missing methods and property
5133         * PropertyGridView.cs: Made class internal
5134         * PropertyGridTextBox.cs: Made class internal
5135
5136 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
5137
5138         * MimeIcon.cs: Try to check some other environment variables
5139           if "DESKTOP_SESSION" returns "default"
5140
5141 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
5142
5143         * ThemeNice.cs: Corrected background colors (e.g. menus)
5144         * ColorDialog.cs: Use correct background colors for controls
5145
5146 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
5147
5148         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
5149
5150 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
5151
5152         * RichTextBox.cs: Added initial implementation
5153         * lang.cs: Removed. Was accidentally checked in long time ago
5154         * TODO: Removed. Contents were obsolete
5155
5156 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
5157                                                                                 
5158         * PropertiesTab.cs : Added
5159
5160 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
5161                                                                                 
5162         * PropertyGrid.cs : Update
5163         * PropertyGridView.cs : Update
5164         * System.Windows.Forms.resx : Added images and strings
5165
5166 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
5167
5168         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
5169  
5170 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
5171
5172         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
5173           a busy loop right after the Ungrab the X11 display is otherwise 
5174           blocked
5175
5176 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
5177
5178         * ThemeWin32Classic.cs: Optimise the use of clipping
5179
5180 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
5181
5182         * DataGrid.cs: fixes recursion bug
5183
5184 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
5185
5186         * ThemeNice.cs: 
5187           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
5188           - Cleanup
5189
5190 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
5191
5192         * ThemeNice.cs: Draw nice ProgressBars
5193
5194 2005-09-01  Miguel de Icaza  <miguel@novell.com>
5195
5196         * VScrollBar.cs: Another buglet found by Aaron's tool. 
5197
5198         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
5199         bug finder.
5200
5201 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
5202
5203         * ThemeNice.cs:
5204           - Added nicer menu drawing
5205           - Updated DrawTab
5206           - some refactoring
5207
5208 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
5209
5210         * CreateParams.cs (ToString): Made output match MS
5211         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
5212             handle is already created (to avoid forcing window creation)
5213         * XplatUIX11.cs: Set window text to caption after creating window,
5214           in case Text was set before window was created
5215         * Form.cs: Use this.Text instead of a static string as caption
5216
5217 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
5218
5219         * NotifyIcon.cs: Don't set the window to visible; this screws
5220           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
5221           OnPaint without a bitmap)
5222         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
5223           happen very often anyway; we could add the check to the WM_PAINT 
5224           event generation code
5225
5226 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
5227
5228         * NotifyIcon.cs: Fill the icon area with a background color, to 
5229           avoid 'residue' when transparent icons are drawn
5230         * XplatUIX11.cs:
5231           - Handle whole_window == client_window when destroying windows
5232           - SystrayAdd(): Set client_window to whole_window value to
5233             get mouse and other events passed to NotifyIcon
5234
5235 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
5236
5237         * Form.cs: Set proper default for Opacity property
5238         * NotifyIcon.cs:
5239           - ShowSystray(): Don't bother creating telling the OS
5240             about the systray item if no icon is provided
5241           - Now handles WM_NCPAINT message to deal with whole/client window
5242             split
5243           - Create window as visible to not get caught by Expose optimization
5244         * Hwnd.cs: Removed debug message
5245         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
5246           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
5247             PaintEventStart/End to use new client argument
5248         * TextBoxBase.cs:
5249           - Commented out debug messages
5250           - Switched PaintEventStart/End to use new client argument
5251         * XplatUI.cs: Added client window bool to PaintEventStart()/
5252           PaintEventEnd() calls, to support drawing in non-client areas
5253         * XplatUIDriver.cs: 
5254           - Added client window bool to PaintEventStart()/PaintEventEnd() 
5255             calls, to support drawing in non-client areas
5256           - Added conditional compile to allow using MWF BeginInvoke 
5257             on MS runtime
5258         * XplatUIX11.cs:
5259           - Added some conditional debug output
5260           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
5261             whole/client window split
5262           - Implemented handling of client argument to PaintEventStart()/End()
5263         * Control.cs:
5264           - Throw exception if BeginInvoke() is called and the window handle
5265             or one of the window's parent handles is not created
5266           - Added conditional compile to allow using MWF BeginInvoke on
5267             MS runtime
5268           - get_Parent(): Only sets parent if handle is created. This avoids
5269             forcing window handle creation when parent is set.
5270           - Now fires Layout and Parent changed events in proper order
5271           - Switched to use Handle instead of window.Handle for Z-Order setting,
5272             the get_Parent() patch above causes us to possibly get null for 'window'
5273           - Implemented handling of client argument to PaintEventStart()/End()
5274           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
5275             default handling)
5276           - Now sends a Refresh() to all child windows when Refresh() is called
5277
5278 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
5279
5280         * Form.cs: Added (non-functional) Opacity property
5281         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
5282
5283 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
5284         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
5285           use export MONO_THEME=nice to activate it.
5286           Currently supported controls:
5287           - Button
5288           - ComboBox
5289           - ScrollBar
5290           - TabControl (TabAlignment.Top only, other will follow)
5291         * ThemeEngine.cs: Add theme nice
5292         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
5293           if enabled
5294
5295 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
5296
5297         * Splitter.cs: Resize docked control and its neighbor.
5298
5299 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
5300         -- Making Windows with Menus layout correctly --
5301         * Form.cs : The first leg of the fix
5302                 Menu setter - adjust Client Size as needed to make space for the menu
5303                 SetClientSizeCore - doesn't call base version to be able to pass the 
5304                         menu handle to XplatUI.CalculateWindowRect
5305         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
5306         * XplatUIX11.cs: The critical second leg of the fix
5307                 GetWindowPos needs to use a recalculated client_rect
5308                 so that resizing the window doesn't break layout of child controls. 
5309                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
5310                 Lots of \t\n killed
5311
5312 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
5313
5314         * Label.cs: Now properly recalculates width and height on Font and Text
5315           changes if AutoSize is set
5316
5317 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
5318         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
5319
5320 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
5321
5322         * ImageList.cs: Makes ToString method compatible with MS
5323
5324 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
5325
5326         * MenuAPI.cs: fixes bug 75716
5327
5328 2005-08-11 Umadevi S <sumadevi@novell.com>
5329         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
5330
5331 2005-08-11 Umadevi S <sumadevi@novell.com>
5332         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
5333
5334 2005-08-10  Umadevi S <sumadevi@novell.com>
5335         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
5336
5337 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
5338
5339         * Menu.cs: fixes bug 75700
5340         * MenuAPI.cs: fixes navigation issues
5341
5342 2005-08-09  Umadevi S <sumadevi@novell.com>
5343         * CheckedListBox.cs - simple fix for GetItemChecked.
5344
5345 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
5346
5347         * ComboBox.cs: Serveral fixes
5348         * ListBox.cs: Serveral fixes
5349
5350 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
5351
5352         * ComboBox.cs: Fixes FindString methods and GetItemHeight
5353         * ListBox.cs: Fixes FindString methods
5354
5355 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
5356
5357         * DataGrid.cs: fixes bugs exposed by new tests
5358
5359 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
5360
5361         * Mime.cs: Compile Mono assembly references only if compiling
5362           with Mono (Allows to build with VS.Net again)
5363
5364 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
5365
5366         * Control.cs (PaintControlBackground): Draw background image
5367         corrrectly.
5368         (CheckForIllegalCrossThreadCalls): Stubbed.
5369         
5370         * Form.cs (OnCreateControl): Center when should be centered.
5371         
5372         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
5373
5374 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
5375
5376         * Binding.cs: Binding to properties should be case unsensitive
5377
5378 2005-07-18 vlindos@nucleusys.com
5379
5380         * DataGrid.cs: fixes setmember order
5381
5382 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
5383
5384         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
5385         * FileDialog.cs: FileDialog is now resizable and uses the new
5386           MimeIconEngine
5387
5388 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
5389
5390         * DataGridTextBoxColumn.cs: default value
5391         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
5392         * GridTableStylesCollection.cs: fixes checking MappingName
5393         * DataGridDrawingLogic.cs: fixes drawing logic issues
5394         * DataSourceHelper.cs: rewritten to make compatible with more data sources
5395         * DataGrid.cs: fixes    
5396
5397 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
5398
5399         * MimeGenerated.cs: Use case sensitive comparer for
5400           NameValueCollections
5401
5402 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
5403
5404         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
5405         * ThemeWin32Classic.cs: bug fixes, code refactoring
5406         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
5407         * DataGrid.cs: bug fixes, code refactoring
5408         * DataGridTextBox.cs: bug fixes, code refactoring
5409         * DataGridColumnStyle.cs:  bug fixes, code refactoring
5410         * Theme.cs:  bug fixes, code refactoring
5411
5412 2005-07-01  Peter Bartok  <pbartok@novell.com> 
5413
5414         * TextControl.cs: Quick fix for the reported crash on ColorDialog
5415           and other text box usage
5416
5417 2005-07-01  Jackson Harper  <jackson@ximian.com>
5418
5419         * TabControl.cs: Make sure the bottom of the tab covers the pages
5420         border.
5421
5422 2005-06-30  Peter Bartok  <pbartok@novell.com> 
5423
5424         * Form.cs (ShowDialog): Assign owner of the dialog
5425         * TextBoxBase.cs: Always refresh caret size when deleting, caret
5426           might have been moved to a tag with different height
5427
5428 2005-06-30  Jackson Harper  <jackson@ximian.com>
5429
5430         * Form.cs: Don't create an infinite loop when setting focus
5431         * MenuItem.cs: Don't dirty the parents if we don't have any
5432
5433 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
5434
5435         * LibSupport.cs: Rename
5436
5437 2005-06-29  Peter Bartok  <pbartok@novell.com>
5438
5439         * TextBoxBase.cs: Re-align caret after deleting a character
5440         * TextControl.cs:
5441           - DeleteChars(): Ensure that tag covers the provided position
5442           - StreamLine(): Drop reference for dropped tag
5443
5444 2005-06-29  Peter Bartok  <pbartok@novell.com> 
5445
5446         * TextControl.cs: 
5447           - Selections now work properly, anchoring at the initial location
5448             and properly extending in either direction (SetSelectionToCaret(),
5449             SetSelectionStart() and SetSelectionEnd())
5450           - No longer redraws the whole control on selection change, now
5451             calculates delta between previous and new selection and only
5452             invalidates/redraws that area
5453           - Fixed FindPos() math off-by-one errors
5454           - Changed DeleteChars() to verify the provided tag covers the
5455             provided position, selections may have a tag that doesn't cover
5456             the position if the selection is at a tag border
5457           - Fixed off-by-one errors in DeleteChars()
5458           - Added missing streamlining check in DeleteChars() to remove
5459             zero-length tags
5460           - Implemented Invalidate() method, now properly calculates exposures
5461             between two given lines/positions
5462           - Implemented SetSelection()
5463           - Obsoleted and removed FixupSelection()
5464           - Improved RecalculateDocument() logic, removing code duplication
5465
5466 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5467
5468         * LibSupport.cs: changes to match different input/output arguments.
5469
5470 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5471
5472         * LibSupport.cs: added libsupport.so init routine.
5473
5474 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
5475         
5476         * ControlBindingsCollection.cs
5477                 - Throws an exception on null datasource when adding
5478                 - Checks for duplicated bindings when adding
5479
5480 2005-06-28  Jackson Harper  <jackson@ximian.com>
5481
5482         * TreeView.cs (OnKeyDown): Support left and right properly
5483         (navigates as well as expanding and collapsing.
5484         - Add support for Multiply, this expands all the selected nodes
5485         children.
5486         - Fix some tabbing.
5487
5488 2005-06-28  Jackson Harper  <jackson@ximian.com>
5489
5490         * TreeView.cs: Implement keyboard navigation, currently supports,
5491         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
5492         support for toggling checkboxes with the space bar.
5493
5494 2005-06-28  Jackson Harper  <jackson@ximian.com>
5495
5496         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
5497         tree.
5498
5499 2005-06-28  Jackson Harper  <jackson@ximian.com>
5500
5501         * TreeView.cs: Add missing event.
5502
5503 2005-06-27  Peter Bartok  <pbartok@novell.com> 
5504
5505         * TextControl.cs:
5506           - Made line ending size configurable (now allows for counting 
5507             lineendings as \n or \r\n)
5508           - Added margin to viewport to keep caret visible on right side
5509           - Fixed translation routines for line/pos to documentpos to consider
5510             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
5511           - Fixed some line-endings to be unix style
5512           - Fixed Document.FormatText to perform it's calculations 1-based
5513           - Added descriptions for a few methods that might otherwise get 
5514             used wrong
5515           - Added NOTE section with some basic conventions to remember at 
5516             the top of the file
5517           - Major fixup for RichTextBox selection drawing:
5518             * Fixed crashes when multiple tags on a single line were selected
5519             * fixed selection box drawing not overlaying text
5520             * fixed bogus offset calculation for tags not starting at index 1
5521             * Switched behaviour from using multiple Substrings of a 
5522               StringBuilder.ToString() to using multiple 
5523               StringBuilder.ToString(start, length) statements, hoping this is
5524               faster (kept original version commented out in the code, in case
5525               original version was faster)
5526         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
5527           alignment != Left
5528         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
5529           call it as well
5530
5531 2005-06-27  Jackson Harper  <jackson@ximian.com>
5532
5533         * TabControl.cs: Move to the left and right with the arrow
5534         keys. These keys don't cycle beyond first and last like
5535         tab. Refresh all the tabs when scrolling them to the left or
5536         right.
5537
5538 2005-06-27  Jackson Harper  <jackson@ximian.com>
5539
5540         * TabControl.cs:
5541           - ToString: Added method
5542           - CreateParams: Remove TODO and comment
5543           - OnKeyDown: Cycle through bounds properly.
5544           - SelectedIndex: Scroll to the right or left if we need to
5545           display the newly selected tab.
5546
5547 2005-06-23  Jackson Harper  <jackson@ximian.com>
5548
5549         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
5550         set.
5551
5552 2005-06-23  Jackson Harper  <jackson@ximian.com>
5553
5554         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
5555         CTRL-SHIFT-TAB, and HOME, END are there any others?
5556
5557 2005-06-23  Jackson Harper  <jackson@ximian.com>
5558
5559         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
5560
5561 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
5562         
5563         * DataGridTextBoxColumn.cs: fixes and enhancements
5564         * ThemeWin32Classic.cs: fixes and enhancements
5565         * DataGridBoolColumn.cs:  fixes and enhancements
5566         * DataGridDrawingLogic.cs:  fixes and enhancements
5567         * CurrencyManager.cs: fixes and enhancements
5568         * DataGrid.cs: fixes and enhancements
5569         * DataGridColumnStyle.cs:  fixes and enhancements
5570
5571 2005-06-22  Jackson Harper  <jackson@ximian.com>
5572
5573         * TabControl.cs: Add some missing methods that just call into the
5574         base. Make the TabPageCollection's IList interface behave in the
5575         same manner as the MS implementation.
5576
5577 2005-06-22  Peter Bartok  <pbartok@novell.com> 
5578
5579         * TextControl.cs: Added sanity check
5580         * TextBoxBase.cs: 
5581           - Fixed wrapping behaviour, don't set wrap on single line controls
5582             (this fixes the breakage of colordialog introduced in an earlier
5583              checkin)
5584           - Added rudimentary support for autoscrolling right-aligned controls
5585             (still needs fixing, also, center alignment scroll is missing)
5586
5587 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
5588         
5589         * ScrollBar.cs: Fixes thumbpos on Maximum values
5590
5591 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
5592         
5593         * PropertyGridView.cs: Pass context information to UITypeEditors 
5594
5595 2005-06-21  Peter Bartok  <pbartok@novell.com> 
5596
5597         * TextBoxBase.cs:
5598           - Now calling PositionCaret with absolute space coordinates
5599           - Enabled vertical scrolling
5600           - Better tracking of scrollbar changes, tied into WidthChange
5601             event
5602           - Improved cursor tracking
5603           - Removed debug output
5604         * TextControl.cs:
5605           - PositionCaret coordinates are now works in absolute space, not 
5606             the canvas
5607           - Improved tracking of document size
5608           - Added events for width and height changes
5609
5610 2005-06-21  Peter Bartok  <pbartok@novell.com>
5611
5612         * Form.cs: Set focus to active control when form is activated
5613         * TextControl.cs: 
5614           - Added word-wrap functionality to RecalculateLine() 
5615           - Added some short function descriptions for VS.Net to aid in
5616             writing dependent controls
5617           - Added Caret property, returning the current coords of the caret
5618           - Added ViewPortWidth and ViewPortHeight properties
5619           - Added Wrap property
5620           - Added CaretMoved event
5621           - Removed some old debug code
5622           - Split() can now create soft splits
5623           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
5624           - Added method to format existing text
5625           - Fixed size/alignment calculations to use viewport
5626           - RecalculateDocument now can handle changing line-numbers while
5627             calculating lines
5628
5629         * TextBox.cs:
5630           - Added some wrap logic, we don't wrap if alignment is not left
5631           - Added casts for scrollbar var, base class switched types to
5632             also support RichTextBoxA
5633           - Implemented handling of scrollbar visibility flags
5634
5635         * TextBoxBase.cs:
5636           - Switched scrollbars type to RichTextBoxScrollBars to support
5637             RichTextBox
5638           - Added tracking of canvas width/height
5639           - Switched scrollbars to be not selectable (to keep focus on text)
5640           - Added central CalculateDocument() method to handle all redraw
5641             requirements
5642           - Added ReadOnly support
5643           - Added WordWrap support
5644           - Fixed handling of Enter key (we now treat it as a DialogKey)
5645           - Fixed caret positioning when h or v scroll is not zero
5646           - Fixed placing/generation of vertical scrollbar
5647           - Added CalculateScrollBars() method to allow updating scrollbar
5648             limits and visibility
5649           - Fixed handling of horizontal scroll
5650           - Added handling of vertical scroll
5651           - Implemented auto-'jump' when caret moves to close to a left or
5652             right border and there is text to be scrolled into view (currently
5653             there's the potential for a stack overflow, until a bug in
5654             scrollbar is fixed)
5655
5656 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
5657         
5658         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
5659
5660 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
5661
5662         * Mime.cs:
5663         - added inodes.
5664         - return application/x-zerosize for files with size zero
5665           (if no extension pattern matches).
5666         - check matches collection for strings too.
5667         - return only the first mime type if the name value
5668           collection has more than one mime type.
5669
5670 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
5671         
5672         * PropertyGrid.cs: Cleaned up some TODOs
5673         * PropertyGridView.cs: Added support for UITypeEditors
5674
5675 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
5676         
5677         * DataGrid.cs: clears cached value
5678
5679 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
5680
5681         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
5682         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
5683         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
5684         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
5685         
5686 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
5687
5688         * ThemeWin32Classic.cs: fixes colour
5689
5690 2005-06-15  Peter Bartok  <pbartok@novell.com>
5691
5692         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
5693         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
5694         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
5695         * Control.cs: Added some MWFCategory and MWFDescription attributes
5696         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
5697
5698 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
5699
5700         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
5701         usage
5702
5703 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
5704
5705         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
5706         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
5707         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
5708         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
5709         * DataGrid.cs: default datagrid settings for Default Styles, fixes
5710         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
5711
5712 2005-06-13  Jackson Harper  <jackson@ximian.com>
5713
5714         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
5715         isn't printed when the user enables dropping. (X11 does accept
5716         drops).
5717         
5718 2005-06-13  Jackson Harper  <jackson@ximian.com>
5719
5720         * TreeView.cs: Remove some TODOS.
5721
5722 2005-06-13  Jackson Harper  <jackson@ximian.com>
5723
5724         * Form.cs: Hook into the mdi framework.
5725         * MdiClient.cs: Use the base control collections add method so
5726         parents get setup correctly. Set the default back colour and dock
5727         style.
5728         * MdiChildContext.cs: New class, this bad actor handles an
5729         instance of an MDI window. Right now there is only basic
5730         support. You can drag, close, and resize windows. Minimize and
5731         Maximize are partially implemented.
5732
5733 2005-06-13  Jackson Harper  <jackson@ximian.com>
5734
5735         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
5736         freaky when both vals are negative. NOTE: There are probably other
5737         places in XplatUIX11 that this needs to be done.
5738
5739 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
5740
5741         * DataGrid.cs: implement missing methods, move KeyboardNavigation
5742         * DataGridColumnStyle.cs: fixes signature
5743
5744 2005-06-12  Jackson Harper  <jackson@ximian.com>
5745
5746         * XplatUIX11.cs: Use sizing cursors similar to the ones on
5747         windows.
5748
5749 2005-06-11  Jackson Harper  <jackson@ximian.com>
5750
5751         * StatusBarPanel.cs: Signature cleanups. Implement
5752         BeginInit/EndInit.
5753
5754 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
5755
5756         * DataGridTextBoxColumn.cs: Honors aligment
5757         * GridColumnStylesCollection.cs: Contains is case unsensitive
5758         * GridTableStylesCollection.cs: several fixes
5759         * DataGridTableStyle.cs: default column creation
5760         * DataGridDrawingLogic.cs: fixes
5761         * CurrencyManager.cs: ListName property
5762         * DataGrid.cs: multiple styles support
5763         * DataGridColumnStyle.cs: fixes
5764         
5765
5766 2005-06-10  Peter Bartok  <pbartok@novell.com>
5767
5768         * Control.cs(Select): Moved SetFocus call to avoid potential
5769           loops if controls change the active control when getting focus
5770         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
5771           the up/down buttons
5772
5773 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
5774
5775         * ImageListConverter.cs: Implemented
5776
5777 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
5778
5779         * MonthCalendar.cs: Wired in NumericUpDown control for year
5780
5781 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
5782
5783         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
5784           DoubleClick events, since they are not meant to be fired.
5785
5786 2005-06-09  Peter Bartok  <pbartok@novell.com>
5787
5788         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
5789           Jonathan's standalone controls into MWF, implemented missing
5790           events, attributes and methods; added xxxAccessible classes
5791         * AccessibleObject.cs: Made fields internal so other classes
5792           can change them if needed
5793
5794 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
5795
5796         * UpDownBase.cs: Complete implementation
5797         * NumericUpDown.cs: Complete implementation
5798         * DomainUpDown.cs: Complete implementation
5799
5800 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
5801
5802         * DataGridTextBoxColumn.cs: drawing fixes
5803         * DataGridCell.cs: fixes ToString method to match MSNet
5804         * DataGridTableStyle.cs: fixes
5805         * DataGridBoolColumn.cs: fixes, drawing
5806         * DataGridDrawingLogic.cs: fixes, new methods
5807         * DataGridTextBox.cs: Keyboard and fixes
5808         * DataGrid.cs:
5809                 - Keyboard navigation
5810                 - Scrolling fixes
5811                 - Row selection (single, multiple, deletion, etc)
5812                 - Lots of fixes
5813         
5814 2005-06-07  Jackson Harper  <jackson@ximian.com>
5815
5816         * ThemeWin32Classic.cs: Clear the background area when drawing
5817         buttons.
5818
5819 2005-06-06  Peter Bartok  <pbartok@novell.com>
5820
5821         * ImageListStreamer.cs: Fixed signature for GetData
5822         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
5823         * ComboBox.cs:
5824           - Added missing ChildAccessibleObject class
5825           - Added missing OnXXXFocus overrides, switched to using those
5826             instead of the event handler
5827         * Control.cs:
5828           - Added Parent property for ControlAccessibleObject
5829           - Fixed signatures
5830           - Fixed attributes
5831           - Added ResetBindings()
5832         * ListBindingConverter.cs: Implemented some methods
5833         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
5834         * ImageList.cs: Implemented basic handle scheme, removed TODOs
5835         * ContainerControl.cs: Fixed signature, now subscribing to the
5836           ControlRemoved event instead of overriding the handler, LAMESPEC
5837         * CurrencyManager.cs: Added missing attribute
5838         * MonthCalendar.cs: Added missing properties
5839
5840 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
5841
5842         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
5843         
5844 2005-06-06  Gaurav Vaish and Ankit Jain
5845
5846         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
5847         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
5848         
5849 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
5850
5851         * Control.cs: fixes CreateParams Width / Height.
5852
5853 2005-06-05  Peter Bartok  <pbartok@novell.com>
5854
5855         * Win32DnD.cs: Removed compilation warnings
5856
5857 2005-06-05  Peter Bartok  <pbartok@novell.com>
5858
5859         * Control.cs (CreateParams): Since we don't know if one of the
5860           properties we use is overridden, lets make sure if we fail accessing
5861           we continue with a backup plan
5862
5863 2005-06-05  Peter Bartok  <pbartok@novell.com>
5864
5865         * Win32DnD.cs:
5866           - Removed debug output
5867           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
5868             struct
5869           - Plugged resource leak
5870         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
5871           MS size
5872
5873 2005-06-05  Peter Bartok  <pbartok@novell.com>
5874
5875         * XplatUIWin32.cs: Removed DnD code
5876         * Win32DnD.cs: Implemented drop source and drop target functionality
5877
5878 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5879
5880         * UpDownBase.cs: remove duplicate addition of event, enable some code
5881         that was commented out.
5882         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
5883         Validate input when a key is pressed. It works fine now for every
5884         combination of Hexadecimal. Only missing some drawing love when sharing
5885         space with other controls.
5886
5887 2005-06-04  Peter Bartok  <pbartok@novell.com>
5888
5889         * Control.cs:
5890           - We need to pass a window for DragDrop, so enable callback events
5891           - Added DnD callback events when being a DragSource
5892         * XplatUI.cs (StartDrag): Added window handle argument
5893         * XplatUIDriver.cs (StartDrag): Added window handle argument
5894         * QueryContinueDragEventArgs: Made fields internally accessible so
5895           drivers can set them
5896         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
5897           can set them
5898
5899 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
5900
5901         * DataGridTextBoxColumn.cs: column text editing
5902         * DataGridTableStyle.cs: Respect columns styles created by the user
5903         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
5904         * DataGridBoolColumn.cs: bool column editing
5905         * DataGrid.cs: fixes to scrolling, properties, etc
5906         * DataGridTextBox.cs: handle keyboard
5907         * DataGridColumnStyle.cs: fixes
5908
5909 2005-06-02  Jackson Harper  <jackson@ximian.com>
5910
5911         * ImageListStreamer.cs: Somewhat broken implementation of
5912         GetObjectData. The RLE needs some work to match MS properly.
5913
5914 2005-06-02  Jackson Harper  <jackson@ximian.com>
5915
5916         * X11Dnd.cs: Attempting to keep at least one file in MWF
5917         monostyled.
5918
5919 2005-06-02  Peter Bartok  <pbartok@novell.com>
5920
5921         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
5922           that way
5923
5924 2005-06-02  Peter Bartok  <pbartok@novell.com>
5925
5926         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
5927         * XplatUI.cs: Added DoDragDrop() method
5928         * XplatUIDriver.cs: Added DoDragDrop() method
5929
5930 2005-06-02  Jackson Harper  <jackson@ximian.com>
5931
5932         * Splitter.cs: Implement BorderStyle.
5933
5934 2005-06-02  Jackson Harper  <jackson@ximian.com>
5935
5936         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
5937         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
5938         X11 using XDND.
5939
5940 2005-06-02  Peter Bartok  <pbartok@novell.com>
5941
5942         * DataObject.cs:
5943           - Added Data setter
5944           - Fixed broken insertion code for SetData, now also
5945             overwrites any existing entry of the same format name
5946         * Hwnd.cs: Added list of pointers that automatically gets
5947           freed when the window is disposed
5948         * XplatUI.cs: Call driver initialization method when loading
5949           a driver
5950         * Control.cs:
5951           - OnDragLeave takes EventArgs, not DragEventArgs
5952           - Added setting of WS_EX_ACCEPTFILES style when dropping is
5953             supported
5954           - Forces style update when drop state changes
5955         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
5956           not perfect since we cannot (yet) call the IDataObject.GetData()
5957           method, we keep getting 0x80004005 error, dunno why)
5958
5959 2005-06-02  Peter Bartok  <pbartok@novell.com>
5960
5961         * DragEventArgs.cs: Make fields internal so we can cache the
5962           object and re-set the fields from XplatUI
5963
5964 2005-06-02  Jackson Harper  <jackson@ximian.com>
5965
5966         * Control.cs: Add some internal methods so the DnD subsystem can
5967         raise DnD events. Also call into the driver when AllowDrop is set.
5968         * XplatUI.cs:
5969         * XplatUIDriver.cs: New method for setting whether or not a window
5970         is allowed to accept drag and drop messages.
5971                 
5972 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
5973         
5974         * ScrollBar.cs: Make sure that values sent in Scroll events
5975         are always between Maximum and Minimum.
5976
5977 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
5978
5979         * Menu.cs: Call MenuChanged when menuitem visibility has been
5980         changed.
5981         * MenuItem.cs: Rebuild menu when item is (not) visible.
5982         * MainMenu.cs: MainMenu has special MenuChanged.
5983         * Theme.cs: Caption and FrameBorderSize are not fixed.
5984         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
5985         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
5986         * XplatUIX11.cs,
5987         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
5988         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
5989
5990 2005-05-30  Jackson Harper  <jackson@ximian.com>
5991
5992         * DataFormat.cs: We can't statically initialize this stuff because
5993         it calls into the xplatui and could create a loop. So we lazy init
5994         it.
5995
5996 2005-05-28  Jackson Harper  <jackson@ximian.com>
5997
5998         * Control.cs: Proper implementation of Product(Name/Version).
5999
6000 2005-05-27  Jackson Harper  <jackson@ximian.com>
6001
6002         * DataObject.cs: Dont crash if no data is found.
6003
6004 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
6005         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
6006                 as per status page, guessing it should be set to true
6007
6008 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
6009
6010         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
6011         * DataGridTableStyle.cs: set proper formatting text, def header text
6012         * ThemeWin32Classic.cs: new themable paramaters
6013         * DataGridBoolColumn.cs: paint check box, get data, fixes
6014         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
6015         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
6016         * DataGridColumnStyle.cs: fixes
6017         * Theme.cs: new themable paramaters
6018                 
6019 2005-05-26  Peter Bartok  <pbartok@novell.com>
6020
6021         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
6022
6023 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
6024         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
6025
6026 2005-05-24  Peter Bartok  <pbartok@novell.com>
6027
6028         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
6029           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
6030           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
6031           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
6032           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
6033           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
6034           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
6035           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
6036           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
6037           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
6038           missing attributes, etc
6039         * DataGridPreferredColumnWidthTypeConverter.cs: Added
6040
6041 2005-05-24  Peter Bartok  <pbartok@novell.com>
6042
6043         * Help.cs: Added, implemented trivial functions, throws up MessageBox
6044           when user tries to get help
6045         * DataObject.cs, DataFormats.cs, LinkArea.cs,
6046           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
6047           to suppress warnings
6048         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
6049           avoid unreachable code warning
6050
6051 2005-05-20  Peter Bartok  <pbartok@novell.com>
6052
6053         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
6054
6055 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
6056
6057         * DataGridTextBoxColumn.cs: Basic painting methods
6058         * DataGridTableStyle.cs: Set table style in the column
6059         * ThemeWin32Classic.cs: Use Theme for colors
6060         * DataGridDrawingLogic.cs: Implement more drawing
6061         * DataGrid.cs: drawing, theming, enhacements, fixes
6062         * DataGridColumnStyle.cs: fixes, drawing
6063         * Theme.cs: theming for Datagrid
6064
6065 2005-05-20  Peter Bartok  <pbartok@novell.com>
6066
6067         * Cursor.cs: Implemented GetObjectData() method
6068
6069 2005-05-20  Peter Bartok  <pbartok@novell.com>
6070
6071         * Cursors.cs: Added setting of cursor name
6072         * Cursor.cs:
6073           - Implemented constructors
6074           - Implemented Draw and DrawStretched
6075           - Implemented Current property
6076           - Implemented == and != operators
6077           - Implemented Dispose()
6078           - Implemented ToString
6079           - Added missing attributes
6080         * XplatUIX11.cs:
6081           - Added missing reset for OverrideCursor when DoEvents is called
6082           - Fixed creation of cursor, logic was wrong
6083         * XplatUIWin32.cs:
6084           - Added missing reset for OverrideCursor when DoEvents is called
6085           - Fixed creation of cursor, bit arrays were swapped
6086         * Clipboard.cs: Removed obsolete MonoTODO attribute
6087
6088 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
6089
6090         * ComboBox.cs: fixes OnSelectedItemChanged
6091         * ControlBindingsCollection.cs: fixes item range check
6092
6093 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
6094
6095         * UpDownBase.cs:
6096                 - Calc preferred height properly
6097                 - Implement missing properties
6098                 
6099         * NumericUpDown.cs: Implement missing events
6100
6101 2005-05-19  Jackson Harper  <jackson@ximian.com>
6102
6103         * TabControl.cs: New method that resizes the tab pages before
6104         redrawing them. This as needed as the control is double buffered
6105         and sizing will not be recalculated unless ResizeTabPages is
6106         called.
6107         * TabPage.cs: Set base.Text instead of Text in the constructor so
6108         that UpdateOwner does not get called. Use the new Redraw method of
6109         TabControl instead of Refresh so the sizing is recalculated.
6110         * ThemeWin32Classic.cs: Draw the text for button tabs.
6111
6112 2005-05-19  Jackson Harper  <jackson@ximian.com>
6113
6114         * Control.cs: Paint control background images. Fix typo where
6115         PaintControlBackground was not getting called correctly.
6116
6117 2005-05-19  Peter Bartok  <pbartok@novell.com>
6118
6119         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
6120           I can investigate, apparently I broke FileDialog
6121
6122 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
6123
6124         * AxHost.cs: Some simple properties.
6125         * Control.cs: window must be accessible after ctor.
6126         * Form.cs: Added TransparencyKey property.
6127         * TextBoxBase.cs: Implemented Clear. Text property can be null.
6128         * XplatUIWin32.cs: SetBorderStyle implemented.
6129
6130 2005-05-18  Peter Bartok  <pbartok@novell.com>
6131
6132         * DataObject.cs: Entries are not global but particular to the
6133           DataObject, now it behaves that way
6134         * XplatUIWin32.cs: Implemented Clipboard methods
6135         * Clipboard.cs: Implemented
6136         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
6137         * XplatUIOSX.cs: Updated to final clipboard prototypes
6138         * XplatUIX11.cs: Implemented Clipboard methods
6139         * XplatUIDriver.cs: Updated to final clipboard prototypes
6140         * XplatUIStructs.cs:
6141           - Added BITMAPINFOHEADER struct
6142           - Added ClipboardFormats enum
6143         * X11Structs.cs:
6144           - Added ClipboardStruct
6145           - Added Atom enum items for clipboard types
6146           - Fixed atom types for Selection event structures
6147         * DataFormats.cs:
6148           - Added internal properties and methods for drivers to enumerate
6149             all known formats
6150           - Switched initialization method to allow drivers to assign their
6151             own IDs even for the MS predefined clipboard IDs
6152         * XplatUI.cs: Updated to final clipboard interface
6153
6154 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
6155         * PropertyGridView.cs: Fixed compiler warnings.
6156
6157 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
6158         * PropertyGrid.cs: Added some event calls
6159         * PropertyGridView.cs: Change drawing code to use double buffering
6160         * PropertyGridTextBox.cs: Changed Text property name
6161         * GridItem.cs: Added Bounds property.
6162         * GridEntry.cs: Added Bounds property.
6163
6164 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
6165
6166         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
6167         since GetType() may not return the correct type if the object is
6168         a remoting proxy.
6169
6170 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
6171
6172         * TreeNodeCollection.cs: fixes get/set item ranges
6173         
6174 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
6175
6176         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
6177                 
6178 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
6179
6180         * ComboBox.cs: Fix item range comparation
6181         * ListView.cs: Fix item range comparation
6182
6183 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
6184
6185         * FontDialog.cs:
6186           - Clear example panel when OnPaint is called
6187           - Better solution for displaying the example panel text
6188           - Select default indexes in the ListBoxes
6189
6190 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
6191
6192         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
6193
6194 2005-05-11  Peter Bartok  <pbartok@novell.com>
6195
6196         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
6197         * SelectionRangeConverter.cs: Implemented
6198         * PropertyGrid.cs: Fixed attribute value
6199         * Control.cs:
6200           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
6201           - Added Sebastien Pouliot's CAS Stack Propagation fixes
6202         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
6203           that's common to all drivers. First methods to go there are
6204           Sebastien Pouliot's CAS Stack Propagation helper methods
6205         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
6206           Sebastien Pouliot for CAS Stack Propagation
6207
6208 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
6209
6210         * OSXStructs.cs:
6211           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
6212
6213 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
6214
6215         * DataGridTextBoxColumn.cs: fixed some members
6216         * GridColumnStylesCollection.cs: indexed column is case insensitive
6217         * DataGridTableStyle.cs: fixes
6218         * ThemeWin32Classic.cs: add new theme parameter
6219         * Theme.cs: add new theme parameter
6220         * DataGridDrawingLogic.cs: Datagrid's drawing logic
6221         * DataGrid.cs: fixes, new internal properties, etc.
6222         * DataGridColumnStyle.cs: allows to set grid value
6223         *
6224
6225 2005-05-10  Peter Bartok  <pbartok@novell.com>
6226
6227         * AccessibleObject.cs:
6228           - Removed MonoTODO attribute on help, method is correct
6229           - Fixed Bounds property
6230         * AxHost.cs: Moved MonoTODO
6231         * ButtonBase.cs: Now setting AccessibleObject properties
6232         * RadioButton.cs: Setting proper AccessibleObject role
6233         * CheckBox.cs: Setting proper AccessibleObject role
6234         * ControlBindingsCollection.cs: Added properties, methods and attributes
6235         * DataFormats.cs: Fixed awkward internal API, and changed to enable
6236           userdefined DataFormats.Format items as well
6237         * ListControl.cs: Removed data_member from the public eye
6238         * OpenFileDialog.cs:
6239           - Made class sealed
6240           - Added missing attributes
6241         * SaveFileDialog.cs: Added missing attributes
6242         * ImageListStreamer.cs: Fixed code that caused warnings
6243         * LinkLabel.cs: Removed unreachable code
6244         * TreeView.cs: Fixed code that caused warnings
6245         * PropertyGridView.cs: Fixed code that caused warnings
6246         * GridColumnStylesCollection.cs: Added missing attributes
6247         * GridTableStylesCollection: Added missing attribute
6248         * PropertyManager: Added .ctor
6249         * SecurityIDType: Added
6250         * DataObject.cs: Implemented class
6251         * LinkArea.cs: Added missing attribute
6252
6253 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
6254
6255         * RadioButton.cs: call base method to allow to fire OnClick event
6256         * UpDownBase.cs: OnMouseUp call base method
6257         * CheckedListBox.cs: call base method before returning
6258         * TrackBar.cs: call base method before returning
6259         
6260
6261 2005-05-10  Peter Bartok  <pbartok@novell.com>
6262
6263         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
6264           for messages
6265
6266 2005-05-10  Peter Bartok  <pbartok@novell.com>
6267
6268         * DataFormats.cs: Implemented
6269         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
6270           XplatUIX11.cs: Added Clipboard APIs
6271         * XplatUIWin32.cs: Implemented Clipboard APIs
6272         * FolderBrowserDialog.cs: Added missing event, attributes
6273
6274 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
6275
6276         * CheckBox.cs: call base method to allow to fire OnClick event
6277
6278 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
6279
6280         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
6281
6282 2005-05-06  Peter Bartok  <pbartok@novell.com>
6283
6284         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
6285         * Screen.cs: Implemented
6286         * HelpNavigator.cs: Added
6287         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
6288           property
6289         * HelpProvider.cs: Implemented all we can do until we have a CHM
6290           help library (which means that "What's This" does work now)
6291
6292 2005-05-06  Jackson Harper  <jackson@ximian.com>
6293
6294         * XplatUIX11.cs: Fix waking up the main loop.
6295                 
6296 2005-05-05  Peter Bartok  <pbartok@novell.com>
6297
6298         * XplatUI.cs: Updated revision
6299         * Form.cs: Removed enless loop
6300         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
6301         * Label.cs (OnPaint): Added call to base.OnPaint()
6302         * ToolTip.cs: Made ToolTipWindow reusable for other controls
6303         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
6304         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
6305         * AxHost.cs: Added
6306         * ButtonBase.cs: Moved base.OnPaint() call to end of method
6307         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
6308           to ToolTip.ToolTipWindow for drawing and size methods; this allows
6309           reuse of ToolTipWindow by other controls
6310         * SizeGrip.cs: Moved base.OnPaint() call to end of method
6311         * XplatUIX11.cs: Now clipping drawing area (experimental)
6312         * PictureBox.cs: Moved base.OnPaint() call to end of method
6313         * Theme.cs: Fixed ToolTip abstracts to match new format
6314         * ErrorProvider.cs: Implemented
6315
6316 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
6317
6318         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
6319         * LinkLabel.cs:
6320                 - Adds cursors
6321                 - Handles focus
6322                 - Implements LinkBehavior
6323                 - Fixes many issues
6324
6325 2005-05-03  Jackson Harper  <jackson@ximian.com>
6326
6327         * ListView.cs: Calculate the scrollbar positioning on resize and
6328         paint, so they get put in the correct place.
6329
6330 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
6331
6332         * ColorDialogs.cs: The small color panels are now handled by
6333           SmallColorControl. This fixes drawing of the focus rectangle
6334           and adds a 3D border.
6335
6336 2005-05-03  Peter Bartok  <pbartok@novell.com>
6337
6338         * Control.cs: Modified version of Jonathan Chamber's fix for
6339           double-buffering
6340
6341 2005-05-03  Jackson Harper  <jackson@ximian.com>
6342
6343         * ListView.cs: Remove redraw variable. Control now handles whether
6344         or not a redraw needs to be done, and will only raise the paint
6345         event if redrawing is needed.
6346
6347 2005-05-03  Jackson Harper  <jackson@ximian.com>
6348
6349         * Splitter.cs: No decorations for the splitter form. Cache the
6350         hatch brush.
6351
6352 2005-05-03  Jackson Harper  <jackson@ximian.com>
6353
6354         * TreeView.cs: Use dashed lines to connect nodes. Use the
6355         ControlPaint method for drawing the focus rect instead of doing
6356         that in treeview.
6357
6358 2005-05-02  Peter Bartok  <pbartok@novell.com>
6359
6360         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
6361
6362 2005-04-29  Jackson Harper  <jackson@ximian.com>
6363
6364         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
6365         entire image buffer. Just clear the clipping rectangle.
6366
6367 2005-04-29  Jackson Harper  <jackson@ximian.com>
6368
6369         * ThemeWin32Classic.cs: Don't draw list view items that are
6370         outside the clipping rectangle.
6371
6372 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
6373
6374         * ListBox.cs: added horizontal item scroll
6375
6376 2005-04-29  Jackson Harper  <jackson@ximian.com>
6377
6378         * ThemeWin32Classic.cs: Remove some old debug code that was
6379         causing flicker with the new double buffering code.
6380
6381 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
6382
6383         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
6384         behave like combobox and comboboxlist (still not sure if this is
6385         correct though).
6386
6387 2005-04-28  Jackson Harper  <jackson@ximian.com>
6388
6389         * ThemeWin32Classic.cs: Don't fill the middle of progress
6390         bars. This fills areas outside of the clip bounds that don't need
6391         to be filled.
6392
6393 2005-04-28  Jackson Harper  <jackson@ximian.com>
6394
6395         * Control.cs: Don't expose functionality to touch the image buffers.
6396         * ProgressBar.cs:
6397         * ListView.cs: We do not need to (and no longer can) manipulate
6398         the image buffers directly. All of this is handled by Control.
6399
6400 2005-04-28  Peter Bartok  <pbartok@novell.com>
6401
6402         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
6403           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
6404           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
6405
6406 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
6407
6408         * Combobox:
6409                 - Adjust control's height for non-simple comboboxes (bug fix)
6410                 - Remove dead code
6411         * MenuAPI.cs: remove unused var
6412         * ScrollBar.cs: remove unsed var
6413                  
6414         * ListBox.cs: unselect items when clearing
6415
6416 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
6417
6418         * ListControl.cs: honors OnPositionChanged and default Selected Item
6419         * ListBox.cs: unselect items when clearing
6420
6421 2005-04-27  Jackson Harper  <jackson@ximian.com>
6422
6423         * X11Keyboard.cs: Initialize a default keyboard and give a warning
6424         if a "correct" keyboard is not found. This will make us not crash,
6425         but might give some users bad keyboard layouts...seems to be the
6426         same thing rewind does.
6427
6428 2005-04-27  Jackson Harper  <jackson@ximian.com>
6429
6430         * BindingManagerBase.cs: Attach the current/position changed
6431         handlers to their respective events.
6432
6433 2005-04-27  Jackson Harper  <jackson@ximian.com>
6434
6435         * Control.cs: Make sure that the first WM_PAINT does a full draw,
6436         not just a blit.
6437         * ThemeWin32Classic.cs: Don't fill the background for picture
6438         boxes. This could overright user drawing.
6439         * ComboBox.cs: Just fill the clipping rect not the entire client
6440         rect when drawing the background. This prevents pieces of the
6441         image buffer from getting overwritten and is theoretically faster.
6442
6443 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
6444
6445         * ComboBox.cs: Databinding support fixes, fire missing events
6446         * ListControl.cs: implement missing methods and properties, fixes
6447         * ThemeWin32Classic.cs: Databiding support on Drawing
6448         * CheckedListBox.cs: Databinding support fixes, fire missing events
6449         * ListBox.cs: Databinding support fixes, fire missing events
6450         
6451 2005-04-25  Peter Bartok  <pbartok@novell.com>
6452
6453         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
6454
6455 2005-04-25  Jackson Harper  <jackson@ximian.com>
6456
6457         * TreeView.cs: Use the horizontal scrollbars height not width when
6458         determining how much of the client area is available.
6459
6460 2005-04-25  Jackson Harper  <jackson@ximian.com>
6461
6462         * Control.cs: Double buffering is handled differently now. As per
6463         the spec, the extra buffer is created in the WM_PAINT message and
6464         passed down to the control's drawing code.
6465         * GroupBox.cs:
6466         * Label.cs:
6467         * CheckBox.cs:
6468         * ProgressBar.cs:
6469         * RadioButton.cs:
6470         * ColorDialog.cs:
6471         * ComboBox.cs:
6472         * PropertyGridView.cs:
6473         * UpDownBase.cs:
6474         * MessageBox.cs:
6475         * MenuAPI.cs:
6476         * ListView.cs:
6477         * ButtonBase.cs:
6478         * SizeGrip.cs:
6479         * ScrollBar.cs:
6480         * ListBox.cs:
6481         * TrackBar.cs:
6482         * ToolBar.cs:
6483         * PictureBox.cs:
6484         * DateTimePicker.cs:
6485         * StatusBar.cs:
6486         * TreeView.cs: Update to new double buffering system.
6487         * MonthCalendar.cs: Uncomment block, as Capture is now
6488         working. Update to new double buffering
6489         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
6490         * PaintEventArgs.cs: New internal method allows us to set the
6491         graphics object. This is used for double buffering.
6492         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
6493         rectangle. The internal paint_area var has been removed from
6494         StatusBar. The clipping rect should be used instead.
6495         * Theme.cs: Give the PictureBox drawing method a clipping rect.
6496         * TabPage.cs: The RefreshTabs method was removed, so just call the
6497         tab controls Refresh method now.
6498         * TabControl.cs: Update to new double buffering. Make sure the
6499         handle is created before sizing the tab pages, otherwise we will
6500         get stuck in a loop.
6501
6502 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
6503
6504         * LinkLabel.cs: Fix typo, bug #74719; patch
6505           from Borja Sanchez Zamorano
6506
6507 2005-04-22  Jackson Harper  <jackson@ximian.com>
6508
6509         * TreeNode.cs: Implement Handle stuff.
6510         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
6511
6512 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
6513
6514         * DataGridTextBoxColumn.cs: call base constructors, fixes
6515         * GridColumnStylesCollection.cs: missing events, methods, and functionality
6516         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
6517         * DataGridTableStyle.cs: implements create default column styles
6518         * DataGridBoolColumn.cs: which types can handle
6519         * DataGrid.cs: missing methods, fixes, new functionality
6520         * DataGridColumnStyle.cs: fixes
6521
6522 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
6523         * FolderBrowserDialog.cs:
6524         - Use a thread to fill the TreeView
6525         - Adjusted some sizes
6526
6527 2005-04-19  Peter Bartok  <pbartok@novell.com>
6528
6529         * LinkLabel.cs: (Re-)create the pieces when setting the Text
6530           property. Fixes #74360.
6531
6532 2005-04-19  Jackson Harper  <jackson@ximian.com>
6533
6534         * XEventQueue.cs: Lock when getting the lockqueue size.
6535         * PictureBox.cs: Call base OnPaint
6536         
6537 2005-04-19  Peter Bartok  <pbartok@novell.com>
6538
6539         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
6540           messages were no longer being processed (this broke BeginInvoke)
6541
6542           
6543 2005-04-18  Jackson Harper  <jackson@ximian.com>
6544
6545         * TreeView.cs: buglet that caused node images to get drawn
6546         regardless of whether or not they were in the clipping rectangle.
6547
6548 2005-04-18  Jackson Harper  <jackson@ximian.com>
6549
6550         * CurrencyManager.cs: There are four rules for GetItemProperties:
6551         - If the type is an array use the element type of the array
6552         - If the type is a typed list, use the type
6553         - If the list contains an Item property that is not an object, use
6554         that property
6555         - use the first element of the list if there are any elements in
6556         the list.
6557         
6558 2005-04-17  Jackson Harper  <jackson@ximian.oom>
6559
6560         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
6561         click. This handles offsets for scrolling properly and reduces
6562         memory. Also fixed GetNode to not offset now that TopNode works
6563         properly.
6564         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
6565         
6566 2005-04-17  Jackson Harper  <jackson@ximian.com>
6567
6568         * CursorConverter.cs: Initial implementation.
6569
6570 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
6571
6572         * ListControl.cs: work towards complex data binding support on ListControl
6573         * CurrencyManager.cs: work towards complex data binding support on ListControl
6574         * ListBox.cs: work towards complex data binding support on ListControl
6575
6576
6577 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
6578
6579         * GridTableStylesCollection.cs: fixes name and constructor
6580         * DataGridTableStyle.cs: fixes
6581         * DataGridBoolColumn.cs: fixes names and constructors
6582         * DataGrid.cs: define methods and properties. Some init implementations
6583         * DataGridCell.cs: define methods and properties. Some init implementations
6584         * GridTablesFactory.cs: Define methods and properties
6585
6586 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
6587
6588         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
6589         graphics port changes.  We still want the coordinates in global screen
6590         coordinates.
6591
6592 2005-04-14  Jackson Harper  <jackson@ximian.com>
6593
6594         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
6595         check plus minus or checkbox clicks unless those features are enabled.
6596
6597 2005-04-14  Jackson Harper  <jackson@ximian.com>
6598
6599         * TreeView.cs: Add methods for setting the top and bottom visible
6600         nodes. TreeNode::EnsureVisible uses these methods.
6601         * TreeNode.cs: Implement EnsureVisible
6602
6603 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
6604
6605         * Form.cs: Pospone menu assignation if the window has not been created yet
6606         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
6607         size and position
6608
6609 2005-04-12  Jackson Harper  <jackson@ximian.com>
6610
6611         * TreeView.cs: Set the TopNode properly when scrolling
6612         occurs. This has the added benifit of reducing the amount of
6613         walking that needs to be done when drawing. Also removed an old
6614         misleading TODO.
6615         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
6616         
6617 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
6618
6619         * Timer.cs: fixes interval setting when the timer is already enabled
6620         
6621 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
6622
6623         * FolderBrowserDialog.cs: First approach
6624
6625 2005-04-09  Peter Bartok  <pbartok@novell.com>
6626
6627         * FolderBrowserDialog: Added
6628
6629 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
6630
6631         * LinkLabel.cs: move drawing code into the theme
6632         * ThemeWin32Classic.cs: drawing code and painting background bugfix
6633         * Theme.cs: define DrawLinkLabel method
6634
6635 2005-04-05  Jackson Harper  <jackson@ximian.com>
6636
6637         * BindingContext.cs: Use weak references so these bad actors don't
6638         stay alive longer then they need to.
6639
6640 2005-04-05  Jackson Harper  <jackson@ximian.com>
6641
6642         * ListControl.cs: Basic implementation of complex databinding.
6643         * ComboBox.cs:
6644         * ListBox.cs: Add calls to ListControl databinding methods.
6645
6646 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
6647
6648         * FileDialog.cs:
6649           - Don't change PopupButtonState to Normal when the
6650             PopupButton gets pressed several times.
6651           - Renamed ButtonPanel to PopupButtonPanel
6652
6653 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
6654
6655         * ColorDialog.cs: Use cached objects instead of creating them
6656         * LinkLabel.cs: Use cached objects instead of creating them
6657         * Splitter.cs: Use cached objects instead of creating them
6658         * FontDialog.cs: Use cached objects instead of creating them
6659         * PropertyGridView.cs: Use cached objects instead of creating them
6660         * MessageBox.cs: Use cached objects instead of creating them
6661         * FileDialog.cs: Use cached objects instead of creating them
6662         * ThemeWin32Classic.cs: Use cached objects instead of creating them
6663         * TreeView.cs: Use cached objects instead of creating them
6664         
6665 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
6666
6667         * Control.cs: use Equals to compare the font since no == op
6668         * ScrollBar.cs: use Equals to compare the font since no == op
6669
6670 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
6671
6672         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
6673
6674 2005-04-01  Jackson Harper  <jackson@ximian.com>
6675
6676         * Binding.cs: Implement IsBinding.
6677         * BindingManagerBase.cs:
6678         * PropertyManager.cs:
6679         * CurrencyManager.cs: Add IsSuspended property.
6680
6681 2005-04-01  Jackson Harper  <jackson@ximian.com>
6682
6683         * Binding.cs: Had some IsAssignableFrom calls backwards.
6684
6685 2005-04-01  Jackson Harper  <jackson@ximian.com>
6686
6687         * Binding.cs: Handle null data members when pulling data.
6688         * PropertyManager.cs: Handle the data member being a property that
6689         does not exist.
6690
6691 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
6692
6693         * DataGridTextBoxColumn.cs: fixes signature
6694         * DataGrid.cs: calls right constructor
6695
6696 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
6697
6698         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
6699         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
6700         * GridTableStylesCollection.cs: implements GridTableStylesCollection
6701         * DataGridTableStyle.cs: implements DataGridTableStyle
6702         * DataGridBoolColumn.cs: implements DataGridBoolColumn
6703         * DataGridTextBox.cs: implements DataGridTextBox
6704         * DataGridColumnStyle.cs: implements DataGridColumnStyle
6705
6706 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
6707
6708         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
6709
6710 2005-03-29  Peter Bartok  <pbartok@novell.com>
6711
6712         * Application.cs:
6713           - Properly implemented CompanyName property
6714           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
6715             returns a path that includes CompanyName, ProductName and
6716             Version (fixes bug #70330)
6717
6718 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
6719
6720         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
6721           fixes bug #72588.
6722
6723 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
6724
6725         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
6726         
6727           - Added ReadOnly CheckBox
6728           - Further refactoring: moved some code from Open-/SaveFileDialog
6729             to FileDialog
6730
6731 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
6732
6733         * OpenFileDialog.cs: Fixed CheckFileExists
6734         * FileDialog.cs:
6735           Moved FileView and DirComboBox outside FileDialog class.
6736           They can now be used outside FileDialog
6737
6738 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
6739
6740         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
6741         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
6742
6743 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
6744
6745         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
6746           - Added missing CreatePrompt property in SaveDialog
6747           - Overall SaveDialog handling should be better now
6748           - Added non standard ShowHiddenFiles property
6749           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
6750           - Added InitialDirectory and RestoreDirectory support
6751
6752 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
6753
6754         * FileDialog.cs: Made dirComboBox usable
6755
6756 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
6757
6758         * FileDialog.cs: Added Filter support (case sensitiv)
6759
6760 2005-03-24  Jackson Harper  <jackson@ximian.com>
6761
6762         * TabControl.cs: Need a couple more pixels for the lines.
6763
6764 2005-03-23  Jackson Harper  <jackson@ximian.com>
6765
6766         * TabControl.cs: Give the tab page focus when it is selected.
6767
6768 2005-03-23  Jackson Harper  <jackson@ximian.com>
6769
6770         * TabControl.cs: Account for the drawing of tabs borders when
6771         invalidating. If the slider was clicked dont do click detection on
6772         the tabs.
6773
6774 2005-03-23  Jackson Harper  <jackson@ximian.com>
6775
6776         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
6777
6778 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
6779
6780         * CategoryGridEntry.cs: Added
6781         * GridItem.cs: Added helper properties
6782         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
6783         * GridEntry.cs: Updated code for collection
6784         * PropertyGrid.cs: Cleaned up some formatting
6785         * PropertyGridView.cs: Added drop down functionality for enums.
6786         * GridItemCollection.cs: Added enumerator logic
6787         * PropertyGridEntry.cs: Added
6788
6789 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
6790
6791         * FileDialog.cs:
6792           - Removed unnecessary commented code
6793           - Fixed handling for entering the filename manually in the combobox
6794
6795 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
6796
6797         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
6798
6799 2005-03-18  Peter Bartok  <pbartok@novell.com>
6800
6801         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
6802           them being touching the border
6803
6804 2005-03-18  Peter Bartok  <pbartok@novell.com>
6805
6806         * TextControl.cs: Quick hack to center text better
6807
6808 2005-03-18  Peter Bartok  <pbartok@novell.com>
6809
6810         * ControlPaint.cs:
6811           - Don't throw NotImplemented exceptions, just print a notice once
6812             instead (requested by Miguel). This makes running existing SWF
6813             apps a bit easier
6814         * Control.cs:
6815           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
6816           - Added context menu trigger on right click
6817         * Panel.cs: Trigger invalidate on resize
6818         * StatusBar.cs:
6819           - Removed old double-buffer drawing
6820           - Added ResizeRedraw style to force proper update of statusbar
6821         * ListView.cs:
6822           - Removed debug output
6823         * ThemeWin32Classic.cs:
6824           - Fixed drawing of status bar, now draws Text property if there
6825             are no defined panels
6826
6827 2005-03-18  Jackson Harper  <jackson@ximian.com>
6828
6829         * ImageList.cs: When the image stream is set pull all the images
6830         from it.
6831         * ImageListStreamer.cs: Implement reading image list streams.
6832
6833 2005-03-18  Peter Bartok  <pbartok@novell.com>
6834
6835         * ThemeWin32Classic.cs (DrawPictureBox):
6836           - Fixed calculations for centered drawing
6837           - Fixed drawing for normal mode, not scaling the image on normal
6838
6839 2005-03-18  Peter Bartok  <pbartok@novell.com>
6840
6841         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
6842           textbox
6843         * FileDialog.cs:
6844           - Made Open/Save button the accept button for FileDialog
6845           - Tied the cancel button to the IButtonControl cancel button
6846           - Save/Open now properly builds the pathname
6847           - Now handles user-entered text
6848           - Preventing crash on right-click if no item is selected
6849           - Fixed Text property, now uses contents of textbox
6850           - Fixed SelectedText property, now just returns the text part that
6851             is selected in the text box
6852
6853 2005-03-18  Jackson Harper  <jackson@ximian.com>
6854
6855         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
6856         rect, make sure to de-adjust the interior rect after drawing the
6857         tab text.
6858
6859 2005-03-18  Peter Bartok  <pbartok@novell.com>
6860
6861         * MenuAPI.cs: Remove menu *before* executing selected action to
6862           prevent the menu from 'hanging around'
6863           
6864 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
6865
6866         * XplatUIOSX.cs: Implemented WorkingArea property
6867
6868 2005-03-17  Peter Bartok  <pbartok@novell.com>
6869
6870         * XplatUIX11.cs: Fixed menu coord calculations
6871         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
6872           for calculating offsets
6873
6874 2005-03-17  Peter Bartok  <pbartok@novell.com>
6875
6876         * Hwnd.cs: Do not consider menu presence for default client
6877           rectangle location/size
6878         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
6879           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
6880           translation functions
6881         * FileDialog.cs: Fixed (what I presume is a) typo
6882
6883 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
6884
6885         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
6886           X access (avoids X-Async errors)
6887
6888 2005-03-16  Jackson Harper  <jackson@ximian.com>
6889
6890         * TabControl.cs: Raise the SelectedIndexChanged event.
6891
6892 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
6893
6894         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
6895           - Removed vertical ToolBar and replaced it with a custom panel
6896             (desktop and home button already work)
6897           - Added Help button (some controls get resized or relocated then)
6898           - Draw correct text depending on Open or Save.
6899           - Fixed some typos...
6900
6901 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
6902
6903         * ScrollBar.cs:
6904           - Only change Maximum and Minimum when need it (bug fix)
6905
6906 2005-03-15  Peter Bartok  <pbartok@novell.com>
6907
6908         * Form.cs: Use Handle for icon, to trigger creation if
6909           the window does not yet exist
6910         * Control.cs:
6911           - CanSelect: Slight performance improvement
6912           - Focus(): Preventing possible recursion
6913           - Invalidate(): Removed ControlStyle based clear flag setting
6914           - WM_PAINT: fixed logic for calling OnPaintBackground
6915           - WM_ERASEBKGND: Fixed logic, added call to new driver method
6916             EraseWindowBackground if the control doesn't paint background
6917         * XplatUIWin32.cs:
6918           - Moved EraseWindowBackground() method to internal methods
6919           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
6920             is sent via SendMessage on BeginPaint call on Win32
6921         * XplatUIX11.cs:
6922           - Added EraseWindowBackground() method
6923           - No longer sends WM_ERASEBKGND on .Expose, but on call to
6924             PaintEventStart, which more closely matches Win32 behaviour
6925           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
6926           - Fixed SetFocus() to properly deal with client and whole windows
6927         * Hwnd.cs: Added ErasePending property
6928         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
6929         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
6930
6931 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
6932
6933         * XplatUIOSX.cs:
6934           - Fix hard loop when timers exist.
6935           - Fix bugs with middle and right click for 3 button mice.
6936
6937 2005-03-11  Peter Bartok  <pbartok@novell.com>
6938
6939         * XplatUIX11.cs:
6940           - get_WorkingArea: Need to call X directly, GetWindowPos only
6941             returns cached data now
6942           - Added sanity check to GetWindowPos hwnd usage
6943
6944 2005-03-11  Jackson Harper  <jackson@ximian.com>
6945
6946         * BindingManagerBase.cs: This method isn't used anymore as
6947         PullData now updates the data in the control.
6948
6949 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
6950
6951         * Form.cs: fixes menu drawing on X11
6952         * MenuAPI.cs:  fixes menu drawing on X11
6953
6954 2005-03-11  Peter Bartok  <pbartok@novell.com>
6955
6956         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
6957           from Jonathan Gilbert; should fix bug #73606
6958         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
6959           in Screen coordinates. Thanks, Jordi.
6960         * Form.cs: Added missing attribute
6961
6962 2005-03-11  Peter Bartok  <pbartok@novell.com>
6963
6964         * Form.cs:
6965           - Rudimentary Mdi support
6966           - Removed outdated FormParent code
6967           - Implemented lots of missing properties and methods, still missing
6968             transparency support
6969           - Added missing attributes
6970           - Implemented support for MaximumBounds
6971           - Added firing of various events
6972         * XplatUI.cs: Added SetIcon() method
6973         * XplatUIDriver.cs: Added SetIcon() abstract
6974         * XplatUIOSX.cs: Stubbed out SetIcon() method
6975         * XplatUIX11.cs:
6976           - Implemented SetIcon() support
6977           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
6978           - Switched to unix line endings
6979         * XplatUIWin32.cs:
6980           - Made POINT internal so for can access it as part of MINMAX
6981           - Implemented SetIcon() support
6982           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
6983             native Mdi support again, might have to go managed)
6984         * Control.cs: Now fires the StyleChanged event
6985         * MdiClient.cs: Added; still mostly empty
6986
6987 2005-03-10  Peter Bartok  <pbartok@novell.com>
6988
6989         * SaveFileDialog.cs: Added emtpy file
6990
6991 2005-03-08  Peter Bartok  <pbartok@novell.com>
6992
6993         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
6994           in turn triggers OnCreateContro) when creating a handle for the
6995           first time.
6996         * TextControl.cs: Fixed endless loop in certain cases when
6997           replacing the current selection
6998
6999 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
7000
7001         * ScrollBar.cs:
7002           - Honors NewValue changes in Scroll events allowing apps to change it
7003           - Adds First and Last Scroll events
7004           - Fixes Thumb events
7005
7006 2005-03-07  Peter Bartok  <pbartok@novell.com>
7007
7008         * Hwnd.cs: Added DefaultClientRectangle property
7009         * XplatUI.cs: Now using the X11 driver Where() method, which provides
7010           more detailed debug information
7011         * XplatUIX11.cs:
7012           - Fixed size-change feedback loop, where we would pull an old size
7013             off the queue and mistakenly change our window's size to an
7014             earlier value
7015           - Now compressing ConfigureNotify events, to reduce looping and
7016             redraw issues
7017         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
7018           is called
7019
7020 2005-03-07  Jackson Harper  <jackson@ximian.com>
7021
7022         * Binding.cs: Push data pushes from data -> property. Check if the
7023         property is readonly when attempting to set it.
7024
7025 2005-03-07  Jackson Harper  <jackson@ximian.com>
7026
7027         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
7028         instead of IsSubclassOf. Pulling data now sets the value on the
7029         control.
7030         * PropertyManager.cs:
7031         * CurrencyManager.cs: Just need to pull data when updating now,
7032         because PullData will set the value on the control.
7033
7034 2005-03-04  Jackson Harper  <jackson@ximian.com>
7035
7036         * Binding.cs: Implement data type parsing and converting on pulled
7037         data. TODO: Are there more ways the data can be converted?
7038
7039 2005-03-04  Jackson Harper  <jackson@ximian.com>
7040
7041         * Binding.cs: Support <Property>IsNull checks. Also bind to the
7042         controls Validating method so we can repull the data when the
7043         control loses focus.
7044
7045 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
7046
7047         * ColumnHeader.cs:
7048           - Fixes null string format
7049           
7050         * ListView.cs:
7051           - Adds enum type checks
7052           - Fixes redrawing and recalc need after changing some properties
7053           - Fixes on focus_item set after the event
7054           - Fixes adding columns after the control has been created
7055           
7056         * ThemeWin32Classic.cs:
7057           - Fixes CheckBox focus rectangle
7058           - Fixes ColumnHeader drawing
7059
7060
7061 2005-03-03  Jackson Harper  <jackson@ximian.com>
7062
7063         * Binding.cs: Bind to <Property>Changed events so we can detect
7064         when properties are changed and update the data.
7065
7066 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
7067
7068         * ImageList.cs:
7069           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
7070           - Fixes ImageList constructor with ImageList container
7071           - Fixes image scaling (wrong parameters at DrawImage)
7072
7073 2005-02-02  Jackson Harper  <jackson@ximian.com>
7074
7075         * Binding.cs: Make property searches case-insensitive. Eliminate
7076         some duplicated code.
7077
7078 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
7079
7080         * ComboBox.cs:
7081                 - Handle focus event
7082                 - Fix scrollbar events
7083                 - Discard highlighted item if remove it
7084                 - Fixes SelectedItem with strings
7085
7086 2005-03-01  Peter Bartok  <pbartok@novell.com>
7087
7088         * Control.cs:
7089           - Fixed Visible property, now follows (once again) parent chain
7090             to return false if any control in the chain is visible=false
7091           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
7092           - Fixed several places where is_visible instead of Visible was used
7093           - Implemented FIXME related to focus selection when setting focused
7094             control to be invisible
7095
7096         * XplatUIWin32.cs: Now using proper method to find out if window is
7097           visible. Thanks to Jordi for pointing it out
7098
7099 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
7100
7101         * ComboBox.cs: show/hide scrollbar instead of creating it
7102
7103 2005-02-27  Jackson Harper  <jackson@ximian.com>
7104
7105         * CurrencyManager.cs: Add PositionChanged stuff.
7106
7107 2005-02-27  Peter Bartok  <pbartok@novell.com>
7108
7109         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
7110         * XplatUIOSX.cs: Added GetMenuOrigin() stub
7111         * XplatUIWin32.cs: Implemented GetMenuOrigin()
7112         * XplatUIX11.cs:
7113           - Implemented GetMenuDC()
7114           - Implemented GetMenuOrigin()
7115           - Implemented ReleaseMenuDC()
7116           - Implemented generation of WM_NCPAINT message
7117           - Implemented generation and handling of WM_NCCALCSIZE message
7118         * Form.cs: Added debug helper message for Jordi's menu work
7119         * Hwnd.cs:
7120           - Modified ClientRect property; added setter, fixed getter to handle
7121             setting of ClientRect
7122           - Added MenuOrigin property
7123
7124 2005-02-26  Peter Bartok  <pbartok@novell.com>
7125
7126         * XplatUIX11.cs:
7127           - Destroys the caret if a window that's being destroyed contains it
7128           - Ignores expose events coming from the X11 queue for windows that
7129             already are destroyed
7130           - Now uses the proper variable for handling DestroyNotify, before we
7131             marked the wrong window as destroyed
7132           - Improved/added some debug output
7133
7134 2005-02-26  Peter Bartok  <pbartok@novell.com>
7135
7136         * X11Keyboard.cs: Fixes to work on 64bit systems
7137
7138 2005-02-26  Peter Bartok  <pbartok@novell.com>
7139
7140         * Control.cs:
7141           - Now calling OnHandleDestroyed from DestroyHandle()
7142             instead of Dispose()
7143           - Removed bogus call to controls.Remove() from DestroyHandle()
7144
7145 2005-02-26  Peter Bartok  <pbartok@novell.com>
7146
7147         * Control.cs: Properly destroy child windows when our handle is
7148           destroyed
7149
7150 2005-02-25  Peter Bartok  <pbartok@novell.com>
7151
7152         * XplatUI.cs:
7153           - Added 'DriverDebug' define to allow tracing XplatUI API calls
7154           - Alphabetized Static Methods and Subclasses
7155
7156         * XplatUIX11.cs:
7157           - Added XException class to allow custom handling of X11 exceptions
7158           - Created custom X11 error handler, tied into XException class
7159           - Added support for MONO_XEXCEPTIONS env var to allow the user
7160             to either throw an exception on X errors or continue running
7161             after displaying the error
7162           - Added handling of DestroyNotify message
7163           - Added handler for CreateNotify message (still disabled)
7164           - Improved (tried to at least) Where method to provide file and lineno
7165         * X11Structs.cs:
7166           - Added XErrorHandler delegate
7167           - Added XRequest enumeration (to suppor translation of errors)
7168
7169 2005-02-25  Jackson Harper  <jackson@ximian.com>
7170
7171         * PropertyManager.cs: Implement editing features
7172         * CurrencyManager.cs:
7173         * Binding.cs: First attempt at UpdateIsBinding
7174         * BindingManagerBase.cs: Call UpdateIsBinding before
7175         pushing/pulling data.
7176
7177 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
7178
7179         * MenuAPI.cs: Respect disabled items
7180         * ThemeWin32Classic.cs
7181                 - Caches ImageAttributes creation for DrawImageDisabled
7182                 - Fixes vertical menu line drawing
7183                 - Draws disabled arrows in disable menu items
7184
7185 2005-02-24  Peter Bartok  <pbartok@novell.com>
7186
7187         * Hwnd.cs:
7188           - Added UserData property to allow associating arbitrary objects
7189             with the handle
7190           - Fixed leak; now removing Hwnd references from static windows array
7191         * XplatUIWin32.cs:
7192           - Fixed Graphics leak in PaintEventEnd
7193           - Removed usage of HandleData, switched over to Hwnd class
7194         * HandleData.cs: Removed, obsoleted by Hwnd.cs
7195
7196 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
7197
7198         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
7199         * ScrollBar.cs: Fixes bug
7200         * TrackBar.cs: removes death code, clipping, mimize refreshes,
7201          keyboard navigation enhancements
7202
7203 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
7204
7205         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
7206         * GroupBox.cs: Add control styles
7207         * Label.cs: Add control styles
7208         * UpDownBase.cs: Add control styles
7209         * ListBox.cs: Add control styles
7210         * XplatUIWin32.cs: Fixes wrong parameter order
7211
7212
7213 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
7214
7215         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
7216
7217 2005-02-23  Jackson Harper  <jackson@ximian.com>
7218
7219         * PropertyManager.cs: Implement property binding. This doesn't
7220         seem to work yet though as (I think) there are some bugs in
7221         System.ComponentModel.PropertyDescriptor.
7222         * BindingContext.cs: Use new PropertyManager constructor.
7223
7224 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
7225
7226         * ProgressBar.cs: use clip region in ProgressBar
7227         * ThemeWin32Classic.cs: use clip region in ProgressBar
7228
7229 2004-02-22  Jackson Harper  <jackson@ximian.com>
7230
7231         * BindingsCollection.cs: Remove some debug code.
7232
7233 2005-02-22  Jackson Harper  <jackson@ximian.com>
7234
7235         * BindingContext.cs:
7236         * ControlBindingsCollection.cs:
7237         * CurrencyManager.cs:
7238         * Binding.cs:
7239         * BindingManagerBase.cs: Initial implementation
7240         * BindingsCollection.cs: Add an internal contains method that the
7241         BindingManagerBase uses to ensure bindings aren't added twice to
7242         the collection.
7243         * PropertyManager.cs: Stubbed out.
7244         * Control.cs:
7245         * ContainerControl.cs: Hook up databinding
7246         
7247 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
7248
7249         * XplatUIOSX.cs:
7250           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
7251           Fixed Invalidate/Update chain.
7252           Fixed tons of other minor bugs (this is almost a complete rewrite).
7253
7254 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
7255
7256         * ComboBox.cs: do subcontrol creation when the control is created
7257
7258 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
7259
7260         * Label.cs: fixes image drawing (image and imagelist)
7261         * ThemeWin32Classic.cs: cache brushes
7262         
7263 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
7264
7265         * Form.cs: Move menu drawing code to Theme class
7266         * ComboBox.cs: Move ComboBox drawing code to Theme class
7267         * MenuItem.cs: Move menu drawing code to Theme class
7268         * MenuAPI.cs: Move menu drawing code to Theme class
7269         * ThemeWin32Classic.cs: New methods
7270         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
7271         * ListBox.cs: Move Listbox drawing code to Theme class
7272         * Theme.cs: New methods
7273
7274 2005-02-20  Peter Bartok  <pbartok@novell.com>
7275
7276         * Control.cs:
7277           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
7278             only process mnemonics on those)
7279           - Fixed event sequence for key handling; first calling
7280             ProcessKeyEventArgs now
7281         * TextBoxBase.cs:
7282           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
7283             for processing non-character keys
7284           - Fixed WM_CHAR to generate proper event sequence before processing
7285         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
7286           generation
7287
7288 2005-02-19  Peter Bartok  <pbartok@novell.com>
7289
7290         * UserControl.cs: Added TextChanged event; added attributes
7291         * SizeGrip.cs: Implemented resizing and optional display of grip
7292         * Form.cs: Fixed attribute
7293         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
7294           Changed meaning of ScrollWindow bool argument; instead of the
7295           clear attribute (which will be true usually anyway), it gives the
7296           option of moving child controls as well.
7297         * XplatUIX11.cs:
7298           - Changed to match new ScrollWindow argument
7299           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
7300             now handles the implicit parent window a WM puts around us
7301         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
7302           to work)
7303         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
7304         * TreeView.cs: Adjusted to new ScrollWindow arguments
7305
7306 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
7307
7308         * Form.cs: Menu integration with non-client area
7309         * MenuItem.cs: Menu integration with non-client area
7310         * MenuAPI.cs: Menu integration with non-client area
7311
7312 2005-02-18  Peter Bartok  <pbartok@novell.com>
7313
7314         * MethodInvoker.cs: Added
7315         * MdiLayout.cs: Added
7316         * SendKeys.cs: Started implementation
7317         * ErrorIconAlignment.cs: Added
7318
7319 2005-02-18  Peter Bartok  <pbartok@novell.com>
7320
7321         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
7322         * Form.cs: Added handling for Menu-related Non-client messages
7323
7324 2005-02-17  Peter Bartok  <pbartok@novell.com>
7325
7326         * UpDownBase.cs: Fixed typo, compilation errors
7327         * DomainUpDown.cs: Fixed attribute value
7328
7329 2005-02-16  Miguel de Icaza  <miguel@novell.com>
7330
7331         * UpDownBase.cs: Attach entry events.
7332         Propagate events.
7333         Add ForeColor property, Focused, InterceptArrowKeys (interception
7334         does not work yet).
7335
7336 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
7337
7338         * Form.cs:
7339                 - Redraw non client are on Setmenu
7340                 - Calc proper menu starting point
7341
7342 2005-02-17  Peter Bartok  <pbartok@novell.com>
7343
7344         * Application.cs: Fixed message_filter check
7345
7346 2005-02-17  Peter Bartok  <pbartok@novell.com>
7347
7348         * Application.cs: Now calls registered message filters
7349         * DockStyle.cs: Fixed attribute
7350         * Form.cs: Fixed attribute
7351         * Menu.cs: Fixed attribute
7352         * ToolTip.cs: Fixed attribute
7353         * TreeNode.cs: Added missing attributes and arranged in regions
7354         * PropertyGrid.cs: Fixed signatures
7355         * TreeNodeCollection.cs: Added attributes
7356         * Splitter.cs: Added missing attributes; arranged into regions
7357         * TabPage.cs: Added missing attributes; arranged into regions
7358         * TextBoxBase.cs: Added missing attributes
7359         * TextBox.cs: Added missing attributes
7360         * ArrangeDirection.cs: Added missing attributes
7361         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
7362         * ToolBarButton.cs: Fixed attributes
7363         * AnchorStyles.cs: Fixed attribute
7364         * TrackBar.cs: Fixed attributes
7365         * TabControl.cs: Added missing attributes and arranged into regions
7366         * ToolBar.cs: Fixed attribute
7367         * StatusBar.cs: Fixed signature, organized into regions and added
7368           attributes
7369         * StatusBarPanel.cs: Fixed attributes
7370         * ContentsResizedEventArgs.cs: Implemented
7371         * ContentsResizedEventHandler.cs: Implemented
7372         * DateBoldEventArgs.cs: Implemented
7373         * DateBoldEventHandler.cs: Implemented
7374         * UpDownEventArgs.cs: Implemented
7375         * UpDownEventHandler.cs: Implemented
7376         
7377 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
7378
7379         * Form.cs: first Menu NC refactoring
7380         * MenuAPI.cs: first Menu NC refactoring
7381         
7382 2005-02-16  Peter Bartok  <pbartok@novell.com>
7383
7384         * ImeMode.cs: Added missing attributes
7385         * Menu.cs: Fixed attribute
7386         * GroupBox.cs: Fixed attribute
7387         * Label.cs: Fixed attribute
7388         * ColorDialog.cs (RunDialog): Removed TODO attribute
7389         * ComboBox.cs: Fixed attributes
7390         * ListControl.cs: Added missing attributes
7391         * PropertyGrid.cs: Fixed attributes
7392         * Control.cs: Fixed attributes
7393         * ListViewItem.cs: Added TypeConverter attribute
7394         * NotifyIcon.cs: Fixed attributes
7395         * ListView.cs: Fixed attributes
7396         * ButtonBase.cs: Fixed attribute
7397         * ImageList.cs: Added missing attributes
7398         * ContainerControl.cs: Fixed signature
7399         * CheckedListBox.cs: Fixed attribute; added missing attributes
7400         * Panel.cs: Fixed attributes
7401         * PropertyTabChangedEventArgs.cs: Added missing attribute
7402         * PropertyValueChangedEventArgs.cs: Added missing attribute
7403         * Binding.cs: Fixed attribute
7404         * ListViewItemConverter: Implemented ListViewSubItemConverter class
7405         * ListBox.cs: Fixed attribute; added missing attributes;
7406         * ScrollableControl.cs: Added missing attributes
7407         * PictureBox.cs: Added missing attributes; implemented missing property
7408         * DateTimePicker.cs: Added missing attributes
7409         * Theme.cs (ToolWindowCaptionHeight): Fixed type
7410         * MonthCalendar.cs: Fixed attributes
7411         * StatusBarPanel.cs: Added missing attributes
7412         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
7413
7414 2005-02-16  Peter Bartok  <pbartok@novell.com>
7415
7416         * TextBoxBase.cs: The previous method to enforce height yet remember
7417           the requested high was less than ideal, this is an attempt to do
7418           it better.
7419         * Control.cs: Added comment about possible problem
7420         * Copyright: Updated format
7421         * GridItemType.cs: Fixed swapped values
7422
7423 2005-02-15  Jackson Harper  <jackson@ximian.com>
7424
7425         * BaseCollection.cs: Use property so we never access an
7426         uninitialized list. Also initialize the list in the property.
7427
7428 2005-02-15  Peter Bartok  <pbartok@novell.com>
7429
7430         * GroupBox.cs (ProcessMnemonic): Implemented
7431         * Label.cs (ProcessMnemonic): Implemented
7432         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
7433           hotkeys
7434
7435 2005-02-15  Peter Bartok  <pbartok@novell.com>
7436
7437         * RadioButton.cs (ProcessMnemonic): Implemented
7438         * CheckBox.cs (ProcessMnemonic): Implemented
7439         * Control.cs:
7440           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
7441             handling
7442           - Added internal method to allow calling ProcessMnemonic from other
7443             controls
7444         * ContainerControl.cs:
7445           - Started support for handling validation chain handling
7446           - Implemented ProcessMnemonic support
7447           - Added Select() call to Active, to make sure the active control
7448             receives focus
7449         * Form.cs: Setting toplevel flag for Forms (this was lost in the
7450           FormParent rewrite)
7451         * ThemeWin32Classic.cs:
7452           - DrawCheckBox(): Fixed stringformat to show hotkeys
7453           - DrawRadioButton(): Fixed stringformat to show hotkeys
7454         * CommonDialog.cs: Removed WndProc override, not needed
7455
7456 2005-02-14  Peter Bartok  <pbartok@novell.com>
7457
7458         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
7459           missed those in the rewrite
7460
7461 2005-02-14  Miguel de Icaza  <miguel@novell.com>
7462
7463         * NumericUpDown.cs (Increment, ToString): Add.
7464         (DecimalPlaces): implement.
7465         
7466         Add attributes.
7467         
7468         * UpDownBase.cs: Add the designer attributes.
7469
7470 2005-02-13  Peter Bartok  <pbartok@novell.com>
7471
7472         * Panel.cs: Removed border_style, now in Control
7473         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
7474           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
7475
7476 2005-02-13  Peter Bartok  <pbartok@novell.com>
7477
7478         * MouseButtons.cs: Added missing attributes
7479         * XplatUIStructs.cs: Added enumeration for title styles
7480         * LeftRightAlignment.cs: Added missing attributes
7481         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
7482           it compatible with Graphics.FromHwnd()
7483         * SelectedGridItemChangedEventArgs.cs: Fixed property type
7484         * Keys.cs: Added missing attributes
7485         * SelectionRange.cs: Added missing attributes
7486         * SelectionRangeConverter.cs: Added
7487         * XplatUI.cs:
7488           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
7489             ReleaseMenuDC methods
7490           - Renamed ReleaseWindow to UngrabWindow
7491           - Added proper startup notice to allow version identification
7492         * Form.cs:
7493           - Added missing attributes
7494           - Removed FormParent concept
7495         * Label.cs: Removed border_style field, now in Control
7496         * RadioButton.cs: Now properly selects RadioButton when focus is
7497           received
7498         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
7499         * Control.cs:
7500           - Added missing attributes
7501           - Added borderstyle handling
7502           - Removed FormParent concept support
7503           - Fixed calls to XplatUI to match changed APIs
7504           - Fixed bug that would case us to use disposed Graphics objects
7505           - Removed unneeded internal methods
7506           - PerformLayout(): Fixed to handle DockStyle.Fill properly
7507           - SelectNextControl(): Fixed to properly check common parents
7508         * TextBoxBase.cs: Removed border_style field (now in Control)
7509         * MessageBox.cs:
7510           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
7511             fixed calculations for form size
7512           - Added support for localized strings and icons
7513           - Improved form size calculations, added border
7514         * ListView.cs: Removed border_style field (now in Control)
7515         * X11Structs.cs: Moved several structs from X11 driver here
7516         * X11Keyboard.cs: Changed debug message
7517         * Application.cs: Removed FormParent concept support
7518         * CommonDialog.cs:
7519           - Resetting end_modal flag
7520           - Removed FormParent concept support
7521         * NativeWindow.cs: Removed FormParent concept support
7522         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
7523           Client area and Non-Client whole window to allow support for WM_NC
7524           messages
7525         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
7526           prevent using it until it supports Hwnd as per Geoff Norton's request
7527         * ToolBar.cs: Fixed drawing, was not doing proper drawing
7528         * PictureBox.cs: Removed border_style field, now in Control
7529         * XplatUIWin32.cs: Added new driver methods
7530
7531 2005-02-12  Peter Bartok  <pbartok@novell.com>
7532
7533         * OpacityConverter.cs: Implemented
7534         * Hwnd.cs: Internal class to support drivers that need to emulate
7535           client area/non-client area window behaviour
7536
7537 2005-02-11  Peter Bartok  <pbartok@novell.com>
7538
7539         * KeysConverter.cs: Implemented
7540
7541 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
7542
7543         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
7544         * LinkLabel: Added missing attributes
7545         * MainMenu.cs: fixes ToString
7546         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
7547         * ListBox.cs: fixes event position
7548         * TrackBar.cs: adds missing attributes and events
7549         
7550 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
7551
7552         * MenuItem.cs: Use SystemInformation and bug fixes
7553         * MenuAPI.cs: Use SystemInformation and bug fixes
7554
7555 2005-02-09  Jackson Harper  <jackson@ximian.com>
7556
7557         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
7558         their keystate otherwise things like VK_MENU get stuck "on".
7559
7560 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
7561
7562         * ListBox.cs: Fixes AddRange bug
7563         
7564 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
7565
7566         * ProgressBar.cs
7567                 - Add missing attributes
7568                 - Add missing method
7569                 
7570         * CheckedListBox.cs: Added missing attributes
7571                 - Add missing attributes
7572                 - Remove extra method
7573         
7574         * ComboBox.cs: Added missing attributes
7575         * VScrollBar.cs: Added missing attributes
7576         * ScrollBar.cs:  Added missing attributes
7577         * ListBox.cs: Fixes signature, add missing consts
7578         * LinkArea.cs:   Added missing attributes
7579         
7580
7581 2005-02-08  Peter Bartok  <pbartok@novell.com>
7582
7583         * Menu.cs: Added missing attributes
7584         * MainMenu.cs: Added missing attributes
7585         * GroupBox.cs: Added missing attributes
7586         * Label.cs: Added missing attributes
7587         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
7588         * ColorDialog.cs:
7589           - Added Instance and Options properties
7590           - Added missing attributes
7591         * Cursor.cs: Made Serializable
7592         * NotifyIcon: Added missing attributes
7593         * MenuItem.cs: Added missing attributes
7594         * TextBoxBase.cs: Implemented AppendText() and Select() methods
7595         * Panel.cs: Added Missing attributes
7596         * MonthCalendar.cs: Fixed CreateParams
7597
7598 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
7599         
7600         * LinkLabel.cs:
7601                 - Fixes signature
7602                 - Fixes issues with links
7603                 - Adds the class attributes
7604
7605 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
7606         
7607         * ComboBox.cs:
7608                 - Fixes button when no items available in dropdown
7609                 - Fixes repainting problems
7610                 - Adds the class attributes
7611                 
7612 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
7613
7614         * XplatUIOSX.cs: Detect the menu bar and title bar height from
7615         the current theme.  Cache these on startup.
7616
7617 2005-02-07  Jackson Harper  <jackson@ximian.com>
7618
7619         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
7620         the scrollbar buttons when they are depressed.
7621
7622 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
7623
7624         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
7625         Get the display size from the main displayid.  We currently dont
7626         support multiple display configurations.
7627
7628 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
7629
7630         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
7631
7632 2005-02-07  Miguel de Icaza  <miguel@novell.com>
7633
7634         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
7635
7636 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
7637
7638         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
7639
7640 2005-02-04  Jackson Harper  <jackson@ximian.com>
7641
7642         * ThemeWin32Classic.cs: Respect the clipping rect when
7643         drawing. Only fill the intersection of clips and rects so there
7644         isn't a lot of large fills.
7645         * ScrollBar.cs: Pass the correct clipping rect to the theme
7646         engine. Remove some debug code.
7647
7648 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
7649         
7650         * DateTimePicker.cs:
7651                 - Fixed crash on DateTime.Parse, use Constructor instead
7652
7653 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
7654         
7655         * MenuItem.cs:
7656         * MenuAPI.cs:
7657                 - Owner draw support (MeasureItem and DrawItem)
7658
7659 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
7660         
7661         *  Menu.cs:
7662                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
7663                 - Fixes MenuItems.Add range
7664         * MenuItem.cs:
7665                 - MergeMenu and Clone and CloneMenu functions
7666
7667 2005-02-03  Jackson Harper  <jackson@ximian.com>
7668
7669         * ScrollBar.cs: Make abstract
7670         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
7671         is abstract.
7672
7673 2005-02-03  Jackson Harper  <jackson@ximian.com>
7674
7675         * ScrollBar.cs: First part of my scrollbar fixups. This removes
7676         all the unneeded refreshes and uses invalidates with properly
7677         computed rects.
7678
7679 2005-02-03  Peter Bartok  <pbartok@novell.com>
7680
7681         * ComponentModel.cs: Added
7682         * IDataGridEditingService.cs: Added
7683         * Timer.cs: Added missing attributes
7684         * ToolTip.cs: Added missing attributes
7685
7686 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
7687
7688         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
7689
7690 2005-02-03  Peter Bartok  <pbartok@novell.com>
7691
7692         * ListBox.cs: Added missing attributes
7693
7694 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
7695         
7696         * ListBox.cs:
7697                 - Fixes font height after font change
7698                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
7699                 
7700 2005-02-02  Peter Bartok  <pbartok@novell.com>
7701
7702         * HandleData.cs: Introduced static methods to allow class
7703           to be more self-contained and track it's own HandleData objects
7704         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
7705           HandleData to use new static methods
7706
7707 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
7708
7709         * Combobox.cs:
7710                 - Fixes default size and PreferredHeight
7711                 - Missing events
7712                 - ObjectCollection.Insert implementation
7713                 
7714         * ListControl.cs
7715                 - Fixes signature
7716         * ListBox.cs:
7717                 - Several fixes
7718                 - ObjectCollection.Insert implementation
7719                 - No selection after clean
7720                 - Small fixes
7721
7722 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
7723
7724         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
7725
7726 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
7727
7728         * Combobox.cs:
7729                 - Caches ItemHeight calculation for OwnerDrawVariable
7730                 - Handles dropdown properly
7731                 - Fixes several minor bugs
7732
7733 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
7734
7735         * ListBox.cs:
7736                 - Fixes 71946 and 71950
7737                 - Fixes changing Multicolumn on the fly
7738                 - Fixes keyboard navigation on Multicolumn listboxes
7739
7740 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
7741         
7742         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
7743         crash reporter log.
7744
7745 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
7746
7747         * XplatUIOSX.cs: Allow applications to actually exit.
7748
7749 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
7750
7751         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
7752         their parent at creation time rather than lazily later.  Fixes a major
7753         regression we were experiencing.
7754
7755 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
7756
7757         * ThemeWin32Classic.cs: more date time picker painting fixes
7758         * DateTimePicker.cs: more monthcalendar drop down fixes
7759         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
7760
7761 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
7762
7763         * ScrollBar.cs:
7764                 - When moving the thumb going outside the control should stop the moving
7765                 - Adds the firing of missing events
7766                 - Fixes no button show if Size is not specified
7767                 - End / Home keys for keyboard navigation
7768
7769 2005-01-30  Peter Bartok  <pbartok@novell.com>
7770
7771         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
7772           sanity check to prevent theoretical loop
7773         * XplatUIWin32.cs (SetVisible): Removed debug output
7774         * XplatUIX11.cs (SystrayChange): Added sanity check
7775         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
7776         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
7777           behaviour, valid until the X11 client window rewrite is done
7778         * TextBox.cs (ctor): Setting proper default foreground and background
7779           colors
7780
7781 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
7782
7783         * Theme: Added DrawDateTimePicker to interface
7784         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
7785         * DateTimePicker.cs: Created (still needs keys and painting code)
7786         * DateTimePickerFormat.cs: added
7787         * MonthCalendar.cs: fixed CreateParams for popup window mode
7788           
7789 2005-01-29  Peter Bartok  <pbartok@novell.com>
7790
7791         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
7792           this should also the calculations for ligher/darker
7793         * Theme.cs: Fixed defaults for ScrollBar widths/heights
7794
7795 2005-01-29  Peter Bartok  <pbartok@novell.com>
7796
7797         * ArrangeDirection.cs: Added
7798         * ArrangeStartingPositon.cs: Added
7799         * SystemInformation.cs: Implemented
7800         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
7801           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
7802           used by SystemInformation class
7803         * X11Strucs.cs: Added XSizeHints structure
7804         * MenuAPI.cs:
7805           - Fixed CreateParams to make sure the menu window is always visible
7806           - TrackPopupMenu: Added check to make sure we don't draw the
7807             menu offscreen
7808
7809 2005-01-29  Peter Bartok  <pbartok@novell.com>
7810
7811         * HandleData.cs: Added method for altering invalid area
7812         * TextBoxBase.cs: Implemented TextLength
7813
7814 2005-01-28  Peter Bartok  <pbartok@novell.com>
7815
7816         * XplatUIX11.cs: Improvement over last patch, not sending
7817           the WM_PAINT directly anymore, instead we scroll any pending
7818           exposed areas and let the system pick out the WM_PAINT later
7819
7820 2005-01-28  Peter Bartok  <pbartok@novell.com>
7821
7822         * SWF.csproj: Deleted, no longer used. Instead,
7823           Managed.Windows.Forms/SWF.csproj should be used
7824         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
7825           directly, to avoid a potential race condition with the next
7826           scroll
7827
7828 2005-01-28  Peter Bartok  <pbartok@novell.com>
7829
7830         * XplatUI.cs: Made class internal
7831
7832 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
7833
7834         * CheckedListBox.cs:
7835                 - Draw focus
7836                 - Fixed Drawing
7837                 - Missing methods and events
7838
7839 2005-01-27  Peter Bartok  <pbartok@novell.com>
7840
7841         * Application.cs (Run): Don't use form if we don't have one
7842
7843 2005-01-27  Peter Bartok  <pbartok@novell.com>
7844
7845         * TextBoxBase.cs (get_Lines): Fixed index off by one error
7846
7847 2005-01-27  Peter Bartok  <pbartok@novell.com>
7848
7849         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
7850         * GridItem.cs: Added; Patch by Jonathan S. Chambers
7851         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
7852         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
7853         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
7854         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
7855         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
7856         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
7857         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
7858         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
7859         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
7860         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
7861
7862 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
7863
7864         * Combobox.cs:
7865                 - Draw focus on Simple Combobox
7866                 - Fixes drawing issues
7867                 - fixes 71834
7868
7869 2005-01-27  Peter Bartok  <pbartok@novell.com>
7870
7871         * Form.cs:
7872           - Place window in default location, instead of hardcoded 0/0
7873           - Send initial LocationChanged event
7874         * Control.cs:
7875           - UpdateBounds after creation to find out where the WM placed us
7876           - Make sure that if the ParentForm changes location the Form
7877             is notified
7878         * XplatUIX11.cs: XGetGeometry will not return the coords relative
7879             to the root, but to whatever the WM placed around us.
7880             Translate to root coordinates before returning toplevel
7881             coordinates
7882         * XplatUIWin32.cs: Removed debug output
7883         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
7884           flag to GetWindowPos, to allow translation of coordinates on X11
7885
7886 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
7887
7888         * ListBox.cs: connect LostFocus Event
7889
7890 2005-01-27  Peter Bartok  <pbartok@novell.com>
7891
7892         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
7893           XplatUIX11.cs: Extended the Systray API
7894         * Form.cs: Removed debug output
7895         * Application.cs: Fixed focus assignment, always need to call
7896           XplatUI.Activate() since Form.Activate() has rules that may
7897           prevent activation
7898         * NotifyIcon.cs: Should be complete now
7899         * ToolTip.cs: Worked around possible timer bug
7900
7901 2005-01-27  Jackson Harper  <jackson@ximian.com>
7902
7903         * TabControl.cs:
7904         - Only invalidate the effected tabs when the
7905         selected index changes. This reduces drawing and gets rid of some
7906         flicker.
7907         - Only refresh if the tabs need to be shifted, otherwise only
7908         invalidate the slider button.
7909         - On windows the tabs are not filled to right if the slider is
7910         visible.
7911         
7912 2005-01-27  Jackson Harper  <jackson@ximian.com>
7913
7914         * TabControl.cs: Only refresh on mouseup if we are showing the
7915         slider. Also only invalidate the button whose state has changed.
7916
7917 2005-01-26  Peter Bartok  <pbartok@novell.com>
7918
7919         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
7920         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
7921           and SystrayRemove() methods
7922         * XplatUIOSX.cs: Stubbed Systray methods
7923         * XplatUIX11.cs:
7924           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
7925             methods
7926           - Fixed broken XChangeProperty calls (marshalling messed up things)
7927         * X11Structs.cs: Added enums and structs required for Size hinting
7928         * NotifyIcon.cs: Added & implemented
7929
7930 2005-01-26  Jackson Harper  <jackson@ximian.com>
7931
7932         * TabControl.cs: Space vertically layed out tabs properly.
7933
7934 2005-01-26  Peter Bartok  <pbartok@novell.com>
7935
7936         * Form.cs (CreateClientParams): Always set the location to 0,0
7937           since we're a child window.
7938
7939         * Control.cs (SetVisibleCore): Always explicitly setting the location
7940           of a toplevel window, apparently X11 doesn't like to move windows
7941           while they're not mapped.
7942
7943 2005-01-26  Jackson Harper  <jackson@ximian.com>
7944
7945         * TabControl.cs: Implement FillToRight size mode with vertically
7946         rendered tabs.
7947
7948 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
7949
7950         * ControlPaint.cs, ThemeWin32Classic.cs
7951                 - Fixes DrawFocusRectangle
7952
7953 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
7954
7955         * MenuAPI.cs:
7956                 - MenuBar tracking only starts when item is first clicked
7957                 - Fixes menu hidding for multiple subitems
7958                 - Unselect item in MenuBar when item Executed
7959                 - Fixes bug 71495
7960
7961 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
7962
7963         * ListControl.cs:
7964                 - IsInputKey for ListBox
7965         * ListBox.cs:
7966                 - Focus item
7967                 - Shift and Control item selection
7968                 - Implement SelectionMode.MultiExtended
7969                 - Fixes RightToLeft
7970         * ComboBox.cs:
7971                 - IsInputKey implemented
7972                 - Do not generate OnTextChangedEdit on internal txt changes
7973                 
7974 2005-01-23  Peter Bartok  <pbartok@novell.com>
7975
7976         * AccessibleObject.cs: Partially implemented Select()
7977         * MonthCalendar.cs: Added missing attributes and events
7978         * Form.cs: Fixed CreateParams behaviour, now controls derived from
7979           form can properly override CreateParams.
7980         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
7981           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
7982           Control performs Invalidate & Update
7983         * NativeWindow (CreateHandle): Added special handling for Form
7984           and Form.FormParent classes to allow overriding of From.CreateParams
7985         * Control.cs:
7986           - ControlNativeWindow: Renamed 'control' variable to more intuitive
7987             name 'owner'
7988           - ControlNativeWindow: Added Owner property
7989           - Removed usage of Refresh() on property changes, changed into
7990             Invalidate(), we need to wait until the queue is processed for
7991             updates, direct calls might cause problems if not all vars for
7992             Paint are initialized
7993           - Added call to UpdateStyles() when creating the window, to set any
7994             styles that CreateWindow might have ignored.
7995           - Added support for Form CreateParent overrides to UpdateStyles()
7996         * MessageBox.cs: Removed no longer needed FormParent override stuff,
7997           CreateParams are now properly overridable
7998         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
7999           CreateParams are now properly overridable
8000
8001 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
8002
8003         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
8004         OnTextBoxChanged.
8005
8006         Capture LostFocus and OnTextBoxChanged.  The later introduces a
8007         recursive invocation that I have not figured out yet.
8008
8009         Reset the timer when not using (it was accumulating).
8010
8011
8012         (OnTextBoxChanged): Set UserEdit to true here to track whether the
8013         user has made changes that require validation.
8014
8015         Reset changing to avoid loops.
8016
8017 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
8018
8019         * NumericUpDown.cs: Display value at startup.
8020
8021         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
8022         ValidateEditText.
8023
8024         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
8025         filled in.  Added some basic parsing of text.
8026
8027         Still missing the OnXXX method overrides, and figuring out the
8028         events that must be emitted.
8029
8030         * UpDownBase.cs: Handle UserEdit on the Text property.
8031         
8032 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
8033
8034         * ComboBox.cs:
8035           - Fixes IntegralHeight
8036           - ToString method
8037
8038 2005-01-21  Jackson Harper  <jackson@ximian.com>
8039
8040         * TabControl.cs: Set the SelectedIndex property when SelectedTab
8041         is set so that the page visibility is updated and the tabs are
8042         sized correctly.
8043
8044 2005-01-21  Jackson Harper  <jackson@ximian.com>
8045
8046         * TabControl.cs: Use cliping rectangle for blitting. Give the
8047         theme the clipping rect so we can do clipping while
8048         drawing. Remove some debug code.
8049
8050 2005-01-21  Jackson Harper  <jackson@ximian.com>
8051
8052         * TabPage.cs: Add a new method so tab pages can force the tab
8053         control to recalculate the tab page sizes.
8054         * TabControl.cs: UpdateOwner needs to make the tab control recalc
8055         sizes.
8056
8057 2005-01-20  Jackson Harper  <jackson@ximian.com>
8058
8059         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
8060
8061 2005-01-20  Jackson Harper  <jackson@ximian.com>
8062
8063         * TreeView.cs: Set the bounds for nodes properly. They were
8064         getting screwed up when checkboxes were not enabled, but images
8065         were.
8066
8067 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
8068
8069         * ListBox.cs:
8070                 - Owner draw support
8071                 - Fixes
8072                 
8073 2005-01-20  Jackson Harper  <jackson@ximian.com>
8074
8075         * XplatUIStructs.cs: More misc keys
8076         * X11Keyboard.cs: Ignore some control keys.
8077
8078 2005-01-20  Jackson Harper  <jackson@ximian.com>
8079
8080         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
8081         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
8082
8083 2005-01-19  Peter Bartok  <pbartok@novell.com>
8084
8085         * Control.cs: Un-selecting the control when it is loosing focus
8086
8087 2005-01-19  Jackson Harper  <jackson@ximian.com>
8088
8089         * TreeView.cs: Hook up to the text controls leave event so we can
8090         end editing when the users clicks outside the text box.
8091         
8092 2005-01-19  Jackson Harper  <jackson@ximian.com>
8093
8094         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
8095         get set in the conversion array.
8096
8097 2005-01-19  Peter Bartok  <pbartok@novell.com>
8098
8099         * Application.cs (ModalRun): Added a call to CreateControl to ensure
8100           focus is properly set
8101         * Button.cs:
8102           - Added missing attributes
8103           - removed styles, those are already set in the base class
8104         * ButtonBase.cs:
8105           - Added missing attributes
8106           - Added clip window styles
8107         * CheckBox.cs: Added missing attributes
8108         * CommonDialog.cs:
8109           - FormParentWindow.CreateParams: Added required clip styles
8110         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
8111           also filters modifier keys
8112         * MessageBox.cs:
8113           - Added assignment of Accept and Cancel button to enable Enter
8114             and Esc keys in MessageBox dialogs
8115           - FormParentWindow.CreateParams: Added required clip styles
8116         * RadioButton.cs: Added missing attributes
8117         * TextControl.cs: No longer draws selection if control does not
8118           have focus
8119         * TextBoxBase.cs:
8120           - Now draws simple rectangle around test area to make it obvious
8121             there's a control. This is a hack until we properly support borders
8122           - A few simple fixes to support selections better, now erases selected
8123             text when typing, and resets selection when using movement keys
8124
8125 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
8126
8127         * UpDownBase.cs: Added some new properties.
8128
8129         * DomainUpDown.cs: Implement a lot to get my test working.
8130
8131 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
8132
8133         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
8134
8135 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
8136
8137         * OSXStructs (WindowAttributes): Fixed csc complaints
8138
8139 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
8140
8141         * XplayUIOSX.cs:
8142           OSXStructs.cs: Initial refactor to move enums and consts into
8143           OSXStructs and use them in the driver for greater readability.
8144
8145 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
8146
8147         * XplatUIOSX.cs: Initial support for Standard Cursors.
8148         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
8149
8150 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
8151
8152         * ComboBox.cs: ability to change style when the ctrl is already
8153         created, missing methods and events, bug fixes, signature fixes
8154
8155 2005-01-19  Peter Bartok  <pbartok@novell.com>
8156
8157         * Cursors.cs (ctor): Added ctor to fix signature
8158
8159 2005-01-18  Peter Bartok  <pbartok@novell.com>
8160
8161         * Button.cs: Implemented DoubleClick event
8162         * ButtonBase.cs:
8163           - Fixed keyboard handling to behave like MS, where the press of
8164             Spacebar is equivalent to a mousedown, and the key release is
8165             equivalent to mouseup. Now a spacebar push will give the same
8166             visual feedback like a mouse click.
8167           - Added missing attributes
8168           - Added ImeModeChanged event
8169           - Added support for generating DoubleClick event for derived classes
8170         * CheckBox.cs:
8171           - Implemented DoubleClick event
8172           - Added missing attributes
8173         * CommonDialog.cs: Added missing attribute
8174         * ContextMenu.cs: Added missing attributes
8175         * RadioButton.cs:
8176           - AutoChecked buttons do not allow to be unselected when clicked
8177             (otherwise we might end up with no selected buttons in a group)
8178           - Added missing attributes
8179           - Implemented DoubleClickEvent
8180         * ThreadExceptionDialog.cs: Enabled TextBox code
8181
8182 2005-01-18  Peter Bartok  <pbartok@novell.com>
8183
8184         * Form.cs: Removed debug output
8185         * Button.cs: Added support for DoubleClick method
8186
8187 2005-01-18  Peter Bartok  <pbartok@novell.com>
8188
8189         * Form.cs:
8190           - Added method to parent window that allows triggering size
8191             calculations when a menu is added/removed
8192           - set_Menu: Cleaned up mess from early days of Form and Control,
8193             now properly triggers a recalc when a menu is added/removed
8194           - Added case to select form itself as focused form if no child
8195             controls exist
8196           - Added PerformLayout call when showing dialog, to ensure properly
8197             placed controls
8198         * Control.cs:
8199           - Select(): Made internal so Form can access it
8200           - Focus(): Only call Xplat layer if required (avoids loop), and sets
8201             status
8202         * Application.cs (Run): Removed hack and calls PerformLayout instead
8203           to trigger calculation when Form becomes visible
8204
8205 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
8206
8207         * ComboBox.cs: fixes for ownerdraw
8208
8209 2005-01-18  Peter Bartok  <pbartok@novell.com>
8210
8211         * TextControl.cs:
8212           - Sentinel is no longer static, each Document gets it's own, this
8213             avoids locking or alternatively overwrite problems when more
8214             than one text control is used simultaneously.
8215           - Switched to use Hilight and HilightText brushes for text selection
8216
8217         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
8218
8219 2005-01-18  Peter Bartok  <pbartok@novell.com>
8220
8221         * Control.cs:
8222           - Hooked up the following events:
8223                 o ControlAdded
8224                 o ControlRemoved
8225                 o HandleDestroyed
8226                 o ImeModeChanged
8227                 o ParentChanged
8228                 o TabStopChanged
8229                 o Invalidated
8230                 o SystemColorsChanged
8231                 o ParentFontChanged
8232                 o Move
8233           - Removed debug output
8234           - Added a call to the current theme's ResetDefaults when a color change
8235             is detected
8236         * Form.cs: Now setting the proper ImeMode
8237         * Theme.cs: Defined a method to force recreation of cached resources
8238           and rereading of system defaults (ResetDefaults())
8239         * ThemeWin32Classic.cs: Added ResetDefaults() stub
8240
8241 2005-01-17  Peter Bartok  <pbartok@novell.com>
8242
8243         * Control.cs: Added missing attributes
8244
8245 2005-01-17  Jackson Harper  <jackson@ximian.com>
8246
8247         * TreeNode.cs: Implement editing. Add missing properties selected
8248         and visible.
8249         * TreeView.cs: Implement node editing. Also some fixes to use
8250         Invalidate (invalid area) instead of Refresh when selecting.
8251
8252 2005-01-17  Peter Bartok  <pbartok@novell.com>
8253
8254         * Control.cs:
8255           - Implemented InvokeGotFocus() method
8256           - Implemented InvokeLostFocus() method
8257           - Implemented InvokePaint() method
8258           - Implemented InvokePaintBackground() method
8259           - Implemented InvokeClick() method
8260           - Implemented FindForm() method
8261           - Implemented RectangleToClient() method
8262           - Implemented ClientToRectangle() method
8263           - Implemented ResetBackColor() method
8264           - Implemented ResetCursor() method
8265           - Implemented ResetFont() method
8266           - Implemented ResteForeColor() method
8267           - Implemented ResetImeMode() method
8268           - Implemented ResetLeftToRight() method
8269           - Implemented ResetText() method
8270           - Implemented Scale() methods
8271           - Implemented ScaleCore() method
8272           - Implemented Update() method
8273           - Removed unused variables
8274           - Stubbed AccessibilityNotifyClients and
8275             ControlAccessibleObject.NotifyClients() methods (dunno what to do
8276             with those yet)
8277           - Now setting proper default for RightToLeft property
8278           - Fixed bug in SetClientSizeCore that would cause windows to get
8279             really big
8280           - Now sending Click/DoubleClick events
8281           - Now selecting controls when left mouse button is clicked on
8282             selectable control
8283         * AccessibleEvents.cs: Added
8284         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
8285         * XplatUIOSX.cs: Stubbed UpdateWindow() method
8286         * XplatUIWin32.cs: Implemented UpdateWindow() method
8287         * XplatUIX11.cs: Implemented UpdateWindow() method
8288         * Form.cs: Removed stray semicolon causing CS0162 warning
8289         * ThemeWin32Classic.cs: Fixed unused variable warnings
8290         * ScrollableControl.cs: Now calls base method for ScaleCore
8291         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
8292           style to avoid interference with internal click handler (which is
8293           different than standard Control click handling)
8294         * RadioButton.cs:
8295           - Now unchecks all sibling radio buttons when control is
8296             selected (Fixes #68756)
8297           - Removed internal tabstop variable, using the one inherited from
8298             Control
8299
8300 2005-01-17  Jackson Harper  <jackson@ximian.com>
8301
8302         * NavigateEventArgs.cs: Fix base type.
8303         * LinkLabel.cs: Sig fix
8304         
8305 2005-01-17  Jackson Harper  <jackson@ximian.com>
8306
8307         * TreeView.cs: Only invalidate the effected nodes bounds when
8308         selecting nodes.
8309
8310 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
8311
8312         * XplatUIWin32.cs: fixes Win32 marshaling
8313         * XplatUIX11.cs: fixes method signature
8314
8315 2005-01-17  Peter Bartok  <pbartok@novell.com>
8316
8317         * XplatUIX11.cs: Clean up resources when we no longer need them
8318
8319 2005-01-17  Peter Bartok  <pbartok@novell.com>
8320
8321         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
8322           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
8323           and DestroyCursor() methods.
8324         * Cursor.cs: Partially implemented, now supports standard cursors;
8325           still contains some debug code
8326         * Cursors.cs: Implemented class
8327         * Control.cs:
8328           - WndProc(): Added handling of WM_SETCURSOR message, setting the
8329             appropriate cursor
8330           - Implemented Cursor property
8331           - Replaced break; with return; more straightforwar and possibly
8332             faster
8333           - Now properly setting the result for WM_HELP
8334         * X11Structs.cs: Added CursorFontShape enum
8335         * XplatUIStructs.cs:
8336           - Added StdCursor enum (to support DefineStdCursor() method)
8337           - Added HitTest enum (to support sending WM_SETCURSOR message)
8338         * XplatUIX11.cs:
8339           - Now sends the WM_SETCURSOR message
8340           - Implemented new cursor methods
8341         * XplatUIOSX.cs: Stubbed new cursor methods
8342         * XplatUIWin32.cs:
8343           - Implemented new cursor methods
8344           - Added GetSystemMetrics function and associated enumeration
8345
8346 2005-01-15  Peter Bartok  <pbartok@novell.com>
8347
8348         * Control.cs:
8349           - WndProc(): Now handles EnableNotifyMessage
8350           - SelectNextControl(): Fixed bug where if no child or sibling
8351             controls exist we looped endlessly
8352
8353 2005-01-14  Jackson Harper  <jackson@ximian.com>
8354
8355         * TreeView.cs: Recalculate the tab pages when a new one is added
8356         so that the proper bounding rects are created.
8357
8358 2005-01-14  Jackson Harper  <jackson@ximian.com>
8359
8360         * TreeView.cs: Draw a gray box instead of a grip in the lower
8361         right hand corner when there are both horizontal and vertical
8362         scroll bars.
8363
8364 2005-01-14  Jackson Harper  <jackson@ximian.com>
8365
8366         * Control.cs: When erasing backgrounds use FromHwnd instead of
8367         FromHdc when there is a NULL wparam. This occurs on the X driver.
8368         * XplatUIX11.cs: Set the wparam to NULL.
8369
8370 2005-01-13  Jackson Harper  <jackson@ximian.com>
8371
8372         * PictureBox.cs: Implement missing methods (except ToString, need
8373         to test that on windows) and events. When visibility is changed we
8374         need to redraw the image because the buffers are killed. When size
8375         is changed refresh if the sizemode needs it.
8376
8377 2005-01-13  Peter Bartok  <pbartok@novell.com>
8378
8379         * Control.cs (SelectNextControl): Was using wrong method to select
8380           a control
8381
8382 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
8383
8384         * ComboBox.cs: fixes dropstyle
8385
8386 2005-01-13  Peter Bartok  <pbartok@novell.com>
8387
8388         * Form.cs:
8389           - Implemented Select() override
8390           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
8391           - Now sets keyboard focus on startup
8392         * Control.cs (SelectNextControl): Now properly handles directed=true
8393         * TextBoxBase.cs:
8394           - WndProc: Now passes tab key on to base if AcceptTabChar=false
8395           - Added (really bad) focus rectangle (mostly for testing)
8396         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
8397           to enforce redraw on focus changes
8398         * ContainerControl.cs:
8399           - Fixed detection of Shift-Tab key presses
8400           - Fixed traversal with arrow keys
8401         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
8402           gonna keep this or if it's complete yet
8403         
8404 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
8405
8406         * ComboBox.cs: missing properties, fixes
8407
8408 2005-01-13  Peter Bartok  <pbartok@novell.com>
8409
8410         * Panel.cs (ctor): Setting Selectable window style to off
8411         * Splitter.cs (ctor): Setting Selectable window style to off
8412         * GroupBox.cs (ctor): Setting Selectable window style to off
8413         * Label.cs (ctor): Setting Selectable window style to off
8414
8415 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
8416
8417         * UpDownBase.cs (InitTimer): If the timer has been already
8418         created, enable it.
8419
8420         Use a TextBox instead of a Label.
8421
8422 2005-01-12  Jackson Harper  <jackson@ximian.com>
8423
8424         * TreeView.cs: Refresh the tree after sorting the nodes. Always
8425         draw the connecting node lines (when ShowLines is true).
8426         * TreeNode.cs: The nodes index can now be updated. This is used
8427         when a node collection is sorted.
8428         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
8429         insert or an existing unsorted node collection can be sorted.
8430         
8431 2005-01-12  Peter Bartok  <pbartok@novell.com>
8432
8433         * ContainerControl.cs: Implemented ProcessDialogKeys()
8434
8435 2005-01-12  Peter Bartok  <pbartok@novell.com>
8436
8437         * Control.cs:
8438           - Implemented SelectNextControl() method
8439           - Several focus related bug fixes
8440           - Fixed Docking calculations to match MS documentation and
8441             behaviour
8442
8443 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
8444
8445         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
8446         bug fixes
8447
8448 2005-01-12  Peter Bartok  <pbartok@novell.com>
8449
8450         * Control.cs:
8451           - Fixed broken Contains() method
8452           - Implemented GetNextControl() method. Finally. This is the pre-
8453             requisite for focus handling.
8454
8455 2005-01-12  Peter Bartok  <pbartok@novell.com>
8456
8457         * OSXStrucs.cs: Added
8458
8459 2005-01-12  Peter Bartok  <pbartok@novell.com>
8460
8461         * XplatUIWin32.cs:
8462           - Removed PeekMessageFlags
8463           - Implemented SetWindowStyle() method
8464         * XplatUIStructs.cs: Added PeekMessageFlags
8465         * X11Structs: Added missing border_width field to XWindowChanges struct
8466         * XplatUIX11.cs:
8467           - PeekMessage: Now throws exception if flags which are not yet
8468             supported are passed
8469           - Implemented SetWindowStyle() method
8470           - Fixed SetZOrder to handle AfterHwnd properly
8471         * XplatUI.cs: Added SetWindowStyle() method
8472         * XplatUIDriver.cs: Added SetWindowStyle() abstract
8473         * Control.cs:
8474           - Implemented UpdateStyles() method
8475           - Implemented UpdateZOrder() method
8476         * XplatUIOSX.cs: Added SetWindowStyle() stub
8477
8478 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
8479
8480         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
8481         button mouse).
8482
8483
8484 2005-01-11  Jackson Harper  <jackson@ximian.com>
8485
8486         * TreeView.cs: Still need to draw lines to siblings even if out of
8487         the current node is out of the clip.
8488
8489 2005-01-11  Jackson Harper  <jackson@ximian.com>
8490
8491         * TreeView.cs: When setting the hbar/vbar/grip position use
8492         SetBounds so that perform layout is only called once. Also suspend
8493         and resume layout so layout is only done once for all controls.
8494         - Removed some debug fluff
8495         * SizeGrip.cs: Call base implmentation in overriding methods.
8496         - When visibility is changed the drawing buffers are killed so we
8497         need to redraw.
8498
8499 2005-01-11  Jackson Harper  <jackson@ximian.com>
8500
8501         * TreeView.cs: Calculate the open node count while drawing. This
8502         saves us an entire tree traversal for every paint operation. Use
8503         a member var for the open node count so less vars are passed around.
8504
8505 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
8506
8507         * MonthCalendar.cs:
8508         - fixed selection to use mousemove, not mouse polling on timer
8509         * ThemeWin32Classic.cs
8510         - removed redundant unused variable "no_more_content"
8511         
8512 2005-01-11  Peter Bartok  <pbartok@novell.com>
8513
8514         * XplatUIX11.cs (DoEvents): Needs to return when no more events
8515           are pending, so it now calls PeekMessage instead of GetMessage;
8516           implemented a incomplete version of PeekMessage
8517         
8518 2005-01-11  Peter Bartok  <pbartok@novell.com>
8519
8520         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
8521           I18n issues
8522         * TextBoxBase.cs: Added sending of TextChanged event
8523
8524 2005-01-10  Jackson Harper  <jackson@ximian.com>
8525
8526         * TreeView.cs: Try not to draw outside the clipping rectangle on
8527         each node element.
8528
8529 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
8530
8531         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
8532
8533 2005-01-10  Jackson Harper  <jackson@ximian.com>
8534
8535         * TreeView.cs:
8536         - Implement fast scrolling. Now only the newly
8537         exposed nodes are drawn and the old image is moved using the
8538         XplatUI::ScrollWindow method.
8539         - Factor in height of nodes when calculating whether or not the
8540         node is in the clipping rect.
8541
8542 2005-01-10  Jackson Harper  <jackson@ximian.com>
8543
8544         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
8545
8546 2005-01-10  Peter Bartok  <pbartok@novell.com>
8547
8548         * Application.cs: Added temporary hack to resolve all our resize
8549           required issues on startup. This will get fixed properly at
8550           some point in the future
8551
8552 2005-01-10  Jackson Harper  <jackson@ximian.com>
8553
8554         * SizeGrip.cs: New internal class that is used as a sizing
8555         grip control...hence the name.
8556
8557 2005-01-10  Peter Bartok  <pbartok@novell.com>
8558
8559         * Control.cs: Implemented proper TabIndex handling, now assigning
8560           a tabindex when a control is added to a container
8561         * GroupBox.cs (ctor): Now sets the Container style bit, required
8562           for Control.GetNextControl()
8563
8564 2005-01-09  Jackson Harper  <jackson@ximian.com>
8565
8566         * TextBoxBase.cs: Clear window when scrolling (fixes build).
8567
8568 2005-01-09  Peter Bartok <pbartok@novell.com>
8569
8570         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
8571           XplatUIX11.cs: Added ability to control ScrollWindow expose and
8572           an overload for ScrollWindow to allow only scrolling a rectangle
8573
8574 2005-01-09  Peter Bartok <pbartok@novell.com>
8575
8576         * Form.cs:
8577           - Implemented SetDesktopBounds method
8578           - Implemented SetDesktopLocation method
8579
8580 2005-01-08  Jackson Harper  <jackson@ximian.com>
8581
8582         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
8583         the node count has changed, this removes to VScroll::Refresh calls
8584         when drawing.
8585
8586 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
8587
8588         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
8589
8590 2005-01-07  Jackson Harper  <jackson@ximian.com>
8591
8592         * TreeNode.cs: Just update the single node when it is
8593         checked. Don't refresh after toggling, the Expand/Collapse already
8594         handles this.
8595         * TreeView.cs: Respect clipping a little more when drawing. Try
8596         not to redraw things that don't need to be redrawn. Just hide the
8597         scrollbars when they are no longer needed instead of removing
8598         them, so they don't have to be created again and again.
8599         
8600 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
8601
8602         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
8603         coordinates to window space to place the caret properly, FIXED.
8604         Implement GetWindowState & SetWindowState
8605
8606 2005-01-06  Peter Bartok <pbartok@novell.com>
8607
8608         * Form.cs:
8609           - Implemented ClientSize property
8610           - Implemented DesktopBounds property
8611           - Implemented DesktopLocation property
8612           - Implemented IsRestrictedWindow property
8613           - Implemented Size property
8614           - Implemented TopLevel property
8615           - Implemented FormWindowState property
8616         * Control.cs:
8617           - Implemented GetTopLevel() method
8618           - Implemented SetTopLevel() method
8619         * X11Structs.cs (Atom):
8620           - Added AnyPropertyType definition
8621           - Added MapState definiton and updated XWindowAttribute struct
8622         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
8623         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
8624         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
8625         * XplatUIWin32.cs:
8626           - Implemented GetWindowState() and SetWindowState() methods
8627           - Fixed Win32GetWindowLong return type
8628         * XplatUIX11.cs:
8629           - Introduced central function for sending NET_WM messages
8630           - Implemented GetWindowState() and SetWindowState() methods
8631         * TextBoxBase.cs (set_Lines):
8632           - Now uses Foreground color for text added via Text property (Duh!)
8633           - Added code to remember programmatically requested size (fixes
8634             behaviour when Multiline is set after Size)
8635           - Added AutoSize logic
8636
8637 2005-01-06  Jackson Harper  <jackson@ximian.com>
8638
8639         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
8640
8641 2005-01-06  Jackson Harper  <jackson@ximian.com>
8642
8643         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
8644         set to less then 0.
8645
8646 2005-01-06  Jackson Harper  <jackson@ximian.com>
8647
8648         * ScrollableControl.cs: Lazy init the scrollbars.
8649         
8650 2005-01-06  Jackson Harper  <jackson@ximian.com>
8651
8652         * Theme.cs: Speed up getting pens and solid brushes, by using
8653         their ARGB as a hash instead of tostring and not calling Contains.
8654
8655 2005-01-06  Peter Bartok <pbartok@novell.com>
8656
8657         * Form.cs:
8658           - Implemented OnActivated and OnDeactivate event trigger
8659           - Implemented Activate() method
8660           - Fixed ShowDialog() to activate the form that was active before
8661             the dialog was shown
8662         * XplatUIX11.cs:
8663           - Added global active_window var that tracks the currently active
8664             X11 window
8665           - Now always grabs Property changes from the root window to always
8666             catch changes on the active window property
8667           - Added code to PropertyNotify handler to send Active/Inactive
8668             messages when state changes. This puts X11 and Win32 en par on
8669             WM_ACTIVATE notifications (except for double notifications when
8670             the user clicks away from our modal window to another one of our
8671             windows)
8672
8673 2005-01-05  Jackson Harper  <jackson@ximian.com>
8674
8675         * ImageList.cs: Implment ctor
8676
8677 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
8678
8679         * XplatUIOSX.cs: Implement Activate/SetTopmost
8680
8681 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
8682
8683         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
8684
8685 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
8686
8687         * XplatUIOSX.cs: Implement GetActive/SetFocus.
8688
8689 2005-01-05  Peter Bartok <pbartok@novell.com>
8690
8691         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
8692           XplatUIOSX.cs: Added GetActive method to return the currently
8693           active window for the application (or null, if none is active)
8694         * Form.cs:
8695           - Implemented ActiveForm
8696           - Commented out owner assignment for modal dialogs (causes problems
8697             on Win32, since the owner will be disabled)
8698           - Reworked some Active/Focus handling (still incomplete)
8699         * CommonDialog.cs: Commented out owner assignment for modal dialogs
8700           (causes problems on Win32, since the owner will be disabled)
8701         * IWin32Window: Added ComVisible attribute
8702
8703 2005-01-05  Peter Bartok <pbartok@novell.com>
8704
8705         * ToolTip.cs (WndProc): Enable setting focus now that we have the
8706           required XplatUI functions.
8707
8708 2005-01-05  Peter Bartok <pbartok@novell.com>
8709
8710         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
8711           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
8712           to implement focus and activation handling; still incomplete and
8713           with debug output
8714
8715 2005-01-04  Peter Bartok <pbartok@novell.com>
8716
8717         * TextBoxBase.cs: Changed access level for Document property to
8718           match switch to internal for TextControl
8719
8720 2005-01-04  Peter Bartok <pbartok@novell.com>
8721
8722         * AccessibleObject: Added ComVisible attribute
8723
8724 2005-01-04  Jackson Harper  <jackson@ximian.com>
8725
8726         * X11Keyboard.cs: Remove unneeded var.
8727
8728 2005-01-04  Jackson Harper  <jackson@ximian.com>
8729
8730         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
8731         but PAINT.
8732         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
8733         ClientMessage. This makes apps exit cleanly (more often).
8734         
8735 2005-01-04  Jackson Harper  <jackson@ximian.com>
8736
8737         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
8738         handling focus, return correct colors and fonts,
8739         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
8740         handle selection, horizontal scrolling, and mouse interaction.
8741
8742 2005-01-04  Peter Bartok <pbartok@novell.com>
8743
8744         * ICommandExecutor.cs: Added
8745         * IDataGridColumnStyleEditingNotificationService.cs: Added
8746         * IFeatureSupport.cs: Added
8747         * IFileReaderService.cs: Added
8748         * IDataObject.cs: Added ComVisible attribute
8749         * AmbientProperties.cs: Added
8750         * BaseCollection.cs: Added missing attributes
8751         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
8752         * BaseCollection.cs: Added missing attributes
8753         * Binding.cs: Added TypeConverter attribute
8754         * BindingContext.cs: Added DefaultEvent attribute
8755         * BindingsCollection.cs: Added DefaultEvent attribute
8756         * Button.cs: Added DefaultValue attribute
8757         * DragEventArgs.cs: Added ComVisible attribute
8758         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
8759         * KeyEventArgs.cs: Added ComVisible attribute
8760         * KeyPressEventArgs.cs: Added ComVisible attribute
8761         * MouseEventArgs.cs: Added ComVisible attribute
8762         * NavigateEventArgs.cs: Added
8763         * NavigateEventHandler.cs: Added
8764         * FeatureSupport.cs: Added
8765         * OSFeature.cs: Added
8766         * Theme.cs: Added abstract Version property to support OSFeature
8767         * ThemeWin32Classic.cs: Added Version property to
8768           support OSFeature.Themes
8769         * ProgressBar.cs: Removed OnPaintBackground override, not required since
8770           the proper styles to avoid background drawing are set, also doesn't
8771           match MS signature
8772         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
8773         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
8774         * ScrollEventArgs.cs: Added ComVisible attribute
8775         * SplitterEventArgs.cs: Added ComVisible attribute
8776         * AccessibleSelection.cs: Added Flags attribute
8777         * Appearance.cs: Added ComVisible attribute
8778         * Border3DSide.cs: Added ComVisible attribute
8779         * Border3DStyle.cs: Added ComVisible attribute
8780         * BorderStyle.cs: Added ComVisible attribute
8781         * DragAction.cs: Added ComVisible attribute
8782         * ErrorBlinkStyle.cs: Added
8783         * ScrollEventType.cs: Added ComVisible attribute
8784         * AnchorStyles.cs: Added Editor attribute
8785         * DockStyle.cs: Added Editor attribute
8786         * HorizontalAlignment.cs: Added ComVisible attribute
8787         * HelpEventArgs.cs: Added ComVisible attribute
8788         * PaintEventArgs.cs: Added IDisposable
8789
8790 2005-01-04  Peter Bartok <pbartok@novell.com>
8791
8792         * TextControl.cs: Switched Line, LineTag and Document classes to
8793           internal
8794
8795 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
8796
8797         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
8798         Simple mode, fixes, IntegralHeight, etc.
8799
8800 2005-01-04  Peter Bartok <pbartok@novell.com>
8801
8802         * TextBoxBase.cs: Using proper font variable now
8803
8804 2005-01-04  Peter Bartok <pbartok@novell.com>
8805
8806         * Form.cs (ShowDialog): Set parent to owner, if provided
8807         * GroupBox.cs: Removed unused vars
8808         * TextControl.cs:
8809           - Added GetHashCode() for Document and LineTag classes
8810           - Removed unused variables
8811           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
8812             to allow translation between continuous char position and line/pos
8813         * CheckBox.cs: Removed vars that are provided by base class
8814         * RadioButton.cs: Removed vars that are provided by base class, added
8815           new keyword where required
8816         * LinkLabel.cs: Added new keyword where required
8817         * Control.cs (WndProc): Removed unused variable
8818         * TextBoxBase.cs:
8819           - Finished SelectionLength property
8820           - Implemented SelectionStart property
8821           - Implemented Text property
8822           - Removed unused vars
8823         * MessageBox.cs: Added new keyword where required
8824         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
8825           WndProc signature
8826         * MenuAPI.cs: Added new keyword where required
8827         * ButtonBase.cs: Removed vars that are provided by base class, added
8828           new keyword where required
8829         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
8830           argument to double, to allow compiling with csc 2.0 (Atsushi ran
8831           into this)
8832         * Application.cs (Run): Now triggers the ThreadExit event
8833         * CommonDialog.cs: Added new keyword where required; now properly sets
8834           parent (owner) for dialog
8835         * XplatUIX11.cs: Commented out unused vars
8836         * StatusBar.cs: Fixed signature for Text property
8837         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
8838
8839 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
8840
8841         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
8842         TrackBar.cs, MonthCalendar.cs: remove unused vars
8843
8844 2005-01-03  Jackson Harper  <jackson@ximian.com>
8845
8846         * ThemeWin32Classic.cs:
8847         * X11Keyboard.cs: Remove unused vars.
8848
8849 2005-01-03  Peter Bartok  <pbartok@novell.com>
8850
8851         * TextBox.cs:
8852           - set_Text: Tied into TextControl
8853           - set_TextAlignment: Tied into TextControl
8854         * TextControl.cs:
8855           - Added alignment properties and implemented alignment handling
8856             and drawing (still has a bug, not generating proper expose events)
8857           - Added new Line() constructor to allow passing the line alignment
8858           - Fixed selection setting, properly handling end<start now
8859           - Added aligment considerations to RecalculateDocument()
8860         * TextBoxBase.cs:
8861           - Now properly enforces control height for single line controls
8862           - Added support for CharacterCasing
8863           - Added IsInputKey override
8864           - Fixed Keys.Enter logic
8865           - Added SetBoundsCore override
8866           - Fixed mouse selection handling
8867
8868 2005-01-03  Jackson Harper  <jackson@ximian.com>
8869
8870         * TreeView.cs:
8871           - Collapse and uncheck all nodes when CheckBoxes is disabled.
8872           - Checkboxes are always aligned to the bottom of the node,
8873           regardless of item height.
8874           - Use the node bounds to draw the text so we can center it when
8875           the item height is greater then the font height.
8876           - Node::Bounds are only the text part of the node.
8877         * TreeNode.cs: New method to combine collapsing and unchecking all
8878           nodes recursively.
8879
8880 2005-01-02  Jackson Harper  <jackson@ximian.com>
8881
8882         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
8883         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
8884         tree when a check is changed. TODO: Only refresh the checked node.
8885
8886 2004-12-30  Jackson Harper  <jackson@ximian.com>
8887
8888         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
8889         * TreeNode.cs: When collapsing make sure to never collapse the
8890         root node.
8891
8892 2004-12-29  Jackson Harper  <jackson@ximian.com>
8893
8894         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
8895         
8896 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
8897
8898         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
8899
8900 2004-12-28  Peter Bartok  <pbartok@novell.com>
8901
8902         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
8903           not yet assigned
8904
8905 2004-12-28  Peter Bartok  <pbartok@novell.com>
8906
8907         * Control.cs (WndProc): Added WM_HELP handler, now generates
8908           HelpRequested event
8909         * Form.cs: Added HelpButton property and required support code
8910         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
8911
8912 2004-12-28  Peter Bartok  <pbartok@novell.com>
8913
8914         * CommonDialog.cs:
8915           - Made DialogForm.owner variable internal
8916           - Added check to ensure owner form is set before setting
8917             owner properties in CreateParams
8918
8919 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
8920
8921         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
8922           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
8923           GetCursorPos.  Fix major visibility issues.  Rework the windowing
8924           system to support borderless/titleless windows (implements menus).
8925           Fix GetWindowPos.  Implement initial background color support for
8926           views.
8927
8928 2004-12-28  Peter Bartok  <pbartok@novell.com>
8929
8930         * Form.cs (get_CreateParams): Make sure we have an owner before using
8931           the owner variable. Implement proper default if no owner exists
8932
8933 2004-12-28  Peter Bartok  <pbartok@novell.com>
8934
8935         * In preparation for making Managed.Windows.Forms the default build target
8936           for System.Windows.Forms, the following stubbed files were added.
8937           Dialogs are currently being implemented by contributors and are only
8938           short-term place holders.
8939         * ColorDialog.cs: Initial check-in (minmal stub)
8940         * DataGrid.cs: Initial check-in (minimal stub)
8941         * DataGridLineStyle.cs: Initial check-in (minimal stub)
8942         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
8943         * DataGridTableStyle.cs: Initial check-in (minimal stub)
8944         * FontDialog.cs: Initial check-in (minimal stub)
8945         * FileDialog.cs: Initial check-in (minimal stub)
8946         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
8947         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
8948         * OpenFileDialog: Initial check-in (minimal stub)
8949         * IComponentEditorPageSite.cs: Initial check-in
8950         * Splitter.cs: Initial check-in (for Jackson)
8951         * SplitterEventArgs.cs: Initial check-in (for Jackson)
8952         * SplitterEventHandler.cs: Initial check-in (for Jackson)
8953         * TextBox.cs: Initial check-in; still needs some wiring to
8954           TextControl backend
8955         * Form.cs: Implemented ControlBox property
8956         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
8957         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
8958         * TextControl.cs: Added selection functionality; added todo header
8959         * TextBoxBase.cs:
8960           - Implemented Lines property
8961           - Implemented TextHeight property
8962           - Implemented SelectedText property
8963           - Implemented SelectionLength property
8964           - Implemented SelectAll method
8965           - Implemented ToString method
8966           - Removed and cleaned up some debug code
8967           - Implemented (still buggy) mouse text selection
8968
8969 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
8970
8971         * ComboBox.cs: Complete DropDownList implementation, fixes.
8972
8973 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
8974
8975         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
8976         * ComboBoxStyle.cs: ComboBoxStyle enum
8977         * ComboBox.cs: Initial work on ComboBox control
8978
8979 2004-12-21  Peter Bartok  <pbartok@novell.com>
8980
8981         * Control.cs (ctor, CreateParams): Moved setting of is_visible
8982           forward so that anything that creates a window gets the default,
8983           also no longer uses Visible property in CreateParams to avoid
8984           walking up the parent chain and possibly get the wrong visible
8985           status. Fixed IsVisible to no longer walk up to the parent.
8986
8987 2004-12-21  Peter Bartok  <pbartok@novell.com>
8988
8989         * Form.cs (ShowDialog): Unset modality for the proper window
8990  
8991 2004-12-20  Peter Bartok  <pbartok@novell.com>
8992
8993         * CommonDialog.cs: Initial check-in
8994
8995 2004-12-20  Peter Bartok  <pbartok@novell.com>
8996
8997         * Control.cs (Visible): Now uses the parent window instead of the
8998           client area window for the property
8999
9000         * Form.cs
9001           - ShowDialog(): Now uses the proper window for modality
9002           - The default visibility state for the form parent is now false. This
9003             will prevent the user from seeing all the changes to the form and
9004             its controls before the application hits Application.Run()
9005           - Removed some stale commented out code
9006
9007         * NativeWindow.cs:
9008           - Added FindWindow() method to have a method to check for existence
9009             of a window handle
9010           - Added ability to override default exception handling (for example
9011             when debugging with VS.Net; to do this the ExternalExceptionHandler
9012             define must be set
9013           - Removed some useless debug output
9014
9015         * XplatUIX11.cs:
9016           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
9017             not working as expected
9018           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
9019             property to allow switching back to the modal window if focus is
9020             given to another one of our windows (Application Modal)
9021           - Now only sets override_redirect if we create a window
9022             without WS_CAPTION
9023           - Moved EventMask selection before mapping of newly created window
9024             so we can catch the map event as well
9025           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
9026           - Added various Atom related DllImports
9027           - Implemented Exit() method
9028           - .ctor() : No longer shows window if WS_VISIBLE is not defined
9029             in the CreateParams
9030
9031         * MessageBox.cs: Now properly deals with the FormParent window by
9032           providing an override the FormParent CreateParams property to
9033           set as POPUP instead of OVERLAPPED window.
9034
9035 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
9036
9037         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
9038         Minor code cleanup.
9039
9040 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
9041         
9042         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
9043
9044 2004-12-18  Peter Bartok  <pbartok@novell.com>
9045
9046         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
9047           implementing SetModal() method
9048
9049 2004-12-18  Peter Bartok  <pbartok@novell.com>
9050
9051         * X11Structs.cs (XGCValues): Fixed type of function element
9052         * XplatUI.cs: Added ScrollWindow() method
9053         * XplatUIDriver.cs: Added ScrollWindow() abstract
9054         * XplatUIWin32.cs: Implemented ScrollWindow() method
9055         * XplatUIX11.cs: Implemented ScrollWindow() method
9056         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
9057
9058 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
9059
9060         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
9061         Some more keyboard support (INCOMPLETE)
9062
9063 2004-12-17  Peter Bartok  <pbartok@novell.com>
9064
9065         * TextControl.cs:
9066         - Added color attribute to line tags.
9067         - Added color argument to all functions dealing with tags
9068         - Added color argument support to various functions
9069         - Fixed miss-calculation of baseline/shift in certain circumstances
9070
9071         * TextBoxBase.cs: Added new color option to test code
9072
9073 2004-12-17  Jackson Harper  <jackson@ximian.com>
9074
9075         * TreeNode.cs:
9076         * MonthCalendar.cs: Signature fixes
9077
9078 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
9079
9080         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
9081         keyboard event moved it.  Create a new graphics context for each paint resolves this
9082
9083 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
9084
9085         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
9086         Make caret exist and go blink blink.  Initial keyboard support.
9087         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
9088         works.
9089
9090 2004-12-17  Jackson Harper  <jackson@ximian.com>
9091
9092         * XplatUIStructs.cs: Updated set of virtual keycodes.
9093         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
9094
9095 2004-12-17  Jackson Harper  <jackson@ximian.com>
9096
9097         * XplatUIX11.cs: Prune old keyboard code.
9098
9099 2004-12-17  Jackson Harper  <jackson@ximian.com>
9100
9101         * XplatUIX11.cs: When generating mouse wparams get the modifier
9102         keys from the ModifierKeys property.
9103
9104 2004-12-17  Jackson Harper  <jackson@ximian.com>
9105
9106         * X11Keyboard.cs: Send up/down input when generating
9107         messages. Remove some unused vars.
9108
9109 2004-12-17  Jackson Harper  <jackson@ximian.com>
9110
9111         * TabControl.cs:
9112         * TreeView.cs: get rid of warnings.
9113
9114 2004-12-17  Jackson Harper  <jackson@ximian.com>
9115
9116         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
9117
9118 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
9119
9120         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
9121           CheckedListBox.cs: Implementation
9122
9123 2004-12-17  Peter Bartok  <pbartok@novell.com>
9124
9125         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
9126
9127 2004-12-16  Peter Bartok  <pbartok@novell.com>
9128
9129         * TextControl.cs:
9130           - InsertCharAtCaret(): Fixed start pos fixup
9131           - CaretLine_get: No longer derives the line from the tag, the tag
9132             could be stale if lines in the document have been added or deleted
9133           - RebalanceAfterDelete(): Fixed bug in balancing code
9134           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
9135           - Line.Streamline(): Now can also elminate leading empty tags
9136           - DumpTree(): Added a few more tests and prevented exception on
9137             uninitialized data
9138           - Added Debug section for Combining lines
9139           - Delete(): Now copies all remaining properties of a line
9140           
9141         * TextBoxBase.cs:
9142           - Left mousebutton now sets the caret (and middle button still acts
9143             as formatting tester, which must go away soon)
9144           - Added Debug section for Deleting/Combining lines
9145           - Fixed calculations for UpdateView after Combining lines
9146
9147 2004-12-16  Peter Bartok  <pbartok@novell.com>
9148
9149         * TextControl.cs: Now properly aligns text on a baseline, using the
9150           new XplatUI.GetFontMetrics() method. Simplified several calculations
9151         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
9152           defined
9153
9154 2004-12-16  Peter Bartok  <pbartok@novell.com>
9155
9156         * XplatUI.cs: Added GetFontMetrics() method
9157         * XplatUIDriver.cs: Added GetFontMetrics() abstract
9158         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
9159           into libgdiplus, our private GetFontMetrics function
9160         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
9161         * XplatUIWin32.cs: Implemented GetFontMetrics() method
9162
9163 2004-12-16  Jackson Harper  <jackson@ximain.com>
9164
9165         * XplatUIStruct.cs: Add enum for dead keys
9166         * X11Keyboard.cs: Map and unmap dead keys.
9167
9168 2004-12-16  Jackson Harper  <jackson@ximian.com>
9169
9170         * X11Keyboard.cs: Detect and use the num lock mask.
9171
9172 2004-12-16  Peter Bartok  <pbartok@novell.com>
9173
9174         * Control.cs (CreateGraphics): Added check to make sure the
9175           handle of the window exists before calling Graphics.FromHwnd()
9176
9177 2004-12-16  Peter Bartok  <pbartok@novell.com>
9178
9179         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
9180           contains a lot of code that's not supposed to be there for the
9181           real thing, but required for developing/testing the textbox
9182           backend.
9183
9184 2004-12-16  Peter Bartok  <pbartok@novell.com>
9185
9186         * TextControl.cs:
9187         - Fixed Streamline method
9188         - Added FindTag method to Line
9189         - Added DumpTree method for debugging
9190         - Added DecrementLines() method for deleting lines
9191         - Fixed UpdateView to update the cursor to end-of-line on single-line
9192           updates
9193         - Added PositionCaret() method
9194         - Fixed MoveCaret(LineDown) to move into the last line, too
9195         - Added InsertChar overload
9196         - Fixed InsertChar tag offset calculations
9197         - Added DeleteChar() method
9198         - Added Combine() method for folding lines
9199         - Fixed Delete() method, no longer allocates wasted Line object and
9200           now copies all properties when swapping nodes
9201         - Delete() method now updates document line counter
9202
9203 2004-12-15  Jackson Harper  <jackson@ximian.com>
9204
9205         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
9206         * X11Keyboard.cs: Expose the currently selected modifier keys
9207         through a property.
9208
9209 2004-12-15  Peter Bartok  <pbartok@novell.com>
9210
9211         * TextControl.cs: Initial check-in. Still incomplete
9212
9213 2004-12-15  Jackson Harper  <jackson@ximian.com>
9214
9215         * TreeNode.cs:
9216         * TreeView.cs: Fix build on csc (second time today ;-))
9217
9218 2004-12-15  Jackson Harper  <jackson@ximian.com>
9219
9220         * TreeView.cs: Store the treenodes plus/minus box bounds when it
9221         is calculated and use this for click testing.
9222         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
9223
9224 2004-12-15  Jackson Harper  <jackson@ximian.com>
9225
9226         * TreeView.cs: Pass the nodes image index to the image list when
9227         drawing that image.
9228
9229 2004-12-15  Jackson Harper  <jackson@ximian.com>
9230
9231         * X11Keyboard.cs: Set messages hwnd.
9232         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
9233         post_message calls.
9234
9235 2004-12-15  Jackson Harper  <jackson@ximian.com>
9236
9237         * X11Keyboard.cs: Fix to compile with csc.
9238         
9239 2004-12-15  Jackson Harper  <jackson@ximian.com>
9240
9241         * X11Structs.cs: Add key mask values
9242         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
9243         * X11Keyboard.cs: New file - Extrapolates and interpolates key
9244         down/up foo into WM_CHAR foo
9245         * KeyboardLayouts.cs: Common keyboard layouts
9246         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
9247         post messages into the main queue.
9248
9249 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
9250
9251         * Button.cs: implement ProcessMnemonic
9252         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
9253           brushes everytime
9254         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
9255         * ButtonBase.cs: Show HotkeyPrefix (not the &)
9256
9257 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
9258         
9259         * MonthCalendar.cs: Implemented click-hold for next/previous month
9260           and date selection
9261           
9262 2004-12-11  Peter Bartok  <pbartok@novell.com>
9263
9264         * X11Structs.cs:
9265           - Added XKeyboardState (moved from XplatUIX11.cs)
9266           - Added XCreateGC related enums and structures
9267           - Added GXFunction for XSetFunction
9268
9269         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
9270
9271         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
9272           CaretVisible() calls
9273
9274         * ToolTip.cs: Added code to prevent stealing focus from app windows
9275
9276         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
9277           DestroyCaret, SetCaretPos and CaretVisible)
9278
9279         * XplatUIX11.cs:
9280           - Added implementation for caret functions
9281           - Moved hover variables into a struct, to make it a bit easier
9282             on the eyes and to debug
9283           - Removed XKeyboardState (moved to XplatUIX11.cs)
9284           - Moved Keyboard properties into the properties region
9285
9286         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
9287           call to get a graphics context for our control
9288
9289         * XplatUIOSX.cs: Added empty overrides for the new caret functions
9290
9291         * TreeView.cs: Fixed bug. No matter what color was set it would always
9292           return SystemColors.Window
9293
9294         * XplatUIWin32.cs: Implemented caret overrides
9295
9296 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
9297
9298         * ListBox.cs: fire events, implement missing methods and properties,
9299         sorting.
9300
9301 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
9302
9303         * MonthCalendar.cs: invalidation bug fixing
9304         * ThemeWin32Classic.cs: paint fixing
9305
9306 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
9307
9308         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
9309         prepare the CGContextRef there now.
9310
9311 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
9312
9313         * MonthCalendar.cs:
9314           - optimisationL only invalidate areas that have changed
9315         * ThemeWin32Classic.cs:
9316           - only paint parts that intersect with clip_area
9317
9318 2004-12-09  Peter Bartok  <pbartok@novell.com>
9319
9320         * Application.cs: Undid changes from r37004 which cause problems
9321         on X11
9322
9323 2004-12-09  Ravindra  <rkumar@novell.com>
9324
9325         * ToolBar.cs: Added support for displaying ContextMenu
9326         attached to a button on ToolBar.
9327         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
9328         property.
9329
9330 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
9331
9332         * Label.cs: autosize works in text change and removes unnecessary
9333         invalidate
9334
9335 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
9336
9337         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
9338         remove warnings
9339
9340 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
9341
9342         * XplatUIOSX.cs: Added mouse move/click/grab support
9343         Remove some debugging WriteLines not needed anymore.
9344         Add window resizing/positioning.
9345         Fix visibility on reparenting.
9346
9347 2004-12-08  Peter Bartok  <pbartok@novell.com>
9348
9349         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
9350
9351 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
9352
9353         * XplatUIOSX.cs: Initial checkin
9354         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
9355
9356 2004-12-03  Ravindra <rkumar@novell.com>
9357
9358         * ListView.cs: Added some keybindings and fixed scrolling.
9359         ScrollBars listen to ValueChanged event instead of Scroll
9360         Event. This would let us take care of all changes being
9361         done in the scrollbars' values programmatically or manually.
9362         * ListView.cs (CanMultiselect): Added a check for shift key.
9363         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
9364         * ListViewItem.cs (Clone): Fixed. We need to make a copy
9365         of ListViewSubItemCollection as well.
9366
9367 2004-12-06  Peter Bartok <pbartok@novell.com>
9368
9369         * Control.cs (Parent): Added check and exception to prevent
9370         circular parenting
9371
9372 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
9373
9374         * ListBox.cs: implemented clipping, selection single and multiple,
9375         bug fixing
9376
9377 2004-12-03  Ravindra <rkumar@novell.com>
9378
9379         * ListView.cs (ListView_KeyDown):
9380         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
9381         when CTRL key is pressed.
9382         * ListViewItem.cs (Selected): Fixed setting the property.
9383
9384 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
9385
9386         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
9387
9388         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
9389         MinimizeBox, ShowInTaskbar, TopMost properties.
9390
9391         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
9392         will be implemented).
9393
9394 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
9395
9396         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
9397
9398         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
9399         tests.
9400         
9401         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
9402         
9403         * TreeView.cs: BackColor is Colors.Window.
9404
9405 2004-12-01  Jackson Harper  <jackson@ximian.com>
9406
9407         * TreeView.cs: When resizing the tree if the user is making it
9408         smaller we don't get expose events, so we need to handle adding
9409         the horizontal scrollbar in the size changed handler as well as
9410         the expose handler.
9411
9412 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
9413
9414         * DrawItemState.cs: fixes wrong enum values
9415
9416 2004-12-01  Jackson Harper  <jackson@ximian.com>
9417
9418         * TreeView.cs: Resize the hbar as well as the vbar on resize.
9419
9420 2004-12-01  Jackson Harper  <jackson@ximian.com>
9421
9422         * NodeLabelEditEventArgs.cs:
9423         * NodeLabelEditEventHandler.cs:
9424         * OpenTreeNodeEnumerator.cs:
9425         * TreeNode.cs:
9426         * TreeNodeCollection.cs:
9427         * TreeView.cs:
9428         * TreeViewAction.cs:
9429         * TreeViewCancelEventArgs.cs:
9430         * TreeViewCancelEventHandler.cs:
9431         * TreeViewEventArgs.cs:
9432         * TreeViewEventHandler.cs: Initial implementation.
9433
9434 2004-12-01  Ravindra <rkumar@novell.com>
9435
9436         * ListView.cs (CalculateListView): Fixed scrolling related
9437         calculations. Also, removed some debug statements from other
9438         places.
9439         * ListViewItem.cs: Changed access to 'selected' instance variable
9440         from private to internal.
9441         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
9442
9443 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
9444
9445         * ThemeWin32Classic.cs: remove cache of brush and pens for
9446         specific controls and use the global system, fixes scrollbutton
9447         bugs (for small sizes, disabled, etc)
9448         
9449         * ScrollBar.cs: does not show the thumb for very small controls
9450         (as MS) and allow smaller buttons that the regular size
9451
9452 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
9453
9454         * UpDownBase.cs: Add abstract methods for the interface.
9455         Add new virtual methods (need to be hooked up to TextEntry when it
9456         exists).
9457         Add override methods for most features.
9458         Computes the size, forces the height of the text entry.
9459
9460         * NumericUpDown.cs: Put here the current testing code.
9461
9462         * Set eol-style property on all files that do not have mixed line
9463         endings, to minimize the future problems.  There are still a few
9464         files with mixed endings, and someone should choose whether they
9465         want to move it or not.
9466
9467 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
9468
9469         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
9470         System.Colors
9471         
9472 2004-11-30  Ravindra <rkumar@novell.com>
9473
9474         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
9475         drawing and replaced use of SystemColors by theme colors.
9476         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
9477         * ListView.cs (ListViewItemCollection.Add): Throw exception when
9478         same ListViewItem is being added more than once.
9479
9480 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
9481
9482         * MonthCalendar.cs:
9483           - ControlStyles love to make the control not flicker
9484           
9485 2004-11-30  Peter Bartok  <pbartok@novell.com>
9486
9487         * CharacterCasing.cs: Added
9488
9489 2004-11-29  Peter Bartok  <pbartok@novell.com>
9490
9491         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
9492           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
9493           I am removing these files as they conflict with already completed
9494           work. While it is fantastic to get contributions to MWF, I
9495           respectfully ask that everyone please coordinate their contributions
9496           through mono-winforms-list or #mono-winforms at this time. We're
9497           explicitly avoiding stubbing and don't want controls that don't have
9498           their basic functionality implemented in svn. Please also see
9499           http://www.mono-project.com/contributing/winforms.html
9500
9501
9502 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
9503
9504         * Application.cs (ModalRun): Don't hang after exit.
9505
9506         * Theme.cs: New TreeViewDefaultSize property.
9507
9508         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
9509         with less hardcoded SystemColors constant.
9510         Implemented TreeViewDefaultSize.
9511
9512         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
9513         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
9514
9515
9516 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
9517
9518         * MonthCalendar.cs:
9519           - Fix NextMonthDate and PrevMonthDate click moving calendar
9520
9521 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
9522
9523         * MonthCalendar.cs:
9524           - Fix usage of ScrollChange Property when scrolling months
9525
9526 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
9527
9528         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
9529          - Fixes menu destroying
9530          - Support adding and removing items on already created menus
9531
9532 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
9533
9534         * MonthCalendar.cs:
9535           - Re-worked all bolded dates handling to match win32
9536         * ThemeWin32Classic.cs:
9537           - Fixed rendering with bolded dates
9538
9539 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
9540
9541         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
9542         - Horizontal scroolbar
9543         - Multicolumn
9544         - Fixes
9545
9546
9547 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
9548
9549         * MonthCalendar.cs:
9550           - Fix Usage of MaxSelectionCount from SelectionRange
9551           - Fixed Shift + Cursor Selection
9552           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
9553           - Fixed normal cursor selection to be compat with win32
9554           - Fixed Shift + Mouse Click selection
9555
9556 2004-11-24  Peter Bartok <pbartok@novell.com>
9557
9558         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
9559         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
9560         * XplatUIX11.cs:
9561           - CreatedKeyBoardMsg now updates keystate with Alt key
9562           - Added workaround for timer crash to CheckTimers, Jackson will
9563             develop a proper fix and check in later
9564           - Implemented DispatchMessage
9565           - Removed calling the native window proc from GetMessage (call
9566             now moved to DispatchMessage)
9567
9568         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
9569           the keydata (Fixes bug #69831)
9570
9571         * XplatUIWin32.cs:
9572           - (DispatchMessage): Switched to return IntPtr
9573           - Added DllImport for SetFocus
9574
9575 2004-11-24  Ravindra <rkumar@novell.com>
9576
9577         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
9578         background drawing.
9579         * ListViewItem.cs: Fixed various properties, calculations
9580         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
9581         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
9582         and some internal properties. Fixed MouseDown handler and Paint
9583         method.
9584
9585 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
9586
9587         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
9588
9589 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
9590
9591         * ContainerControl.cs: correct accidental check in of local changes
9592
9593 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
9594
9595         * ThemeWin32Classic.cs:
9596                 - Fixed Drawing Last month in grid (sometimes not showing)
9597         * MonthCalendar.cs:
9598                 - Fixed title width calculation bug (makeing title small)
9599
9600 2004-11-23  Peter Bartok <pbartok@novell.com>
9601
9602         * XplatUIX11.cs:
9603           - Added generation of WM_MOUSEHOVER event
9604           - Added missing assignment of async_method atom
9605           - Fixed WM_ERASEBKGND; now only redraws the exposed area
9606
9607 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
9608
9609         * ThemeWin32Classic.cs:
9610                 - Fixed Drawing of today circle when showtodaycircle not set
9611                 - fixed drawing of first and last month in the grid (gay dates)
9612         * MonthCalendar.cs:
9613                 - Fixed Drawing of today circle
9614                 - Fixed drawing of grady dates
9615                 - Fixed HitTest for today link when ShowToday set to false
9616                 - Fixed DefaultSize to obey ShowToday
9617
9618 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
9619
9620         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
9621         * System.Windows.Forms/Theme.cs
9622         * MonthCalendar.cs: added for MonthCalendar
9623         * SelectionRange.cs: added for MonthCalendar
9624         * Day.cs: added for MonthCalendar: added for MonthCalendar
9625         * DateRangeEventArgs.cs: added for MonthCalendar
9626         * DateRangeEventHandler.cs: added for MonthCalendar
9627
9628 2004-11-22  Ravindra <rkumar@novell.com>
9629
9630         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
9631         property.
9632
9633 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
9634
9635         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
9636         event handler.
9637         
9638         * NumericUpDown.cs: Added new implementation.
9639         * UpDownBase.cs: Added new implementation.
9640
9641         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
9642         implementations.
9643         
9644         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
9645         implementations.
9646
9647         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
9648         methods.
9649
9650 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
9651
9652         * Timer.cs  (Dispose): Should call the base dispose when
9653         overriding.
9654
9655 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
9656
9657         * ScrollBar.cs: updates thumb position when max, min or increment
9658         is changed
9659
9660 2004-11-21  Ravindra <rkumar@novell.com>
9661
9662         * ListView.cs: Implemented item selection, activation and
9663         column header style. Fixed properties to do a redraw, if
9664         required. Added support for MouseHover, DoubleClick, KeyDown
9665         and KeyUp event handling and some minor fixes.
9666         * ListViewItem.cs: Fixed constructor.
9667         * ThemeWin32Classic.cs: Improved drawing for ListView.
9668
9669 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
9670
9671         * ThemeWin32Classic.cs: initial listbox drawing code
9672         * DrawMode.cs: new enumerator
9673         * ListControl.cs: stubbed class
9674         * ListBox.cs: initial implementation
9675         * Theme.cs: new methods definitions
9676         * SelectionMode.cs: new enumerator
9677
9678 2004-11-17  Peter Bartok  <pbartok@novell.com>
9679
9680         * XplatUIWin32.cs: Added double-click events to the class style
9681         * Control.cs (WndProc):
9682           - Added handling of click-count to MouseDown/ MouseUp events.
9683           - Added handling of middle and right mouse buttons
9684           - Removed old debug code
9685
9686 2004-11-17  Jackson Harper  <jackson@ximian.com>
9687
9688         * XplatUIX11.cs: Use the new Mono.Unix namespace.
9689
9690 2004-11-17  Ravindra <rkumar@novell.com>
9691
9692         * ListView.cs: Added event handling for MouseMove/Up/Down.
9693         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
9694         * ThemeWin32Classic.cs: We need to clear the graphics context and
9695         draw column header in a proper state.
9696
9697
9698 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
9699
9700         *  Menu.cs: fixes signature
9701
9702 2004-11-16  Peter Bartok  <pbartok@novell.com>
9703
9704         * XplatUIX11.cs (GetMessage): Implemented generation of
9705           double click mouse messages
9706
9707 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
9708
9709         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
9710         not by menu
9711
9712 2004-11-11  Peter Bartok  <pbartok@novell.com>
9713
9714         * HandleData.cs: Added Visible property
9715         * XplatUIX11.cs (IsVisible): Now uses Visible property from
9716           HandleData
9717         * XplatUIX11.cs: Removed old debug leftovers
9718         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
9719         * Control.cs (WndProc): Removed old debug leftovers,
9720           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
9721           needed WM_SIZE handling
9722
9723 2004-11-11  Jackson Harper  <jackson@ximian.com>
9724
9725         * OwnerDrawPropertyBag.cs:
9726         * TreeViewImageIndexConverter.cs: Initial implementation
9727
9728 2004-11-10  Jackson Harper  <jackson@ximian.com>
9729
9730         * ThemeWin32Classic.cs:
9731         * TabControl.cs: instead of moving tabs by the slider pos just
9732         start drawing at the tab that is offset by the slider. This way
9733         scrolling always moves by exactly one tab.
9734
9735 2004-11-10  Jackson Harper  <jackson@ximian.com>
9736
9737         * TabControl.cs: You can only scroll left when the slider has
9738         already ben moved right.
9739         
9740 2004-11-10  Jackson Harper  <jackson@ximian.com>
9741
9742         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
9743         the clip area.
9744         
9745 2004-11-10  Jackson Harper  <jackson@ximian.com>
9746
9747         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
9748         clip area.
9749         
9750 2004-11-09  Jackson Harper  <jackson@ximian.com>
9751
9752         * TabControl.cs (CalcXPos): New helper method so we can determine
9753         the proper place to start drawing vertical tabs.
9754         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
9755         
9756 2004-11-09  Jackson Harper  <jackson@ximian.com>
9757
9758         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
9759         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
9760         and Bottom, left and right are illegal values for this and
9761         multiline is enabled when the alignment is set to left or right.
9762         (DrawTab): Each alignment block should draw the text itself now
9763         because Left requires special love. Also add rendering for Left
9764         aligned tabs.
9765         
9766 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
9767
9768         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
9769         does not destroy the windows, removes debugging messages
9770
9771 2004-11-09  jba  <jba-mono@optusnet.com.au>
9772
9773         * ThemeWin32Classic.cs
9774         (DrawButtonBase): Fix verticle text rect clipping in windows
9775         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
9776         rendering and incorrect text rect clipping
9777         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
9778         rendering and incorrect text rect clipping
9779         
9780 2004-11-08  Jackson Harper  <jackson@ximian.com>
9781
9782         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
9783         bottom when they are bottom aligned so the bottoms of the tabs get
9784         displayed.
9785         * TabControl.cs (DropRow): Move rows up instead of down when the
9786         tab control is bottom aligned.
9787
9788 2004-11-08 13:59  pbartok
9789
9790         * XplatUIX11.cs:
9791           - Added handling for various window styles
9792           - Added handling for popup windows
9793           - Added SetTopmost handling
9794
9795 2004-11-08 13:55  pbartok
9796
9797         * XplatUIWin32.cs:
9798           - Added argument to SetTopmost method
9799           - Fixed broken ClientToScreen function
9800
9801 2004-11-08 13:53  pbartok
9802
9803         * XplatUIStructs.cs:
9804           - Added missing WS_EX styles
9805
9806 2004-11-08 13:53  pbartok
9807
9808         * XplatUI.cs, XplatUIDriver.cs:
9809           - Added argument to SetTopmost
9810
9811 2004-11-08 13:52  pbartok
9812
9813         * X11Structs.cs:
9814           - Added XSetWindowAttributes structure
9815           - Improved XWindowAttributes structure
9816           - Added SetWindowValuemask enum
9817           - Added window creation arguments enum
9818           - Added gravity enum
9819           - Added Motif hints structure
9820           - Added various Motif flags and enums
9821           - Added PropertyMode enum for property functions
9822
9823 2004-11-08 13:50  pbartok
9824
9825         * Form.cs:
9826           - Fixed arguments for updated SetTopmost method
9827
9828 2004-11-08 13:49  pbartok
9829
9830         * ToolTip.cs:
9831           - Fixed arguments for updated SetTopmost function
9832           - Fixed usage of PointToClient
9833
9834 2004-11-08 13:44  pbartok
9835
9836         * MenuAPI.cs:
9837           - Added Clipping of children and siblings
9838
9839 2004-11-08 13:41  pbartok
9840
9841         * MainMenu.cs:
9842           - Removed SetMenuBarWindow call. We do this in Form.cs
9843
9844 2004-11-08 13:40  jackson
9845
9846         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
9847           scrolling jimmi in the correct location with bottom aligned tabs
9848
9849 2004-11-08 13:36  pbartok
9850
9851         * ContainerControl.cs:
9852           - Implemented BindingContext
9853           - Implemented ParentForm
9854
9855 2004-11-08 12:46  jackson
9856
9857         * TabControl.cs: Put bottom rendered tabs in the right location
9858
9859 2004-11-08 07:15  jordi
9860
9861         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
9862           removes dead code
9863
9864 2004-11-05 17:30  jackson
9865
9866         * TabControl.cs: When selected tabs are expanded make sure they
9867           don't go beyond the edges of the tab control
9868
9869 2004-11-05 14:57  jackson
9870
9871         * TabControl.cs: Reset show_slider so if the control is resized to
9872           a size where it is no longer needed it's not displayed anymore
9873
9874 2004-11-05 13:16  jackson
9875
9876         * TabControl.cs: Make tab pages non visible when added to the
9877           control
9878
9879 2004-11-05 12:42  jackson
9880
9881         * TabControl.cs: Implement SizeMode.FillToRight
9882
9883 2004-11-05 12:16  jackson
9884
9885         * Control.cs: Do not call CreateHandle if the handle is already
9886           created
9887
9888 2004-11-05 11:46  jackson
9889
9890         * TabControl.cs: Remove superflous call to CalcTabRows
9891
9892 2004-11-05 09:07  jackson
9893
9894         * XplatUIX11.cs: Update for Mono.Posix changes
9895
9896 2004-11-05 07:00  ravindra
9897
9898         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
9899           scrolling.
9900
9901 2004-11-04 22:47  jba
9902
9903         * ThemeWin32Classic.cs:
9904           - Fix Button rendering for FlatStyle = Flat or Popup
9905           - Fix RadioButton and CheckBox rendering when Appearance = Button
9906             (normal and flatstyle).
9907           - Correct outer rectangle color when drawing focus rectangle
9908           - Adjust button bounds to be 1 px smaller when focused
9909           - Make button not draw sunken 3d border when pushed (windows compat)
9910           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
9911           - Offset the text in RadioButton and Checkbox when being rendered as
9912           a button.
9913           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
9914           radiobuttons
9915           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
9916           - Fixed disabled text rendering for normally rendered radiobuttons
9917
9918 2004-11-04 10:26  jackson
9919
9920         * TabControl.cs: Recalculate tab rows when resizing
9921
9922 2004-11-04 07:47  jordi
9923
9924         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
9925           collection completion, drawing issues, missing features
9926
9927 2004-11-04 05:03  ravindra
9928
9929         * ScrollBar.cs:
9930                 - We need to recalculate the Thumb area when
9931                 LargeChange/maximum/minimum values are changed.
9932           - We set the 'pos' in UpdatePos() method to minimum, if it's less
9933                 than minimum. This is required to handle the case if large_change is
9934                 more than max, and use LargeChange property instead of large_change
9935                 variable.
9936           - We return max+1 when large_change is more than max, like MS does.
9937
9938 2004-11-04 04:29  ravindra
9939
9940         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
9941                 - Changed default value signatures (prefixed all with ListView).
9942                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
9943                 ListView.
9944           - Fixed calculations for ListViewItem and implemented Clone()
9945           method.
9946
9947 2004-11-04 04:26  ravindra
9948
9949         * Theme.cs, ThemeWin32Classic.cs:
9950                 - Changed default ListView values signatures (prefixed all with
9951                 ListView).
9952           - Fixed default size values for VScrollBar and HScrollBar.
9953                 - Fixed DrawListViewItem method.
9954
9955 2004-11-04 04:05  ravindra
9956
9957         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
9958
9959 2004-11-04 04:04  ravindra
9960
9961         * ImageList.cs: Implemented the missing overload for Draw method.
9962
9963 2004-11-03 19:29  jackson
9964
9965         * TabControl.cs: Handle dropping rows on selection properly
9966
9967 2004-11-03 11:59  jackson
9968
9969         * TabControl.cs: remove debug code
9970
9971 2004-11-03 11:52  jackson
9972
9973         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
9974           the scrolly widgerywoo
9975
9976 2004-11-02 13:52  jackson
9977
9978         * TabControl.cs: Resize the tab pages and tabs when the tab control
9979           is resized
9980
9981 2004-11-02 13:40  jackson
9982
9983         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
9984           selected tab to the bottom
9985
9986 2004-11-02 13:39  jackson
9987
9988         * TabPage.cs: Store the tab pages row
9989
9990 2004-11-02 12:33  jordi
9991
9992         * MenuItem.cs: fixes handle creation
9993
9994 2004-11-02 11:42  jackson
9995
9996         * TabControl.cs: signature fix
9997
9998 2004-11-02 08:56  jackson
9999
10000         * TabControl.cs: Calculate whether the tab is on an edge properly.
10001           Remove top secret debugging code
10002
10003 2004-11-01 19:57  jackson
10004
10005         * TabControl.cs: Add click handling, and proper sizing
10006
10007 2004-11-01 19:47  jackson
10008
10009         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
10010           tab controls
10011
10012 2004-11-01 19:39  jackson
10013
10014         * TabPage.cs: add internal property to store the bounds of a tab
10015           page
10016
10017 2004-10-30 04:23  ravindra
10018
10019         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
10020           values.
10021
10022 2004-10-30 04:21  ravindra
10023
10024         * ListView.cs, ListViewItem.cs: Added support for scrolling and
10025           fixed calculations.
10026
10027 2004-10-30 03:06  pbartok
10028
10029         * XplatUIX11.cs:
10030           - Removed extension of DllImported libs
10031
10032 2004-10-29 09:55  jordi
10033
10034         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
10035           navigation, itemcollection completion, menu fixes
10036
10037 2004-10-27 22:58  pbartok
10038
10039         * XplatUIX11.cs:
10040           - Now throws a nice error message when no X display could be opened
10041
10042 2004-10-26 13:51  jordi
10043
10044         * ListView.cs: removes warning
10045
10046 2004-10-26 03:55  ravindra
10047
10048         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
10049           ThemeWin32Classic.cs: Some formatting for my last checkins.
10050
10051 2004-10-26 03:36  ravindra
10052
10053         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
10054           control and default values.
10055
10056 2004-10-26 03:35  ravindra
10057
10058         * Theme.cs: Added some default values for ListView control.
10059
10060 2004-10-26 03:33  ravindra
10061
10062         * ToolBar.cs: ToolBar should use the user specified button size, if
10063           there is any. Added a size_specified flag for the same.
10064
10065 2004-10-26 03:33  ravindra
10066
10067         * ColumnHeader.cs: Added some internal members and calculations for
10068           ColumnHeader.
10069
10070 2004-10-26 03:32  ravindra
10071
10072         * ListViewItem.cs: Calculations for ListViewItem.
10073
10074 2004-10-26 03:31  ravindra
10075
10076         * ListView.cs: Added some internal members and calculations for
10077           ListView.
10078
10079 2004-10-22 13:31  jordi
10080
10081         * MenuAPI.cs: speedup menus drawing
10082
10083 2004-10-22 13:16  jackson
10084
10085         * XplatUIX11.cs: Make sure to update exposed regions when adding an
10086           expose event
10087
10088 2004-10-22 11:49  jackson
10089
10090         * Control.cs: oops
10091
10092 2004-10-22 11:41  jackson
10093
10094         * Control.cs: Check to see if the window should have its background
10095           repainted by X when drawing.
10096
10097 2004-10-22 11:31  jackson
10098
10099         * XplatUIX11.cs: When invalidating areas only use XClearArea if
10100           clear is true, this way we do not get flicker from X repainting the
10101           background
10102
10103 2004-10-22 11:28  jackson
10104
10105         * XEventQueue.cs: Queue properly
10106
10107 2004-10-21 09:38  jackson
10108
10109         * XEventQueue.cs: Fix access modifier
10110
10111 2004-10-21 09:36  jackson
10112
10113         * XEventQueue.cs: Don't loose messages
10114
10115 2004-10-21 09:22  jackson
10116
10117         * XEventQueue.cs: Don't loose messages
10118
10119 2004-10-20 04:15  jordi
10120
10121         * BootMode.cs: enum need it by SystemInfo
10122
10123 2004-10-19 21:58  pbartok
10124
10125         * XplatUIWin32.cs:
10126           - Small sanity check
10127
10128 2004-10-19 21:56  pbartok
10129
10130         * Form.cs:
10131           - Added private FormParentWindow class which acts as the container
10132             for our form and as the non-client area where menus are drawn
10133           - Added/Moved required tie-ins to Jordi's menus
10134           - Fixed/Implemented the FormStartPosition functionality
10135
10136 2004-10-19 21:52  pbartok
10137
10138         * Control.cs:
10139           - Removed unneeded locals
10140           - Added code to all size and location properties to understand and
10141             deal with the parent container of Form
10142
10143 2004-10-19 21:33  pbartok
10144
10145         * Application.cs:
10146           - Fixed to deal with new Form subclasses for menus
10147
10148 2004-10-19 17:48  jackson
10149
10150         * XEventQueue.cs: commit correct version of file
10151
10152 2004-10-19 16:50  jackson
10153
10154         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
10155
10156 2004-10-19 16:15  jordi
10157
10158         * MenuAPI.cs: MenuBarCalcSize returns the height
10159
10160 2004-10-19 08:31  pbartok
10161
10162         * Control.cs:
10163           - Added missing call to PreProcessMessage before calling OnXXXKey
10164           methods
10165
10166 2004-10-19 00:04  ravindra
10167
10168         * ToolTip.cs: Fixed constructor.
10169
10170 2004-10-18 09:31  jordi
10171
10172         * MenuAPI.cs: menuitems in menubars do not have shortcuts
10173
10174 2004-10-18 09:26  jordi
10175
10176         * MenuItem.cs: fixes MenuItem class signature
10177
10178 2004-10-18 08:56  jordi
10179
10180         * MenuAPI.cs: prevents windows from showing in the taskbar
10181
10182 2004-10-18 00:28  ravindra
10183
10184         * ToolTip.cs: Suppressed a warning message.
10185
10186 2004-10-18 00:27  ravindra
10187
10188         * Control.cs: Default value of visible property must be true.
10189
10190 2004-10-17 23:19  pbartok
10191
10192         * ToolTip.cs:
10193           - Complete implementation
10194
10195 2004-10-17 23:19  pbartok
10196
10197         * XplatUIX11.cs:
10198           - Added EnableWindow method
10199           - Added SetModal stub
10200           - Added generation of WM_ACTIVATE message (still needs testing)
10201           - Added SetTopMost stub
10202           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
10203
10204 2004-10-17 23:17  pbartok
10205
10206         * XplatUIWin32.cs:
10207           - Removed VirtualKeys to XplatUIStructs
10208           - Implemented SetTopMost method
10209           - Implemented EnableWindow method
10210           - Bugfix in ScreenToClient()
10211           - Bugfixes in ClientToScreen()
10212
10213 2004-10-17 22:51  pbartok
10214
10215         * XplatUIStructs.cs:
10216           - Added WS_EX styles to WindowStyles enumeration
10217
10218 2004-10-17 22:50  pbartok
10219
10220         * XplatUI.cs, XplatUIDriver.cs:
10221           - Added method for enabling/disabling windows
10222           - Added method for setting window modality
10223           - Added method for setting topmost window
10224
10225 2004-10-17 22:49  pbartok
10226
10227         * ThemeWin32Classic.cs:
10228           - Added ToolTip drawing code
10229
10230 2004-10-17 22:49  pbartok
10231
10232         * Theme.cs:
10233           - Added ToolTip abstracts
10234
10235 2004-10-17 22:47  pbartok
10236
10237         * Form.cs:
10238           - Fixed Form.ControlCollection to handle owner relations
10239           - Added Owner/OwnedForms handling
10240           - Implemented Z-Ordering for owned forms
10241           - Removed unneeded private overload of ShowDialog
10242           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
10243             so I hope)
10244           - Fixed Close(), had wrong default
10245           - Added firing of OnLoad event
10246           - Added some commented out debug code for Ownership handling
10247
10248 2004-10-17 22:16  pbartok
10249
10250         * Control.cs:
10251           - Fixed/implemented flat list of controls
10252
10253 2004-10-17 22:14  pbartok
10254
10255         * Application.cs:
10256           - Added code to simulate modal dialogs on Win32
10257
10258 2004-10-17 16:11  jordi
10259
10260         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
10261           mouse event
10262
10263 2004-10-17 13:39  jordi
10264
10265         * MenuAPI.cs: menu drawing fixes
10266
10267 2004-10-15 09:10  ravindra
10268
10269         * StructFormat.cs: General Enum.
10270
10271 2004-10-15 09:09  ravindra
10272
10273         * SizeGripStyle.cs: Enum for Form.
10274
10275 2004-10-15 09:08  ravindra
10276
10277         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
10278           in Theme for ListView.
10279
10280 2004-10-15 09:06  ravindra
10281
10282         * ColumnHeader.cs: Flushing some formatting changes.
10283
10284 2004-10-15 09:05  ravindra
10285
10286         * ListViewItem.cs: Implemented GetBounds method and fixed coding
10287           style.
10288
10289 2004-10-15 09:03  ravindra
10290
10291         * ListView.cs: Implemented Paint method and fixed coding style.
10292
10293 2004-10-15 07:34  jordi
10294
10295         * MenuAPI.cs: fix for X11
10296
10297 2004-10-15 07:32  ravindra
10298
10299         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
10300                 - Renamed Paint() method to Draw() for clarity. Also, moved
10301                 DrawImage() to OnPaint().
10302
10303 2004-10-15 07:25  ravindra
10304
10305         * CheckBox.cs, RadioButton.cs:
10306                 - Removed Redraw (), we get it from ButtonBase.
10307                 - Implemented Paint (), to do class specific painting.
10308
10309 2004-10-15 07:16  ravindra
10310
10311         * ButtonBase.cs:
10312                 - Redraw () is not virtual now.
10313                 - Added an internal virtual method Paint (), so that
10314                 derived classes can do their painting on their own.
10315                 - Modified OnPaint () to call Paint ().
10316
10317 2004-10-15 06:43  jordi
10318
10319         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
10320           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
10321
10322 2004-10-15 00:30  ravindra
10323
10324         * MessageBox.cs:
10325                 - MessageBox on windows does not have min/max buttons.
10326                 This change in CreateParams fixes this on Windows. We
10327                 still need to implement this windowstyle behavior in
10328                 our X11 driver.
10329
10330 2004-10-14 05:14  ravindra
10331
10332         * ToolBar.cs:
10333                 - Changed Redraw () to do a Refresh () always.
10334                 - Fixed the MouseMove event handling when mouse is pressed,
10335                 ie drag event handling.
10336                 - Replaced the usage of ToolBarButton.Pressed property to
10337                 ToolBarButton.pressed internal variable.
10338
10339 2004-10-14 05:10  ravindra
10340
10341         * ToolBarButton.cs:
10342                 - Added an internal member 'inside' to handle mouse move
10343                 with mouse pressed ie mouse drag event.
10344                 - Changed 'Pressed' property to return true only when
10345                 'inside' and 'pressed' are both true.
10346                 - Some coding style love.
10347
10348 2004-10-14 00:17  ravindra
10349
10350         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
10351           public method.
10352
10353 2004-10-14 00:15  ravindra
10354
10355         * ButtonBase.cs: Redraw () related improvements.
10356
10357 2004-10-14 00:14  ravindra
10358
10359         * MessageBox.cs: Moved InitFormSize () out of Paint method and
10360           removed unnecessary calls to Button.Show () method.
10361
10362 2004-10-13 17:50  pbartok
10363
10364         * XplatUIX11.cs:
10365           - Formatting fix
10366           - Removed destroying of window until we solve the problem of X
10367             destroying the window before us on shutdown
10368
10369 2004-10-13 16:32  pbartok
10370
10371         * ButtonBase.cs:
10372           - Now Redraws on MouseUp for FlatStyle Flat and Popup
10373
10374 2004-10-13 14:18  pbartok
10375
10376         * XplatUIX11.cs:
10377           - Added code to destroy the X window
10378
10379 2004-10-13 14:18  pbartok
10380
10381         * XplatUIWin32.cs:
10382           - Added code to destroy a window
10383
10384 2004-10-13 14:12  pbartok
10385
10386         * ButtonBase.cs:
10387           - Added the Redraw on Resize that got dropped in the last rev
10388
10389 2004-10-13 09:06  pbartok
10390
10391         * ThemeWin32Classic.cs:
10392           - Path from John BouAntoun:
10393             * Fix check rendering (centre correctly for normal style, offset
10394               correctly for FlatStyle).
10395             * Fix border color usage (use backcolor) for FlatStyle.Popup
10396             * Use checkbox.Capture instead of checkbox.is_pressed when
10397               rendering flatstyle states.
10398
10399 2004-10-12 21:48  pbartok
10400
10401         * ThemeWin32Classic.cs:
10402           - Removed all occurences of SystemColors and replaced them with the
10403             matching theme color
10404
10405 2004-10-12 21:41  pbartok
10406
10407         * ThemeWin32Classic.cs:
10408           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
10409             him using the function for flatstyle drawing
10410           - Changed functions to use the new version of CPDrawBorder3D
10411
10412 2004-10-12 21:15  pbartok
10413
10414         * ControlPaint.cs:
10415           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
10416             match MS documentation. They need to return defined colors if the
10417             passed color matches the configured control color. Thanks to John
10418             BouAntoun for pointing this out.
10419
10420 2004-10-12 20:57  pbartok
10421
10422         * Control.cs:
10423           - Fix from John BouAntoun: Raise ForeColorChanged event when text
10424             color is changed
10425
10426 2004-10-12 20:46  pbartok
10427
10428         * CheckBox.cs:
10429           - Fix from John BouAntoun: Now properly sets the Appearance property
10430
10431 2004-10-12 20:45  pbartok
10432
10433         * ThemeWin32Classic.cs:
10434           - Fixes from John BouAntoun: now handles forecolors and backcolors
10435             for flatstyle rendered controls much better; It also fixes normal
10436             checkbox rendering when pushed or disabled.
10437
10438 2004-10-08 02:50  jordi
10439
10440         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
10441           work
10442
10443 2004-10-07 08:56  jordi
10444
10445         * ThemeWin32Classic.cs: Removes deletion of cached brushes
10446
10447 2004-10-06 03:59  jordi
10448
10449         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
10450           XplatUIWin32.cs: removes warnings from compilation
10451
10452 2004-10-05 12:23  jackson
10453
10454         * RadioButton.cs: Fix ctor
10455
10456 2004-10-05 11:10  pbartok
10457
10458         * MessageBox.cs:
10459           - Partial implementation by Benjamin Dasnois
10460
10461 2004-10-05 10:15  jackson
10462
10463         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
10464           by John BouAntoun
10465
10466 2004-10-05 03:07  ravindra
10467
10468         * ToolBar.cs:
10469                 - Removed a private method, Draw ().
10470                 - Fixed the ButtonDropDown event handling.
10471                 - Fixed MouseMove event handling.
10472
10473 2004-10-05 03:04  ravindra
10474
10475         * ThemeWin32Classic.cs:
10476                 - Added DrawListView method and ListViewDefaultSize property.
10477                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
10478                 - Changed DOS style CRLF to Unix format (dos2unix).
10479
10480 2004-10-05 03:03  ravindra
10481
10482         * Theme.cs:
10483                 - Added DrawListView method and ListViewDefaultSize property.
10484
10485 2004-10-05 02:42  ravindra
10486
10487         * ToolBarButton.cs: Added an internal member dd_pressed to handle
10488           clicks on DropDown arrow.
10489
10490 2004-10-04 22:56  jackson
10491
10492         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
10493           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
10494           Control handle the buffers, derived classes should not have to
10495           CreateBuffers themselves.
10496
10497 2004-10-04 21:20  jackson
10498
10499         * StatusBar.cs: The control handles resizing the buffers now.
10500
10501 2004-10-04 21:18  jackson
10502
10503         * Control.cs: When resizing the buffers should be invalidated. This
10504           should be handled in Control not in derived classes.
10505
10506 2004-10-04 14:45  jackson
10507
10508         * TabPage.cs: oops
10509
10510 2004-10-04 02:14  pbartok
10511
10512         * LeftRightAlignment.cs:
10513           - Initial check-in
10514
10515 2004-10-04 01:09  jordi
10516
10517         * ThemeWin32Classic.cs: fixes right button position causing right
10518           button not showing on horizontal scrollbars
10519
10520 2004-10-02 13:12  pbartok
10521
10522         * XplatUIX11.cs:
10523           - Simplified the Invalidate method by using an X call instead of
10524             generating the expose ourselves
10525           - Added an expose when the window background is changed
10526           - Implemented ClientToScreen method
10527
10528 2004-10-02 13:08  pbartok
10529
10530         * XplatUIWin32.cs:
10531           - Added Win32EnableWindow method (test for implementing modal
10532           dialogs)
10533           - Added ClientToScreen method and imports
10534
10535 2004-10-02 13:07  pbartok
10536
10537         * XplatUI.cs, XplatUIDriver.cs:
10538           - Added ClientToScreen coordinate translation method
10539
10540 2004-10-02 13:06  pbartok
10541
10542         * KeyPressEventArgs.cs:
10543           - Fixed access level for constructor
10544
10545 2004-10-02 13:06  pbartok
10546
10547         * NativeWindow.cs:
10548           - Changed access level for the window_collection hash table
10549
10550 2004-10-02 13:05  pbartok
10551
10552         * Form.cs:
10553           - Added KeyPreview property
10554           - Added Menu property (still incomplete, pending Jordi's menu work)
10555           - Implemented ProcessCmdKey
10556           - Implemented ProcessDialogKey
10557           - Implemented ProcessKeyPreview
10558
10559 2004-10-02 13:02  pbartok
10560
10561         * Control.cs:
10562           - Added private method to get the Control object from the window
10563           handle
10564           - Implemented ContextMenu property
10565           - Implemented PointToScreen
10566           - Implemented PreProcessMessage
10567           - Implemented IsInputChar
10568           - Implemented IsInputKey
10569           - Implemented ProcessCmdKey
10570           - Completed ProcessKeyEventArgs
10571           - Fixed message loop to call the proper chain of functions on key
10572           events
10573           - Implemented ProcessDialogChar
10574           - Implemented ProcessDialogKey
10575           - Implemented ProcessKeyMessage
10576           - Implemented ProcessKeyPreview
10577           - Added RaiseDragEvent stub (MS internal method)
10578           - Added RaiseKeyEvent stub (MS internal method)
10579           - Added RaiseMouseEvent stub (MS Internal method)
10580           - Added RaisePaintEvent stub (MS Internal method)
10581           - Added ResetMouseEventArgs stub (MS Internal method)
10582           - Implemented RtlTranslateAlignment
10583           - Implemented RtlTranslateContent
10584           - Implemented RtlTranslateHorizontal
10585           - Implemented RtlTranslateLeftRight
10586           - Added generation of KeyPress event
10587
10588 2004-10-02 05:57  ravindra
10589
10590         * ListViewItem.cs: Added attributes.
10591
10592 2004-10-02 05:32  ravindra
10593
10594         * ListView.cs: Added attributes.
10595
10596 2004-10-01 11:53  jackson
10597
10598         * Form.cs: Implement the Close method so work on MessageBox can
10599           continue.
10600
10601 2004-09-30 14:06  pbartok
10602
10603         * XplatUIX11.cs:
10604           - Bug fixes
10605
10606 2004-09-30 11:34  jackson
10607
10608         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
10609
10610 2004-09-30 07:26  ravindra
10611
10612         * ListViewItemConverter.cs: Converter for ListViewItem.
10613
10614 2004-09-30 07:26  ravindra
10615
10616         * SortOrder.cs: Enum for ListView control.
10617
10618 2004-09-30 07:25  ravindra
10619
10620         * ColumnHeader.cs: Supporting class for ListView control.
10621
10622 2004-09-30 07:24  ravindra
10623
10624         * ListView.cs, ListViewItem.cs: Initial implementation.
10625
10626 2004-09-30 07:20  ravindra
10627
10628         * ItemActivation.cs: Enum for ListView Control.
10629
10630 2004-09-29 20:29  pbartok
10631
10632         * XplatUIX11.cs:
10633           - Added lookup of pixel value for background color; tries to get a
10634             color 'close' to the requested color, it avoids having to create a
10635             colormap.  Depending on the display this could mean the used color
10636             is slightly off the desired color. Might have to change it to a more
10637             resource intensive colormap approach, but it will work as a
10638           workaround to avoid red screens.
10639
10640 2004-09-29 14:27  jackson
10641
10642         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
10643
10644 2004-09-28 12:44  pbartok
10645
10646         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
10647           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
10648           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
10649           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
10650           TrackBar.cs, VScrollBar.cs:
10651           - Streamlined Theme interfaces:
10652             * Each DrawXXX method for a control now is passed the object for
10653               the control to be drawn in order to allow accessing any state the
10654               theme might require
10655
10656             * ControlPaint methods for the theme now have a CP prefix to avoid
10657               name clashes with the Draw methods for controls
10658
10659             * Every control now retrieves it's DefaultSize from the current
10660             theme
10661
10662 2004-09-28 12:17  jackson
10663
10664         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
10665           drawing
10666
10667 2004-09-24 14:57  jackson
10668
10669         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
10670           Gives us a nice little performance boost.
10671
10672 2004-09-24 12:02  jackson
10673
10674         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
10675           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
10676           Control and supporting classes. Initial checkin
10677
10678 2004-09-23 13:08  jackson
10679
10680         * Form.cs: Temp build fixage
10681
10682 2004-09-23 01:39  ravindra
10683
10684         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
10685           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
10686           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
10687           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
10688           EventHandlers needed by ListView Control.
10689
10690 2004-09-22 14:12  pbartok
10691
10692         * ScrollableControl.cs:
10693           - Implemented DockPadding property
10694           - Implemented AutoScroll property
10695           - Implemented AutoScrollMargin property
10696           - Implemented AutoScrollMinSize property
10697           - Implemented AutoScrollPosition property
10698           - Implemented DisplayRectangle property (still incomplete)
10699           - Implemented CreateParams property
10700           - Implemented HScroll property
10701           - Implemented VScroll property
10702           - Implemented OnVisibleChanged property
10703
10704 2004-09-22 14:09  pbartok
10705
10706         * Form.cs:
10707           - Added Form.ControllCollection class
10708           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
10709             RemoveOwnedForm (still incomplete, missing on-top and common
10710             minimize/maximize behaviour)
10711           - Added StartPosition property (still incomplete, does not use when
10712             creating the form)
10713           - Added ShowDialog() methods (still incomplete, missing forcing the
10714             dialog modal)
10715
10716 2004-09-22 14:05  pbartok
10717
10718         * Application.cs:
10719           - Added message loop for modal dialogs
10720
10721 2004-09-22 14:02  pbartok
10722
10723         * GroupBox.cs:
10724           - Fixed wrong types for events
10725
10726 2004-09-22 14:00  pbartok
10727
10728         * Shortcut.cs, FormWindowState.cs:
10729           - Fixed wrong values
10730
10731 2004-09-22 12:01  jackson
10732
10733         * Control.cs: Text is never null
10734
10735 2004-09-20 22:14  pbartok
10736
10737         * XplatUIWin32.cs:
10738           - Fixed accessibility level for Idle handler
10739
10740 2004-09-20 18:54  jackson
10741
10742         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
10743           XplatUIX11.cs: New message loop that uses poll so we don't get a
10744           busy loop
10745
10746 2004-09-17 10:43  pbartok
10747
10748         * ScrollBar.cs:
10749           - Fixed behaviour of arrow buttons. Now properly behaves like
10750             Buttons (and like Microsoft's scrollbar arrow buttons)
10751
10752 2004-09-17 10:14  pbartok
10753
10754         * ScrollBar.cs:
10755           - Added missing release of keyboard/mouse capture
10756
10757 2004-09-17 06:18  jordi
10758
10759         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
10760           Theme.cs: Very early menu support
10761
10762 2004-09-16 17:45  pbartok
10763
10764         * XplatUIWin32.cs:
10765           - Fixed sending a window to the front
10766           - Added overload for SetWindowPos to avoid casting
10767
10768 2004-09-16 17:44  pbartok
10769
10770         * Control.cs:
10771           - Added SendToBack and BringToFront methods
10772
10773 2004-09-16 07:00  ravindra
10774
10775         * Copyright: Added Novell URL.
10776
10777 2004-09-16 07:00  ravindra
10778
10779         * ToolBar.cs: Invalidate should be done before redrawing.
10780
10781 2004-09-15 21:19  ravindra
10782
10783         * ColumnHeaderStyle.cs: Enum for ListView Control.
10784
10785 2004-09-15 21:18  ravindra
10786
10787         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
10788           ListView Control.
10789
10790 2004-09-13 18:26  jackson
10791
10792         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
10793           properly
10794
10795 2004-09-13 18:13  jackson
10796
10797         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
10798           a second thread and post messages into the main threads message
10799           queue. This makes timing much more consistent. Both win2K and XP
10800           have a minimum timer value of 15 milliseconds, so we now do this
10801           too.
10802
10803 2004-09-13 15:18  pbartok
10804
10805         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
10806           XplatUIX11.cs:
10807           - Added Z-Ordering methods
10808
10809 2004-09-13 10:56  pbartok
10810
10811         * Form.cs:
10812           - Fixed #region names
10813           - Moved properties and methods into their proper #regions
10814
10815 2004-09-13 10:51  pbartok
10816
10817         * Form.cs:
10818           - Added Accept and CancelButton properties
10819           - Added ProcessDialogKey() method
10820
10821 2004-09-13 08:18  pbartok
10822
10823         * IWindowTarget.cs:
10824           - Initial check-in
10825
10826 2004-09-10 21:50  pbartok
10827
10828         * Control.cs:
10829           - Added DoDragDrop() [incomplete]
10830           - Properly implemented 'Visible' handling
10831           - Added SetVisibleCore()
10832           - Implemented FindChildAtPoint()
10833           - Implemented GetContainerControl()
10834           - Implemented Hide()
10835
10836 2004-09-10 19:28  pbartok
10837
10838         * Control.cs:
10839           - Moved methods into their appropriate #regions
10840           - Reordered methods within regions alphabetically
10841
10842 2004-09-10 18:57  pbartok
10843
10844         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
10845           - Added method to retrieve text from window
10846
10847 2004-09-10 18:56  pbartok
10848
10849         * Control.cs:
10850           - Moved some internal functions into the internal region
10851           - Implemented FontHeight
10852           - Implemented RenderRightToLeft
10853           - Implemented ResizeRedraw
10854           - Implemented ShowFocusCues
10855           - Implemented ShowKeyboardCues
10856           - Implemented FromChildHandle
10857           - Implemented FromHandle
10858           - Implemented IsMnemonic
10859           - Implemented ReflectMessage
10860           - All public and protected Static Methods are now complete
10861
10862 2004-09-10 16:54  pbartok
10863
10864         * Control.cs:
10865           - Implemented remaining missing public instance properties
10866           - Alphabetized some out of order properties
10867
10868 2004-09-10 05:51  ravindra
10869
10870         * PictureBox.cs: Added a check for null image.
10871
10872 2004-09-10 00:59  jordi
10873
10874         * GroupBox.cs: remove cvs tag
10875
10876 2004-09-09 05:25  ravindra
10877
10878         * ToolBar.cs: Make redraw accessible from ToolBarButton.
10879
10880 2004-09-09 05:23  ravindra
10881
10882         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
10883           parent redraw.
10884
10885 2004-09-09 02:28  pbartok
10886
10887         * ThemeWin32Classic.cs:
10888           - Improve disabled string look
10889
10890 2004-09-09 01:15  jordi
10891
10892         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
10893           args and handler
10894
10895 2004-09-08 23:56  ravindra
10896
10897         * ItemBoundsPortion.cs: It's enum, not a class!
10898
10899 2004-09-08 23:47  ravindra
10900
10901         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
10902           Enums for Form.
10903
10904 2004-09-08 21:13  ravindra
10905
10906         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
10907           ListView control.
10908
10909 2004-09-08 21:03  ravindra
10910
10911         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
10912           avoid crash.
10913
10914 2004-09-08 21:01  ravindra
10915
10916         * ScrollableControl.cs: Removed unreachable code.
10917
10918 2004-09-08 06:45  jordi
10919
10920         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
10921
10922 2004-09-08 01:00  jackson
10923
10924         * XplatUIX11.cs: Only run the timers when updating the message
10925           queue. This effectively gives X messages a higher priority then
10926           timer messages. Timers still need love though
10927
10928 2004-09-07 14:01  jackson
10929
10930         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
10931           this for us and the handle is no longer valid.
10932
10933 2004-09-07 13:59  jackson
10934
10935         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
10936           loop that manages to not crash. TODO: Add poll and cleanup timers
10937
10938 2004-09-07 11:12  jordi
10939
10940         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
10941
10942 2004-09-07 03:40  jordi
10943
10944         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
10945           fixes, methods, multiple links
10946
10947 2004-09-06 06:55  jordi
10948
10949         * Control.cs: Caches ClientRectangle rectangle value
10950
10951 2004-09-05 02:03  jordi
10952
10953         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
10954           certain situations
10955
10956 2004-09-04 11:10  jordi
10957
10958         * Label.cs: Refresh when font changed
10959
10960 2004-09-02 16:24  pbartok
10961
10962         * Control.cs:
10963           - Added sanity check to creation of double buffer bitmap
10964
10965 2004-09-02 16:24  pbartok
10966
10967         * ButtonBase.cs:
10968           - Fixed selection of text color
10969           - Fixed handling of resize event; now properly recreates double
10970             buffering bitmap
10971           - Added missing assignment of TextAlignment
10972           - Added proper default for TextAlignment
10973
10974 2004-09-02 14:26  pbartok
10975
10976         * RadioButton.cs:
10977           - Added missing RadioButton.RadioButtonAccessibleObject class
10978
10979 2004-09-02 14:26  pbartok
10980
10981         * Control.cs:
10982           - Added missing Control.ControlAccessibleObject class
10983           - Started to implement Select()ion mechanisms, still very incomplete
10984
10985 2004-09-02 14:25  pbartok
10986
10987         * AccessibleObject.cs:
10988           - Added missing methods
10989
10990 2004-09-02 14:23  pbartok
10991
10992         * AccessibleNavigation.cs, AccessibleSelection.cs:
10993           - Initial check-in
10994
10995 2004-09-02 10:32  jordi
10996
10997         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
10998           pool for pens, brushes, and hatchbruses
10999
11000 2004-09-01 15:30  jackson
11001
11002         * StatusBar.cs: Fix typo
11003
11004 2004-09-01 14:44  pbartok
11005
11006         * RadioButton.cs:
11007           - Fixed state
11008
11009 2004-09-01 14:39  pbartok
11010
11011         * Button.cs, RadioButton.cs:
11012           - Functional initial check-in
11013
11014 2004-09-01 14:01  pbartok
11015
11016         * CheckBox.cs:
11017           - Added missing default
11018           - Added missing region mark
11019
11020 2004-09-01 09:10  jordi
11021
11022         * Label.cs: fixes method signatures, new methods, events, fixes
11023           autosize
11024
11025 2004-09-01 07:19  jordi
11026
11027         * Control.cs: Init string variables with an empty object
11028
11029 2004-09-01 04:20  jordi
11030
11031         * Control.cs: fires OnFontChanged event
11032
11033 2004-08-31 20:07  pbartok
11034
11035         * ButtonBase.cs:
11036           - Enabled display of strings
11037
11038 2004-08-31 20:05  pbartok
11039
11040         * Form.cs:
11041           - Added (partial) implementation of DialogResult; rest needs to be
11042             implemented when the modal loop code is done
11043
11044 2004-08-31 19:55  pbartok
11045
11046         * CheckBox.cs:
11047           - Fixed to match the removal of the needs_redraw concept
11048
11049 2004-08-31 19:55  pbartok
11050
11051         * ButtonBase.cs:
11052           - Removed the rather odd split between 'needs redraw' and redrawing
11053           - Now handles the events that require regeneration (ambient
11054             properties and size)
11055
11056 2004-08-31 19:41  pbartok
11057
11058         * Control.cs:
11059           - Added firing of BackColorChanged event
11060           - Added TopLevelControl property
11061           - Fixed handling of WM_ERASEBKGRND message
11062
11063 2004-08-31 12:49  pbartok
11064
11065         * ButtonBase.cs:
11066           - Removed debug
11067           - Minor fixes
11068
11069 2004-08-31 12:48  pbartok
11070
11071         * CheckBox.cs:
11072           - Finished (famous last words)
11073
11074 2004-08-31 04:35  jordi
11075
11076         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
11077           scrolling bugs, adds new methods
11078
11079 2004-08-30 14:42  pbartok
11080
11081         * CheckBox.cs:
11082           - Implemented CheckBox drawing code
11083
11084 2004-08-30 14:42  pbartok
11085
11086         * ButtonBase.cs:
11087           - Made Redraw() and CheckRedraw() virtual
11088           - Improved mouse up/down/move logic to properly track buttons
11089
11090 2004-08-30 09:44  pbartok
11091
11092         * CheckBox.cs:
11093           - Updated to fix broken build. Not complete yet.
11094
11095 2004-08-30 09:28  pbartok
11096
11097         * CheckState.cs:
11098           - Initial checkin
11099
11100 2004-08-30 09:17  pbartok
11101
11102         * Appearance.cs:
11103           - Initial check-in
11104
11105 2004-08-27 16:12  ravindra
11106
11107         * ToolBarButton.cs: Added TypeConverter attribute.
11108
11109 2004-08-27 16:07  ravindra
11110
11111         * ImageIndexConverter.cs: Implemented.
11112
11113 2004-08-27 14:17  pbartok
11114
11115         * Control.cs:
11116           - Removed unneeded stack vars
11117           - First attempt to fix sizing issues when layout is suspended
11118
11119 2004-08-25 15:35  jordi
11120
11121         * ScrollBar.cs: more fixes to scrollbar
11122
11123 2004-08-25 14:04  ravindra
11124
11125         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
11126           Added the missing divider code and grip for ToolBar Control.
11127
11128 2004-08-25 13:20  pbartok
11129
11130         * Control.cs:
11131           - Control now properly passes the ambient background color to child
11132             controls
11133
11134 2004-08-25 13:20  jordi
11135
11136         * ScrollBar.cs: small bug fix regarding bar position
11137
11138 2004-08-25 12:33  pbartok
11139
11140         * Timer.cs:
11141           - Now only calls SetTimer or KillTimer if the enabled state has
11142           changed
11143
11144 2004-08-25 12:33  pbartok
11145
11146         * XplatUIWin32.cs:
11147           - Fixed timer handling, now seems to work
11148           - Improved error message for window creation
11149
11150 2004-08-25 12:32  pbartok
11151
11152         * Control.cs:
11153           - Fixed generation of MouseUp message
11154
11155 2004-08-25 12:29  jordi
11156
11157         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
11158           and fixes for progressbar
11159
11160 2004-08-24 18:43  ravindra
11161
11162         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
11163           in ToolBar control.
11164
11165 2004-08-24 17:15  pbartok
11166
11167         * Panel.cs:
11168           - Added #region
11169           - Added missing events
11170           - Alphabetized
11171
11172 2004-08-24 17:14  pbartok
11173
11174         * StatusBar.cs, PictureBox.cs:
11175           - Now uses Control's CreateParams
11176
11177 2004-08-24 16:36  pbartok
11178
11179         * XplatUIX11.cs:
11180           - Fixed background color handling
11181           - Fixed sending of enter/leave events on a grab
11182
11183 2004-08-24 16:35  pbartok
11184
11185         * X11Structs.cs:
11186           - Refined definitions for CrossingEvent
11187
11188 2004-08-24 12:37  jordi
11189
11190         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
11191           formmating, methods signature, and adds missing events
11192
11193 2004-08-24 12:24  jordi
11194
11195         * Control.cs: fire OnEnabledChanged event
11196
11197 2004-08-24 11:17  pbartok
11198
11199         * XplatUIWin32.cs:
11200           - Implemented SetTimer() and KillTimer()
11201
11202 2004-08-24 11:16  pbartok
11203
11204         * XplatUIX11.cs:
11205           - Now uses Remove instead of Add to kill the timer
11206
11207 2004-08-24 10:16  jackson
11208
11209         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
11210           picture boxes in the theme now. Draw picture box borders and obey
11211           sizing modes
11212
11213 2004-08-24 05:49  jackson
11214
11215         * Timer.cs: Remove top secret debugging code
11216
11217 2004-08-24 05:34  jackson
11218
11219         * PictureBox.cs: Temp hack to make picture boxes draw their full
11220           image
11221
11222 2004-08-24 05:29  jackson
11223
11224         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
11225           XplatUIX11.cs: Move timers to the driver level. On X they are
11226           queued by the driver and checked on idle.
11227
11228 2004-08-24 01:07  jackson
11229
11230         * XplatUIX11.cs: Use a queue for async messages instead of passing
11231           them as ClientMessages since that was totally broken. Also simply
11232           check for events and return an idle message if none are found. This
11233           gives us an idle handler, and prevents deadlocking when no messages
11234           are in the queue.
11235
11236 2004-08-23 18:19  ravindra
11237
11238         * XplatUIWin32.cs: Removed the unwanted destructor.
11239
11240 2004-08-23 17:27  pbartok
11241
11242         * ButtonBase.cs:
11243           - Finishing touches. Works now, just needs some optimizations.
11244
11245 2004-08-23 16:53  jordi
11246
11247         * ScrollBar.cs: small fix
11248
11249 2004-08-23 16:45  pbartok
11250
11251         * Application.cs:
11252           - Removed debug output
11253           - Simplifications
11254
11255 2004-08-23 16:43  jordi
11256
11257         * ScrollBar.cs: [no log message]
11258
11259 2004-08-23 16:10  pbartok
11260
11261         * Form.cs:
11262           - Fixed handling of WM_CLOSE message
11263           - Removed debug output
11264
11265 2004-08-23 16:09  pbartok
11266
11267         * Application.cs:
11268           - Added handling of Idle event
11269           - Added handling of form closing
11270           - Fixed reporting of MessageLoop property
11271           - Removed some unneeded code, should provide a bit of a speedup
11272
11273 2004-08-23 15:22  pbartok
11274
11275         * Control.cs:
11276           - Added InitLayout() method
11277           - Added code to properly perform layout when Anchor or Dock property
11278             is changed
11279           - Changed 'interpretation' of ResumeLayout. MS seems to have a
11280             LAMESPEC, tried to do it in a way that makes sense
11281
11282 2004-08-23 14:10  jordi
11283
11284         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
11285           properties and methods
11286
11287 2004-08-23 13:55  pbartok
11288
11289         * Control.cs:
11290           - Properly fixed Jordi's last fix
11291           - Now uses Cursor's Position property instead of calling XplatUI
11292           directly
11293
11294 2004-08-23 13:44  jordi
11295
11296         * PaintEventHandler.cs: Adding missing attribute
11297
11298 2004-08-23 13:39  pbartok
11299
11300         * Cursor.cs:
11301           - Implemented Position property
11302
11303 2004-08-23 13:39  pbartok
11304
11305         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
11306           - Added method to move mouse cursor
11307
11308 2004-08-23 13:39  pbartok
11309
11310         * XplatUIX11.cs:
11311           - Fixed setting of background color
11312           - Added method to move mouse cursor
11313
11314 2004-08-23 13:16  jordi
11315
11316         * Control.cs: avoids null exception
11317
11318 2004-08-22 17:46  jackson
11319
11320         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
11321           PictureBox
11322
11323 2004-08-22 17:40  jackson
11324
11325         * XplatUIX11.cs: Add some missing locks
11326
11327 2004-08-22 15:10  pbartok
11328
11329         * Control.cs, Form.cs:
11330           - Removed OverlappedWindow style from Control, instead it's default
11331             now is child
11332           - Made form windows OverlappedWindow by default
11333
11334 2004-08-22 13:34  jackson
11335
11336         * ScrollBar.cs: Update the position through the Value property so
11337           the OnValueChanged event is raised.
11338
11339 2004-08-22 12:04  pbartok
11340
11341         * SWF.csproj:
11342           - Added Cursor.cs and UserControl.cs
11343
11344 2004-08-22 12:03  pbartok
11345
11346         * Cursor.cs:
11347           - Started implementation, not usable yet
11348
11349 2004-08-22 12:00  pbartok
11350
11351         * UserControl.cs:
11352           - Implemented UserControl (complete)
11353
11354 2004-08-21 19:20  ravindra
11355
11356         * ToolBar.cs: Correcting the formatting mess of VS.NET.
11357
11358 2004-08-21 18:49  ravindra
11359
11360         * ToolBar.cs: Probably this completes the missing attributes in
11361           toolbar control.
11362
11363 2004-08-21 18:03  ravindra
11364
11365         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
11366           Fixed toolbar control signatures.
11367
11368 2004-08-21 16:32  pbartok
11369
11370         * LinkLabel.cs:
11371           - Signature Fixes
11372
11373 2004-08-21 16:30  pbartok
11374
11375         * Label.cs:
11376           - Signature fixes
11377
11378 2004-08-21 16:19  pbartok
11379
11380         * Control.cs, Label.cs:
11381           - Signature fixes
11382
11383 2004-08-21 15:57  pbartok
11384
11385         * ButtonBase.cs:
11386           - Added loads of debug output for development
11387           - Fixed typo in method name
11388
11389 2004-08-21 15:52  pbartok
11390
11391         * ToolBarButtonClickEventArgs.cs:
11392           - Added missing base class
11393
11394 2004-08-21 14:53  pbartok
11395
11396         * Control.cs:
11397           - Updated to match new GrabWindow signature
11398
11399 2004-08-21 14:51  pbartok
11400
11401         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
11402           - Added method to get default display size
11403
11404 2004-08-21 14:23  pbartok
11405
11406         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
11407           - Added method to query current grab state
11408           - Added argument to allow confining a grab to a window
11409
11410 2004-08-21 14:22  pbartok
11411
11412         * Keys.cs:
11413           - Added [Flags] attribute so that modifiers can be used in bitwise
11414           ops
11415
11416 2004-08-21 14:21  pbartok
11417
11418         * TrackBar.cs, ScrollBar.cs:
11419           - Replaced direct XplatUI calls with their Control counterpart
11420
11421 2004-08-21 13:32  pbartok
11422
11423         * Control.cs:
11424           - Implemented Created property
11425
11426 2004-08-21 13:28  pbartok
11427
11428         * Control.cs:
11429           - Implemented ContainsFocus
11430
11431 2004-08-21 13:26  pbartok
11432
11433         * Control.cs:
11434           - Implemented CausesValidation
11435
11436 2004-08-21 13:21  pbartok
11437
11438         * Control.cs:
11439           - Implemented CanFocus
11440           - Implemented CanSelect
11441           - Implemented Capture
11442
11443 2004-08-21 12:35  pbartok
11444
11445         * XplatUIWin32.cs:
11446           - Fixed bug with Async message handling
11447           - Implemented getting the ModifierKeys
11448
11449 2004-08-21 12:32  jackson
11450
11451         * AsyncMethodResult.cs: Make sure we have the mutex before we
11452           release it. Fixes BeginInvoke on windows
11453
11454 2004-08-21 11:31  pbartok
11455
11456         * XplatUIWin32.cs, XplatUIX11.cs:
11457           - Drivers now return proper mouse state
11458
11459 2004-08-21 10:54  jackson
11460
11461         * Control.cs: Implement EndInvoke
11462
11463 2004-08-21 10:48  jackson
11464
11465         * Timer.cs: Remove unneeded finalizer
11466
11467 2004-08-20 19:52  ravindra
11468
11469         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
11470           in mouse event handling in the ToolBar control.
11471
11472 2004-08-20 19:50  ravindra
11473
11474         * ImageList.cs: Changed draw method to use the arguments passed in
11475           to draw the image.
11476
11477 2004-08-20 18:58  pbartok
11478
11479         * XplatUIStructs.cs:
11480           - Added private message for async communication
11481
11482 2004-08-20 17:38  ravindra
11483
11484         * Control.cs: Made RightToLeft property virtual and removed a
11485           Console.WriteLine.
11486
11487 2004-08-20 14:39  jordi
11488
11489         * ThemeGtk.cs: use style_attach
11490
11491 2004-08-20 14:39  pbartok
11492
11493         * XplatUIWin32.cs:
11494           - Added jackson's Async code from X11 to Win32
11495
11496 2004-08-20 14:09  pbartok
11497
11498         * SWF.csproj:
11499           - Added all new files
11500
11501 2004-08-20 14:09  pbartok
11502
11503         * Control.cs:
11504           - Added call to set window background color
11505
11506 2004-08-20 14:03  pbartok
11507
11508         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
11509           - Added method for setting the window background
11510
11511 2004-08-20 14:02  pbartok
11512
11513         * XplatUIWin32.cs:
11514           - Added method for setting the background color
11515           - Added handling for erasing the window background
11516
11517 2004-08-20 13:45  jordi
11518
11519         * TrackBar.cs: fixes timer, new properties and methods
11520
11521 2004-08-20 13:34  jackson
11522
11523         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
11524           correct thread
11525
11526 2004-08-20 13:22  jackson
11527
11528         * Timer.cs: Timer Tick events are now handed through Controls Async
11529           mechanism so the callbacks are executed in the same thread as X
11530
11531 2004-08-20 13:19  jackson
11532
11533         * XplatUIDriver.cs: Expose functionality to send async messages
11534           through the driver
11535
11536 2004-08-20 13:18  jackson
11537
11538         * Control.cs: Implement Begininvoke
11539
11540 2004-08-20 13:14  jackson
11541
11542         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
11543           messages through the driver
11544
11545 2004-08-20 13:12  jackson
11546
11547         * XplatUIX11.cs: Lock before all X operations. Also added Async
11548           method functionality through XSendEvent
11549
11550 2004-08-20 13:11  jackson
11551
11552         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
11553           This will screw up on 64 bit systems)
11554
11555 2004-08-20 13:10  jackson
11556
11557         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
11558           Async messages through X/Win32
11559
11560 2004-08-19 19:39  pbartok
11561
11562         * XplatUIX11.cs:
11563           - Updated code to match new HandleData.DeviceContext type
11564
11565 2004-08-19 19:38  pbartok
11566
11567         * HandleData.cs:
11568           - Made DeviceContext a generic object to allow usage from various
11569           drivers
11570           - Added support for queueing Windows messages
11571
11572 2004-08-19 19:37  pbartok
11573
11574         * XplatUIWin32.cs:
11575           - Added generation of MouseEnter, MouseLeave and MouseHover events
11576           - Added cleanup on EndPaint
11577
11578 2004-08-19 19:17  pbartok
11579
11580         * Control.cs:
11581           - Added handling of WM_MOUSEHOVER
11582           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
11583           code
11584
11585 2004-08-19 18:55  jordi
11586
11587         * ThemeGtk.cs: fixes button order
11588
11589 2004-08-19 18:12  jordi
11590
11591         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
11592
11593 2004-08-19 17:09  pbartok
11594
11595         * Control.cs:
11596           - Added Right property
11597           - Added RightToLeft property
11598
11599 2004-08-19 16:27  jordi
11600
11601         * ThemeGtk.cs: experimental GTK theme support
11602
11603 2004-08-19 16:26  jordi
11604
11605         * ITheme.cs, Theme.cs: move themes from an interface to a class
11606
11607 2004-08-19 16:25  jordi
11608
11609         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
11610           theme enhancaments
11611
11612 2004-08-19 16:04  pbartok
11613
11614         * XplatUIX11.cs:
11615           - Added colormap basics
11616           - Added a way to re-initialize with a different display handle
11617           - Fixed setting of the window background color
11618           - Added various X11 imports related to colors and colormaps
11619
11620 2004-08-19 15:51  pbartok
11621
11622         * X11Structs.cs:
11623           - Removed packing hints (Paolo suggested this a while back)
11624           - fixed colormap type
11625           - Added default Atom types
11626           - Added Screen and color structs and enums
11627
11628 2004-08-19 15:39  pbartok
11629
11630         * ImageList.cs:
11631           - Added missing Draw() method
11632           - Added missing RecreateHandle event
11633
11634 2004-08-19 15:30  pbartok
11635
11636         * Form.cs:
11637           - Added handling of WM_CLOSE
11638
11639 2004-08-18 13:16  jordi
11640
11641         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
11642           a table
11643
11644 2004-08-18 09:56  jordi
11645
11646         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
11647
11648 2004-08-17 15:31  ravindra
11649
11650         * SWF.csproj: Updated project.
11651
11652 2004-08-17 15:25  pbartok
11653
11654         * Control.cs:
11655           - Drawing improvement; don't call UpdateBounds if we are not visible
11656             (or have been minimized)
11657
11658 2004-08-17 15:24  pbartok
11659
11660         * XplatUIWin32.cs:
11661           - Finished IsVisible
11662           - Added Win32GetWindowPlacement
11663
11664 2004-08-17 15:08  jackson
11665
11666         * Panel.cs: Initial checkin of the Panel
11667
11668 2004-08-17 14:25  pbartok
11669
11670         * Control.cs:
11671           - Fixed broken handling of default window sizes
11672
11673 2004-08-17 13:29  jackson
11674
11675         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
11676           has a large startup time.
11677
11678 2004-08-17 10:25  jackson
11679
11680         * HandleData.cs: union areas properly
11681
11682 2004-08-17 10:12  jackson
11683
11684         * HandleData.cs: union areas properly
11685
11686 2004-08-16 20:00  ravindra
11687
11688         * ToolBar.cs, ToolBarButton.cs: Added attributes.
11689
11690 2004-08-16 18:48  ravindra
11691
11692         * ToolBar.cs: Added attributes.
11693
11694 2004-08-16 17:17  ravindra
11695
11696         * SWF.csproj: Updated project.
11697
11698 2004-08-16 17:16  jackson
11699
11700         * XplatUIX11.cs: Check for more expose events before sending a
11701           WM_PAINT so they can all be grouped together. This makes dragging a
11702           window across another window redraw in a sane way.
11703
11704 2004-08-16 15:47  pbartok
11705
11706         * Control.cs:
11707           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
11708             support OnMouseEnter/Leave()
11709           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
11710             exposure handling
11711
11712 2004-08-16 15:46  pbartok
11713
11714         * XplatUIStructs.cs, XplatUIX11.cs:
11715           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
11716           OnMouseEnter/Leave()
11717
11718 2004-08-16 15:34  jackson
11719
11720         * XplatUIX11.cs: Group multiple expose events in HandleData, make
11721           sure messages get the message field set to WM_NULL if they are not
11722           handled.
11723
11724 2004-08-16 15:24  jackson
11725
11726         * HandleData.cs: HandleData is used for storing message information
11727           for window handles
11728
11729 2004-08-15 17:23  ravindra
11730
11731         * ColorDepth.cs: Added attribute.
11732
11733 2004-08-15 17:23  ravindra
11734
11735         * SWF.csproj: Updated project for ToolBar Control.
11736
11737 2004-08-15 17:20  ravindra
11738
11739         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
11740           control and also dos2unix format.
11741
11742 2004-08-15 17:13  ravindra
11743
11744         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
11745           ToolBarButtonClickEventArgs.cs,
11746           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
11747           ToolBarTextAlign.cs: First Implementation of ToolBar control.
11748
11749 2004-08-15 15:31  pbartok
11750
11751         * ButtonBase.cs:
11752           - First (mostly) working version
11753
11754 2004-08-13 16:15  pbartok
11755
11756         * Control.cs:
11757           - Fixed Anchor default
11758
11759 2004-08-13 15:43  pbartok
11760
11761         * Control.cs:
11762           - Changed GetCursorPos signature
11763
11764 2004-08-13 15:42  pbartok
11765
11766         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
11767           - Changed signature for GetCursorPos
11768
11769 2004-08-13 15:25  pbartok
11770
11771         * XplatUIX11.cs:
11772           - Cleanup
11773           - Fixed resizing/exposure handling
11774
11775 2004-08-13 15:22  jordi
11776
11777         * ThemeWin32Classic.cs: removes redundant code and fixes issues
11778           with tickposition
11779
11780 2004-08-13 14:55  jordi
11781
11782         * TrackBar.cs: change from wndproc to events
11783
11784 2004-08-13 13:00  jordi
11785
11786         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
11787           XplatUIX11.cs: implements PointToClient (ScreenToClient)
11788
11789 2004-08-13 12:53  pbartok
11790
11791         * XplatUIWin32.cs:
11792           - Changed GetWindowPos to also provide client area size
11793           - Fixed broken prototypes for several win32 functions
11794
11795 2004-08-13 12:53  pbartok
11796
11797         * XplatUI.cs, XplatUIDriver.cs:
11798           - Changed GetWindowPos to also provide client area size
11799
11800 2004-08-13 12:52  pbartok
11801
11802         * XplatUIX11.cs:
11803           - Added generation of WM_POSCHANGED
11804           - Changed GetWindowPos to also provide client area size
11805
11806 2004-08-13 12:52  pbartok
11807
11808         * Control.cs:
11809           - Added Dispose() and destructor
11810           - Fixed resizing and bounds calculation
11811           - Fixed Layout
11812           - Added memory savings for invisible windows
11813
11814 2004-08-13 12:46  jordi
11815
11816         * TrackBar.cs: adds timer and grap window
11817
11818 2004-08-13 10:25  jackson
11819
11820         * Timer.cs: SWF Timer
11821
11822 2004-08-12 16:59  pbartok
11823
11824         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
11825           - Implemented method to get current mouse position
11826
11827 2004-08-12 14:29  jordi
11828
11829         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
11830           enhancement, fix mouse problems, highli thumb, etc
11831
11832 2004-08-12 13:31  pbartok
11833
11834         * Control.cs:
11835           - Fixed Anchoring bugs
11836
11837 2004-08-12 13:01  jackson
11838
11839         * StatusBar.cs: Don't forget things
11840
11841 2004-08-12 12:54  jackson
11842
11843         * ThemeWin32Classic.cs: Handle owner draw status bars
11844
11845 2004-08-12 12:54  jackson
11846
11847         * StatusBar.cs: Implement missing properties, events, and methods.
11848           Handle mouse clicking
11849
11850 2004-08-12 10:19  jackson
11851
11852         * StatusBarPanelClickEventArgs.cs,
11853           StatusBarPanelClickEventHandler.cs: Classes for handling status
11854           bar panel click events
11855
11856 2004-08-12 10:10  jackson
11857
11858         * Control.cs: Add missing properties
11859
11860 2004-08-12 09:46  pbartok
11861
11862         * BindingsManagerBase.cs:
11863           - Name changed to BindingManagerBase.cs
11864
11865 2004-08-12 09:25  jordi
11866
11867         * ScrollableControl.cs: calls ctrlbase instead of exeception
11868
11869 2004-08-11 16:28  pbartok
11870
11871         * InputLanguageChangingEventArgs.cs:
11872           - Never check in before compiling. Fixes the last check-in
11873
11874 2004-08-11 16:26  pbartok
11875
11876         * InputLanguageChangingEventArgs.cs:
11877           - More signature fixes
11878
11879 2004-08-11 16:20  pbartok
11880
11881         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
11882           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
11883           ImageListStreamer.cs, InputLanguage.cs,
11884           InputLanguageChangedEventArgs.cs,
11885           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
11886           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
11887           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
11888           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
11889           - Signature fixes
11890
11891 2004-08-11 16:16  pbartok
11892
11893         * Application.cs:
11894           - Fixed Signature
11895           - Added .Net 1.1 method
11896
11897 2004-08-11 15:25  pbartok
11898
11899         * SWF.csproj:
11900           - Fixed BindingManagerBase.cs filename
11901
11902 2004-08-11 15:22  pbartok
11903
11904         * BindingManagerBase.cs:
11905           - Was checked in with wrong filename
11906
11907 2004-08-11 14:50  pbartok
11908
11909         * SWF.csproj:
11910           - Updated
11911
11912 2004-08-11 13:41  jordi
11913
11914         * XplatUIWin32.cs: Fixes ClientRect
11915
11916 2004-08-11 13:19  pbartok
11917
11918         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
11919           XplatUIX11.cs:
11920           - We had SetWindowPos and MoveWindow to set window positions and
11921             size, removed MoveWindow. We have GetWindowPos, so it made sense to
11922             keep SetWindowPos as matching counterpart
11923           - Added some X11 sanity checking
11924
11925 2004-08-11 12:59  pbartok
11926
11927         * Control.cs:
11928           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
11929             (It seems that SetBounds is just a front for SetBoundsCore and
11930              SetBoundsCore updates the underlying window system and
11931              UpdateBounds is responsible for updating the variables associated
11932              with the Control and sending the events)
11933           - Major cleanup of Size handling; we now have two sizes, client_size
11934             and bounds. Bounds defines the window with decorations, client_size
11935             without them.
11936
11937 2004-08-11 12:55  pbartok
11938
11939         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
11940           - Added method to calculate difference between decorated window and
11941             raw client area
11942
11943 2004-08-11 12:54  pbartok
11944
11945         * Label.cs:
11946           - Forcing redraw on resize
11947
11948 2004-08-11 11:43  pbartok
11949
11950         * ImageList.cs:
11951           - Removed disposing of the actual images when the list is disposed
11952
11953 2004-08-11 09:13  pbartok
11954
11955         * Control.cs:
11956           - Now properly reparents windows
11957
11958 2004-08-11 08:37  pbartok
11959
11960         * Control.cs:
11961           - Duh!
11962
11963 2004-08-11 07:47  pbartok
11964
11965         * Control.cs:
11966           - Rewrote the collection stuff. Might not be as fast now, not
11967             keeping the number of children around and accessible directly, but
11968             it's more straightforward
11969
11970 2004-08-11 07:44  pbartok
11971
11972         * AccessibleObject.cs:
11973           - Fixed to match ControlCollection rewrite
11974
11975 2004-08-11 07:43  pbartok
11976
11977         * ImageList.cs:
11978           - Added missing creation of the collection list
11979
11980 2004-08-10 20:08  jackson
11981
11982         * StatusBar.cs: Get the paint message from WndProc
11983
11984 2004-08-10 19:31  jackson
11985
11986         * ThemeWin32Classic.cs: Create Brushes as little as possible
11987
11988 2004-08-10 19:20  jackson
11989
11990         * UICues.cs: Add Flags attribute
11991
11992 2004-08-10 19:19  jackson
11993
11994         * StatusBarPanel.cs: Signature cleanup
11995
11996 2004-08-10 19:10  jackson
11997
11998         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
11999           Initial implementation of status bar item drawing
12000
12001 2004-08-10 17:27  jordi
12002
12003         * TrackBar.cs: add missing methods, properties, and restructure to
12004           hide extra ones
12005
12006 2004-08-10 16:24  jackson
12007
12008         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
12009           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
12010           attribute
12011
12012 2004-08-10 13:21  jordi
12013
12014         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
12015           enhancements and standarize on win colors defaults
12016
12017 2004-08-10 12:52  jackson
12018
12019         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
12020           ThemeWin32Classic.cs: Implement DrawItem functionality
12021
12022 2004-08-10 12:47  jordi
12023
12024         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
12025
12026 2004-08-10 12:32  jordi
12027
12028         * Control.cs: throw ontextchange event
12029
12030 2004-08-10 11:43  pbartok
12031
12032         * Control.cs:
12033           - Added more to the still unfinished Dock/Anchor layout code
12034
12035 2004-08-10 11:39  pbartok
12036
12037         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
12038           - Added GetWindowPos method
12039
12040 2004-08-10 11:36  pbartok
12041
12042         * XplatUIWin32.cs:
12043           - Implemented several methods
12044
12045 2004-08-10 09:47  jackson
12046
12047         * TrackBar.cs: Allow control to handle buffering
12048
12049 2004-08-10 09:41  jackson
12050
12051         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
12052
12053 2004-08-10 09:24  jackson
12054
12055         * Label.cs, LinkLabel.cs: Let Control handle buffering.
12056
12057 2004-08-10 09:09  jackson
12058
12059         * StatusBar.cs: Let Control handle all the buffering.
12060
12061 2004-08-10 09:08  jackson
12062
12063         * Control.cs: Control will now handle the buffering code, so each
12064           control does not have to implement this.
12065
12066 2004-08-10 08:34  jackson
12067
12068         * XplatUIDriver.cs: Use default colors from the theme
12069
12070 2004-08-09 17:12  pbartok
12071
12072         * ImageList.cs:
12073           - Fixed several bugs Ravindra pointed out
12074
12075 2004-08-09 16:11  pbartok
12076
12077         * Control.cs:
12078           - Added incomplete dock layout code
12079           - Added support for mouse wheel
12080
12081 2004-08-09 16:09  pbartok
12082
12083         * XplatUIX11.cs:
12084           - Added handling for middle and right mousebutton
12085           - Added handling for mouse wheel
12086           - Added handling for key state and mouse state and position
12087           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
12088           messages
12089
12090 2004-08-09 15:40  jackson
12091
12092         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
12093           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
12094           checkin
12095
12096 2004-08-09 15:37  jackson
12097
12098         * StatusBar.cs: Initial implementation of StatusBar
12099
12100 2004-08-09 15:36  jackson
12101
12102         * ITheme.cs: Add support for drawing status bar and getting status
12103           bar item sizes
12104
12105 2004-08-09 15:35  pbartok
12106
12107         * MouseButtons.cs:
12108           - Fixed values
12109
12110 2004-08-09 15:34  jackson
12111
12112         * ThemeWin32Classic.cs: Add support for drawing status bar and get
12113           status bar item sizes
12114
12115 2004-08-09 15:21  jackson
12116
12117         * ThemeWin32Classic.cs: Use known colors for default control
12118           colours
12119
12120 2004-08-09 15:12  jackson
12121
12122         * ThemeWin32Classic.cs: Make the default font static, it is static
12123           in control so this doesn't change functionality and creating fonts
12124           is sloooooow.
12125
12126 2004-08-09 14:56  pbartok
12127
12128         * X11Structs.cs:
12129           - Added GrabMode enum
12130
12131 2004-08-09 14:55  pbartok
12132
12133         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
12134           - Removed Run method, was only required for initial development
12135
12136 2004-08-09 14:51  pbartok
12137
12138         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
12139           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
12140           capture
12141
12142 2004-08-09 13:48  pbartok
12143
12144         * XplatUIX11.cs:
12145           - Fixed default sizing for child windows
12146
12147 2004-08-09 12:56  pbartok
12148
12149         * XplatUIX11.cs:
12150           - Added generation of WM_DESTROY message
12151           - Added handling of window manager induced shutdown
12152
12153 2004-08-09 11:31  jackson
12154
12155         * ThemeWin32Classic.cs: New names for control properties
12156
12157 2004-08-09 11:25  jackson
12158
12159         * Control.cs: Use new color names
12160
12161 2004-08-09 11:02  jackson
12162
12163         * XplatUI.cs: Get default window properties from the theme
12164
12165 2004-08-09 11:01  jackson
12166
12167         * ITheme.cs: The theme engine now controls default window
12168           properties
12169
12170 2004-08-09 11:00  jackson
12171
12172         * ThemeWin32Classic.cs: Add default window color properties
12173
12174 2004-08-09 10:17  jackson
12175
12176         * ThemeWin32Classic.cs: Use correct default back color
12177
12178 2004-08-09 10:05  jackson
12179
12180         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
12181           the theme now.
12182
12183 2004-08-09 09:56  jackson
12184
12185         * XplatUI.cs: Remove defaults, these are handled by the theme now.
12186
12187 2004-08-09 09:54  jackson
12188
12189         * Control.cs: Get default properties from the theme.
12190
12191 2004-08-09 09:53  jackson
12192
12193         * ITheme.cs: Themes now handle default control properties
12194
12195 2004-08-09 09:53  jackson
12196
12197         * ThemeWin32Classic.cs: Themes now handle default control
12198           properties so coloring will be consistent
12199
12200 2004-08-08 16:54  jordi
12201
12202         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
12203
12204 2004-08-08 15:08  jordi
12205
12206         * XplatUIX11.cs: fixes keyboard crash
12207
12208 2004-08-08 13:47  jordi
12209
12210         * Label.cs: add cvs header info
12211
12212 2004-08-08 12:09  jackson
12213
12214         * ThemeWin32Classic.cs: Add pen_buttonface
12215
12216 2004-08-08 11:52  jordi
12217
12218         * Label.cs, LinkLabel.cs: [no log message]
12219
12220 2004-08-08 11:34  jordi
12221
12222         * ThemeWin32Classic.cs: Use Windows Standard Colours
12223
12224 2004-08-07 17:32  jordi
12225
12226         * TrackBar.cs: throw exceptions of invalid enums values
12227
12228 2004-08-07 17:31  jordi
12229
12230         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
12231           draw method name
12232
12233 2004-08-07 16:56  jackson
12234
12235         * HorizontalAlignment.cs: Initial checkin
12236
12237 2004-08-07 13:16  jordi
12238
12239         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
12240           methods
12241
12242 2004-08-07 13:05  jordi
12243
12244         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
12245           GetSysColor defines
12246
12247 2004-08-06 18:01  pbartok
12248
12249         * ThemeWin32Classic.cs:
12250           - Fixed some rounding issues with float/int
12251
12252 2004-08-06 18:00  jackson
12253
12254         * DockStyle.cs, AnchorStyles.cs:
12255
12256                   Add flags and serializable attributes.
12257
12258 2004-08-06 17:46  pbartok
12259
12260         * XplatUIX11.cs:
12261           - Implemented GetParent
12262
12263 2004-08-06 17:18  pbartok
12264
12265         * TrackBar.cs:
12266           - Fixed some rounding issues with float/int
12267
12268 2004-08-06 17:17  pbartok
12269
12270         * X11Structs.cs, XplatUIX11.cs:
12271           - Fixed Refresh and Invalidate
12272
12273 2004-08-06 15:30  pbartok
12274
12275         * Control.cs, X11Structs.cs, XplatUIX11.cs:
12276           - Fixed recursive loop when resizing
12277           - Improved/fixed redrawing on expose messages
12278
12279 2004-08-06 09:53  jordi
12280
12281         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
12282           keyboard navigation
12283
12284 2004-08-06 08:02  pbartok
12285
12286         * X11Structs.cs, XplatUIX11.cs:
12287           - Fixed reparenting
12288           - Fixed window border creation
12289
12290 2004-08-05 15:38  pbartok
12291
12292         * XplatUIX11.cs:
12293           - Attempted fix for reparenting problems
12294
12295 2004-08-04 15:14  pbartok
12296
12297         * Control.cs:
12298           - Fixed Invalidation bug (calculated wrong client area)
12299           - Added ClientSize setter
12300
12301 2004-08-04 15:13  pbartok
12302
12303         * Form.cs:
12304           - Added AutoScale properties
12305
12306 2004-08-04 15:13  pbartok
12307
12308         * SWF.csproj:
12309           - Added latest files
12310
12311 2004-08-04 14:11  pbartok
12312
12313         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
12314           XplatUIX11.cs:
12315           - Added Invalidate handling
12316
12317 2004-08-03 17:09  jordi
12318
12319         * XplatUIDriver.cs: fixes spelling mistake
12320
12321 2004-07-27 09:53  jordi
12322
12323         * TrackBar.cs: fixes trackbar events, def classname, methods
12324           signature
12325
12326 2004-07-27 09:29  jordi
12327
12328         * ScrollBar.cs: fixes scrollbar events
12329
12330 2004-07-27 04:38  jordi
12331
12332         * Control.cs: changes to be able to run winforms samples
12333
12334 2004-07-26 11:42  jordi
12335
12336         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
12337           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
12338
12339 2004-07-26 05:41  jordi
12340
12341         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
12342           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
12343           implementation
12344
12345 2004-07-22 09:22  jordi
12346
12347         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
12348           check link overlapping, implement events, and fixes
12349
12350 2004-07-21 10:28  jordi
12351
12352         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
12353
12354 2004-07-21 10:19  jordi
12355
12356         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
12357           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
12358           LinkLabelLinkClickedEventArgs.cs,
12359           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
12360           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
12361           implementation
12362
12363 2004-07-19 13:09  jordi
12364
12365         * Control.cs, Label.cs: label control re-written: added missing
12366           functionlity, events, and properties
12367
12368 2004-07-19 10:49  jordi
12369
12370         * Control.cs: fixes SetBounds logic
12371
12372 2004-07-19 01:29  jordi
12373
12374         * Control.cs: Call RefreshWindow only if the window has created
12375
12376 2004-07-15 14:05  pbartok
12377
12378         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
12379           - Implemented ImageList and ImageList.ImageCollection classes
12380           - Added ColorDepth enumeration
12381           - Updated SWF VS.Net project
12382
12383 2004-07-15 11:06  jordi
12384
12385         * XplatUIStructs.cs: added MsgButons enum
12386
12387 2004-07-15 11:03  jordi
12388
12389         * Control.cs: added basic mouse handeling events
12390
12391 2004-07-15 03:38  jordi
12392
12393         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
12394           Vertical TrackBar control implementation
12395
12396 2004-07-13 09:33  jordi
12397
12398         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
12399
12400 2004-07-13 09:31  jordi
12401
12402         * Control.cs, Form.cs: commit: new properties and fixes form size
12403           problems
12404
12405 2004-07-09 14:13  miguel
12406
12407         * ProgressBar.cs: Spelling
12408
12409 2004-07-09 11:25  pbartok
12410
12411         * ProgressBar.cs:
12412           - Removed usage of Rectangle for drawing. Miguel pointed out it's
12413           faster
12414
12415 2004-07-09 11:17  miguel
12416
12417         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
12418
12419                 * ProgressBar.cs: Fixed spelling for `block'
12420
12421                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
12422                 style guidelines.
12423
12424                 Avoid using the += on rect.X, that exposed a bug in the compiler.
12425
12426 2004-07-08 23:21  pbartok
12427
12428         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
12429           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
12430           BaseCollection.cs, Binding.cs, BindingContext.cs,
12431           BindingMemberInfo.cs, BindingsCollection.cs,
12432           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
12433           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
12434           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
12435           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
12436           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
12437           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
12438           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
12439           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
12440           FrameStyle.cs, GiveFeedbackEventArgs.cs,
12441           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
12442           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
12443           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
12444           InputLanguageChangedEventArgs.cs,
12445           InputLanguageChangedEventHandler.cs,
12446           InputLanguageChangingEventArgs.cs,
12447           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
12448           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
12449           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
12450           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
12451           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
12452           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
12453           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
12454           QueryAccessibilityHelpEventArgs.cs,
12455           QueryAccessibilityHelpEventHandler.cs,
12456           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
12457           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
12458           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
12459           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
12460           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
12461           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
12462           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
12463           XplatUIX11.cs, lang.cs:
12464           - Initial check-in
12465